writer2latex.latex
Class CaptionConverter
public class CaptionConverter
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)
handleCaptionBody
public void handleCaptionBody(Element node,
LaTeXDocumentPortion ldp,
Context oc,
boolean bIsCaptionOf)
Process content of a text:p tag as a caption body (inluding label)
node
- The text:p element node containing the captionldp
- The LaTeXDocumentPortion
to add LaTeX code tooc
- The current contextbIsCaptionOf
- true if this is caption uses captionof