You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to export a LaTeX code block from Emacs Org mode into HTML and have a problem when using lower (<) signs (maybe it also happens with greater signs but I did not check that).
E.g., the following HTML code leads to an error when viewing the file because the '<' sign is interpreted in a wrong way (I don't know how but it seems to be interpreted as part of a tag) and MathJax does not succeed then. I.e., the Firefox HTML syntax checker shows the line \end{equation}... in red in the HTML file.
\begin{equation}
\text{if } 0 < i < N
\end{equation}</li>
</ul>
This might just be a problem of HTML failing to parse the source code, but it leads to unexpected behavior. I have also posted this on the Org mode mailing list and they referred me to here.
Best wishes,
Dominik
The text was updated successfully, but these errors were encountered:
You are correct that it is due to the <i being interpreted as an HTML tag by the browser. This is explained further in the MathJax Documentation. Remember that you are creating an HTML document, not a TeX document, so you have to keep in mind the implications of that. Mostly, that means you have to be careful about your use of < in situations like this. Since the browser interprets the HTML long before MathJax runs, MathJax can't do anything about this issue, so I'm marking this "expected behavior".
Hello,
I am trying to export a LaTeX code block from Emacs Org mode into HTML and have a problem when using lower (<) signs (maybe it also happens with greater signs but I did not check that).
E.g., the following HTML code leads to an error when viewing the file because the '<' sign is interpreted in a wrong way (I don't know how but it seems to be interpreted as part of a tag) and MathJax does not succeed then. I.e., the Firefox HTML syntax checker shows the line
\end{equation}...
in red in the HTML file.HTML code:
If I add spaces in-between, it works fine.
HTML code:
This might just be a problem of HTML failing to parse the source code, but it leads to unexpected behavior. I have also posted this on the Org mode mailing list and they referred me to here.
Best wishes,
Dominik
The text was updated successfully, but these errors were encountered: