Package writer2latex.latex
Class MathmlConverter
java.lang.Object
writer2latex.latex.ConverterHelper
writer2latex.latex.MathmlConverter
This class converts mathml nodes to LaTeX.
(Actually it only converts the starmath annotation currently, if available).
-
Field Summary
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette
-
Constructor Summary
ConstructorsConstructorDescriptionMathmlConverter
(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
handleDisplayEquation
(Element node, LaTeXDocumentPortion ldp) Try to convert a paragraph as a display equation: A paragraph which contains exactly one formula + at most one sequence number is treated as a display equation.
-
Constructor Details
-
MathmlConverter
-
-
Method Details
-
appendDeclarations
- Overrides:
appendDeclarations
in classConverterHelper
-
convert
-
handleDisplayEquation
Try to convert a paragraph as a display equation: A paragraph which contains exactly one formula + at most one sequence number is treated as a display equation. Other content must be brackets or whitespace (possible with formatting).- Parameters:
node
- the paragraphldp
- the LaTeXDocumentPortion to contain the converted equation- Returns:
- true if the conversion was succesful, false if the paragraph did not contain a display equation
-