Re: [NTG-context] Typo in m-tikz
On Mon, 13 Dec 2021, Hans Hagen wrote: > On 12/13/2021 7:19 PM, Aditya Mahajan via ntg-context wrote: > > On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote: > > > > > Hi, > > > > > > There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). > > > The module ends with a spurious `\stopmodule`: > > > > > > https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113 > > > > > > (Or rather, the corresponding `\startmodule` is missing). > > > [...] > > > And since tikz is a latex module, in the true LaTeX spirit, the error goes > > > away (for obvious reasons) if I move the \usemodule[tikz] to after the > > > font definitions. It took quite a while to figure out what is happening. > > > > Actually, the missing \startmodule is not a culprit for this error. Even > > after fixing that, something goes wrong. Here is a minimal example: > > > > \permanent\protected\def\starttikzinput > >{\pushoverloadmode > > \pushcatcodetable > > \setcatcodetable\texcatcodes > > \unprotect > > \catcode`\@=11 > > \catcode`\|=12 > > \catcode`\!=12 > > \autoparagraphmode\zerocount} > > > > \permanent\protected\def\stoptikzinput > >{\autoparagraphmode\plusone > > \protect > > \popcatcodetable > > \popoverloadmode} > > > > \starttikzinput > > \input t-pgf > > \stoptikzinput > > > > > > \usetypescriptfile[euler] > > \definetypeface[mainfont][rm][serif][pagella][default] > > \definetypeface[mainfont][mm][math] [pagellaovereuler][default] > > \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, > > features=none] > > \setupbodyfont[mainfont,11pt] > > > > \starttext > > $\dfrac{1}{2}$ > > \stoptext > > > > which gives the same error: parameter 'fractionrule' in style 2 is not set > > > > Not sure what is happening here. > > can you test with the \protect \unprotect removed from these definitions? That fixes the issue, both in the test file and in my bigger document. Thanks, Aditya ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Typo in m-tikz
On 12/13/2021 7:19 PM, Aditya Mahajan via ntg-context wrote: On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote: Hi, There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`: https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113 (Or rather, the corresponding `\startmodule` is missing). [...] And since tikz is a latex module, in the true LaTeX spirit, the error goes away (for obvious reasons) if I move the \usemodule[tikz] to after the font definitions. It took quite a while to figure out what is happening. Actually, the missing \startmodule is not a culprit for this error. Even after fixing that, something goes wrong. Here is a minimal example: \permanent\protected\def\starttikzinput {\pushoverloadmode \pushcatcodetable \setcatcodetable\texcatcodes \unprotect \catcode`\@=11 \catcode`\|=12 \catcode`\!=12 \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzinput {\autoparagraphmode\plusone \protect \popcatcodetable \popoverloadmode} \starttikzinput \input t-pgf \stoptikzinput \usetypescriptfile[euler] \definetypeface[mainfont][rm][serif][pagella][default] \definetypeface[mainfont][mm][math] [pagellaovereuler][default] \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \starttext $\dfrac{1}{2}$ \stoptext which gives the same error: parameter 'fractionrule' in style 2 is not set Not sure what is happening here. can you test with the \protect \unprotect removed from these definitions? -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Typo in m-tikz
On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote: > Hi, > > There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The > module ends with a spurious `\stopmodule`: > > https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113 > > (Or rather, the corresponding `\startmodule` is missing). > [...] > And since tikz is a latex module, in the true LaTeX spirit, the error goes > away (for obvious reasons) if I move the \usemodule[tikz] to after the font > definitions. It took quite a while to figure out what is happening. Actually, the missing \startmodule is not a culprit for this error. Even after fixing that, something goes wrong. Here is a minimal example: \permanent\protected\def\starttikzinput {\pushoverloadmode \pushcatcodetable \setcatcodetable\texcatcodes \unprotect \catcode`\@=11 \catcode`\|=12 \catcode`\!=12 \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzinput {\autoparagraphmode\plusone \protect \popcatcodetable \popoverloadmode} \starttikzinput \input t-pgf \stoptikzinput \usetypescriptfile[euler] \definetypeface[mainfont][rm][serif][pagella][default] \definetypeface[mainfont][mm][math] [pagellaovereuler][default] \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \starttext $\dfrac{1}{2}$ \stoptext which gives the same error: parameter 'fractionrule' in style 2 is not set Not sure what is happening here. Aditya ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Typo in m-tikz
Hi, There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`: https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113 (Or rather, the corresponding `\startmodule` is missing). This causes an interesting error message on the following test file: \usemodule[tikz] \usetypescriptfile[euler] \definetypeface[mainfont][rm][serif][pagella][default] \definetypeface[mainfont][mm][math] [pagellaovereuler][default] \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \starttext $\dfrac{1}{2}$ \stoptext which gives: system > module wrapping error in 'tikz' close source> level 2, order 67, name '/opt/luametatex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl' open source > level 2, order 68, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv' open source > level 3, order 69, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 3, order 69, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' open source > level 3, order 70, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv' close source> level 3, order 70, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv' suggestion > use \withcedilla instead of \c suggestion > use \withcaron instead of \v close source> level 2, order 70, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv' open source > level 2, order 71, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 2, order 71, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' fonts > typescripts > unknown library 'pagellaovereuler' open source > level 2, order 72, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv' close source> level 2, order 72, name '/opt/luametatex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv' fonts > defining > font with asked name 'unknown' is not found using lookup 'file' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-rm-tf-0--0' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mr--3' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mr--2' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mr--1' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mb--3' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mb--2' fonts > defining > unable to define 'unknown' as 'mainfont-11pt-mm-mb--1' tex error > tex error on line 10 in file ./test.tex: Math error: parameter 'fractionrule' in style 2 is not set $\dfrac{1}{2}$ And since tikz is a latex module, in the true LaTeX spirit, the error goes away (for obvious reasons) if I move the \usemodule[tikz] to after the font definitions. It took quite a while to figure out what is happening. Aditya ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___