Initial Commit
[packages] / xemacs-packages / auctex / style / scrpage2.el
1 ;;; scrpage2.el --- AUCTeX style for scrpage2.sty.
2
3 ;; Author:   Ralf Angeli <angeli@iwi.uni-sb.de>
4 ;; Created:  2003-11-01
5 ;; Keywords: tex
6
7 ;; This file is part of AUCTeX.
8
9 ;; AUCTeX is free software; you can redistribute it and/or modify it
10 ;; under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 3, or (at your option)
12 ;; any later version.
13
14 ;; AUCTeX is distributed in the hope that it will be useful, but
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 ;; General Public License for more details.
18
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
21 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 ;; 02110-1301, USA.
23
24 ;;; Commentary:
25
26 ;; This file adds support for `scrpage2.sty'.
27
28 ;;; Code:
29
30 (TeX-add-style-hook
31  "scrpage2"
32  (lambda ()
33
34    ;; New symbols
35    (TeX-add-symbols
36     '("lehead" [ "scrplain-left-even" ] "scrheadings-left-even")
37     '("cehead" [ "scrplain-center-even" ] "scrheadings-center-even")
38     '("rehead" [ "scrplain-right-even" ] "scrheadings-right-even")
39     '("lefoot" [ "scrplain-left-even" ] "scrheadings-left-even")
40     '("cefoot" [ "scrplain-center-even" ] "scrheadings-center-even")
41     '("refoot" [ "scrplain-right-even" ] "scrheadings-right-even")
42     '("lohead" [ "scrplain-left-odd" ] "scrheadings-left-odd")
43     '("cohead" [ "scrplain-center-odd" ] "scrheadings-center-odd")
44     '("rohead" [ "scrplain-right-odd" ] "scrheadings-right-odd")
45     '("lofoot" [ "scrplain-left-odd" ] "scrheadings-left-odd")
46     '("cofoot" [ "scrplain-center-odd" ] "scrheadings-center-odd")
47     '("rofoot" [ "scrplain-right-odd" ] "scrheadings-right-odd")
48     '("ihead" [ "scrplain-inside" ] "scrheadings-inside")
49     '("chead" [ "scrplain-center" ] "scrheadings-center")
50     '("ohead" [ "scrplain-outside" ] "scrheadings-outside")
51     '("ifoot" [ "scrplain-inside" ] "scrheadings-inside")
52     '("cfoot" [ "scrplain-center" ] "scrheadings-center")
53     '("ofoot" [ "scrplain-outside" ] "scrheadings-outside")
54     '("clearscrheadfoot")
55     '("clearscrheadings")
56     '("clearscrplain")
57     '("automark" [ "Right page" ] "Left page")
58     '("headmark")
59     '("manualmark")
60     '("pagemark")
61     '("leftmark")
62     '("rightmark")
63     '("setfootwidth" [ "Offset" ] "Width")
64     '("setheadwidth" [ "Offset" ] "Width")
65     '("setfootbotline" [ "Length" ] "Thickness")
66     '("setfootsepline" [ "Length" ] "Thickness")
67     '("setheadtopline" [ "Length" ] "Thickness")
68     '("setheadsepline" [ "Length" ] "Thickness")
69     '("deftripstyle" "Name" [ "Thickness of outer line" ]
70       [ "Thickness of inner line" ] "Inner box of page head"
71       "Center box of page head" "Outer box of page head"
72       "Inner box of page foot" "Center box of page foot"
73       "Outer box of page foot")
74     '("defpagestyle" "Name" "Head definition" "Foot definition")
75     '("newpagestyle" "Name" "Head definition" "Foot definition")
76     '("renewpagestyle" "Name" "Head definition" "Foot definition")
77     '("providepagestyle" "Name" "Head definition" "Foot definition"))
78
79     ;; Fontification
80    (when (and (featurep 'font-latex)
81               (eq TeX-install-font-lock 'font-latex-setup))
82      (font-latex-add-keywords '(("lehead" "[{")
83                                 ("cehead" "[{")
84                                 ("rehead" "[{")
85                                 ("lefoot" "[{")
86                                 ("cefoot" "[{")
87                                 ("refoot" "[{")
88                                 ("lohead" "[{")
89                                 ("cohead" "[{")
90                                 ("rohead" "[{")
91                                 ("lofoot" "[{")
92                                 ("cofoot" "[{")
93                                 ("rofoot" "[{")
94                                 ("ihead" "[{")
95                                 ("chead" "[{")
96                                 ("ohead" "[{")
97                                 ("ifoot" "[{")
98                                 ("cfoot" "[{")
99                                 ("ofoot" "[{")
100                                 ("automark" "[{")
101                                 ("setfootwidth" "[{")
102                                 ("setheadwidth" "[{")
103                                 ("setfootbotline" "[{")
104                                 ("setfootsepline" "[{")
105                                 ("setheadtopline" "[{")
106                                 ("setheadsepline" "[{"))
107                               'variable)
108      (font-latex-add-keywords '(("deftripstyle" "{[[{{{{{{")
109                                 ("defpagestyle" "{{{")
110                                 ("newpagestyle" "{{{")
111                                 ("renewpagestyle" "{{{")
112                                 ("providepagestyle" "{{{"))
113                               'function)))
114  LaTeX-dialect)
115
116 (defvar LaTeX-scrpage2-package-options '("headinclude" "headexclude"
117                                          "footinclude" "footexclude"
118                                          "mpinclude" "mpexclude"
119                                          "headtopline" "headsepline"
120                                          "footsepline" "footbotline"
121                                          "plainheadtopline" "plainheadsepline"
122                                          "plainfootsepline" "plainfootbotline"
123                                          "ilines" "clines" "olines"
124                                          "automark" "manualmark"
125                                          "autooneside" "markuppercase"
126                                          "markusedcase" "nouppercase"
127                                          "komastyle" "standardstyle")
128   "Package options for the scrpage2 package.")
129
130 ;;; scrpage2.el ends here