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
{{ message }}
Repository navigation
IPython notebook doesn't render latex equations (tries and fails) on github but they work well on local machine #9302
Also, it looks like you're putting the %%latex magic in a markdown cell. That has no effect - magics are only for code cells. When you do a code cell with %%latex, it produces the contents as output with a Latex mimetype.
This isn't GitHub, it is an actual nbconvert bug. The same thing happens when I export to HTML, which you can see on nbviewer.
A side note: this notebook is not actually using %%latex cells. This is latex in markdown. The %%latex text in the markdown cells in this notebook has no effect, and is interpreted as plain text.
I tweaked the notebook a bit, and found that the lines are run together:
prose
$$\math$$
prose
The processing in nbconvert is not properly identifying the math blocks when run together like that (probably an imprecise regex). If you add blank lines surrounding the math blocks:
Activity
takluyver commentedon Mar 7, 2016
Anyone, is mathjax on Github a known issue, or should @ryu577 make a bug report to Github?
takluyver commentedon Mar 7, 2016
Also, it looks like you're putting the
%%latexmagic in a markdown cell. That has no effect - magics are only for code cells. When you do a code cell with%%latex, it produces the contents as output with a Latex mimetype.minrk commentedon Mar 14, 2016
This isn't GitHub, it is an actual nbconvert bug. The same thing happens when I export to HTML, which you can see on nbviewer.
A side note: this notebook is not actually using
%%latexcells. This is latex in markdown. The%%latextext in the markdown cells in this notebook has no effect, and is interpreted as plain text.minrk commentedon Mar 14, 2016
I tweaked the notebook a bit, and found that the lines are run together:
The processing in nbconvert is not properly identifying the math blocks when run together like that (probably an imprecise regex). If you add blank lines surrounding the math blocks:
It should render correctly.
try separating math lines again according to ipython/ipython#9302