Skip to main content

Allows the use of BibTeX citations within a Pelican site

Project description

pelican-cite

Allows the use of BibTeX citations within a Pelican site.

Installation

To install simply run pip install pelican-cite and add it to the PLUGINS section of pelicanconf.py

PLUGINS = [
    '...',
    'pelican.plugins.cite'
    '...',
]

How to Use

This plugin reads a user-specified BibTeX file and generates bibliographic information within your articles and pages.

If the file is present and readable, then content will be scanned for references to citation keys. These take the format [@Bai2011] or [@@Bai2011]. These will be replaced by incline citations which provide links to the full bibliographic information at the end of the article. The former reference would be replaced by a citation of the form "Bai & Stone (2011)", while the latter would be replaced by "(Bai & Stone, 2011)".

If a citation key is used which does not exist within the BibTeX file then a warning will be displayed.

Configuration

PUBLICATIONS_SRC

Location of the BibTeX file.

The BibTeX file may, optionally, be provided or overridden on a per-article basis by supplying the meta-data publications_src.

The BibTeX file may, optionally, be provided or overridden on a per-article basis by supplying the meta-data publications_src.

BIBLIOGRAPHY_HEADER

Html code for the headers shown for the bibliography on each article or page.

Default to

<hr><h2>Bibliography</h2>

BIBLIOGRAPHY_NAME_STYLE

Defines how names will be formatted in the output. Styles included in "Pybtex" are "plain" and "lastfirst". Defaults to None.

BIBLIOGRAPHY_LABEL_STYLE

Defines how the labels will be formatted in the output.

Styles included in Pybtex are "alpha" and "number". Defaults to "alpha"

At this moment only "author_year" is supported!

There is also a custom style available called "author_year". You can use this by installing it with pip install pybtex-author-year-label.

BIBLIOGRAPHY_SORTING_STYLE

Defines how the bibliography will be sorted. Styles included in Pybtex are "author_year_title" and "none". Defaults to "author_year_title"

Attribution

pelican-cite is based on the pelican-bibtex plugin written by Vlad Niculae and pelican-cite written by Chris MacMackin.

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

pelican-cite-1.0.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

pelican_cite-1.0.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file pelican-cite-1.0.0.tar.gz.

File metadata

  • Download URL: pelican-cite-1.0.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.5 Darwin/19.2.0

File hashes

Hashes for pelican-cite-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6556abaece08ff82770a9bfa4398f309a5a5cbe2826c41131bbff791423fa4b0
MD5 1aa3bf8802581c0d57b0c7bb742be203
BLAKE2b-256 b6a1f27b38fe4e15abe6e007557c045607ca7eb0ab89bfa186c4be226e354130

See more details on using hashes here.

File details

Details for the file pelican_cite-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pelican_cite-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.5 Darwin/19.2.0

File hashes

Hashes for pelican_cite-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 150272987b86c153de1860abc0b78e3770dba5679434934ab87e9c8011a87741
MD5 18c376bb554a3481b008f9a22164b948
BLAKE2b-256 c7013dc5bb70f7f7947276bc8a58e8ebdaa9996c5b3f7a3fd45e3f4782162740

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