[NTG-context] again: new module mechanism

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Mon Apr 10 11:13:26 CEST 2006

All, and esp. Hans, Taco,

I'm still experimenting with the new moduleparameter mechanism. One  
thing I can't get to work is using it in a \definefont. Here's my  
minimal example:




\definefontsynonym[Times][ec-TimesNewRoman] % valid name


\message{The myfont is \currentmoduleparameter{font}}




Hello world!

\myfont and hello again



In the log file, I get:

(./t-mymod.tex The myfont is Times)

So the definefont should work (if I define \definefont[myfont] 
[Times], I get the expected output), but the file fails to compile,  
with this error:

! Missing \endcsname inserted.
<to be read again>
\truefontname #1->\ifcsname \??ff \fontclass #1
                                                \endcsname \@EA  

\donoparsefontspec ...\truefontname \somefontname
                                                   }\ifx \fontfile \s! 

\dododefinefont ...e \fontbody \parsefontspec {#2}
\let \l...

\redodefinefont #1#2#3->\dododefinefont {#1}{#2}
                                                 \doifsetupselse {#3}  
l.7 \myfont
             and hello again
Process aborted

What am I missing?



More information about the ntg-context mailing list