LuaTex choking on \definesynonyms?
Hi all, LuaTex doesn't seem to like the \definesynonyms command. The following works fine in PDFtex: 1 \definesynonyms[abbreviation][abbreviations][\infull] 2 3 \starttext 4 \abbreviation{VVV}{Bureau of Tourist Information} 5 The Dutch \VVV\ (\infull{VVV}) can provide you with the tourist 6 information on Hasselt. 7 8 \stoptext ...but when compiling with Luatex, I get the errors as below. On Mac OS X with an updated ConTeXt/Luatex minimals installation. The abbreviations aren't essential in my current document but I guess somebody might want to look into this? Thanks Roland 1 This is LuaTeX, Version beta-0.42.0-2009071723 2 \write18 enabled. 3 (/Users/rs/Desktop/Dropbox/C/ConTeXt_sandbox/sandbox.tex 4 5 ConTeXt ver: 2009.07.23 20:11 MKIV fmt: 2009.8.2 int: english/english 6 7 system : cont-new loaded 8 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex 9 systems : beware: some patches loaded from cont-new.tex 10 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv)) 11 system : cont-fil loaded 12 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex 13 loading : ConTeXt File Synonyms 14 ) 15 system : cont-sys.rme loaded 16 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv)) (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv))) 17 system : sandbox.top loaded 18 (sandbox.top) 19 fonts : preloading latin modern fonts 20 bodyfont : 12pt rm is loaded 21 language : language en is active 22 ! Use of \doassignsometextprefixnop doesn't match its definition. 23 \doassignsometextprefix ...sometextprefixyes \fi { 24 #1} 25 \dododosetupsometextprefix ...nsometextprefix {#1} 26 [#2,,] 27 \next1 #1,->\dodosetupsometextprefix {#1} 28 \doprocesscommaitem 29 \doprocesscommalist ...item \gobbleoneargument #1, 30 ]\relax \global \advance \... 31 \dosetupsometextprefix ...dodosetupsometextprefix 32 \fi 33 <to be read again> 34 \setvalue 35 ... 36 l.2 37 38 39 ? ! Too many }'s. 40 \doassignsometextprefix ...etextprefixyes \fi {#1} 41 42 \dododosetupsometextprefix ...nsometextprefix {#1} 43 [#2,,] 44 \next1 #1,->\dodosetupsometextprefix {#1} 45 \doprocesscommaitem 46 \doprocesscommalist ...item \gobbleoneargument #1, 47 ]\relax \global \advance \... 48 \dosetupsometextprefix ...dodosetupsometextprefix 49 \fi 50 <to be read again> 51 \setvalue 52 ... 53 l.2 54 55 56 ? systems : begin file sandbox at line 3 57 ! Missing } inserted. 58 <inserted text> 59 } 60 <to be read again> 61 \endgroup 62 l.5 The Dutch \VVV\ (\infull{VVV} 63 ) can provide you with the tourist 64 ? 65 ! Emergency stop. 66 <inserted text> 67 } 68 <to be read again> 69 \endgroup 70 l.5 The Dutch \VVV\ (\infull{VVV} 71 ) can provide you with the tourist 72 ! ==> Fatal error occurred, no output PDF file produced!MTXrun | run 1: luatex --fmt="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en" --lua="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en.lui" --backend=pdf "/Users/rs/Desktop/Dropbox/C/ConTeXt_sandbox/sandbox.tex" 73 MTXrun | fatal error, return code: 1
Hi Roland,
Hans (or someone else) added abbreviation as a standard synonym in the file
strc-syn.mkivhttp://source.contextgarden.net/tex/context/base/strc-syn.mkiv?search=abbrev....
You no longer need to separately define abbreviation with \definesynonym in
order to use \abbeviation{VVV}{Bureau of Tourist Information}.
Kevin
On Sun, Aug 2, 2009 at 8:08 AM, Roland
Hi all,
LuaTex doesn't seem to like the \definesynonyms command. The following works fine in PDFtex:
1 \definesynonyms[abbreviation][abbreviations][\infull] 2 3 \starttext 4 \abbreviation{VVV}{Bureau of Tourist Information} 5 The Dutch \VVV\ (\infull{VVV}) can provide you with the tourist 6 information on Hasselt. 7 8 \stoptext
...but when compiling with Luatex, I get the errors as below. On Mac OS X with an updated ConTeXt/Luatex minimals installation.
The abbreviations aren't essential in my current document but I guess somebody might want to look into this?
Thanks Roland
1 This is LuaTeX, Version beta-0.42.0-2009071723 2 \write18 enabled. 3 (/Users/rs/Desktop/Dropbox/C/ConTeXt_sandbox/sandbox.tex 4 5 ConTeXt ver: 2009.07.23 20:11 MKIV fmt: 2009.8.2 int: english/english 6 7 system : cont-new loaded 8 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex 9 systems : beware: some patches loaded from cont-new.tex 10 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv)) 11 system : cont-fil loaded 12 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex 13 loading : ConTeXt File Synonyms 14 ) 15 system : cont-sys.rme loaded 16 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv))) 17 system : sandbox.top loaded 18 (sandbox.top) 19 fonts : preloading latin modern fonts 20 bodyfont : 12pt rm is loaded 21 language : language en is active 22 ! Use of \doassignsometextprefixnop doesn't match its definition. 23 \doassignsometextprefix ...sometextprefixyes \fi { 24 #1} 25 \dododosetupsometextprefix ...nsometextprefix {#1} 26 [#2,,] 27 \next1 #1,->\dodosetupsometextprefix {#1} 28 \doprocesscommaitem 29 \doprocesscommalist ...item \gobbleoneargument #1, 30 ]\relax \global \advance \... 31 \dosetupsometextprefix ...dodosetupsometextprefix 32 \fi 33 <to be read again> 34 \setvalue 35 ... 36 l.2 37 38 39 ? ! Too many }'s. 40 \doassignsometextprefix ...etextprefixyes \fi {#1} 41 42 \dododosetupsometextprefix ...nsometextprefix {#1} 43 [#2,,] 44 \next1 #1,->\dodosetupsometextprefix {#1} 45 \doprocesscommaitem 46 \doprocesscommalist ...item \gobbleoneargument #1, 47 ]\relax \global \advance \... 48 \dosetupsometextprefix ...dodosetupsometextprefix 49 \fi 50 <to be read again> 51 \setvalue 52 ... 53 l.2 54 55 56 ? systems : begin file sandbox at line 3 57 ! Missing } inserted. 58 <inserted text> 59 } 60 <to be read again> 61 \endgroup 62 l.5 The Dutch \VVV\ (\infull{VVV} 63 ) can provide you with the tourist 64 ? 65 ! Emergency stop. 66 <inserted text> 67 } 68 <to be read again> 69 \endgroup 70 l.5 The Dutch \VVV\ (\infull{VVV} 71 ) can provide you with the tourist 72 ! ==> Fatal error occurred, no output PDF file produced!MTXrun | run 1: luatex
--fmt="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en"
--lua="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en.lui" --backend=pdf "/Users/rs/Desktop/Dropbox/C/ConTeXt_sandbox/sandbox.tex" 73 MTXrun | fatal error, return code: 1
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
Hi, sorry to get back to this so late but I still can't get it to work
with the latest updated ConTeXt Minimals. Am I using a wrong command?
Is the command already integrated in the latest Minimals? I can't seem
to find it in the setup-en.pdf file dated August 28th...
My minimal example:
1 %\definesynonyms[abbreviation][abbreviations][\infull]
2
3 \starttext
4 \abbreviation{VVV}{Bureau of Tourist Information}
5 The Dutch \VVV\ can provide you with the tourist
6 information on Hasselt.
7 \completelistofabbreviations
8 \stoptext
Output:
1 This is LuaTeX, Version beta-0.43.0-2009081911
2 \write18 enabled.
3 (/Users/rs/Desktop/Dropbox/B/BerlinPaper/BookConTeXt/minimal.tex
4
5 ConTeXt ver: 2009.08.28 14:44 MKIV fmt: 2009.8.29 int:
english/english
6
7 system : cont-new loaded
8 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
9 systems : beware: some patches loaded from cont-new.tex
10 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
11 system : cont-fil loaded
12 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
13 loading : ConTeXt File Synonyms
14 )
15 system : cont-sys.rme loaded
16 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
17 system : minimal.top loaded
18 (minimal.top)
19 fonts : preloading latin modern fonts
20 bodyfont : 12pt rm is loaded
21 language : language en is active
22 systems : begin file minimal at line 3
23 fonts : resetting map file list
24 {/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
25 fonts : using map file: original-base
26 {/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
27 fonts : using map file: original-ams-base
28 {/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
29 fonts : using map file: original-ams-euler
30 {/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
31 fonts : using map file: original-public-lm
32 {/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
33 fonts : using map file: lm-math
34 {/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}
35 fonts : using map file: lm-rm
36 {/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1]
37 structure : chapter @ level 2 : 0.1 -> \headtext {abbreviations}
38 ! Missing } inserted.
39 <inserted text>
40 }
41 <to be read again>
42 \endgroup
43 \@@dodescriptionhandler ...escriptionheadtext {#1}
44
\iftrialtypesetting \else ...
45 \@@dostartdescription ...er \c!sample \endstrut }}
46
}\assignwidth \description...
47 \@@dostartdescriptionindeed ...dostartdescription
48 \csname
@@description\curr...
49 \dodowithpar ...\bgroup \@@makedescription []{VVV}
50 #1\@@stopdescription
51 ...
52 l.7 \completelistofabbreviations
53
54 ?
55 ! Emergency stop.
56 <inserted text>
57 }
58 <to be read again>
59 \endgroup
60 \@@dodescriptionhandler ...escriptionheadtext {#1}
61
\iftrialtypesetting \else ...
62 \@@dostartdescription ...er \c!sample \endstrut }}
63
}\assignwidth \description...
64 \@@dostartdescriptionindeed ...dostartdescription
65 \csname
@@description\curr...
66 \dodowithpar ...\bgroup \@@makedescription []{VVV}
67 #1\@@stopdescription
68 ...
69 l.7 \completelistofabbreviations
70
71 ! ==> Fatal error occurred, no output PDF file
produced!MTXrun | run 1: luatex
--fmt="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en"
--lua="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en.lui"
--backend=pdf "/Users/rs/Desktop/Dropbox/B/BerlinPaper/BookConTeXt/minimal.tex"
72 MTXrun | fatal error, return code: 1
On Tue, Aug 4, 2009 at 22:27, Kevin D.
Robbins
Hi Roland,
Hans (or someone else) added abbreviation as a standard synonym in the file strc-syn.mkiv. You no longer need to separately define abbreviation with \definesynonym in order to use \abbeviation{VVV}{Bureau of Tourist Information}.
Kevin
On Sun, Aug 2, 2009 at 8:08 AM, Roland
wrote: Hi all,
LuaTex doesn't seem to like the \definesynonyms command. The following works fine in PDFtex:
1 \definesynonyms[abbreviation][abbreviations][\infull] 2 3 \starttext 4 \abbreviation{VVV}{Bureau of Tourist Information} 5 The Dutch \VVV\ (\infull{VVV}) can provide you with the tourist 6 information on Hasselt. 7 8 \stoptext
...but when compiling with Luatex, I get the errors as below. On Mac OS X with an updated ConTeXt/Luatex minimals installation.
The abbreviations aren't essential in my current document but I guess somebody might want to look into this?
Thanks Roland
1 This is LuaTeX, Version beta-0.42.0-2009071723 2 \write18 enabled. 3 (/Users/rs/Desktop/Dropbox/C/ConTeXt_sandbox/sandbox.tex 4 5 ConTeXt ver: 2009.07.23 20:11 MKIV fmt: 2009.8.2 int: english/english 6 7 system : cont-new loaded 8 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex 9 systems : beware: some patches loaded from cont-new.tex 10 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv)) 11 system : cont-fil loaded 12 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex 13 loading : ConTeXt File Synonyms 14 ) 15 system : cont-sys.rme loaded 16 (/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv))) 17 system : sandbox.top loaded 18 (sandbox.top) 19 fonts : preloading latin modern fonts 20 bodyfont : 12pt rm is loaded 21 language : language en is active 22 ! Use of \doassignsometextprefixnop doesn't match its definition. 23 \doassignsometextprefix ...sometextprefixyes \fi { 24 #1} 25 \dododosetupsometextprefix ...nsometextprefix {#1} 26 [#2,,] 27 \next1 #1,->\dodosetupsometextprefix {#1} 28 \doprocesscommaitem 29 \doprocesscommalist ...item \gobbleoneargument #1, 30 ]\relax \global \advance \... 31 \dosetupsometextprefix ...dodosetupsometextprefix 32 \fi 33 <to be read again> 34 \setvalue 35 ... 36 l.2 37 38 39 ? ! Too many }'s. 40 \doassignsometextprefix ...etextprefixyes \fi {#1} 41 42 \dododosetupsometextprefix ...nsometextprefix {#1} 43 [#2,,] 44 \next1 #1,->\dodosetupsometextprefix {#1} 45 \doprocesscommaitem 46 \doprocesscommalist ...item \gobbleoneargument #1, 47 ]\relax \global \advance \... 48 \dosetupsometextprefix ...dodosetupsometextprefix 49 \fi 50 <to be read again> 51 \setvalue 52 ... 53 l.2 54 55 56 ? systems : begin file sandbox at line 3 57 ! Missing } inserted. 58 <inserted text> 59 } 60 <to be read again> 61 \endgroup 62 l.5 The Dutch \VVV\ (\infull{VVV} 63 ) can provide you with the tourist 64 ? 65 ! Emergency stop. 66 <inserted text> 67 } 68 <to be read again> 69 \endgroup 70 l.5 The Dutch \VVV\ (\infull{VVV} 71 ) can provide you with the tourist 72 ! ==> Fatal error occurred, no output PDF file produced!MTXrun | run 1: luatex
--fmt="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en"
--lua="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en.lui" --backend=pdf "/Users/rs/Desktop/Dropbox/C/ConTeXt_sandbox/sandbox.tex" 73 MTXrun | fatal error, return code: 1
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Roland wrote:
Hi, sorry to get back to this so late but I still can't get it to work with the latest updated ConTeXt Minimals. Am I using a wrong command? Is the command already integrated in the latest Minimals? I can't seem to find it in the setup-en.pdf file dated August 28th...
there is indeed a bug in the mkiv code; i'll have a look at it ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Roland wrote:
Hi, sorry to get back to this so late but I still can't get it to work with the latest updated ConTeXt Minimals. Am I using a wrong command? Is the command already integrated in the latest Minimals? I can't seem to find it in the setup-en.pdf file dated August 28th...
Solution (in syst-aux.mkiv): \def\HandleNoGroup % retrofit into mkii {\ifnum\currentgrouptype=\@@semisimplegroup \expandafter\HandleNoGroupA \else \expandafter\HandleNoGroupB \fi} \long\def\HandleNoGroupA#1#2% {\long\def\AfterGroup{#2\endgroup}% \begingroup\aftergroup\AfterGroup#1} \long\def\HandleNoGroupB#1#2% {\long\def\AfterGroup{#2\egroup}% \bgroup\aftergroup\AfterGroup#1} Needs some testing (In mkiv i occasionally use begingroup/endgroup instead if bgroup/egroup so that confuses the pseudo cap handler) 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Kevin D. Robbins
-
Roland