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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to