sphinxcontrib-bibtex-urnยถ
A Sphinx plugin that extends sphinxcontrib-bibtex with support for URN identifiers (specifically National Bibliography Numbers).
BibTeX entries containing a urn field are rendered with a hyperlinked identifier, similar to how doi fields work:
[Sav23] Niko Savola. Design and modelling of long-coherence qubits using energy participation ratios. Masterโs thesis, Aalto University, May 2023. URN:NBN:fi:aalto-202305213270.
where URN:NBN:fi:aalto-202305213270 is a clickable link pointing to https://urn.fi/URN:NBN:fi:aalto-202305213270.
Featuresยถ
Country-specific NBNs: Resolution for National Bibliography Numbers for:
๐ฆ๐น Austria (resolver.obvsg.at)
๐ญ๐ท Croatia (urn.nsk.hr)
๐จ๐ฟ Czech Republic (resolver.nkp.cz)
๐ซ๐ฎ Finland (urn.fi)
๐ญ๐บ Hungary (nbn.urn.hu)
๐ฎ๐น Italy (nbn.depositolegale.it)
๐ณ๐ฑ Netherlands (persistent-identifier.nl)
๐ณ๐ด Norway (nb.no)
๐ธ๐ฎ Slovenia (nbn.si)
๐ธ๐ช Sweden (urn.kb.se)
Global NBNs: Other
URN:NBN:...identifiers resolved via nbn-resolving.org.Auto-deduplication: Automatically suppresses redundant
urlfields that point to the same URN resolver.Any pybtex style: Works with all built-in and third-party pybtex formatting styles.
Quick startยถ
Installationยถ
uv add sphinxcontrib-bibtex-urn # or: pip install sphinxcontrib-bibtex-urn
Usageยถ
Add the extension to your Sphinx conf.py:
extensions = [
"sphinxcontrib.bibtex",
"sphinxcontrib_bibtex_urn",
]
bibtex_default_style = "alpha" # any pybtex style works
bibtex_bibfiles = ["refs.bib"]
See the Usage guide for full details and the Citation style examples page for rendered citation style demos.
Documentation