emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 28/299: * Makefile.in (STYLESRC): Enable memoir.el style. * style


From: Stefan Monnier
Subject: [elpa] 28/299: * Makefile.in (STYLESRC): Enable memoir.el style. * style/memoir.el: New style.
Date: Sun, 02 Nov 2014 03:10:00 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit 014a6e803428a42fa80a8783b808f50d1384b4a0
Author: Tassilo Horn <address@hidden>
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  <address@hidden>
+
+       * Makefile.in (STYLESRC): Enable memoir.el style.
+
+2013-01-14  Mads Jensen  <address@hidden>
+
+       * style/memoir.el: New style.
+
 2013-01-14  Mos� Giordano  <address@hidden>
 
         * 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 <address@hidden>
+;; Maintainer: address@hidden
+;; 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]