[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex bb390fe 18/57: Add fontification for varioref's
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex bb390fe 18/57: Add fontification for varioref's referencing macros |
Date: |
Wed, 11 Jan 2017 18:01:38 +0000 (UTC) |
branch: externals/auctex
commit bb390fe0b594fdccf140b77855af2cb3f7acdec6
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Add fontification for varioref's referencing macros
* font-latex.el (font-latex-built-in-keyword-classes): Add starred
version to \vref macro.
* style/varioref.el ("varioref"): Add fontification support for
referencing macros.
---
font-latex.el | 2 +-
style/varioref.el | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/font-latex.el b/font-latex.el
index 4a8195d..896c6af 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -325,7 +325,7 @@ variable `font-latex-fontify-sectioning'." ',num)
'font-lock-constant-face 2 command)
("reference"
(("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{")
- ("vref" "{") ("eqref" "{") ("ref" "{") ("include" "{")
+ ("vref" "*{") ("eqref" "{") ("ref" "{") ("include" "{")
("input" "{") ("bibliography" "{") ("index" "{") ("glossary" "{")
("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{"))
'font-lock-constant-face 2 command)
diff --git a/style/varioref.el b/style/varioref.el
index 7684ba4..1d87507 100644
--- a/style/varioref.el
+++ b/style/varioref.el
@@ -66,6 +66,19 @@
2 LaTeX-label-list "}"))
TeX-complete-list))
+ ;; Fontification
+ (when (and (fboundp 'font-latex-add-keywords)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(;; vref is already in font-latex.el,
+ ;; so don't add it here again
+ ("Vref" "*{")
+ ("vpageref" "*[[{")
+ ("vrefrange" "*[{{")
+ ("Ref" "{")
+ ("fullref" "{")
+ ("vpagerefrange" "*[{{"))
+ 'reference))
+
;; Activate RefTeX reference style.
(and LaTeX-reftex-ref-style-auto-activate
(fboundp 'reftex-ref-style-activate)
- [elpa] externals/auctex updated (a580432 -> 3dca7c4), Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 061aaf5 03/57: Mention improvements to `LaTeX-array-count-columns' in news, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex ec3996d 08/57: Query for optional float position, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex def20e7 05/57: Make AUCTeX and RefTeX aware of file loading macro \subfile, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex a55b66d 07/57: Improve inserting arguments of \captionof macro, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex ac02ed2 02/57: Extend test for new column counting code with style files loaded, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex bef4873 22/57: Set `reftex-set-cite-format' to biblatex or natbib, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex c3a21f2 04/57: Print only first line of the message in error overview, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 48d397c 17/57: Add starred version of \citeauthor and \Citeauthor, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 89ea0e4 19/57: Fix name of macros \lcnamecref and \lcnamecrefs, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex bb390fe 18/57: Add fontification for varioref's referencing macros,
Tassilo Horn <=
- [elpa] externals/auctex 8186490 06/57: Fix documentation of TeX-arg-file, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 01da194 23/57: ; * style/titletoc.el ("titletoc"): Use `TeX-arg-length'., Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 1addc62 30/57: Use RefTeX for multiple citations in biblatex, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 890163e 26/57: Bring back multi-level script font-locking, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 5ddbd04 12/57: Add new style/titleps.el, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 225bade 14/57: Add new style/titletoc.el, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 343ca9c 36/57: Fix script unfontification bug, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 501b0de 47/57: Use RefTeX for multiple references in cleveref, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex bfc7e90 16/57: Fix fontification for natbib compat macros, Tassilo Horn, 2017/01/11
- [elpa] externals/auctex 1de2359 13/57: Add new style/titlesec.el, Tassilo Horn, 2017/01/11