{
"info": {
"author": "Marcus M. Scheunemann",
"author_email": "find@mms.ai",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing"
],
"description": "# Pelican Bib\n\nOrganize your scientific publications with BibTeX in Pelican. The package is based on Vlad's [pelican-bibtex](https://github.com/vene/pelican-bibtex). The current version is backward compatible and can replace the `pelican-bibtex` install of your current project.\n\n## Installation\n\n`pelican_bib` requires `pybtex`.\n\n pip install pybtex\n\n## Using pip\n\n pip install pelican-bib\n\nAdd the plugin to the `PLUGINS` variable:\n\n PLUGINS = ['pelican_bib', ...]\n\n### As a Submodule\n\nIn your Pelican site:\n\n $ mkdir plugins\n $ git submodule add https://github.com/scheunemann/pelican-bib plugins/pelican-bib\n\nAnd Pelican config:\n\n PLUGIN_PATHS = ['plugins/pelican_bib', ...]\n PLUGINS = ['pelican_bib', ...]\n\n## How to Use\n\nThis plugin reads a user-specified BibTeX file and populates the context with\na list of publications, ready to be used in your Jinja2 template.\n\nConfiguration is simply:\n\n PUBLICATIONS_SRC = 'content/pubs.bib'\n\n\nIf the file is present and readable, you will be able to find the `publications`\nvariable in all templates. It is a list of dictionaries with the following keys:\n\n1. `key` is the BibTeX key (identifier) of the entry.\n2. `year` is the year when the entry was published. Useful for grouping by year in templates using Jinja's `groupby`\n3. `text` is the HTML formatted entry, generated by `pybtex`.\n4. `bibtex` is a string containing BibTeX code for the entry, useful to make it\navailable to people who want to cite your work.\n5. `pdf`, `slides`, `poster`: in your BibTeX file, you can add these special fields,\nfor example:\n\n ```\n @article{\n foo13\n ...\n pdf = {/papers/foo13.pdf},\n slides = {/slides/foo13.html}\n }\n ```\n\n\nThis plugin will take all defined fields and make them available in the template.\nIf a field is not defined, the tuple field will be `None`. Furthermore, the\nfields are stripped from the generated BibTeX (found in the `bibtex` field).\n\n### Split into lists of publications\n\nYou can add an extra field to each bibtex entry. This value of that field is a comma seperated list.\nThese values will become the keys of a list `publications_lists` containing the associated bibtex entries in your template.\n\nFor example, if you want to associate an entry with two different tags (`foo-tag`, `bar-tag`), \nyou add the following field to the bib entry:\n\n\n @article{\n foo13\n ...\n tags = {foo-tag, bar-tag}\n }\n\n\nIn your `pelicanconf.py` you'll need to set:\n\n PUBLICATIONS_SPLIT_BY = 'tags'\n\n\nIn your template you can then access these lists with the variables `publications_lists['foo-tag']` and `publications_lists['bar-tag']`.\n\nIf you want to assign all untagged entries (i.e. entries without \nthe field defined in `PUBLICATIONS_SPLIT_BY`) to a tag named `others`, set: \n\n PUBLICATIONS_UNTAGGED_TITLE = 'others'\n\n\n## Page with a list of publications\n\nTo generate a page displaying the publications with one of the methods below, you need to add a template file and a page.\n\n1.) place the template file as `publications.html` in `content/templates` and add it as direct template to your webpage. Add in your `pelicanconf.py`:\n\n\n THEME_TEMPLATES_OVERRIDES.append('templates')\n\n\n2.) Create a page in your page folder, e.g., 'content/pages/publications.rst' with the following metadata in your content:\n\n\n Publications\n ############\n\n :template: publications\n\n\n\n## Example templates\n\nExample content of the `publications.html` template:\n\n {% extends \"base.html\" %}\n {% block title %}Publications{% endblock %}\n {% block content %}\n\n \n Publications
\n \n