bibpy.entry.preamble module¶
Class representing a preamble entry in a bib file.
-
class
bibpy.entry.preamble.
Preamble
(value)[source]¶ Bases:
bibpy.entry.base.BaseEntry
A preamble entry in a bib file.
-
bibkey
¶ Return the key of this entry.
-
bibtype
¶ Return the entry type of this entry.
-
fields
¶ Return a list of this entry’s active bib(la)tex fields.
Active fields are fields that are not None or empty strings.
-
format
(indent=' ', singleline=True, braces=True, **kwargs)[source]¶ Format an return the preamble as a string.
If singleline is True, put the entry on a single line. The contents of the preamble is indented by the indent argument if singleline is True.
If braces is True, surround the entry by braces, else parentheses.
The kwargs are ignored for this entry type as there is no additional formatting.
-
value
¶ Return the value of the variable of the preamble.
-