mkdocs-bibtex
A MkDocs plugin for citation management using bibtex.
Setup
Install the plugin using pip:
pip install mkdocs-bibtex
Note: This plugin requires pandoc to be installed on your system.
If you're having trouble with pandoc, try installing the conda-forge version of pypandoc:conda install -c conda-forge pypandocwhich will install a version with built in pandoc binaries
Next, add the following lines to your mkdocs.yml:
plugins:
- search
- bibtex:
bib_file: "refs.bib"
markdown_extensions:
- footnotes
The footnotes extension is how citations are linked for now.
If you have no
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. MkDocs enables it by default if there is nopluginsentry set.
Options
bib_file- The path or url to a single bibtex file. Path can either be absolute or relative tomkdocs.yml. Example URL:https://api.zotero.org/*/items?format=bibtexbib_dir- Directory for bibtex files to load, same as above for path resolutionbib_command- The syntax to render your bibliography, defaults to\bibliographybib_by_default- Automatically append thebib_commandat the end of every markdown document, defaults totruefull_bib_command- The syntax to render your entire bibliography, defaults to\full_bibliographycsl_file- The path or url to a bibtex CSL file, specifying your citation format. Defaults toNone, which renders in a plain format. A registry of citation styles can be found here: https://github.com/citation-style-language/stylescite_inline- Whether or not to render citations inline, requirescsl_fileto be specified. Defaults toFalse.
Usage
In your markdown files:
- Add your citations as you would if you used pandoc, IE:
[@first_cite;@second_cite] - Add
\bibliography, or the value ofbib_command, to the doc you want your references rendered (ifbib_by_defaultis set to true this is automatically applied for every page). - (Optional) Add
\full_bibliography, or the value offull_bib_command, to where you want the full bibliography rendered. Note: This is currently not working properly, since this plugin can't dictate the order in which files are processed. The best way to ensure the file with the full bibliography gets processed last is to use numbers in front of file/folder names to enforce the order of processing, IE:01_my_first_file.md - (Optional) Configure the
csl_fileoption to dictate the citation text formatting.
Metadata
Release files for mkdocs-bibtex-recursive 2.8.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs-bibtex-recursive-2.8.15.tar.gz | 18.6 kB | Without provenance | Details for mkdocs-bibtex-recursive-2.8.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_bibtex_recursive-2.8.15-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_bibtex_recursive-2.8.15-py3-none-any.whl |
Total release size: 28.9 kB
Release files / mkdocs-bibtex-recursive-2.8.15.tar.gz
| Download URL | mkdocs-bibtex-recursive-2.8.15.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
196dd8d72e3c8614cfb84862604f3dea487775d1dddd7bf1896f6c70cfb3848b
|
|
BLAKE2b-256 checksum How to use checksums |
1008b1e92731c277b78953feaea1811e70f2287a84bdab7bfa17d3389340f208
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.10
|
Release files / mkdocs_bibtex_recursive-2.8.15-py3-none-any.whl
| Download URL | mkdocs_bibtex_recursive-2.8.15-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
639c4617decdc77bb1d3f8bc8314aa7bb5f35f519ece7b5d379d6ba42d5e2850
|
|
BLAKE2b-256 checksum How to use checksums |
e5e1a3d23ed92fce6010e7ba2278534fccbb25d2e6f109a9032535881249353d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.10
|
Security for mkdocs-bibtex-recursive 2.8.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.