Hi, Here's a style/exercise.el, a style file for exercise.sty (it's in texlive). Would you agree to include it in auctex ?
Nicolas. >From c5d9dd52256f619f7309872ad374303b4bc857c2 Mon Sep 17 00:00:00 2001 From: Nicolas Richard <[email protected]> Date: Mon, 17 Mar 2014 19:28:14 +0100 Subject: [PATCH] Add style/exercise.el for exercise.sty --- ChangeLog | 3 +++ Makefile.in | 3 ++- style/exercise.el | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 style/exercise.el 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 -- 1.8.5.2 _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
