Re: [LaTeXML related] Punctuation inside MathML

Michael Kohlhase <[email protected]> Thu, 30 Oct 2014 18:43:23 +0100
Newsgroups gmane.comp.mozilla.devel.mathml
Message-ID <[email protected]>
-----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
> [email protected]
> 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 
 [email protected] 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-----