[NTG-context] MkIV, XML and raw TeX input

Martin Kolařík martin.kolarik at email.cz
Fri May 28 18:24:02 CEST 2010


Perfect!

Thanks very much,

mk

Dne 28.5.2010 17:38, Wolfgang Schuster napsal(a):
> Am 28.05.10 15:38, schrieb Martin Kolařík:
>> Hello,
>>
>> I have found a problem when switching from MkII to MkIV -- I am using 
>> a XML containing raw TeX (a temporary solution for math, which lasts 
>> for four years now) and now, in MkIV, I did not succeed to adopt TeX 
>> anyhow. The math is typeset in math style, but obviously characters 
>> read from XML have improper catcode set. I tried some tricks with 
>> \scantokens, but nothing helped.
>>
>> Here is my XML (the element is root):
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <mathtex>\int_0^\pi {sin x\over x} &gt; 0</mathtex>
>>
>> And here is my ConTeXt environment file (I am using version 
>> 2010.05.24 13:05):
>>
>> \startxmlsetups doc:mathtex
>>   $\xmlflush{#1}$
>> \stopxmlsetups
>
> \startxmlsetups doc:mathtex
>     \startmathmode
>     \xmlflushcontext{#1}
>     \stopmathmode
> \stopxmlsetups
>
> Wolfgang
>


More information about the ntg-context mailing list