public final class MathmlConverter extends ConverterHelper
config, ofr, palette
Constructor and Description |
---|
MathmlConverter(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.Node settings,
org.w3c.dom.Node 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.
|
public MathmlConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
appendDeclarations
in class ConverterHelper
public java.lang.String convert(org.w3c.dom.Node settings, org.w3c.dom.Node formula)
public 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