Initial Commit
[packages] / xemacs-packages / auctex / style / memoir.el
1 ;;; memoir.el --- AUCTeX style for `memoir.cls'
2
3 ;; Copyright (C) 2012 Free Software Foundation, Inc.
4
5 ;; Author: Mads Jensen <mje@inducks.org>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2012-12-28
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 `memoir.cls'.  Memoir is a very extensive
30 ;; document class that lets you configure things very easily; `memoir'
31 ;; loads (emulates) a lot of classes.
32
33 ;;; Code:
34
35 (TeX-add-style-hook
36  "memoir"
37  (lambda ()
38    (TeX-add-symbols
39     ;; 6.4 Book and part headings
40     "beforebookskip" "afterbookskip"
41     "beforepartskip" "afterpartskip"
42
43     "printbookname" "booknamefont"
44     "booknamenum"
45     "printbooknum" "booknumfont"
46     "printpartname" "partnamefont"
47     "partnamenum"
48     "printpartnum" "partnumfont"
49
50     '("printbooktitle" "Title")
51     "booktitlefont"
52     '("printparttitle" "Title")
53     "parttitlefont"
54
55     '("bookpagemark" "Title")
56     '("partmark" "Title")
57
58     "bookpageend" "bookblankpage" "nobookblankpage"
59     "partpageend" "partblankpage" "nopartblankpage"
60
61     '("newleadpage"    [ TeX-arg-pagestyle ] 1 "Title")
62     '("newleadpage*"   [ TeX-arg-pagestyle ] 1 "Title")
63     '("renewleadpage*" [ TeX-arg-pagestyle ] 1 "Title")
64     '("renewleadpage*" [ TeX-arg-pagestyle ] 1 "Title")
65
66     "leadpagetoclevel")
67
68    ;; Emulated packages.  The `memoir' class contains a list of files
69    ;; emulated at the end of the class-file
70    (TeX-run-style-hooks
71     "abstract" "appendix" "array" "booktabs" "ccaption"
72     "changepage" "chngcntr" "chngpage" "crop" "dcolumn"
73     "delarray" "enumerate" "epigraph" "ifmtarg" "ifetex"
74     "ifluatex" "ifpdf" "ifxetex" "index" "makeidx" "moreverb"
75     "mparhack" "needspace" "newfile" "nextpage" "pagenote"
76     "parskip" "patchcmd" "setspace" "shortvrb" "showidx"
77     "tabularx" "titleref" "titling" "tocbibind" "tocloft"
78     "verbatim" "verse")
79
80    (LaTeX-largest-level-set "chapter"))
81  LaTeX-dialect)
82
83 ;;; memoir.el ends here