branch: externals/auctex
commit dc5e90e18ee2084ac71f18d7b6627dca3210ac80
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Add new style/multitoc.el
* Makefile.in (STYLESRC): Add new style.
* style/multitoc.el: New file
---
Makefile.in | 3 ++-
style/multitoc.el | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 70bd71c..bee090e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -169,7 +169,8 @@ STYLESRC = style/prosper.el \
style/xltabular.el style/marginnote.el style/thmtools.el \
style/ocg-p.el style/ocgx.el style/thm-restate.el \
style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
- style/changelog.el style/ltugboat.el style/beamerswitch.el
+ style/changelog.el style/ltugboat.el style/beamerswitch.el \
+ style/multitoc.el
STYLEELC = $(STYLESRC:.el=.elc)
diff --git a/style/multitoc.el b/style/multitoc.el
new file mode 100644
index 0000000..43fa817
--- /dev/null
+++ b/style/multitoc.el
@@ -0,0 +1,48 @@
+;;; multitoc.el --- AUCTeX style for `multitoc.sty' (v2.01)
+
+;; Copyright (C) 2019 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <[email protected]>
+;; Maintainer: [email protected]
+;; Created: 2019-09-07
+;; 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 `multitoc.sty' (v2.01) from 1999/06/08.
+;; `multitoc.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "multitoc"
+ (lambda ()
+ (TeX-run-style-hooks "multicol" "ifthen")
+ (TeX-add-symbols
+ "multicolumntoc"
+ "multicolumnlot"
+ "multicolumnlof"))
+ LaTeX-dialect)
+
+(defvar LaTeX-multitoc-package-options
+ '("toc" "lof" "lot")
+ "Package options for the multitoc package.")
+
+;;; multitoc.el ends here