Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[LaTeXML related] Punctuation inside MathML

19 views
Skip to first unread message

Raniere Silva

unread,
Oct 30, 2014, 1:41:46 PM10/30/14
to dev-tec...@lists.mozilla.org, bruce....@nist.gov, d.g...@jacobs-university.de
Hi,

I try to convert the following LaTeX file to HTML:

\documentclass[]{article}
\begin{document}
\section{MathML Sample}
\begin{equation}
f(x) = x.
\end{equation}
\end{document}

With LaTeXML, the math element that I got was

<math id="S1.E1.m1" class="ltx_Math" alttext="f(x)=x." display="block">
<mrow>
<mrow>
<mrow>
<mi>f</mi>
<mo>⁢</m>
<mrow>
<mo stretchy="false">(</mo>
<mi id="XM1">x</mi>
<mo stretchy="false">)</mo>
</mrow>
</mrow>
<mo>=</mo>
<mi>x</mi>
</mrow>
<mo>.</mo>
</mrow>
</math>

My question is related with the final dot translation. The math element should
be

<math id="S1.E1.m1" class="ltx_Math" alttext="f(x)=x." display="block">
<mrow>
<mrow>
<mrow>
<mi>f</mi>
<mo>⁢</m>
<mrow>
<mo stretchy="false">(</mo>
<mi id="XM1">x</mi>
<mo stretchy="false">)</mo>
</mrow>
</mrow>
<mo>=</mo>
<mi>x</mi>
</mrow>
<mtext>.</mtext>
</mrow>
</math>

Thanks,
Raniere
signature.asc

Michael Kohlhase

unread,
Oct 30, 2014, 1:44:33 PM10/30/14
to dev-tec...@lists.mozilla.org, d.g...@jacobs-university.de, bruce....@nist.gov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Well, then make it text

\begin{equation}
f(x) = x\text{.}

Michael



On 30.10.14 18:38, Raniere Silva wrote:
> Hi,
>
> I try to convert the following LaTeX file to HTML:
>
> \documentclass[]{article}
> \begin{document}
> \section{MathML Sample}
> \begin{equation}
> f(x) = x.
> \end{equation}
> \end{document}
>
> With LaTeXML, the math element that I got was
>
> <math id="S1.E1.m1" class="ltx_Math" alttext="f(x)=x."
display="block">
> <mrow>
> <mrow>
> <mrow>
> <mi>f</mi>
> <mo>?</m>
> <mrow>
> <mo stretchy="false">(</mo>
> <mi id="XM1">x</mi>
> <mo stretchy="false">)</mo>
> </mrow>
> </mrow>
> <mo>=</mo>
> <mi>x</mi>
> </mrow>
> <mo>.</mo>
> </mrow>
> </math>
>
> My question is related with the final dot translation. The math
element should
> be
>
> <math id="S1.E1.m1" class="ltx_Math" alttext="f(x)=x."
display="block">
> <mrow>
> <mrow>
> <mrow>
> <mi>f</mi>
> <mo>?</m>
> <mrow>
> <mo stretchy="false">(</mo>
> <mi id="XM1">x</mi>
> <mo stretchy="false">)</mo>
> </mrow>
> </mrow>
> <mo>=</mo>
> <mi>x</mi>
> </mrow>
> <mtext>.</mtext>
> </mrow>
> </math>
>
> Thanks,
> Raniere
>
>
> _______________________________________________
> dev-tech-mathml mailing list
> dev-tec...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-mathml

- --
- ----------------------------------------------------------------------
Prof. Dr. Michael Kohlhase, Office: Research 1, Room 168
Professor of Computer Science Campus Ring 1,
Jacobs University Bremen D-28759 Bremen, Germany
tel/fax: +49 421 200-3140/-493140 skype: m.kohlhase
m.koh...@jacobs-university.de http://kwarc.info/kohlhase
- ----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUUni7AAoJEODrjCOJEF8FKgkIAJ3ZH1rlsdRIUXf3eoW2gBZ/
VCdThDN/TBj9LQCCssgdyPnVCH9ndzB7TP6qB97MAZEseT4FEUOZsgwZ6K8nWP7X
j/h1Gw+FIlg9lmf5BSdfn0f6TOieHFMlpIh/Z49RDeXm7e3p61t8SEMbaxjLRBl4
hIJ4AW3/g3wsor3eOsN3zfLx6nekuDdNt0TNEJkE49CONAj8zHG551wBe3EOBZCg
0cA7kb7q9H0aXIsuFT3PCKUyheh6ql6cPStzugOsDHCge7JBF75JgtB/5aqYsMCH
RV6dRnf53zexqnYJoRkUhBXyi8i/C41rqKB0xkOHNDFjpT2c0WR75yrkYBNj7WY=
=eg92
-----END PGP SIGNATURE-----

0 new messages