Classes and methods to maintain any information that is stored outside the doctree.
Global bibtex extension information cache. Stored in app.env.bibtex_cache, so must be picklable.
A dict mapping .bib file names (relative to the top source folder) to BibfileCache instances.
Each bibliography directive is assigned an id of the form bibtex-bibliography-xxx. This dict maps each such id to information about the bibliography directive, BibliographyCache. We need to store this extra information separately because it cannot be stored in the bibliography nodes themselves.
A dict mapping each docname to an int representing the current bibliography enumeration counter.
Add the given key to the set of cited keys for docname.
Parameters: |
|
---|
Yield all citation keys, sorted first by document (alphabetical), then by citation order in the document.
Return whether the given key is cited in any document.
Parameters: | key (str) – The citation key. |
---|
Contains information about a parsed .bib file.
A float representing the modification time of the .bib file when it was last parsed.
A pybtex.database.BibliographyData containing the parsed .bib file.
Contains information about a bibliography directive.
A str containing the name of the document in which the directive occurs. We need this information during the Sphinx event env-purge-doc.
A list of strs containing the .bib file names (relative to the top source folder) that contain the references.
The bibtex style.
The list type.
The sequence type (only used for enumerated lists).
The first ordinal of the sequence (only used for enumerated lists).
Maps citation keys to their final labels.
This bibliography’s string prefix for pybtex generated labels.