auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] [corrected patch]


From: Uwe Brauer
Subject: Re: [AUCTeX-devel] [corrected patch]
Date: Fri, 30 Dec 2016 14:38:42 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

   > Hi Uwe,
   > Uwe Brauer <address@hidden> writes:


   > If I get it right, the class has more options.  I think it should be:

   > (defvar LaTeX-exam-class-options
   >   '("answers" "noanswers"
   >     "cancelspace" "nocancelspace"
   >     "addpoints")
   >   "Class options for the exam class.")


Oops where did you find that? I thought I looked up the manual. But you
are right (as (almost) always)).


   > exam loads article.cls and takes the same class options and pass them to
   > article.  You can implement this within AUCTeX by doing something like
   > this in the style hook:

   > (TeX-run-style-hooks "article")

   > ;; Add options from `LaTeX-article-class-options' only once:
   > (dolist (opt LaTeX-article-class-options)
   >   (add-to-list 'LaTeX-exam-class-options opt))


Do you mean

(TeX-add-style-hook
 "exam"
 (lambda ()
; begin code from arash
   (TeX-run-style-hooks "article")

   ;; Add options from `LaTeX-article-class-options' only once:
   (dolist (opt LaTeX-article-class-options)
     (add-to-list 'LaTeX-exam-class-options opt))
; end code from arash


???
   > I think all these environments take an optional height argument, and
   > solutionorgrid is missing.  You should write:

   > (LaTeX-add-environments '("solution" [ "Height" ])
   >                    '("solutionorbox" [ "Height" ])
   >                    '("solutionorlines" [ "Height" ])
   >                    '("solutionordottedlines" [ "Height" ])
   >                    '("solutionorgrid" [ "Height" ])

ok


   > You have a dupe here.  Hope this helps.


Of course it did.

Uwe 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]