BibTeX style extension for Rubin Observatory#
sphinxcontrib-bibtex is an excellent way to include academic citations in Sphinx documentation projects.
Documenteer provides support for LSST’s common BibTeX bibliography files (maintained in lsst-texmf) through its documenteer.ext.bibtex extension.
Beyond the standard pybtex styles, the lsst_aa style:
Supports the
docusharefield used in those bib files, rendering the handle as anls.stlink.Truncates author lists longer than seven names.
Expands the journal and series name macros that ADS emits, such as
\apjtoApJ.Links Astrophysics Source Code Library records to ascl.net, using the
archivePrefixfield to tell an ASCL identifier apart from an arXiv one.Appends an
[ADS]link to any entry with anadsurlfield, which is often the only link available for conference proceedings.
Usage#
To use this Sphinx extension, add documenteer.ext.bibtex to your conf.py file:
extensions = ["documenteer.ext.bibtex"]
bibtex_default_style = "lsst_aa"
The bibtex_default_style configuration variable configures Sphinx.
Further reading#
See sphinxcontrib-bibtex’s Usage documentation to learn how to make citations in reStructuredText documents.
For using BibTeX files from the lsst/lsst-texmf repository, see Sourcing BibTeX files from GitHub.