# HG changeset patch # User Uwe Brauer # Date 1471550679 0 # Thu Aug 18 20:04:39 2016 +0000 # Node ID ca281aeb1e42314d036d0f10bf898462f9593b2f # Parent af8e2165a1d479e01fda5aec642684bdfb609ec4 # Parent 1e055dc2c51373ee9235dba9a62f4696ea21332d Add style/exam.sty modifiy Makefile.in diff --git a/Makefile.in b/Makefile.in --- a/Makefile.in +++ b/Makefile.in @@ -155,7 +155,8 @@ style/newfloat.el style/subcaption.el style/AlegreyaSans.el \ style/hologo.el style/theorem.el style/ntheorem.el \ style/splitidx.el style/tikz.el style/xcolor.el \ - style/pdflscape.el style/commath.el style/empheq.el + style/pdflscape.el style/commath.el style/empheq.el \ + style/examn.el STYLEELC = $(STYLESRC:.el=.elc) diff --git a/style/exam.el b/style/exam.el new file mode 100644 --- /dev/null +++ b/style/exam.el @@ -0,0 +1,62 @@ +;;; exam.el --- AUCTeX style for the (LaTeX) exam package + +;; Copyright (C) 2016 Free Software Foundation + +;; Author: Uwe Brauer +;; Created: 2016-03-06 +;; 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 the exam package. + +;;; Code: + +(defvar LaTeX-exam-class-options '("answers" "rldocument") + "Package options for the exam package.") + +(TeX-add-style-hook "exam" + (lambda () + (LaTeX-add-environments + "questions" + "solution" + "solutionorbox" + "parts" + "subparts" + "subsubparts") + (TeX-add-symbols + '("droppoints" 0) + '("part" TeX-arg-examn-points 0) + '("subpart" TeX-arg-examn-points 0) + '("subsubpart" TeX-arg-examn-points 0) + '("droptotalpoints" 0) + '("RL" 1) + '("titledquestion" "Title" ["Points"] TeX-arg-label) + '("question" ["Points"] TeX-arg-label))) + LaTeX-dialect) + + + + + + + + +;;; exam.el ends here