monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 7223ec441ca3ecfda23f66d8d44d33eda75d9b27
Author: Nicolas Richard <[email protected]>
Date: Tue Mar 18 23:05:42 2014 +0100
Add new style/exercise.el.
* style/exercise.el: New file.
Signed-off-by: Tassilo Horn <[email protected]>
---
ChangeLog | 3 ++
Makefile.in | 3 +-
style/exercise.el | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2273fca..31b5104 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2014-03-17 Nicolas Richard <[email protected]>
+
+ * style/exercise.el: New file.
2014-03-18 Tassilo Horn <[email protected]>
* doc/auctex.texi: Mention that `TeX-PDF-mode' is enabled by
diff --git a/Makefile.in b/Makefile.in
index 3f463a7..b69cf0c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -133,7 +133,8 @@ STYLESRC = style/prosper.el \
style/array.el style/kpfonts.el style/acro.el \
style/acronym.el style/xparse.el style/fancyvrb.el \
style/tabulary.el style/fontspec.el style/unicode-math.el \
- style/luacode.el style/metalogo.el style/english.el
+ style/luacode.el style/metalogo.el style/english.el \
+ style/exercise.el
STYLEELC = $(STYLESRC:.el=.elc)
CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
diff --git a/style/exercise.el b/style/exercise.el
new file mode 100644
index 0000000..6dfb179
--- /dev/null
+++ b/style/exercise.el
@@ -0,0 +1,62 @@
+;;; exercise.el --- AUCTeX style for `exercise.sty'
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Nicolas Richard <[email protected]>
+;; Created: 2014-03-17
+;; 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 `exercise.sty'.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "exercise"
+ (lambda ()
+ (LaTeX-add-environments
+ '("Exercise")
+ '("Exercise*")
+ '("Answer")
+ '("ExerciseList")
+ )
+ (TeX-add-symbols
+ '("Exercise")
+ '("Exercise*")
+ '("Answer")
+ '("ExePart")
+ '("ExePart*")
+ '("Question")
+ '("subQuestion")
+ '("ExeText")
+ '("ExerciseSelect")
+ '("ExerciseStopSelect")
+ '("refAnswer")
+ '("marker")
+ '("DifficultyMarker")
+ '("listofexercises")
+ '("ListOfExerciseInToc")
+ '("ExerciseLevelInToc"))))
+
+(defvar LaTeX-exercise-package-options '("noexercise" "noanswer"
"exerciseonly" "answeronly" "nothing" "answerdelayed" "exercisedelayed"
"lastexercise")
+ "Package options for the exercise package.")
+
+;;; exercise.el ends here