Skip to main content

Bibtex file support to easily include publication lists.

Project description

Lektor Bibtex Plugin

The plugin allows adding a list of publications generated from bibtex files to a page.

Enabling the plugin

To enable the plugin add this to your project file:

lektor-bibtex-support = 0.1


Create a file configs/bibtex-support.ini with a section called Bibtex. Define a variable files that is a white space separated list of bibtex files. Put these files into the assets directory of your project.

files = A.bib B.bib

Optionally you can also create a template file that should leave in the template directory to render the bibtex entries. If you skip this entry a default template will be used that sorts the entries by year.


You can add the the publication anywhere in your jinja template by calling

{{ list_publications(name=name, tag=tag, year=year, labels=labels, fname=fname)|safe }}

The arguments are optional and can be used for filtering.

By name: the name has to show up in the author list to be included

by year: only publications from this year

labels: white space separated list of bibtex labels (the name of each entry in the bibtex file)

fname: white space separated list files to search (by default all files will be searched)


For the default template, you can also add the following javascript to show some entries if you have a long list (relies on jquery):

	      $(".BIBTeXtoggle").click( function () {
		  return false;
	      $(".BIBYearheader").click( function () {
		  return false;
	      $(".bibshowall").click( function () {
	      $(".bibhideall").click( function () {

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lektor-bibtex-support, version 0.1.1
Filename, size & hash File type Python version Upload date
lektor_bibtex_support-0.1.1-py3-none-any.whl (5.2 kB) View hashes Wheel py3
lektor-bibtex-support-0.1.1.tar.gz (5.3 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page