Package writer2latex.latex
Class BibConverter
java.lang.Object
writer2latex.latex.ConverterHelper
writer2latex.latex.BibConverter
This class handles the bibliography. The result depends on these
configuration options. The citations will be treated like this:
use_bibtex: If true, citations will be exported as \cite commands. If false, citations will be exported as static text
use_index: If false, the bibliography will be omitteduse_bibtextrue andexternal_bibtex_filesempty: The citations will be exported to a BibTeX file, which will be used for the bibliographyuse_bibtextrue andexternal_bibtex_filesnon-empty: The citations will be not be exported to a BibTeX file, the files referred to by the option will be used insteaduse_bibtexfalse: The bibliography will be exported as static text.bibtex_styleIf BibTeX is used, this style will be applied
-
Field Summary
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette -
Constructor Summary
ConstructorsConstructorDescriptionBibConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) Construct a new BibConverter. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend declarations needed by theBibConverterto the preamble.Get the BibTeX document, if any (the document is only created if it's specified in the configuration *and* the document contains bibliographic data *and* the configuration does not specify external BibTeX filesvoidhandleBibliography(Element node, LaTeXDocumentPortion ldp, Context oc) Process a bibliography (text:bibliography tag)voidhandleBibliographyMark(Element node, LaTeXDocumentPortion ldp, Context oc) Process a Bibliography Mark (text:bibliography-mark tag)
-
Constructor Details
-
BibConverter
Construct a new BibConverter.- Parameters:
config- the configuration to usepalette- the ConverterPalette to use
-
-
Method Details
-
appendDeclarations
Append declarations needed by theBibConverterto the preamble.- Overrides:
appendDeclarationsin classConverterHelper- Parameters:
pack- the LaTeXDocumentPortion to which declarations of packages should be added (\\usepackage).decl- the LaTeXDocumentPortion to which other declarations should be added.
-
handleBibliography
Process a bibliography (text:bibliography tag)- Parameters:
node- The element containing the Bibliographyldp- the LaTeXDocumentPortion to which LaTeX code should be addedoc- the current context
-
handleBibliographyMark
Process a Bibliography Mark (text:bibliography-mark tag)- Parameters:
node- The element containing the Markldp- the LaTeXDocumentPortion to which LaTeX code should be addedoc- the current context
-
getBibTeXDocument
Get the BibTeX document, if any (the document is only created if it's specified in the configuration *and* the document contains bibliographic data *and* the configuration does not specify external BibTeX files- Returns:
- the BiBTeXDocument, or null if it does not exist).
-