bibpy.entry.string module¶
Class representing a string entry in a bibtex file.
-
class
bibpy.entry.string.
String
(variable, value)[source]¶ Bases:
bibpy.entry.base.BaseEntry
Represents a string entry in a bibtex file.
-
bibkey
¶ Get the key (variable name) of this string entry.
-
bibtype
¶ Return the entry type of this entry.
-
fields
¶ Return a dict of this entry’s non-empty fields.
-
format
(indent=' ', singleline=True, braces=True, **kwargs)[source]¶ Format an return the string entry 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 this string entry.
-
variable
¶ Return the variable name contained in the string entry.
-