![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Adam Lindsay wrote:
Hi all.
I want to use XML, but in a non-doctrinaire way: I much prefer TeX formula writing to mathml by hand.
I looked at xtag-mml, and the \defineXMLenvironment [formula] looked like just what I wanted. However, when trying it, the XML catcode regime was still in effect, and the backslashes were printed, and didn't act as escapes.
Am I missing something in the correct usage, or is support "incomplete"?
This is a sample file, showing how I've been trying to use it:
\useXMLfilter[mml] \starttext \startXMLdata <formula> t+3+x+t\neq m\alpha\frac\theta\hbar </formula> \stopXMLdata \stoptext
\starttext \unprotected \def\XMLtex#1% {\begingroup \disableXML \scantokens\@EA\@EA\@EA{\csname\@@XMLdata:#1\endcsname}% \endgroup} \defineXMLenvironmentsave [formula] {} {\XMLtex{formula}} \input bryson \startXMLdata <formula> t+3+x+t\neq m\alpha\frac\theta\hbar </formula> \stopXMLdata \input thuan \stoptext
Also, what's the status of contml? I like the idea of it as a simple, structural, basic markup that ConTeXt handles with zero effort, but is anyone actually using it?
we sometimes mix it into other xml docs; i have no problem with extending it; actualy, (see mag-0008.pdf), i want to map most context directly onto xml so that we have a rather complete xml input syntax Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------