Taco,

thanks so much! With a slight modification, your solution seems to work! I will have to test it a bit, but for the moment, it looks very good. Is the \appendtoks expensive in terms of TeX memory, cpu cycles, etc., or is it a good solution for the time being?

All best, and many thanks

Thomas

On Oct 22, 2005, at 10:55 AM, Taco Hoekwater wrote:


That is not what I meant. What (I think) you want is more like this:

 \def\initializegreekfont%
  {\starttypescript[Greek]
   \definetypeface [My\getvariable{Greek}{font}] [rm] [serif]
    [\getvariable{Greek}{font}] [default] [encoding=agr]
   \stoptypescript
   \startsetups[enablegreek]
    \catcode`~=\other
    \catcode`|=\other
    \catcode`'=\other
    \language[greek]
    \switchtobodyfont[My\getvariable{Greek}{font}]
    \stopsetups }
 \appendtoks \initializegreekfont \to \everystarttext

In this way, you postpone all stuff that depends on the user-supplied
variables until the occurance of \starttext. I hope you can understand
me better now>

Cheers, Taco
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to