Re: Issue on converting MathML to LaTeX using third party parser for XSLT2.0

From: saf sied <saf_itpro@yahoo.com>
Date: Sun, 4 Jan 2015 23:42:50 +0000 (UTC)
To: "www-math@w3.org" <www-math@w3.org>
Message-ID: <648500769.1967447.1420414970542.JavaMail.yahoo@jws100117.mail.ne1.yahoo.com>
<<so long as the macros in the output are defined by loading the .sty file, latex will typeset the result>>
How can I load the .sty files in the MikTeX that I've installed on my windows 8.1 machine. I tired by just copying the csscolor.sty and pmml-new,sty files on the ...\TeX\LaTeX subdirectory of MikTeX installation folder. But when I tried to typeset the following LaTeX using MikTeX, I get the error shown below. Thanks..Saf:
LaTeX:
\documentclass[10pt]{article}
\setlength{\textwidth}{12.0cm}
\usepackage{amssymb}
\begin{document}$\let\par\empty { {\frac{{ \unicode{8722} b \unicode{177} \sqrt{ { {\msup{b}{{2}}} \unicode{8722} {4} a c } } }}{{ {2} a }}} }$
\end{document}
Error from MikTeX:
! Undefined control sequence.
<argument> { \unicode
{8722} b \unicode {177} \sqrt { { {\msup {b}{{2}}} \un...
l.24 }}
}
?

On Thursday, January 1, 2015 2:59 PM, saf sied <saf_itpro@yahoo.com> wrote:

The XSL file from Dr. Carlisle seems to be doing some advanced LaTeX. Using this XSL, how can I get, for example,  the output in the following form (quadratic formula) \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} of the input shown below:
Input:<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mfrac>
<mrow>
<mo>&#x2212;</mo>
<mi>b</mi>
<mo>&#xB1;</mo>
<msqrt>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
<mo>&#x2212;</mo>
<mn>4</mn>
<mi>a</mi>
<mi>c</mi>
</mrow>
</msqrt>
</mrow>
<mrow>
<mn>2</mn>
<mi>a</mi>
</mrow>
</mfrac>
</mrow>
[/itex]
What I am getting now is the following output:
$\let\par\empty { {\frac{{ \unicode{8722} b \unicode{177} \sqrt{ { {\msup{b}{{2}}} \unicode{8722} {4} a c } } }}{{ {2} a }}} }$
Thank..Saf

On Tuesday, December 30, 2014 7:59 PM, saf sied <saf_itpro@yahoo.com> wrote:

I am using a stylesheet from Dr. Carlisle mentioned here: http://tex.stackexchange.com/questions/85639/i-want-to-convert-mathml-to-latex
When I use the Saxon-HE 9.6, both the Java and .NET version of the Saxon give me the following output for the xml file shown below. The output does not look right - is it because of the version of Saxon I am using? Has anyone used Saxon-HE on the stylesheet mentioned above and got the correct LaTeX? Is there anything else I may be missing? I've latest versions of Java and .NET installed on my windows 8.1 machine.
Output:$\let\par\empty {\msup{a}{{2}}}$
Source:<?xml version="1.0"?>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msup>
<mi>a</mi>
<mn>2</mn>
</msup>
[/itex]


Received on Sunday, 4 January 2015 23:46:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:48 UTC