Taco, I tried your suggestion, but I'm not sure I'm doing it the right way. I took the definition of \initialize... like so: \def\initializegreekfont% {\getvariable{Greek}{font}} \appendtoks \initializegreekfont \to \everystarttext % I guess I will need a similar procedure for % initializegreekscale later I will need the variable twice: once for selecting the typescript and defining the bodyfont. So in the typescriptfile with the definitions for all the fonts, I have these lines: \starttypescript[Greek] \definetypeface [My\initializegreekfont] [rm] [serif] [\initializegreekfont] [default] [encoding=agr] \stoptypescript And once more for switching to this font: \startsetups[enablegreek] \catcode`~=\other \catcode`|=\other \catcode`'=\other \language[greek] \switchtobodyfont[My\initializegreekfont] \stopsetups %% suggested by Hans \def\localgreek{\rescanwithsetup{enablegreek}} I don't get any errors, but the font is not switched... Any obvious mistakes I'm making? Best Thomas On Oct 21, 2005, at 11:16 AM, Taco Hoekwater wrote:
Thomas A. Schmitz wrote:
Hi Taco, thanks for your reply!! I have to catch a train now, but I'll try your suggestion tonight when I'm back. And yes, having the module<something> variables would be great. What does \appendtoks do?
It appends stuff to token registers (like \everystarttext)
Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context