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 Ruff uv

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.3.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

sphinx_pybtex_etal_style-0.0.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_pybtex_etal_style-0.0.3.tar.gz.

File metadata

File hashes

Hashes for sphinx_pybtex_etal_style-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e43beb55bc33f01d9b4d0ac90b20ad1d7209238d993d3256a973946aeeece262
MD5 255301b79d2be772164ec47dc8282bec
BLAKE2b-256 05cbc75d1173988344a5fabd9dbeea742e4a8c452953e68f1c25d844733b62a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_pybtex_etal_style-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51170abd9fcf5ba5d09ffb890c1b722448d8d185b9b9b5a2feb869c57256f2ff
MD5 7c04c287fff486522ad1095f47a7ebec
BLAKE2b-256 a34d8beb18b2cf347e152899a1a595f85049d691fbcd9a60e38756144742ca8f

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