Problem with PDF generating module documentation in Ctx minimals
Hello all, I have problem with PDF generating module documentation. When I use command: context --autopdf --ctx=x-ldx.ctx t-fancybreak.mkiv, then is all right, but if I use commands: context --autopdf --ctx=s-mod.ctx --nomode t-fancybreak.mkiv context --autopdf --ctx=s-mod.ctx t-fancybreak.mkiv then I get compilation breaks and I get error message! I compiled using the latest beta version CTX minimals Even before the time everything worked well (in minimals)!!! During the compilation occurs in both cases the error: C:\1da\ConTeXt-MkIV\t-scancsv.mkiv>context --autopdf --ctx=s-mod.ctx --nomode t- scancsv.mkiv MTXrun | jobname: t-scancsv.mkiv MTXrun | ctxname: s-mod.ctx MTXrun | ctx comment: TeX Documentation Generator MTXrun | command: mtxrun --script modules --convert --prep t-scancsv.mkiv MTXrun | converting 't-scancsv.mkiv' to 't-scancsv.mkiv.prep' MTXrun | saving logdata in: t-scancsv.ctl MTXrun | run 1: luatex --fmt="C:/context/tex/texmf-cache/luatex-cache/context/f5 3042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en" --lua="C:/context/tex/texmf-cach e/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui" --b ackend=pdf "t-scancsv.run"This is LuaTeX, Version beta-0.65.0-2010121421 (rev 40 34) \write18 enabled. (t-scancsv.run jobcontrol > resuming randomizer with 0.96191290017396 ConTeXt ver: 2010.12.22 14:07 MKIV fmt: 2010.12.22 int: english/english system : cont-new loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (C:/context/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texm f-context/tex/context/base/type-def.mkiv) (C:/context/tex/texmf-context/tex/cont ext/base/type-lua.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-siz. mkiv) (C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (C:/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t-scancsv.top loaded (t-scancsv.top){C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/ tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/p dftex/context/mkiv-base.map} bodyfont : 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language : language en is active system : module mod-01 loaded (C:/context/tex/texmf-context/tex/context/base/s-mod-01.tex system : module mod-00 loaded (C:/context/tex/texmf-context/tex/context/base/s-mod-00.tex system : module units loaded (C:/context/tex/texmf-context/tex/context/base/m-units.tex) ! Undefined control sequence. \@@tpdefinitionoption ->\Moduletype \doinitializevisualizer ...a {visualizers.load("#1 ")}\fi \next3 #1,->\docommand {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... \d@setuptyping ...processcommalist [#1]\docommand \else \let \currenttyping ... l.242 \c!option=\Moduletype] ? Does anyone know what the problem is? Thanx Jaroslav
Am 22.12.2010 um 17:29 schrieb Jaroslav Hajtmar:
Hello all, I have problem with PDF generating module documentation.
When I use command: context --autopdf --ctx=x-ldx.ctx t-fancybreak.mkiv,
The x-ldx.ctx file is to produce documentation from lua files.
then is all right, but if I use commands:
context --autopdf --ctx=s-mod.ctx --nomode t-fancybreak.mkiv
What do you try to achieve with the “nomode” option?
then I get compilation breaks and I get error message! I compiled using the latest beta version CTX minimals Even before the time everything worked well (in minimals)!!!
Has to do with the rewrite of the verbatim code in mkiv. Here is a minimal example which can be run with “context <filename>” to generate the error: \usemodule[mod-01] \startmodule[type=tex] \startdefinition \TeX \stopdefinition \stopmodule The problem is \startmodule[type=tex] produce the command \Moduletype is is used in s-mod-01.tex to load the syntax hyghlighter for the defintion environment but the module is loaded before \Moduletype is generated and therefore you get the error. Wolfgang
participants (2)
-
Jaroslav Hajtmar
-
Wolfgang Schuster