public final class MathConverter
extends java.lang.Object
Constructor and Description |
---|
MathConverter(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette) |
Modifier and Type | Method and Description |
---|---|
void |
appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl) |
java.lang.String |
convert(org.w3c.dom.Element formula) |
boolean |
handleDisplayEquation(org.w3c.dom.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.
|
boolean |
handleDisplayEquation(TableReader table,
LaTeXDocumentPortion ldp)
Try to convert a table as a display equation:
A 1 row by 2 columns table in which each cell contains exactly one paragraph,
the left cell contains exactly one formula and the right cell contains exactly
one sequence number is treated as a (numbered) display equation.
|
boolean |
handleTexMathsEquation(org.w3c.dom.Element node,
LaTeXDocumentPortion ldp)
Try to convert a draw:frame or draw:g element as an (inline) TexMaths or OOoLaTeX equation
|
public MathConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
public java.lang.String convert(org.w3c.dom.Element formula)
public boolean handleTexMathsEquation(org.w3c.dom.Element node, LaTeXDocumentPortion ldp)
node
- the element containing the equation (draw:frame or draw:g)ldp
- the LaTeXDocumentPortion to contain the converted equationpublic boolean handleDisplayEquation(TableReader table, LaTeXDocumentPortion ldp)
table
- the table readerldp
- the LaTeXDocumentPortion to contain the converted equationpublic boolean handleDisplayEquation(org.w3c.dom.Element node, LaTeXDocumentPortion ldp)
node
- the paragraphldp
- the LaTeXDocumentPortion to contain the converted equation