aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2019-03-03 22:57:09 +1300
committerKristian Evers <kristianevers@gmail.com>2019-03-03 13:10:31 +0100
commitc0e12bc770d6e71bd5aa498bda31c7ae07ccc3b6 (patch)
treea5ea1c4132aa91502ccd7bd751c3ae27107f8aeb /docs/source
parent7d79ac5dc40c925491cbc0c440c8993eff9d6483 (diff)
downloadPROJ-c0e12bc770d6e71bd5aa498bda31c7ae07ccc3b6.tar.gz
PROJ-c0e12bc770d6e71bd5aa498bda31c7ae07ccc3b6.zip
Configure bibstyle to abbreviate names
Diffstat (limited to 'docs/source')
-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)