Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

math inside text mode inside math mode #440

Open
rspuzio opened this issue Dec 27, 2013 · 1 comment
Open

math inside text mode inside math mode #440

rspuzio opened this issue Dec 27, 2013 · 1 comment

Comments

@rspuzio
Copy link

rspuzio commented Dec 27, 2013

If one types something like "[ a=b \text{ if $c=d$} ]" into LaTeX, one gets something
like "a=b if c=d" as output. However, in Planetary/LaTeXML, one instead gets
something like "a=b if". This is causing the entry

http://planetmath.org/mobiusfunction

to no longer render properly.

@dginev
Copy link

dginev commented Dec 27, 2013

If you paste the source of that piecewise sum:

\[
\sum_{d | n} \mu(d) = 
\begin{cases}
1 & \text{if $n = 1$}\\
0 & \text{if $n > 1$}
\end{cases}
\]

into http://latexml.mathweb.org/editor, things look as they should. Next, I checked the actual MathML in the page you linked to and there are a few irregularities with it (there shouldn't be HTML entity encoding going inside the annotation elements. The way things are now, the TeX source looks garbled). My suspicion is that the error here is rooted in the way PlanetMath send data to LaTeXML OR has been fixed in one of the newer revisions of LaTeXML.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants