[NTG-context] processing of setvariables/getvariables again
Thomas A. Schmitz
thomas.schmitz at uni-bonn.de
Mon Oct 24 09:35:28 CEST 2005
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 at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
More information about the ntg-context
mailing list