Giter Club home page Giter Club logo

pelican_publication_list's Introduction

Pelican Publication List

Pelican plugin to add a list of publications to the generator environment to use in templates. The list of publications is in the variable 'publications', and consists of a list of tuples of the following form: (key, formatted_entry, bibtex_record, external_links).

Due to citeproc-py not including all Bibtex keys in its parsed representation of the files, and bibparser not including any citation formatting logic, both are used to parse the bibtex file, and the citation keys are then used to associate the two representations.

Options

PUBLICATIONS_SRC
Bibtex file with full publications list
PUBLICATIONS_STYLE
CSL style file for reference formatting
PUBLICATIONS_SORT
Key to sort references by, should be one of 'key', 'date', 'name' or 'author'. Default is 'date'.

External Links

As the plugin is intended to generate a list of publications for an academic website, in addition to exposing the original bibtex record, a list of convenient URL locations is exposed.

DOI
Added if the 'doi' field is provided and reproduces it exactly.
ARXIV
Added if 'eprinttype' is 'arxiv' and consists of a URL pointing to the indicated location on arXiv.

Example Template Fragment

<div class="ref-list">
<h2>Publications</h2>
    {% for key, entry, record, external in publications %}
    <div id="{{ key }}"><span>{{ entry }} </span>
        {% if external.DOI is defined -%}
        <span><a class="DOI" href="{{ external.DOI }}">DOI</a> </span>
        {%- endif -%}
        {% if external.ARXIV is defined -%}
        <span><a class="ARXIV" href="{{ external.ARXIV }}">ARXIV</a></span>
        {%- endif -%}
        {% if record.link is defined %}
        <span><a href="{{ publication.link }}">Full Text</a> </span>
        {% endif %}
    </div>
    {% endfor %}
</div>

pelican_publication_list's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.