[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 9127647 69/80: Update style/varioref.el to packa
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b |
Date: |
Wed, 16 Oct 2019 11:07:19 -0400 (EDT) |
branch: externals/auctex
commit 9127647b84d06d2e2c83fc9f0274f15480a6a454
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Update style/varioref.el to package version 1.6b
* style/varioref.el ("varioref"): Rearrange macros acc. to the
manual. Add missing starred version of \Vref. Add fontification
support for \labelformat.
(LaTeX-varioref-package-options): Update package options.
---
style/varioref.el | 146 +++++++++++++++++++++++++++++-------------------------
1 file changed, 79 insertions(+), 67 deletions(-)
diff --git a/style/varioref.el b/style/varioref.el
index ce840e7..aeaaee0 100644
--- a/style/varioref.el
+++ b/style/varioref.el
@@ -1,6 +1,6 @@
-;;; varioref.el --- AUCTeX style file with support for varioref.sty
+;;; varioref.el --- AUCTeX style for `varioref.sty' (v1.6b)
-;; Copyright (C) 1999, 2013, 2015, 2018 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2013, 2015, 2018, 2019 Free Software Foundation, Inc.
;; Author: Carsten Dominik <address@hidden>
;; Mads Jensen <address@hidden>
@@ -23,6 +23,11 @@
;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
;; 02110-1301, USA.
+;;; Commentary:
+
+;; This file adds support for `varioref.sty' (v1.6b) from 2019/09/08.
+;; `varioref.sty' is a standard LaTeX package and part of TeXLive.
+
;;; Code:
;; Silence the compiler:
@@ -30,73 +35,80 @@
"font-latex"
(keywords class))
-(TeX-add-style-hook "varioref"
- (lambda ()
-
- (TeX-add-symbols
-
- ;; The macros with label arguments
- '("vref" TeX-arg-ref)
- '("Vref" TeX-arg-ref)
- '("vrefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
- '("vrefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
- '("vref*" TeX-arg-ref)
- '("Vref" TeX-arg-ref)
- '("Ref" TeX-arg-ref)
- '("vpageref" [ "Same page text" ] [ "Different page text" ] TeX-arg-ref)
- '("vpageref*" [ "Same page text" ] [ "Different page text" ]
- TeX-arg-ref)
- '("fullref" TeX-arg-ref)
- '("labelformat" TeX-arg-counter t)
-
- '("vpagerefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
- '("vpagerefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
-
- ;; And the other macros used for customization
- "reftextbefore" "reftextfacebefore"
- "reftextafter" "reftextfaceafter" "reftexlabelrange"
- "reftextfaraway" "vreftextvario" "vrefwarning"
- "vpagerefnum" "vrefshowerrors")
-
- ;; Install completion for labels. Only offer completion for
- ;; commands that take only one reference as an argument
- (setq TeX-complete-list
- (append
- '(("\\\\[Vv]ref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
- ("\\\\vref\\*?{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
- ("\\\\Ref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
- ("\\\\vref\\*{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
- ("\\\\fullref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
- ("\\\\vpageref\\*?\\(\\[[^]]*\\]\\)*{\\([^{}\n\r\\%,]*\\)"
- 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)
- (reftex-ref-style-activate "Varioref")))
- LaTeX-dialect)
+(TeX-add-style-hook
+ "varioref"
+ (lambda ()
+
+ (TeX-add-symbols
+ ;; 3 The user interface
+ '("vref" TeX-arg-ref)
+ '("vpageref" [ "Same page text" ] [ "Different page text" ] TeX-arg-ref)
+ '("vrefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+ '("vpagerefrange" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+ "vpagerefnum"
+ '("vpagerefcompare" 4)
+ '("vpagerefnearby" 3)
+ '("vref*" TeX-arg-ref)
+ '("vpageref*" [ "Same page text" ] [ "Different page text" ] TeX-arg-ref)
+ '("vrefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+ '("vpagerefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
+
+ '("labelformat" TeX-arg-counter t)
+
+ '("Ref" TeX-arg-ref)
+ '("Vref" TeX-arg-ref)
+ '("Vref*" TeX-arg-ref)
+
+ ;; 5 Customization
+ "reftextbefore" "reftextfacebefore"
+ "reftextafter" "reftextfaceafter"
+ "reftextfaraway" "vreftextvario"
+ "reftextpagerange" "reftexlabelrange"
+ "vrefwarning" "vrefshowerrors"
+ '("fullref" TeX-arg-ref))
+
+ ;; Install completion for labels. Only offer completion for
+ ;; commands that take only one reference as an argument
+ (setq TeX-complete-list
+ (append
+ '(("\\\\[Vv]ref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
+ ("\\\\vref\\*?{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
+ ("\\\\Ref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
+ ("\\\\vref\\*{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
+ ("\\\\fullref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
+ ("\\\\vpageref\\*?\\(\\[[^]]*\\]\\)*{\\([^{}\n\r\\%,]*\\)"
+ 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
+ ("vpageref" "*[[{")
+ ("vrefrange" "*[{{")
+ ("vpagerefrange" "*[{{")
+ ("Ref" "{")
+ ("Vref" "*{")
+ ("fullref" "{"))
+ 'reference)
+ (font-latex-add-keywords '(("labelformat" "{{"))
+ 'function))
+
+ ;; Activate RefTeX reference style.
+ (and LaTeX-reftex-ref-style-auto-activate
+ (fboundp 'reftex-ref-style-activate)
+ (reftex-ref-style-activate "Varioref")))
+ LaTeX-dialect)
(defvar LaTeX-varioref-package-options
- '("draft" "final" "afrikaans" "american" "austrian" "naustrian" "basque"
- "brazil" "breton" "bahasam" "catalan" "croatian" "czech" "danish"
- "dutch" "english" "esperanto" "finnish" "french" "galician" "german"
- "icelandic" "ngerman" "greek" "italian" "magyar" "norsk" "nynorsk"
- "polish" "portuges" "romanian" "russian" "slovak" "slovene"
- "spanish" "swedish" "turkish" "ukrainian" "francais" "germanb")
+ '("afrikaans" "american" "arabic" "austrian" "naustrian" "basque"
+ "bahasam" "brazil" "breton" "bulgarian" "catalan" "croatian"
+ "czech" "danish" "dutch" "english" "esperanto" "finnish" "french"
+ "galician" "german" "ngerman" "greek" "icelandic" "italian" "magyar"
+ "norsk" "nynorsk" "polish" "portuges" "romanian" "russian"
+ "slovak" "slovene" "spanish" "swedish" "turkish" "ukrainian"
+ "francais" "germanb" "draft" "final" "space" "nospace")
"Package options for the varioref package.")
;;; varioref.el ends here
- [elpa] externals/auctex 43e98f1 55/80: Update style/titlesec.el to package version 2.11, (continued)
- [elpa] externals/auctex 43e98f1 55/80: Update style/titlesec.el to package version 2.11, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f127145 60/80: * context.el (ConTeXt-environment): Fix docstring., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8610189 52/80: Update style/paracol.el to package version 1.35, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c64d8c1 61/80: * doc/changes.texi: Mention fontification improvement for biblatex., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex dac5503 64/80: Add new style/ltugboat.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 52e0dac 68/80: Improve detecting of rejected optional arguments, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b,
Tassilo Horn <=
- [elpa] externals/auctex eafb114 75/80: Fix preview-latex for TeXLive 2019 update, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex cdb98c6 34/80: Fix last commit, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 0fd9848 35/80: Improve style/mflogo.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 1b88eda 38/80: Fix autoload generation code (bug#35758), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 90fcbd4 41/80: Make navigation function robust, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c07e4bf 49/80: Update style/AnonymousPro.el to package version 2.2, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a9b5eb1 67/80: ; * style/changelog.el (font-latex-add-keywords): Silence the compiler., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex dc5e90e 66/80: Add new style/multitoc.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c5e47f8 80/80: ; Recompile using GNUMakefile after merge from origin/master, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ff688b9 33/80: Stop depreciated usage of undeclared dynamic variable, Tassilo Horn, 2019/10/16