diff options
author | Tassilo Horn <tsdh@gnu.org> | 2015-05-06 07:49:20 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2015-05-06 07:49:20 +0200 |
commit | 52d7486d8bc5e55c7bc7ef764c9b4fd38062761e (patch) | |
tree | 7fc676bab328ce12d339797c185d76401001e390 /lisp/textmodes/reftex-cite.el | |
parent | 276f5d9e108378e13afd26b412526fc57a1f0032 (diff) | |
download | emacs-52d7486d8bc5e55c7bc7ef764c9b4fd38062761e.tar.gz |
Support the biblatex journaltitle field
* lisp/textmodes/reftex-cite.el (reftex-format-bib-entry):
Support the biblatex journaltitle field.
Diffstat (limited to 'lisp/textmodes/reftex-cite.el')
-rw-r--r-- | lisp/textmodes/reftex-cite.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el index b22e8b1dcc0..17e8cfdc83c 100644 --- a/lisp/textmodes/reftex-cite.el +++ b/lisp/textmodes/reftex-cite.el @@ -543,7 +543,14 @@ If FORMAT is non-nil `format' entry accordingly." (extra (cond ((equal type "article") - (concat (reftex-get-bib-field "journal" entry) " " + (concat (let ((jt (reftex-get-bib-field "journal" entry))) + ;; biblatex prefers the alternative journaltitle + ;; field, so check if that exists in case journal + ;; is empty. + (if (zerop (length jt)) + (reftex-get-bib-field "journaltitle" entry) + jt)) + " " (reftex-get-bib-field "volume" entry) ", " (reftex-get-bib-field "pages" entry))) ((equal type "book") |