[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3a5ed08 38/57: Support biblatex cite format in a
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3a5ed08 38/57: Support biblatex cite format in all Emacsen |
Date: |
Wed, 11 Jan 2017 18:01:41 +0000 (UTC) |
branch: externals/auctex
commit 3a5ed086d3fc8869af01ce940c35dd54cdeb8f40
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Support biblatex cite format in all Emacsen
* style/biblatex.el ("biblatex"): Check if biblatex is available
in `reftex-cite-format-builtin' and use it. If not, add entries
for older Emacsen manually.
---
style/biblatex.el | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/style/biblatex.el b/style/biblatex.el
index 32d585a..aa5fcc9 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -552,16 +552,35 @@ for citation keys."
"biblatex"
"refsection" "refsegment")
- ;; Tell RefTeX: The entry `biblatex' is defined in
- ;; `reftex-cite-format-builtin' in reftex-vars.el which will be
- ;; part of Emacs >= 25.3. It does not issue an error for older
- ;; Emacsen, but does not work either, i.e. it is ignored.
+ ;; Tell RefTeX: If package option `natbib' is given, activate that
+ ;; format, otherwise stick with `biblatex':
(when (and LaTeX-reftex-cite-format-auto-activate
(fboundp 'reftex-set-cite-format))
(if (or (LaTeX-provided-package-options-member "biblatex" "natbib")
(LaTeX-provided-package-options-member "biblatex" "natbib=true"))
(reftex-set-cite-format 'natbib)
- (reftex-set-cite-format 'biblatex))))
+ ;; The entry `biblatex' is defined in
+ ;; `reftex-cite-format-builtin' in reftex-vars.el which will be
+ ;; part of Emacs >= 25.3. So check here if we find an entry,
+ ;; otherwise do it manually for older Emacsen.
+ (if (assoc 'biblatex reftex-cite-format-builtin)
+ (reftex-set-cite-format 'biblatex)
+ (reftex-set-cite-format
+ '((?\C-m . "\\cite[][]{%l}")
+ (?C . "\\cite*[][]{%l}")
+ (?t . "\\textcite[][]{%l}")
+ (?T . "\\textcite*[][]{%l}")
+ (?p . "\\parencite[][]{%l}")
+ (?P . "\\parencite*[][]{%l}")
+ (?f . "\\footcite[][]{%l}")
+ (?s . "\\smartcite[][]{%l}")
+ (?u . "\\autocite[][]{%l}")
+ (?U . "\\autocite*[][]{%l}")
+ (?a . "\\citeauthor{%l}")
+ (?A . "\\citeauthor*{%l}")
+ (?y . "\\citeyear{%l}")
+ (?Y . "\\citeyear*{%l}")
+ (?n . "\\nocite{%l}")))))))
LaTeX-dialect)
(defvar LaTeX-biblatex-package-options-list
- [elpa] externals/auctex e9c4b68 35/57: ; * doc/auctex.texi (Completion): Use @defun and not @deffn., (continued)
- [elpa] externals/auctex e9c4b68 35/57: ; * doc/auctex.texi (Completion): Use @defun and not @deffn., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 74c5ac9 09/57: Update style/tcolorbox.el to package v3.96, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 0b16551 51/57: * Makefile.in (release-commit): Use UTF-8 coding for ChangeLog entry., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 826f17a 54/57: Release_11.90, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 61e56f2 40/57: Fix bug where font-latex-sub/superscript-face was not applied to ^_, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex bc47cb0 39/57: Fontify script characters with a new face, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 6fe7a2e 43/57: Prepare for upcoming release, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 33a6ff8 48/57: ; Change email address., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 5af3c8e 15/57: Add \switchcolumn to paragraph commands, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex a943b6c 10/57: Add new tcolorbox library style/tcolorboxlib-raster.el, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 3a5ed08 38/57: Support biblatex cite format in all Emacsen,
Tassilo Horn <=
- [elpa] externals/auctex 436371c 31/57: Add completion-at-point support, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex a181b14 55/57: ; make change-history-commit, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 4ebbf90 56/57: Make gitlog-to-changelog ignore release-commit, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex a9ec6ba 01/57: Update style/minted.el to package version 2.4.1., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 4c59f77 42/57: Adapt Makefile to new ChangeLog file name, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex c541d75 20/57: Fix the names also in expert macros, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 93b1163 50/57: * ChangeLog-preview: Change encoding to UTF-8., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex fb6333b 45/57: ; * doc/install.texi (Installation): Guard reference in "@ifclear rawfile"., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex ea7f427 28/57: Improve multi-level script fontification, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex bdc5d0d 11/57: Add new style/mdframed.el, Tassilo Horn, 2017/01/11