]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex/style/MinionPro.el
Remove version numbers in packages/ directory
[gnu-emacs-elpa] / packages / auctex / style / MinionPro.el
1 ;;; MinionPro.el -- AUCTeX style for MinionPro.sty
2
3 ;; Copyright (C) 2005 Free Software Foundation, Inc.
4
5 ;; Author: Mark Trettin <Mark.Trettin@gmx.de>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2005-11-26
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 `MinionPro.sty' (v2.0).
30
31 ;;; Code
32
33 (TeX-add-style-hook
34 "MinionPro"
35 (lambda ()
36 (TeX-add-symbols
37 ;; New symbols
38 '("figureversion"
39 (TeX-arg-eval completing-read "Figure style: "
40 '(("text") ("osf")
41 ("lining") ("lf")
42 ("tabular") ("tab")
43 ("proportional") ("prop"))))
44 '("smallfrac" "Numerator" "Denominator")
45 '("slantfrac" "Numerator" "Denominator")
46 ;; IMHO they should be added to the other \text.. and \..shape commands
47 '("textsw" 1)
48 '("textssc" 1)
49 "sscshape"
50 "swshape")
51 ;; Run style hook for amsmath which is loaded via MnSymbol
52 (TeX-run-style-hooks "amsmath")
53 ;; Fontification
54 (when (and (featurep 'font-latex)
55 (eq TeX-install-font-lock 'font-latex-setup))
56 (font-latex-add-keywords '(("smallfrac" "{{")
57 ("slantfrac" "{{")
58 ("textsw" "{")
59 ("textssc" "{"))
60 'textual)
61 (font-latex-add-keywords '(("figureversion" "{")) 'variable))))
62
63 (defvar LaTeX-MinionPro-package-options
64 '("smallfamily" "medfamily" "fullfamily" "noopticals" "opticals"
65 "slides" "textosf" "mathosf" "osf" "textlf" "mathlf" "lf"
66 "mathtabular" "mnsy" "cmsy" "swash" "abx" "amsbb" "fourierbb"
67 "lucidabb" "mixedgreek" "italicgreek" "frenchmath" "minionint"
68 "footnotefigures")
69 "Package options for the MinionPro package.")
70
71 ;;; MinionPro.el ends here