Package writer2latex.xhtml
Class MathConverter
java.lang.Object
writer2latex.xhtml.MathConverter
This class converts formulas: Either as MathML, as an image or as plain text (StarMath or LaTeX format)
-
Constructor Summary
ConstructorsConstructorDescriptionMathConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, boolean bSupportMathML) Create a newMathConverter -
Method Summary
-
Constructor Details
-
MathConverter
public MathConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, boolean bSupportMathML) Create a newMathConverter- Parameters:
ofr- the OfficeReader to query about the documentconfig- the configuration determining the type of exportconverter- the converter instancebSupportMathML- true if the formula should be exported as MathML
-
-
Method Details
-
convert
Convert a formula- Parameters:
image- image version of the formula (or null if no image is available)onode- the math nodehnode- the xhtml node to which content should be added
-
convertTexMathsEquation
-