The JEuclid FOP plug-in is tightly integrated with FOP development, it will therefore only work with specific versions of FOP. For this version you need:
Copy the these files into your fop's lib/ directory
If you have downloaded the full JEuclid distribution, these files can be found in the repo/ sub-directory.
That's it! Enjoy MathML support in FOP.
If you use the prepacked version of fop from Ubuntu, the following procedure is known to work:
This method requires modification of directories which are in the care of your distribution. If you know a better method, please let us know!
External Documents may be referenced using <fo:external-graphic>. Both ODF and plain MathML formulas are supported.
There is (per design choice) no support for the .fo context when a MathML document is referenced as an external graphic.
Inline MathML is supported through the <fo:instream-foreign-object> tag. The actual math content must use the "http://www.w3.org/1998/Math/MathML" name space.
MathML specified inline will take the following attributes from the surrounding .fo context:
Please note: The names of the fonts from the context are used to display the "normal" mathvariant. In the case of FOPs default, this uses a sans-serif font, whereas the MathML specification suggests to use a serif font. If you wish to override this behavior, please specify a sans-serif font in the font-family for the instream-foreign-object.