Comment #6 on issue 2537 by asmeurer: Use MathJax in the docs
http://code.google.com/p/sympy/issues/detail?id=2537

Ah, this is simple. The math_dollar extension converts $math$ into `math` (and that's *all* it does, see doc/ext/math_dollar.py). So I just need to leave that enabled, and it works. And by the way, $$math$$ gives math on it's own line (like \[math\] in regular latex) and $math$ gives inline math.

Still not sure how to make the preamble work. The internal Sphinx stuff is (ironically) not very well documented. I might note that fixing it would require editing the mathjax.py file, which would mean shipping our own version even when Sphinx 1.11 is released. So I think we should either skip the automatic preamble stuff (which imo is a better solution anyway, because it's more verbose to have the \newcommands at the top of the respective files than hidden in conf.py), or fix it upstream.

I think I'll take the lazy path here and open an issue with Sphinx to support the preamble stuff in the mathjax extension, and if they do, great, and if not (or pending it), just move the \newcommands to their respective files.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to