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} > 0</mathtex> And here is my ConTeXt environment file (I am using version 2010.05.24 13:05): \startxmlsetups doc:mathtex $\xmlflush{#1}$ \stopxmlsetups \xmlregistersetup{xml:doc} \startxmlsetups xml:doc \xmlsetsetup{\xmldocument}{mathtex}{doc:*} \stopxmlsetups Any hint? Thank you, mk -- Martin Kolařík martin.kolarik@email.cz martin.kolarik@jabber.cz +420603535593
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} > 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
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} > 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
participants (2)
-
Martin Kolařík
-
Wolfgang Schuster