AUCTeX Sync -- New Style Files
[packages] / xemacs-packages / auctex / style / mn2e.el
1 ;;; mn2e.el --- AUCTeX style for `mn2e.cls' version 2.2.
2
3 ;; Copyright (C) 2015 Free Software Foundation, Inc.
4
5 ;; Maintainer: auctex-devel@gnu.org
6 ;; Author: Mosè Giordano <mose@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 ;; This file adds support for `mn2e.cls' version 2.2.
29
30 ;;; Code:
31
32 (TeX-add-style-hook
33  "mn2e"
34  (lambda ()
35    (if (LaTeX-provided-class-options-member "mn2e" "usegraphicx")
36        (TeX-run-style-hooks "graphicx"))
37    (if (LaTeX-provided-class-options-member "mn2e" "usenatbib")
38        (TeX-run-style-hooks "natbib"))
39    (if (LaTeX-provided-class-options-member "mn2e" "usedcolumn")
40        (TeX-run-style-hooks "dcolumn"))
41    (TeX-add-symbols
42     ;; 4.5.3 Bold Greek
43     "balpha"
44     "bbeta"
45     "bgamma"
46     "bdelta"
47     "bepsilon"
48     "bzeta"
49     "boldeta"
50     "btheta"
51     "biota"
52     "bkappa"
53     "blambda"
54     "bmu"
55     "bnu"
56     "bxi"
57     "bpi"
58     "brho"
59     "bsigma"
60     "btau"
61     "bupsilon"
62     "bphi"
63     "bchi"
64     "bpsi"
65     "bomega"
66     "bvarepsilon"
67     "bvartheta"
68     "bvarpi"
69     "bvarrho"
70     "bvarsigma"
71     "bvarphi"
72     ;; 4.5.5 Special symbols
73     "getsto"
74     "cor"
75     "lid"
76     "gid"
77     "sol"
78     "sog"
79     "lse"
80     "gse"
81     "grole"
82     "leogr"
83     "loa"
84     "goa"
85     "sun"
86     "earth"
87     "degr"
88     "diameter"
89     "sq"
90     "squareforqed"
91     "fd"
92     "fh"
93     "fm"
94     "fs"
95     "fdg"
96     "farcm"
97     "farcs"
98     "fp"
99     "arcmin"
100     "arcsec"
101     "micron"
102     ;; Authors' notes
103     '("title" ["Short title"] "Long title")
104     '("author" ["Short author(s)"] (LaTeX-arg-author "Long author(s)"))
105     "newauthor"
106     "nokeywords"
107     "plate"
108     "contcaption"
109     '("bmath" "Math text")
110     '("mathbfss" "Text")
111     '("textbfss" "Text")
112     '("mathbfit" "Text")
113     '("textbfit" "Text")
114     ;; Editors' notes
115     "pagerange"
116     "volume"
117     "pubyear"
118     "journal"
119     "bsp")
120    (if (LaTeX-provided-class-options-member "mn2e" "useAMS")
121        (TeX-add-symbols
122         ;; 4.5.4 Upright Greek characters
123         "upi"
124         "umu"
125         "upartial"
126         "leqslant"
127         "geqslant"
128         "la"
129         "ga"))
130    (LaTeX-add-environments
131     "keywords"
132     "abstract"
133     "proof")
134    (LaTeX-add-pagestyles
135     "headings"
136     "myheadings"
137     "titlepage"
138     "plate")
139    (LaTeX-add-counters
140     "part"
141     "section"
142     "subsection"
143     "subsubsection"
144     "paragraph"
145     "subparagraph"
146     "dummy"
147     "table"
148     "figure")
149    (LaTeX-add-lengths
150     "realparindent"
151     "bibhang")
152
153    ;; Fontification
154    (when (and (featurep 'font-latex)
155               (eq TeX-install-font-lock 'font-latex-setup))
156      (font-latex-add-keywords '(("author" "[{")
157                                 ("title" "[{")
158                                 ("newauthor")
159                                 ("nokeywords" "{")
160                                 ("plate" "{")
161                                 ("contcaption" "{")
162                                 ("pagerange" "{")
163                                 ("volume" "{")
164                                 ("pubyear" "{")
165                                 ("journal")
166                                 ("bsp"))
167                               'function)))
168  LaTeX-dialect)
169
170 (defvar LaTeX-mn2e-class-options
171   '("useAMS" "usegraphicx" "usenatbib" "usedcolumn"
172     "doublespacing" "galley" "landscape" "letters" "onecolumn" "referee")
173   "Package options for the mn2e package.")
174
175 ;; mn2e.el ends here