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

<line 3.10> 
    $\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
___________________________________________________________________________________

Reply via email to