Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML export of math environments #81

Open
karthink opened this issue Jul 3, 2020 · 0 comments
Open

HTML export of math environments #81

karthink opened this issue Jul 3, 2020 · 0 comments

Comments

@karthink
Copy link

karthink commented Jul 3, 2020

I have a math environment like this in an org document:

\[
\sin^{2 + \alpha}(x) + \cos^{2 + \beta}(x) \approx 1
\]

When I render the html output using org-ruby --translate html equation.org, I get:

<p>\[
  sin<sup>2 + &alpha;</sup>(x) + cos<sup>2 + &beta;</sup>(x) &asymp; 1
  \]</p>

This output is incorrect, since org needs to leave the contents of math environments untouched. This lets MathJax then handle the conversion to MathML and subsequent display in a browser. HTML export from Emacs produces the following instead:

<div id="content">
<p>
\[
\sin^{2 + \alpha}(x) + \cos^{2 + \beta}(x) \approx 1
\]
</p>
</div>
@karthink karthink changed the title Super and subscripts in HTML export HTML export of math environments Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant