aboutsummaryrefslogtreecommitdiff
path: root/docs/source/bibstyle.py
diff options
context:
space:
mode:
authorAndrew Bell <andrew.bell.ia@gmail.com>2019-05-15 10:47:03 -0400
committerAndrew Bell <andrew.bell.ia@gmail.com>2019-05-15 10:47:03 -0400
commit8f268409d37cea329d263e177b83e42f8384d3c7 (patch)
treec4d0f3dd19456600f718a6e0c8573577f433549b /docs/source/bibstyle.py
parent886ced02f0aaab5d66d16459435f7447cf976650 (diff)
parentd67203a6f76a74f5ac029ff052dbcc72e3b59624 (diff)
downloadPROJ-8f268409d37cea329d263e177b83e42f8384d3c7.tar.gz
PROJ-8f268409d37cea329d263e177b83e42f8384d3c7.zip
Merge remote-tracking branch 'origin/master'
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)