Package org.ctan.markup.html2latex
Class Html2Latex
java.lang.Object
org.ctan.markup.html2latex.Html2Latex
This class transforms HTML to LaTeX.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis interface describes the handler for processing a HTML node.static classThis class is a Handler which encapsulates a String to be delivered. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Html2Latex.HandlerThe fieldCLOSE_BRACEcontains the handler which produces a closing curly brace.static final Html2Latex.HandlerThe fieldNLcontains the handler which produces a newline.static final Html2Latex.HandlerThe fieldNOTHINGcontains the handler which produces nothing. -
Constructor Summary
ConstructorsConstructorDescriptionHtml2Latex(@NonNull LinkManager linkManager) This is the constructor forHtml2Latex. -
Method Summary
-
Field Details
-
NOTHING
The fieldNOTHINGcontains the handler which produces nothing. -
CLOSE_BRACE
The fieldCLOSE_BRACEcontains the handler which produces a closing curly brace. -
NL
The fieldNLcontains the handler which produces a newline.
-
-
Constructor Details
-
Html2Latex
This is the constructor forHtml2Latex.- Parameters:
linkManager- the link manager
-
-
Method Details
-
convert
Convert HTML to LaTeX.- Parameters:
in- the HTML input as string- Returns:
- the resulting LaTeX code
-