monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 014a6e803428a42fa80a8783b808f50d1384b4a0
Author: Tassilo Horn <[email protected]>
Date: Mon Jan 14 19:21:55 2013 +0000
* Makefile.in (STYLESRC): Enable memoir.el style.
* style/memoir.el: New style.
---
ChangeLog | 8 +++++
Makefile.in | 3 +-
style/memoir.el | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 92 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aea739e..147b6ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-01-14 Tassilo Horn <[email protected]>
+
+ * Makefile.in (STYLESRC): Enable memoir.el style.
+
+2013-01-14 Mads Jensen <[email protected]>
+
+ * style/memoir.el: New style.
+
2013-01-14 Mos� Giordano <[email protected]>
* latex.el (TeX-arg-environment): Fix typo.
diff --git a/Makefile.in b/Makefile.in
index 874058a..ad4edf9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -127,7 +127,8 @@ STYLESRC = style/prosper.el \
style/mathtools.el style/ragged2e.el style/amssymb.el \
style/lscape.el style/epigraph.el style/mflogo.el \
style/multirow.el style/imakeidx.el style/afterpage.el \
- style/longtable.el style/lipsum.el style/kantlipsum.el
+ style/longtable.el style/lipsum.el style/kantlipsum.el \
+ style/memoir.el
STYLEELC = $(STYLESRC:.el=.elc)
CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
diff --git a/style/memoir.el b/style/memoir.el
new file mode 100644
index 0000000..fa4c593
--- /dev/null
+++ b/style/memoir.el
@@ -0,0 +1,82 @@
+;;; memoir.el --- AUCTeX style for `memoir.cls'
+
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; Author: Mads Jensen <[email protected]>
+;; Maintainer: [email protected]
+;; Created: 2012-12-28
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING. If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `memoir.cls'. Memoir is a very extensive
+;; document class that lets you configure things very easily; `memoir'
+;; loads (emulates) a lot of classes.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "memoir"
+ (lambda ()
+ (TeX-add-symbols
+ ;; 6.4 Book and part headings
+ "beforebookskip" "afterbookskip"
+ "beforepartskip" "afterpartskip"
+
+ "printbookname" "booknamefont"
+ "booknamenum"
+ "printbooknum" "booknumfont"
+ "printpartname" "partnamefont"
+ "partnamenum"
+ "printpartnum" "partnumfont"
+
+ '("printbooktitle" "Title")
+ "booktitlefont"
+ '("printparttitle" "Title")
+ "parttitlefont"
+
+ '("bookpagemark" "Title")
+ '("partmark" "Title")
+
+ "bookpageend" "bookblankpage" "nobookblankpage"
+ "partpageend" "partblankpage" "nopartblankpage"
+
+ '("newleadpage" [ TeX-arg-pagestyle ] 1 "Title")
+ '("newleadpage*" [ TeX-arg-pagestyle ] 1 "Title")
+ '("renewleadpage*" [ TeX-arg-pagestyle ] 1 "Title")
+ '("renewleadpage*" [ TeX-arg-pagestyle ] 1 "Title")
+
+ "leadpagetoclevel")
+
+ ;; Emulated packages. The `memoir' class contains a list of files
+ ;; emulated at the end of the class-file
+ (TeX-run-style-hooks
+ "abstract" "appendix" "array" "booktabs" "ccaption"
+ "changepage" "chngcntr" "chngpage" "crop" "dcolumn"
+ "delarray" "enumerate" "epigraph" "ifmtarg" "ifetex"
+ "ifluatex" "ifpdf" "ifxetex" "index" "makeidx" "moreverb"
+ "mparhack" "needspace" "newfile" "nextpage" "pagenote"
+ "parskip" "patchcmd" "setspace" "shortvrb" "showidx"
+ "tabularx" "titleref" "titling" "tocbibind" "tocloft"
+ "verbatim" "verse")
+
+ (LaTeX-largest-level-set "chapter")))
+
+;;; memoir.el ends here