Rendering MathML in XSL:FO to PDF using fop

Another brief post on fop. I wanted to render some MathML markup inside an XSL:FO document to be converted to PDF using fop. The way to do this is to use JEuclid. However, the JEuclid page claims to only work on fop versions 0.95beta and 0.95. Turns out this is untrue.

In Linux Mint/Ubuntu I got this working via the following:

  1. sudo apt-get install fop libjeuclid-fop-java
  2. Edit /usr/bin/fop and add the line find_jars jeuclid-core jeuclid-fop to /usr/bin/fop