Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: share unsrt_et_al style as extension #1

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Dec 4, 2023

Imported this code and made it available as a Sphinx extension.

Usage

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

@redeboer redeboer added the ✨ Feature New feature added to the package label Dec 4, 2023
@redeboer redeboer self-assigned this Dec 4, 2023
@redeboer redeboer merged commit 5443a5b into main Dec 4, 2023
8 checks passed
@redeboer redeboer deleted the implementation branch December 4, 2023 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature added to the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant