Re: [NTG-context] catcode problems (mkiv)

2011-01-16 Thread Hans Hagen
On 14-1-2011 5:52, Peter Rolf wrote: problem is (aside from my limited knowledge) a XML based line of text then process the line at the lua end where % is stil % and a space a space Hans -

Re: [NTG-context] catcode problems (mkiv)

2011-01-16 Thread Peter Rolf
Thank you Taco and Hans! \startluacode works fine :-) Am 16.01.2011 08:41, schrieb Taco Hoekwater: On 01/14/2011 05:52 PM, Peter Rolf wrote: What is the best way to 1. deal with the % character in ctxlua? Use \startluacode \stopluacode instead of ctxlua. 2. print significant

Re: [NTG-context] catcode problems (mkiv)

2011-01-15 Thread Taco Hoekwater
On 01/14/2011 05:52 PM, Peter Rolf wrote: What is the best way to 1. deal with the % character in ctxlua? Use \startluacode \stopluacode instead of ctxlua. 2. print significant spaces? My current 'solution' for 2. is writing to a tex buffer instead and then using

[NTG-context] catcode problems (mkiv)

2011-01-14 Thread Peter Rolf
Hi, I have some problems with catcode handling in lua and tex. Source of the problem is (aside from my limited knowledge) a XML based line of text that can contain any printable character. From this source line I create one modified text line for the tex side (named 'textext') and one unmodified