-
Notifications
You must be signed in to change notification settings - Fork 45
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
Convert MathJax to SVG for epub using (gulp-)mathjax-node #198
Comments
We may also need mathjax-node-svg2png. |
Good progress on this in this branch. So far, I have math working in PDF on Windows without PhantomJS. The output script uses gulp + mathjax-node-page to convert TeX to MathML before passing the HTML to Prince. It's much faster than using PhantomJS and the rendered math looks better. We'll need lots of testing in the wild to see where and whether we encounter issues with fonts. Still to do:
|
Work-in-progress notes:
|
Epub readers that support Javascript well can render MathJax just fine (surprisingly, Adobe Digital Editions). But other readers can't, including Kindle via Kindlegen.
We might be able to include a processing step using
mathjax-node
orgulp-mathjax-node
to turn the maths into PNG (usingmathjax-node
) or SVG (usinggulp-mathjax-node
, which doesn't provide PNG rendering).The text was updated successfully, but these errors were encountered: