Forum › Samples, Tips and Tricks

MathJax in Prince XML

Balaa
I have tried to render the mathml/tex equation using MathJax in prince XML, but it's not working for me. Attached JS file copied from prince forum.

  1. ConfigMathJax.js‎ 1.7 kB
  2. render-math-and-dump.js‎ 4.9 kB
  3. test.html‎ 5.0 kB
  4. test.pdf‎ 50.4 kB
mikeday
This JavaScript is for use with PhantomJS, not with Prince.
Balaa
Hi, I have tried with windows, but it's not working for me.

argument:
phantomjs render-math-and-dump.js test.html | prince --javascript -o test.pdf
  1. ConfigMathJax.js‎ 1.7 kB
  2. output.pdf‎ 51.6 kB
  3. render-math-and-dump.js‎ 11.9 kB
  4. test.html‎ 4.6 kB