]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex/style/subfigure.el
Remove version numbers in packages/ directory
[gnu-emacs-elpa] / packages / auctex / style / subfigure.el
1 ;;; subfigure.el --- AUCTeX style file for subfigure.sty
2
3 ;; Copyright (C) 2003, 2005 Free Software Foundation, Inc.
4
5 ;; Author: Reiner Steib <Reiner.Steib@gmx.de>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Keywords: tex
8
9 ;; This file is part of AUCTeX.
10
11 ;; AUCTeX is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 3, or (at your option)
14 ;; any later version.
15
16 ;; AUCTeX is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
23 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 ;; 02110-1301, USA.
25
26 ;;; Commentary:
27
28 ;; AUCTeX style file for subfigure.sty
29
30 ;;; Code:
31
32 (TeX-add-style-hook
33 "subfigure"
34 (lambda ()
35 (TeX-add-symbols
36 '("subfigure" [ "list entry" ] [ "sub caption" ] "figure")
37 '("subtable" [ "list entry" ] [ "sub caption" ] "figure")
38 '("Subref" TeX-arg-label)
39 '("subref" TeX-arg-label))
40 ;; TODO: add \subfig* lengths
41
42 ;; Install completion for labels:
43 (setq TeX-complete-list
44 (append
45 '(("\\\\subref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
46 ("\\\\Subref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}"))
47 TeX-complete-list))
48 ;; Fontification
49 (when (and (featurep 'font-latex)
50 (eq TeX-install-font-lock 'font-latex-setup))
51 (font-latex-add-keywords '(("subfigure" "[[{")
52 ("subtable" "[[{"))
53 'textual)
54 (font-latex-add-keywords '(("Subref" "{")
55 ("subref" "{"))
56 'reference))))
57
58 (defvar LaTeX-subfigure-package-options '("normal" "hang" "center"
59 "centerlast" "nooneline"
60 "raggedright" "isu" "anne"
61 "scriptsize" "footnotesize"
62 "small" "normalsize" "large"
63 "Large" "rm" "sf" "tt" "md"
64 "bf" "up" "it" "sl" "sc" "RM"
65 "SF" "TT" "MD" "BF" "IT" "SL"
66 "SC" "UP" "figbotcap"
67 "figtopcap" "tabbotcap"
68 "tabtopcap" "FIGBOTCAP"
69 "FIGTOPCAP" "TABBOTCAP"
70 "TABTOPCAP" "loose" "tight")
71 "Package options for the subfigure package.")
72
73 ;;; subfigure.el ends here