1 ;;; epigraph.el --- AUCTeX style for `epigraph.sty'
3 ;; Copyright (C) 2012 Free Software Foundation, Inc.
5 ;; Author: Mads Jensen <mje@inducks.org>
6 ;; Maintainer: auctex-devel@gnu.org
10 ;; This file is part of AUCTeX.
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)
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.
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
29 ;; This file adds support for `epigraph.sty'.
39 '("epigraphhead" [ "Distance (a number)" ] t)
40 '("dropchapter" TeX-arg-size)
52 (LaTeX-add-environments
53 '("epigraphs" LaTeX-env-item))
55 (add-to-list 'LaTeX-item-list '("epigraphs" . LaTeX-epigraph-qitem))
57 (when (and (featurep 'font-latex)
58 (eq TeX-install-font-lock 'font-latex-setup))
59 (font-latex-add-keywords '(("epigraph" "{{")
62 ("epigraphhead" "{")) 'function)
63 (font-latex-add-keywords '("cleartoevenpage") 'warning)))
66 (defvar LaTeX-epigraph-package-options nil
67 "Package options for the epigraph package.")
69 ;; adapted from latex.el:`LaTeX-item-bib'
70 (defun LaTeX-epigraph-qitem ()
71 "Insert a new qitem for use in the epigraphs environment."
72 (TeX-insert-macro "qitem"))
74 ;;; epigraph.el ends here