[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 122/299: Expand biblatex style file.
From: |
Stefan Monnier |
Subject: |
[elpa] 122/299: Expand biblatex style file. |
Date: |
Sun, 02 Nov 2014 03:10:47 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 7531ccab7d8c645a7be7bb3861aa5b8e404a00f5
Author: Mosè Giordano <address@hidden>
Date: Thu May 23 01:20:36 2013 +0200
Expand biblatex style file.
* font-latex.el: Update copyright years, there have been
non-trivial changes in 2010, and 2011.
(font-latex-built-in-keyword-classes): Fontify Biblatex
multicites macros up to three mandatory arguments.
* style/biblatex.el (LaTeX-biblatex-entrytype): New variable.
(LaTeX-biblatex-executebibliographyoptions-options): New
variable.
(LaTeX-biblatex-language-list): New variable.
(LaTeX-arg-biblatex-cites): New function.
("biblatex"): Always set `LaTeX-using-Biber'. Add citation
macros.
(LaTeX-biblatex-package-options-list): Move preamble options to
`LaTeX-biblatex-executebibliographyoptions-options'.
---
ChangeLog | 16 ++
font-latex.el | 14 +-
style/biblatex.el | 419 +++++++++++++++++++++++++++++++++++++++++++++--------
3 files changed, 381 insertions(+), 68 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f65c4e2..048e637 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2013-05-23 Mos� Giordano <address@hidden>
+
+ * font-latex.el: Update copyright years, there have been
+ non-trivial changes in 2010, and 2011.
+ (font-latex-built-in-keyword-classes): Fontify Biblatex multicites
+ macros up to three mandatory arguments.
+
+ * style/biblatex.el (LaTeX-biblatex-entrytype): New variable.
+ (LaTeX-biblatex-executebibliographyoptions-options): New variable.
+ (LaTeX-biblatex-language-list): New variable.
+ (LaTeX-arg-biblatex-cites): New function.
+ ("biblatex"): Always set `LaTeX-using-Biber'. Add citation
+ macros.
+ (LaTeX-biblatex-package-options-list): Move preamble options to
+ `LaTeX-biblatex-executebibliographyoptions-options'.
+
2013-05-22 Mos� Giordano <address@hidden>
* latex.el: Replace `delete-backward-char' with `delete-char'.
diff --git a/font-latex.el b/font-latex.el
index a312e98..991da20 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1,6 +1,6 @@
;;; font-latex.el --- LaTeX fontification for Font Lock mode.
-;; Copyright (C) 1996-2009, 2012 Free Software Foundation, Inc.
+;; Copyright (C) 1996-2013 Free Software Foundation, Inc.
;; Authors: Peter S. Galbraith <address@hidden>
;; Simon Marshall <address@hidden>
@@ -313,10 +313,14 @@ variable `font-latex-fontify-sectioning'." num)
("citename" "[[{[{") ("citelist" "[[{[{") ("citefield" "[[{[{")
("citereset" "*")
("RN" "{") ("Rn" "{") ("DefineBibliographyStrings" "{{")
("DefineBibliographyExtras" "{{")
("UndefineBibliographyExtras" "{{") ("DefineHyphenationExceptions" "{{")
- ("NewBibliographyString" "{") ("autocites" "(([[{") ("Autocites" "(([[{")
- ("cites" "(([[{") ("Cites" "(([[{") ("parencites" "(([[{") ("Parencites"
"(([[{")
- ("footcites" "(([[{") ("footcitetexts" "(([[{") ("smartcites" "(([[{")
- ("Smartcites" "(([[{") ("textcites" "(([[{") ("Textcites" "(([[{")
("supercites" "(([[{"))
+ ("NewBibliographyString" "{")
+ ;; Multicite macros take any number of "key" arguments, let's limit
+ ;; fontification to three arguments.
+ ("autocites" "(([[{[[{[[{") ("Autocites" "(([[{[[{[[{") ("cites"
"(([[{[[{[[{")
+ ("Cites" "(([[{[[{[[{") ("parencites" "(([[{[[{[[{") ("Parencites"
"(([[{[[{[[{")
+ ("footcites" "(([[{[[{[[{") ("footcitetexts" "(([[{[[{[[{")
("smartcites" "(([[{[[{[[{")
+ ("Smartcites" "(([[{[[{[[{") ("textcites" "(([[{[[{[[{") ("Textcites"
"(([[{[[{[[{")
+ ("supercites" "(([[{[[{[[{"))
'font-lock-constant-face 2 command)
("reference"
(("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{")
diff --git a/style/biblatex.el b/style/biblatex.el
index e66f70a..491df5e 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -30,68 +30,24 @@
;;; Code:
-(defvar LaTeX-biblatex-addbibresource-options
- '(("label")
- ("location" ("local" "remote"))
- ("type" ("file"))
- ("datatype" ("bibtex" "ris" "zoterordfxml" "endnotexml")))
- "Key=value options for addbibresource macro of the biblatex package.")
-
-(defun LaTeX-arg-addbibresource (optional &optional prompt)
- "Prompt for a BibLaTeX database file.
-If OPTIONAL is non-nil, insert the resulting value as an optional
-argument, otherwise as a mandatory one. Use PROMPT as the prompt
-string."
- (let (files inputs database)
- (if LaTeX-using-Biber
- (setq files 'TeX-Biber-global-files
- inputs 'biberinputs)
- (setq files 'BibTeX-global-files
- inputs 'bibinputs))
- (setq files 'TeX-Biber-global-files
- inputs 'biberinputs)
- (message "Searching for BibLaTeX files...")
- (or (symbol-value files)
- (set files (mapcar 'list (TeX-search-files-by-type
- 'biberinputs 'global t nil))))
- (setq database (completing-read
- (TeX-argument-prompt optional prompt "BibLaTeX files")
- (append (mapcar 'list (TeX-search-files-by-type
- inputs 'local t nil))
- (symbol-value files))))
- (LaTeX-add-bibliographies database)
- (TeX-argument-insert database optional)))
-
-(TeX-add-style-hook
- "biblatex"
- (lambda ()
- ;; Biblatex uses as default backend biber, run it unless biblatex `backend'
- ;; option value is one of `bibtex', `bibtex8', `bibtexu'.
- (unless (or (LaTeX-provided-package-options-member "biblatex"
"backend=bibtex")
- (LaTeX-provided-package-options-member "biblatex"
"backend=bibtex8")
- (LaTeX-provided-package-options-member "biblatex"
"backend=bibtexu"))
- (setq LaTeX-using-Biber t))
-
- (TeX-run-style-hooks
- "etoolbox"
- "keyval"
- "kvoptions"
- "logreq"
- "ifthen"
- "url")
- (TeX-add-symbols
- '("addbibresource" [TeX-arg-key-val LaTeX-biblatex-addbibresource-options]
- LaTeX-arg-addbibresource))))
+(defvar LaTeX-biblatex-entrytype
+ '(;; Regular Types
+ "article" "book" "mvbook" "inbook" "bookinbook" "suppbook" "booklet"
+ "collection" "mvcollection" "incollection" "suppcollection" "manual" "misc"
+ "online" "patent" "periodical" "suppperiodical" "proceedings"
+ "mvproceedings" "inproceedings" "reference" "mvreference" "inreference"
+ "report" "set" "thesis" "unpublished" "xdata" "customa" "customb" "customc"
+ "customd" "custome" "customf"
+ ;; Type Aliases
+ "conference" "electronic" "masterthesis" "phdthesis" "techreport" "www"
+ ;; Unsupported Types
+ "artwork" "audio" "bibnote" "commentary" "image" "jurisdiction"
+ "legislation" "legal" "letter" "movie" "music" "performance" "review"
+ "software" "standard" "video")
+ "List of biblatex entry types.")
-(defvar LaTeX-biblatex-package-options-list
- '(;;; Load-time Options
- ("backend" ("biber" "bibtex" "bibtexu" "bibtex8"))
- ("style" BibLaTeX-global-style-files)
- ("bibstyle" BibLaTeX-global-style-files)
- ("citestyle" BibLaTeX-global-style-files)
- ("natbib" ("true" "false"))
- ("mcite" ("true" "false"))
- ;;; Preamble Options
+(defvar LaTeX-biblatex-executebibliographyoptions-options
+ '(;;; Preamble options
;; General
("sorting" ("nty" "nyt" "nyvt" "anyt" "anyvt" "ynt" "ydnt" "none" "debug"))
("sortcase" ("true" "false"))
@@ -110,6 +66,7 @@ string."
("minitems")
("autocite" ("plain" "inline" "footnote" "superscript"))
("autopunct" ("true" "false"))
+ ;; For list of languages, see table 5 of Biblatex reference manual.
("language" ("auto" "catalan" "czech" "danish" "dutch" "american" "british"
"canadian" "australian" "newzealand" "finnish" "french"
"german" "austrian" "ngernam" "naustrian" "greek" "italian"
@@ -171,7 +128,343 @@ string."
("labelyear" ("true" "false"))
("singletitle" ("true" "false"))
("uniquename" ("true" "false" "init" "full" "allinit" "allfull" "mininit"
"minfull"))
- ("uniquelist" ("true" "false" "minyear"))
+ ("uniquelist" ("true" "false" "minyear")))
+ "Key=value options for ExecuteBibliographyOptions macro of the biblatex
package.")
+
+;; See table 2 of Biblatex reference manual.
+(defvar LaTeX-biblatex-language-list
+ '("catalan" "czech" "danish" "dutch" "american" "british" "canadian"
+ "australian" "newzealand" "finnish" "french" "german" "austrian" "ngernam"
+ "naustrian" "greek" "italian" "norsk" "brazil" "portuguese" "russian"
+ "spanish" "swedish")
+ "List of languages supported by biblatex packages.")
+
+(defvar LaTeX-biblatex-addbibresource-options
+ '(("label")
+ ("location" ("local" "remote"))
+ ("type" ("file"))
+ ("datatype" ("bibtex" "ris" "zoterordfxml" "endnotexml")))
+ "Key=value options for addbibresource macro of the biblatex package.")
+
+(defun LaTeX-arg-addbibresource (optional &optional prompt)
+ "Prompt for a BibLaTeX database file.
+If OPTIONAL is non-nil, insert the resulting value as an optional
+argument, otherwise as a mandatory one. Use PROMPT as the prompt
+string."
+ (let (files inputs database)
+ (if LaTeX-using-Biber
+ (setq files 'TeX-Biber-global-files
+ inputs 'biberinputs)
+ (setq files 'BibTeX-global-files
+ inputs 'bibinputs))
+ (setq files 'TeX-Biber-global-files
+ inputs 'biberinputs)
+ (message "Searching for BibLaTeX files...")
+ (or (symbol-value files)
+ (set files (mapcar 'list (TeX-search-files-by-type
+ 'biberinputs 'global t nil))))
+ (setq database (completing-read
+ (TeX-argument-prompt optional prompt "BibLaTeX files")
+ (append (mapcar 'list (TeX-search-files-by-type
+ inputs 'local t nil))
+ (symbol-value files))))
+ (LaTeX-add-bibliographies database)
+ (TeX-argument-insert database optional)))
+
+;; Support for multicite commands, see § 3.7.3 of Biblatex reference manual.
+(defun LaTeX-arg-biblatex-cites (optional &optional prompt)
+ "Prompt for citations with completion until input is empty.
+Prompt also for optional prenotes and postnotes. If OPTIONAL is
+non-nil, insert the citation key as an optional argument,
+otherwise as a mandatory one. Use PROMPT as the prompt string
+for citation keys."
+ ;; Prompt for global prenote and postnote.
+ (and TeX-arg-cite-note-p (not current-prefix-arg)
+ (let ((TeX-arg-opening-brace "(")
+ (TeX-arg-closing-brace ")")
+ (prenote (TeX-read-string
+ (TeX-argument-prompt t nil "Global prenote"))))
+ (TeX-argument-insert prenote t)
+ ;; If the prenote is empty the postnote is optional, otherwise it's
+ ;; mandatory.
+ (TeX-argument-insert
+ (TeX-read-string (TeX-argument-prompt t nil "Global postnote"))
+ (equal prenote ""))))
+ (let (items noinsert)
+ (while (not (equal items '("")))
+ ;; Prompt for prenote and postnote of the current keys.
+ (and TeX-arg-cite-note-p (not current-prefix-arg)
+ (let ((TeX-arg-opening-brace "[")
+ (TeX-arg-closing-brace "]")
+ (prenote (TeX-read-string
+ (TeX-argument-prompt t nil "Prenote"))))
+ (TeX-argument-insert prenote t)
+ ;; If the prenote is empty the postnote is optional, otherwise it's
+ ;; mandatory.
+ (TeX-argument-insert
+ (TeX-read-string (TeX-argument-prompt t nil "Postnote"))
+ (equal prenote ""))))
+ (setq items (completing-read-multiple
+ (TeX-argument-prompt optional prompt "Key")
+ (LaTeX-bibitem-list)))
+ (apply 'LaTeX-add-bibitems items)
+ ;; If input is empty, insert an empty group only the first time, when
+ ;; `noinsert' flag is nil.
+ (unless (and (equal items '("")) noinsert)
+ (TeX-argument-insert (mapconcat 'identity items ",") optional))
+ (setq noinsert t))))
+
+(TeX-add-style-hook
+ "biblatex"
+ (lambda ()
+ ;; Biblatex uses as default backend biber, run it unless biblatex `backend'
+ ;; option value is one of `bibtex', `bibtex8', `bibtexu'.
+ (setq LaTeX-using-Biber
+ (not (or (LaTeX-provided-package-options-member "biblatex"
"backend=bibtex")
+ (LaTeX-provided-package-options-member "biblatex"
"backend=bibtex8")
+ (LaTeX-provided-package-options-member "biblatex"
"backend=bibtexu"))))
+
+ (TeX-run-style-hooks
+ "etoolbox"
+ "keyval"
+ "kvoptions"
+ "logreq"
+ "ifthen"
+ "url")
+ (TeX-add-symbols
+ ;;; Global Customization
+ ;; Setting Package Options
+ '("ExecuteBibliographyOptions"
+ [TeX-arg-eval mapconcat 'identity
+ (completing-read-multiple
+ "Entry type: " LaTeX-biblatex-entrytype) ","]
+ (TeX-arg-key-val LaTeX-biblatex-executebibliographyoptions-options))
+ ;;; Bibliography Commands
+ ;; Resources
+ '("addbibresource" [TeX-arg-key-val LaTeX-biblatex-addbibresource-options]
+ LaTeX-arg-addbibresource)
+ '("addglobalbib" [TeX-arg-key-val LaTeX-biblatex-addbibresource-options]
+ LaTeX-arg-addbibresource)
+ '("addsectionbib" [TeX-arg-key-val LaTeX-biblatex-addbibresource-options]
+ LaTeX-arg-addbibresource)
+ ;; The Bibliography
+ '("printbibliography"
+ [TeX-arg-key-val '(("env") ("heading") ("title") ("prenote") ("postnote")
+ ("section") ("segment") ("sorting") ("type")
("nottype")
+ ("subtype") ("notsubtype") ("keyword") ("notkeyword")
+ ("categoy") ("notcategory") ("filter") ("check")
+ ("prefixnumbers") ("resetnumbers" ("true" "false"))
+ ("omitnumbers" ("true" "false")))])
+ '("bibbysection"
+ [TeX-arg-key-val '(("env") ("heading") ("prenote") ("postnote"))])
+ '("bibbysegment"
+ [TeX-arg-key-val '(("env") ("heading") ("prenote") ("postnote"))])
+ '("bibbycategory"
+ [TeX-arg-key-val '(("env") ("prenote") ("postnote") ("section"))])
+ '("printbibheading"
+ [TeX-arg-key-val '(("heading") ("title"))])
+ ;; The List of Shorthands
+ '("printshorthands"
+ [TeX-arg-key-val '(("env") ("heading") ("title") ("prenote") ("postnote")
+ ("section") ("segment") ("sorting") ("type")
("nottype")
+ ("subtype") ("notsubtype") ("keyword") ("notkeyword")
+ ("categoy") ("notcategory") ("filter") ("check"))])
+ ;; Bibliography Sections
+ '("newrefsection" ["Resources"])
+ "endrefsection"
+ ;; Bibliography Segments
+ "newrefsegment"
+ "endrefsegment"
+ ;; Bibliography Categories
+ '("DeclareBibliographyCategory" "Category")
+ '("addtocategory" "Category" TeX-arg-cite)
+ ;; Bibliography Headings and Environments
+ '("defbibenvironment" "Name" 3)
+ '("defbibheading" "Name" ["Title"] t)
+ ;; Bibliography Notes
+ '("defbibnote" "Name" "Text")
+ ;; Bibliography Filters and Checks
+ '("defbibfilter" "Name" t)
+ '("defbibcheck" "Name" t)
+ ;; Dynamic Entry Sets
+ '("defbibentryset" "Set"
+ (TeX-arg-eval mapconcat 'identity (completing-read-multiple
+ "Keys: " (LaTeX-bibitem-list)) ","))
+ ;;; Citation Commands
+ '("cite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ()) TeX-arg-cite)
+ '("Cite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ()) TeX-arg-cite)
+ '("parencite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Parencite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("footcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("footcitetext" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ ;; Style-specific Commands
+ '("textcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Textcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("smartcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Smartcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("cite*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ()) TeX-arg-cite)
+ '("parencite*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("supercite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ ;; Qualified Citation Lists
+ '("cites" LaTeX-arg-biblatex-cites)
+ '("Cites" LaTeX-arg-biblatex-cites)
+ '("parencites" LaTeX-arg-biblatex-cites)
+ '("Parencites" LaTeX-arg-biblatex-cites)
+ '("footcites" LaTeX-arg-biblatex-cites)
+ '("footcitetexts" LaTeX-arg-biblatex-cites)
+ '("smartcites" LaTeX-arg-biblatex-cites)
+ '("Smartcites" LaTeX-arg-biblatex-cites)
+ '("textcites" LaTeX-arg-biblatex-cites)
+ '("Textcites" LaTeX-arg-biblatex-cites)
+ '("supercites" LaTeX-arg-biblatex-cites)
+ ;; Style-independent Commands
+ '("autocite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Autocite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("autocite*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Autocite*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("autocites" LaTeX-arg-biblatex-cites)
+ '("Autocites" LaTeX-arg-biblatex-cites)
+ ;; Text Commands
+ '("citeauthor" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Citeauthor" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citetitle" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citetitle*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citeyear" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citeyear*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citedate" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citedate*" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("citeurl" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("parentext" "Text")
+ '("brackettext" "Text")
+ ;; Special Commands
+ '("fullcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("footfullcite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("volcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("Volcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("Pvolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("Pvolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("fvolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("ftolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("svolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("Svolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("tvolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("Tvolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("avolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("Avolcite"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"]) ()) "Volume"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Page"]) ()) TeX-arg-cite)
+ '("notecite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Notecite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("pnotecite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("Pnotecite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ '("fnotecite" (TeX-arg-conditional TeX-arg-cite-note-p
+ (["Prenote"] ["Postnote"]) ())
TeX-arg-cite)
+ ;; Low-level Commands
+ '("citename"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"] ["Postnote"]) ())
+ TeX-arg-cite (TeX-arg-conditional TeX-arg-cite-note-p (["Format"]) ())
+ "Name list")
+ '("citelist"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"] ["Postnote"]) ())
+ TeX-arg-cite (TeX-arg-conditional TeX-arg-cite-note-p (["Format"]) ())
+ "Literal list")
+ '("citefield"
+ (TeX-arg-conditional TeX-arg-cite-note-p (["Prenote"] ["Postnote"]) ())
+ TeX-arg-cite (TeX-arg-conditional TeX-arg-cite-note-p (["Format"]) ())
+ "Field")
+ ;; Miscellaneous Commands
+ "citereset"
+ "citereset*"
+ "mancite"
+ "pno"
+ "ppno"
+ "nopp"
+ "psq"
+ "psqq"
+ '("RN" "Integer")
+ '("Rn" "Integer")
+ ;; Localization Commands
+ '("DefineBibliographyStrings"
+ (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list)
t)
+ '("DefineBibliographyExtras"
+ (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list)
t)
+ '("UndefineBibliographyExtras"
+ (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list)
t)
+ '("DefineHyphenationExceptions"
+ (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list)
t)
+ "NewBibliographyString")
+ (LaTeX-add-environments
+ ;;; Bibliography commands
+ ;; Bibliography Sections
+ '("refsection" ["Resources"])
+ ;; Bibliography Segments
+ "refsegment")))
+
+(defvar LaTeX-biblatex-package-options-list
+ (append
+ ;;; Preamble Options
+ LaTeX-biblatex-executebibliographyoptions-options
+ '(;;; Load-time Options
+ ("backend" ("biber" "bibtex" "bibtexu" "bibtex8"))
+ ("style" BibLaTeX-global-style-files)
+ ("bibstyle" BibLaTeX-global-style-files)
+ ("citestyle" BibLaTeX-global-style-files)
+ ("natbib" ("true" "false"))
+ ("mcite" ("true" "false"))
;;; Entry Options
;; Preamble/Type/Entry Options
("useauthor" ("true" "false"))
@@ -181,7 +474,7 @@ string."
("indexing" ("true" "false" "cite" "bib"))
;; Type/Entry Options are not available globally.
;; Legacy Options (deprecated)
- ("openbib"))
+ ("openbib")))
"Package options for the biblatex package.")
(defun LaTeX-biblatex-package-options nil
- [elpa] 109/299: Fix in TeX-arg-insert-braces., (continued)
- [elpa] 109/299: Fix in TeX-arg-insert-braces., Stefan Monnier, 2014/11/01
- [elpa] 121/299: Silence some compilation warning., Stefan Monnier, 2014/11/01
- [elpa] 124/299: Make forward PDF search with Okular work., Stefan Monnier, 2014/11/01
- [elpa] 123/299: Fix docstring of `TeX-source-correlate-sync-source'., Stefan Monnier, 2014/11/01
- [elpa] 116/299: Temporary fix for font-latex-jit-lock-force-redisplay., Stefan Monnier, 2014/11/01
- [elpa] 126/299: Fix for autogen.sh., Stefan Monnier, 2014/11/01
- [elpa] 118/299: Add new style files fancyvrb.el and xparse.el., Stefan Monnier, 2014/11/01
- [elpa] 125/299: Simplify LaTeX-env-figure function., Stefan Monnier, 2014/11/01
- [elpa] 127/299: Execute TeX-run-compile in TeX-master-directory., Stefan Monnier, 2014/11/01
- [elpa] 120/299: Move remaining .cvsignore to .gitignore., Stefan Monnier, 2014/11/01
- [elpa] 122/299: Expand biblatex style file.,
Stefan Monnier <=
- [elpa] 129/299: Document LaTeX-find-matching-begin and LaTeX-find-matching-end., Stefan Monnier, 2014/11/01
- [elpa] 128/299: New variable TeX-electric-math., Stefan Monnier, 2014/11/01
- [elpa] 130/299: Add reference to Gmane thread in ChangeLog., Stefan Monnier, 2014/11/01
- [elpa] 133/299: Fix compile error with emacs bzr which assumes elisp files are UTF-8 encoded., Stefan Monnier, 2014/11/01
- [elpa] 132/299: Fix `TeX-next-error'., Stefan Monnier, 2014/11/01
- [elpa] 131/299: New hooks TeX-after-document-hook and LaTeX-after-usepackage-hook., Stefan Monnier, 2014/11/01
- [elpa] 136/299: Simplify TeX-doc-backend-alist., Stefan Monnier, 2014/11/01
- [elpa] 135/299: Put coding cookie in elisp header line., Stefan Monnier, 2014/11/01
- [elpa] 138/299: Fix compilation problem due to `dbus-ignore-errors' not being defined., Stefan Monnier, 2014/11/01
- [elpa] 134/299: Fix coding once again., Stefan Monnier, 2014/11/01