Hi,

Very basic style file for memoir.  The memoir manual itself is
approximately 550 pages (maybe more now, because I use TeX Live from
2009), and much of the material in the manual is taken from package
documentation from those packages that are emulated; I've added a few of
the symbols from section 6.4 where there was no reference to a package,
and thus, there shouldn't be any overlap with symbols from other style
files that may be provided later, or are already present.  But in the
future, it may be nice to expand this style file so that there is
completion for more/all of the symbols provided by memoir, if this is
considered a good idea?

The documentation for TeX-run-style-hooks doesn't mention that style
files are only loaded if they exist.  I had to skim in the source code.
Maybe this should be emphasized?
--
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
My brain is my second favorite organ.
      -- Woody Allen
;;; 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" [ "Pagestyle" ] 1 "Title")
     '("newleadpage*" [ "Pagestyle" ] 1 "Title")
     '("renewleadpage*" [ "Pagestyle" ] 1 "Title")
     '("renewleadpage*" [ "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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to