%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% mathml2.xmt %% Copyright 2000 David Carlisle %% This file is distributed under the LaTeX Project Public License %% (LPPL) as found at http://www.latex-project.org/lppl.txt %% Either version 1.0, or at your option, any later version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \DeclareNamespace{m}{http://www.w3.org/1998/Math/MathML} \XMLelement{m:math} {} {\[} {\]} \XMLelement{m:mi} {} {} {} \XMLelement{m:mn} {} {} {} \XMLelement{m:mo} {} {} {} \XMLelement{m:mrow} {} {} {} \XMLelement{m:msub} {} {\xmlgrab} {\xmltextwochildren\@empty\sb#1} \XMLelement{m:msup} {} {\xmlgrab} {\xmltextwochildren\@empty\sp#1} \XMLelement{m:msubsup} {} {\xmlgrab} {\xmltexthreechildren\@empty\sb\sp#1} \XMLelement{m:mroot} {} {\xmlgrab} {\xmltextwochildren\mathmlroot{}#1} \gdef\mathmlroot#1#2{\root#2\of{#1}} \XMLelement{m:mfrac} {} {\xmlgrab} {\xmltextwochildren\frac{}#1} \XMLelement{m:sqrt} {} {\xmlgrab} {\mathmlroot{}{#1}} \XMLelement{m:mtext} {} {\hbox\bgroup} {\egroup} % accent? stackrel? \XMLelement{m:mover} {} {} {} % \DeclareMathDelimiter{{}{\mathopen} {operators}{"28}{largesymbols}{"00} \global\delcode`{"66308 \global\delcode`}"67309 | should use grab, and do separator... \XMLelement{m:mfenced} { \XMLattribute{open}{\XML@fenceopen}{(} \XMLattribute{close}{\XML@fenceclose}{)} } {\left\XML@fenceopen} {\right\XML@fenceclose}