]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex/style/varioref.el
Remove version numbers in packages/ directory
[gnu-emacs-elpa] / packages / auctex / style / varioref.el
1 ;;; varioref.el --- AUCTeX style file with support for varioref.sty
2
3 ;; Copyright (C) 1999 Free Software Foundation, Inc.
4
5 ;; Author: Carsten Dominik <dominik@strw.leidenuniv.nl>
6 ;; Maintainer: auctex-devel@gnu.org
7
8 ;; This file is part of AUCTeX.
9
10 ;; AUCTeX is free software; you can redistribute it and/or modify it
11 ;; under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 3, or (at your option)
13 ;; any later version.
14
15 ;; AUCTeX is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
22 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 ;; 02110-1301, USA.
24
25 ;;; Code:
26
27 (TeX-add-style-hook "varioref"
28 (lambda ()
29
30 (TeX-add-symbols
31
32 ;; The macros with label arguments
33 '("vref" TeX-arg-label)
34 '("vpageref" [ "Same page text" ] [ "different page text" ] TeX-arg-label)
35 '("fullref" TeX-arg-label)
36
37 ;; And the other macros used for customization
38 "reftextbefore" "reftextfacebefore"
39 "reftextafter" "reftextfaceafter"
40 "reftextfaraway" "vreftextvario" "vrefwarning")
41
42 ;; Install completion for labels
43 (setq TeX-complete-list
44 (append
45 '(("\\\\vref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
46 ("\\\\vpageref\\(\\[[^]]*\\]\\)*{\\([^{}\n\r\\%,]*\\)"
47 2 LaTeX-label-list "}"))
48 TeX-complete-list))))
49
50 (defvar LaTeX-varioref-package-options '("draft" "final" "afrikaans"
51 "american" "austrian" "naustrian"
52 "brazil" "breton" "catalan" "croatian"
53 "czech" "danish" "dutch" "english"
54 "esperanto" "finnish" "french"
55 "galician" "german" "ngerman" "greek"
56 "italian" "magyar" "norsk" "nynorsk"
57 "polish" "portuges" "romanian"
58 "russian" "slovak" "slovene"
59 "spanish" "swedish" "turkish"
60 "francais" "germanb")
61 "Package options for the varioref package.")
62
63 ;;; varioref.el ends here