public class BibConverter extends ConverterHelper
use_bibtex
: If true, citations will be exported as \cite
commands. If false, citations will be exported as static textuse_index
: If false, the bibliography will be omitteduse_bibtex
true and external_bibtex_files
empty: The citations will be exported to a BibTeX file, which will be used
for the bibliographyuse_bibtex
true and external_bibtex_files
non-empty: The citations will be not be exported to a BibTeX file, the
files referred to by the option will be used insteaduse_bibtex
false: The bibliography will be exported as
static text.
bibtex_style
If BibTeX is used, this style will be applied
config, ofr, palette
Constructor and Description |
---|
BibConverter(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Construct a new BibConverter.
|
Modifier and Type | Method and Description |
---|---|
void |
appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl)
Append declarations needed by the
BibConverter to
the preamble. |
BibTeXDocument |
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
|
void |
handleBibliography(org.w3c.dom.Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process a bibliography (text:bibliography tag)
|
void |
handleBibliographyMark(org.w3c.dom.Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process a Bibliography Mark (text:bibliography-mark tag)
|
public BibConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
config
- the configuration to usepalette
- the ConverterPalette to usepublic void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
BibConverter
to
the preamble.appendDeclarations
in class ConverterHelper
pack
- the LaTeXDocumentPortion to which
declarations of packages should be added (\\usepackage).decl
- the LaTeXDocumentPortion to which
other declarations should be added.public void handleBibliography(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc)
node
- The element containing the Bibliographyldp
- the LaTeXDocumentPortion to which LaTeX code should be addedoc
- the current contextpublic void handleBibliographyMark(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc)
node
- The element containing the Markldp
- the LaTeXDocumentPortion to which LaTeX code should be addedoc
- the current contextpublic BibTeXDocument getBibTeXDocument()