"Arash Esbati" <[email protected]> writes:
Hi Arash,
> emacs ist not happy and exits with:
>
> let: Wrong number of arguments: #[(optional key-val-alist) ...
>
> Any idea what is going wrong here? TIA.
`TeX-arg-key-val' has two mandatory arguments and you've omitted the
first. But that function inserts the arguments it prompts for (i.e., it
doesn't return them as a string), so your code wouldn't work also for
that reason.
--8<---------------cut here---------------start------------->8---
(defvar LaTeX-enumitem-key-val-options
'(;;
("topsep")
("partopsep")
("label")
("label*")
("align" ("left" "right" "parleft")))
"Key=value options for enumitem macros and environments.")
(TeX-add-style-hook
"enumitem"
(lambda ()
;; New environments
(LaTeX-add-environments
'("itemize" LaTeX-env-args [TeX-arg-key-val LaTeX-enumitem-key-val-options])
'("enumerate" LaTeX-env-args [TeX-arg-key-val
LaTeX-enumitem-key-val-options])
'("itemize*" LaTeX-env-args [TeX-arg-key-val
LaTeX-enumitem-key-val-options])
'("enumerate*" LaTeX-env-args [TeX-arg-key-val
LaTeX-enumitem-key-val-options]))))
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex