Skip to main content

Abbreviate long author lists with et al. in BibTeX bibliographies for Sphinx

Project description

sphinx-pybtex-etal-style

PyPI package Supported Python versions BSD 3-Clause license Open in Visual Studio Code CI status Checked with mypy pre-commit.ci status Spelling checked code style: prettier Code style: black Ruff

This Sphinx extension defines a new bibliography style for the sphinxcontrib-bibtex extension. Install through PyPI with pip:

pip install sphinx-pybtex-etal-style

Next, in your Sphinx configuration file (conf.py), add "sphinx_pybtex_etal_style" to your extensions:

extensions = [
    "sphinx_pybtex_etal_style",
]

and set your default bibliography style to "unsrt_et_al":

bibtex_default_style = "unsrt_et_al"

Alternatively, you can use the style for one bibliography only by specifying it in the .. bibliography:: directive:

.. bibliography:: /references.bib
  :style: unsrt_et_al

Book entries that have an ISBN get a link to the book entry on bookfinder.com. If you want to use isbnsearch.org instead, add the following to your conf.py:

unsrt_etal_isbn_resolver = "isbnsearch"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-pybtex-etal-style-0.0.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sphinx-pybtex-etal-style-0.0.2.tar.gz.

File metadata

File hashes

Hashes for sphinx-pybtex-etal-style-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e77f540b6a63b61ec76e284e6a6f68a10e678c9f7dbb9d2d0e7732271744b236
MD5 d2c11ffb4196473c4016b21b3e6cd95c
BLAKE2b-256 f47ecd4ed20410244e978ae28ec33f9085000224dbf336c3530a00afc46c05cb

See more details on using hashes here.

File details

Details for the file sphinx_pybtex_etal_style-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_pybtex_etal_style-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3d4bce1334ed85f54a303726fa3031e1083cf7760f1dd89a1ac598a7557d87f
MD5 b356e72373cabc1f0a5ac5d9e76fdb3b
BLAKE2b-256 2aeceeea4ddb4d5e5610f7c991506a8e61db717a6d8cd38b86c040fc703d5aca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page