Ikumi Keita <ik...@ikumi.que.jp> writes:

>>>>>> Arash Esbati <ar...@gnu.org> writes:
>
> That's the point I'd like to know.  I think that the code would usually
> suffice, too.  I wonder why `LaTeX-provided-class-options' has a
> structure which allows more than one class.  Under what situation can it
> have more than one entry?

Hi Keita,

sorry for my late response.  My bet would have the `standalone' class,
but you know that already :-)

>> I think it is cleaner to set this variable outside the style hook and
>> write something like this:
>
>>     (defvar LaTeX-empheq-package-options
>>       (progn
>>         (TeX-load-style "mathtools")
>>         (append LaTeX-mathtools-package-options
>>                 '("overload" "overload2"
>>                   "ntheorem" "newmultline"
>>                   "oldmultline")))
>>       "Package options for the empheq package.")
>
>> WDYT?
>
> With this code, if the user sets the variable in init file, the expected
> code isn't evaluated so the addtional entries are not appended.  Thus I
> think it's better to put `TeX-load-style' and `append' outside the
> `defvar'.

Thanks for looking at this and fixing the code.

While we're at it: I think I found some unnecessary parentheses in the
option management of geometry.el and graphicx.el which I removed[1].
Please feel free to revert the patch if I'm missing something.

Best, Arash

Footnotes: 
[1]  
http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=8b5e53d9f55bdf06e529096156845f660a8d03dc


_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to