[NTG-context] Greek font in Footnote problem

h h extern pragma at wxs.nl
Fri Jan 21 20:29:48 CET 2005


Giuseppe Bilotta wrote:
> Wednesday, January 19, 2005 Thomas A.Schmitz wrote:
> 
> 
> 
>>On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote:
> 
> 
>>>enablegreek relies on catcode changes, so it cannot work inside
>>>commands. It should be redefined to make use of e-TeX's
>>>\scantoken feature so that it can re-parse its input.
> 
> 
>>Giuseppe,
> 
> 
>>I'll be too bust the next three weeks to look into this, but would love
>>to correct my quick and dirty hack. Can you give me a hint where I can
>>learn more about \scantoken and how I can implement it for my Greek
>>stuff?
> 
> 
> Ehehehe. The reason why I was so generic in my answer is
> precisely the same :)
> 
> Something like
> 
> \def\localgreek#1{\scantokens{\Gf\enablegreek#1}}
> 
> could work.

more precisely:

\starttext

\def\rescan#1{\scantokens{#1}} [\rescan{oeps}]

\def\rescan#1{\scantokens{#1\ignorespaces}} [\rescan{oeps}]

\stoptext

and therefore:

    \def\localgreek#1{\rescan{\Gf\enablegreek#1}}



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------




More information about the ntg-context mailing list