Package writer2latex.latex
Class CaptionConverter
- java.lang.Object
-
- writer2latex.latex.ConverterHelper
-
- writer2latex.latex.CaptionConverter
-
public class CaptionConverter extends ConverterHelper
This class converts captions (for figures and tables) to LaTeX.
Packages:
- caption.sty is used implement non-floating captions
Options:
- use_caption is a boolean option to determine whether or not to use caption.sty. If this option is set to false, a simple definition of \captionof (borrowed from capt-of.sty) is inserted in the preamble
TODO: Implement formatting of captions using the features of caption.sty (only if formatting>=CONVERT_BASIC)
-
-
Field Summary
-
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette
-
-
Constructor Summary
Constructors Constructor Description CaptionConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
void
handleCaptionBody(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc, boolean bIsCaptionOf)
Process content of a text:p tag as a caption body (inluding label)
-
-
-
Constructor Detail
-
CaptionConverter
public CaptionConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
-
-
Method Detail
-
appendDeclarations
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
- Overrides:
appendDeclarations
in classConverterHelper
-
handleCaptionBody
public void handleCaptionBody(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc, boolean bIsCaptionOf)
Process content of a text:p tag as a caption body (inluding label)
- Parameters:
node
- The text:p element node containing the captionldp
- TheLaTeXDocumentPortion
to add LaTeX code tooc
- The current contextbIsCaptionOf
- true if this is caption uses captionof
-
-