AUCTeX Sync -- New Style Files
[packages] / xemacs-packages / auctex / style / fbb.el
1 ;;; fbb.el --- AUCTeX style for `fbb.sty' (v1.07)
2
3 ;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
4
5 ;; Author: Arash Esbati <arash@gnu.org>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2014-11-19
8 ;; Keywords: tex
9
10 ;; This file is part of AUCTeX.
11
12 ;; AUCTeX is free software; you can redistribute it and/or modify it
13 ;; under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; any later version.
16
17 ;; AUCTeX is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 ;; 02110-1301, USA.
26
27 ;;; Commentary:
28
29 ;; This file adds support for `fbb.sty' (v1.07) from 2015/04/06.
30 ;; `fbb.sty' is part of TeXLive.
31
32 ;;; Code:
33
34 (TeX-add-style-hook
35  "fbb"
36  (lambda ()
37
38    ;; Run style hook for various packages loaded by fbb
39    (TeX-run-style-hooks "textcomp" "fontaxes")
40
41    ;; New symbols
42    (TeX-add-symbols
43
44     ;; Only preamble command
45     '("useosf"  0)
46
47     ;; Text commands
48     '("lfstyle"   -1)   ; lf declaration
49     '("tlfstyle"  -1)   ; tlf declaration
50     '("osfstyle"  -1)   ; osf declaration
51     '("tosfstyle" -1)   ; tosf declaration
52     '("sufigures" -1)   ; superior figures declaration
53     '("textlf"     t)   ; proportional lining figures
54     '("texttlf"    t)   ; tabular lining figures
55     '("textosf"    t)   ; proportional oldstyle figures
56     '("texttosf"   t)   ; tabular oldstyle figures
57     '("textsu"     t))  ; superior figures
58
59    ;; Fontification
60    (when (and (featurep 'font-latex)
61               (eq TeX-install-font-lock 'font-latex-setup))
62      (font-latex-add-keywords '(("textlf"    "{")
63                                 ("texttlf"   "{")
64                                 ("textosf"   "{")
65                                 ("texttosf"  "{")
66                                 ("textsu"    "{"))
67                               'type-command)
68      (font-latex-add-keywords '(("lfstyle"   "")
69                                 ("tlfstyle"  "")
70                                 ("osfstyle"  "")
71                                 ("tosfstyle" "")
72                                 ("sufigures" ""))
73                               'type-declaration)))
74  LaTeX-dialect)
75
76 (defvar LaTeX-fbb-package-options
77   '("lining" "osf" "oldstyle" "tabular" "p" "proportional"
78     "scale" "scaled" "scosf" "sups")
79   "Package options for the fbb package.")
80
81 ;;; fbb.el ends here