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 pre-commit.ci status Spelling checked code style: prettier Ruff uv ty

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"

To activate LaTeX math support in bibliographies (e.g. via MathJax), add the following to your conf.py:

bibtex_use_mathjax = True

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_pybtex_etal_style-0.0.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_pybtex_etal_style-0.0.4.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_pybtex_etal_style-0.0.4.tar.gz
Algorithm Hash digest
SHA256 661dd788dd873c53a1171f1f78a017bea40c5b5ca3a1b7d7911ebe9df3e1b527
MD5 756d8f90155448628fef1c50f560fa9f
BLAKE2b-256 76a086a558095a760241042b90357df11844339325a986e5d99c05479f48730f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_pybtex_etal_style-0.0.4.tar.gz:

Publisher: cd.yml on ComPWA/sphinx-pybtex-etal-style

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for sphinx_pybtex_etal_style-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a42fac509e03756af390aefb10d6195271b1d672d7d95fa2e816a8324955807
MD5 0405f74dd30c5de11ab6d49bae545c67
BLAKE2b-256 cb9528633a01ae9c9ec55fcf477878ed6d3e154349a1c529fd4eeefb16663abf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_pybtex_etal_style-0.0.4-py3-none-any.whl:

Publisher: cd.yml on ComPWA/sphinx-pybtex-etal-style

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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