aboutsummaryrefslogtreecommitdiff
path: root/docs/source/bibstyle.py
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-03-03 13:09:41 +0100
committerGitHub <noreply@github.com>2019-03-03 13:09:41 +0100
commit06355fc4d1fc2f6af730afb733361f364e5bf207 (patch)
treea4913a01531e6ecb31c70978431652362fddae27 /docs/source/bibstyle.py
parentc161062d308baf927500f2b02420de218d7fb9be (diff)
parenta33feebf7d97a9acf18ee0913dbfd536279d9c14 (diff)
downloadPROJ-06355fc4d1fc2f6af730afb733361f364e5bf207.tar.gz
PROJ-06355fc4d1fc2f6af730afb733361f364e5bf207.zip
Merge pull request #1305 from mwtoews/docs
More updates to references
Diffstat (limited to 'docs/source/bibstyle.py')
-rw-r--r--docs/source/bibstyle.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/source/bibstyle.py b/docs/source/bibstyle.py
index 8e2cc02a..addfedbd 100644
--- a/docs/source/bibstyle.py
+++ b/docs/source/bibstyle.py
@@ -1,5 +1,6 @@
###############################################################################
#
+# Project: PROJ
# Purpose: Configure custom bibliography style for sphinxcontrib-bibtex
# Author: Mike Toews <mwtoews at gmail.com>
#
@@ -53,11 +54,15 @@ class LinkLabelStyle(LabelStyle):
class CustomStyle(UnsrtStyle):
"""Citation style in the References section"""
+ # TODO: Make more Harvard-like, i.e. year after name(s)
default_label_style = 'linklabel'
default_name_style = 'lastfirst'
default_sorting_style = 'author_year_title'
- # TODO: Make more Harvard-like, i.e. year after name(s)
+
+ def __init__(self, **kwargs):
+ kwargs['abbreviate_names'] = True
+ UnsrtStyle.__init__(self, **kwargs)
register_plugin('pybtex.style.labels', 'linklabel', LinkLabelStyle)