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

Build a version with mathjax #43

Open
certik opened this issue Nov 22, 2014 · 4 comments
Open

Build a version with mathjax #43

certik opened this issue Nov 22, 2014 · 4 comments

Comments

@certik
Copy link
Owner

certik commented Nov 22, 2014

Perhaps at /dev-mathjax. The png based image math is hard to read on a high resolution (retina) display.

@asmeurer
Copy link

It's trivial to do

diff --git a/src/conf.py b/src/conf.py
index 8725f11..4c651a7 100644
--- a/src/conf.py
+++ b/src/conf.py
@@ -23,7 +23,7 @@ sys.path.append(os.path.abspath('../exts'))

 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.pngmath', "math_dollar"]
+extensions = ['sphinx.ext.mathjax', "math_dollar"]

 latex_preamble = r"""
 \usepackage{dsfont}

When I did this, no the complex page, there were some math errors with \atan2.

@asmeurer
Copy link

I guess you must have some preamble or something, which isn't being passed to mathjax. It's the same with \d and \half, which aren't even real latex.

@asmeurer
Copy link

Oh wow, you have quite the preamble. I think for mathjax all the \newcommands have to be defined in the file. I don't know about the rest.

@emptymalei
Copy link
Contributor

well the rest is to put the preamble inside layout.html and put a if there to make sure these only works for the case of building using mathjax.

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

3 participants