Re: [NTG-context] ctags and ConTeXt
Aditya Mahajan wrote: Hi Here is my first attempt (see attachment). It works correctly in the little testing that I have done (on Windows). Just add \usemodule[ctags] somewhere in your environment file, and run context. I file called context.tags will be generated which contains the labels, filename, and line-number where the label occurs (line number can sometimes be off). I modify a few core macros, so this can possibly break existing stuff (It should not, but then ...) i didn't look at the code yet, but maybe a hook is a safer way? I found no reliable way to know the current file name. So this works correctly only if registerfileinfo is called. So one will have the correct filename when using a project structure, but not when using \input. I do not want to redefine \input, since almost everything relies on \input working correctly. I will also post the module on the garden once I am more comfortable with it. This one is too dangerous to go to the core. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX problem again
not that strange ... just install the latest latin roman .. it's what the message says Font \*7ptmmmrrm*=[rm-lmr7] not loadable: Metric (TFM) file or installed font not found. Well, then perhaps I need a bit of advice because I have the impression that my TeXLive 2007 installation already sports the latest Latin Modern fonts ... Namely, in 2007/texmf-dist/doc/fonts/lm/ the history file reports a release date of 22.01.2007 (which is even after 1.010 but without an extra version number) ... and this is the only instance where I could find version information in the entire TeXLive 2007 tree. Now I'm really puzzled :-( Best, Oliver ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX problem again
Mojca Miklavec wrote: On 2/26/07, Oliver Buerschaper wrote: Dear folks, I'm afraid I'm facing the XeTeX problem again after I updated ConTeXt to version 2007.02.21 :-( On a freshly installed MacTeX-2007 (which is TeXLive 2007 up to minor modifications) everything is fine. The ConTeXt version is 2007.01.12. Then I ran ctxtools which installed an updated ConTeXt in texmf-local (besides the folder 2007). Now the pdfTeX engine still works fine. However, XeTeX complained about the wrong format files. So I remade them with texexec --make --xtx en nl. Later XeTeX spills out the following: --- TeXExec | processing document 'test.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test.top TeXExec | using randomseed 270 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6) %-line parsing enabled. (WARNING: translate-file natural.tcx ignored) entering extended mode (./test.tex ConTeXt ver: 2007.02.21 11:55 MKII fmt: 2007.2.26 int: english/ english language: language en is active system : cont-new loaded (/usr/local/texlive/2007/../texmf-local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/texlive/2007/../texmf-local/tex/context/base/cont-new.mkii)) system : cont-old loaded (/usr/local/texlive/2007/../texmf-local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/texlive/2007/../texmf-local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/texlive/2007/../texmf-local/tex/context/user/cont-sys.rme (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-exa.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-syn.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-enc.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-siz.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-map.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-spe.tex) (/usr/local/texlive/2007/../texmf-local/tex/context/base/type-akb.tex) (/us! Font \*7ptmmmrrm*=[rm-lmr7] not loadable: Metric (TFM) file or installed font not found. Problems confirmed. I went investigating the differences between the distributions, but I probably didn't investigate long enough. Hans has commented out a big portion of code for dealing with fonts under XeTeX, but even after uncommenting those lines again and after deleting the brackets in font-ini.mkii, I still get Font \*7ptmmmrrm*=ec-lmr12 not loadable which is really strange. not that strange ... just install the latest latin roman .. it's what the message says Font \*7ptmmmrrm*=[rm-lmr7] not loadable: Metric (TFM) file or installed font not found. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to put header like Example 1.1 in frame?
On Tue, 27 Feb 2007, Dalyoung Jeong wrote: Deaer all, To give a numbering to the examples in a chapter, I tired the following: \defineenumeration[example] [location=serried, headstyle=bold, text=Example, way=bychapter, width=broad, number=yes, after=] To use \inframed, I am able to include Example inside the frame but not the numbers. Please tell me how to put the numbering in the frame too. (Untested) \defineenumeration[example][command=\inframed] Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ctags and ConTeXt
On Tue, 27 Feb 2007, Hans Hagen wrote: Aditya Mahajan wrote: Hi Here is my first attempt (see attachment). It works correctly in the little testing that I have done (on Windows). Just add \usemodule[ctags] somewhere in your environment file, and run context. I file called context.tags will be generated which contains the labels, filename, and line-number where the label occurs (line number can sometimes be off). I modify a few core macros, so this can possibly break existing stuff (It should not, but then ...) i didn't look at the code yet, but maybe a hook is a safer way? The redefinition is safe. I put the warning since the user must be aware that a module redefines a core macro. There are two redefinitions, one for knowing the name of the current file, and the other for writings the reference to the tags file. For knowing the name of the current file, I would say that the core should support it. From what I understand, \inputfilename (or \currentfile) should give the name of the current file, but they do not. So, I had to modify registerfileinfo so that it provides with the name of the current file. To write the reference into the tag file, I need to know the reference. That is why I had to modify writereference. One hook that I can think of is to provide an \everywritereference token. \def\writereference#1#2#3#4 {\def\currentreferece{#1} \the\everywritereference % Rest of the writereference code} Then, modules like ctags will be able to hook into everywritereference. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \frak (Fractur) in math mode
Hi Hans and Taco, Something seems to be broken with \frak. \frak does not work in math mode and works in text mode! For example $\frak ABC$ {\frak ABC} A workaround is to use \fraktur, which works fine in math mode, but it will be nice to remove this bug. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context