[Top][All Lists]

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

Re: [AUCTeX-devel] New style enumitem.el

From: Arash Esbati
Subject: Re: [AUCTeX-devel] New style enumitem.el
Date: Mon, 9 Mar 2015 09:42:42 +0000 (UTC)
User-agent: Loom/3.14 (

Tassilo Horn <tsdh <at>> writes:

Hi Tassilo,

> Arash Esbati <esbati <at>> writes:
> Hi Arash,
> > this patch adds support for `enumitem.sty'.  Any comments welcome.
> Also applied.  Thanks!  Just a nitpick below.

Thanks for installing the file.

> Instead of adding some random number, you could instead add here what
> the original match would have been if the \SetEnumitemValue would have
> been parsed in the file, i.e.,
>   (list (concat "\\SetEnumitemValue{" key "}{" val "}")
>         key val)

Your approach is of course more elegant (surprise ;-), but reg. the final
result, it doesn't make a difference (see below).

> I think with your current approach, you'll get duplicate entries for the
> same key-value options, one being
>   (<random-number> "key" "val")
> and one being
>   ("\\SetEnumitemValue{key}{val}" "key" "val")

No, there are no dups.  After a `C-c C-n',
`LaTeX-enumitem-SetEnumitemValue-list' is updated, the numbers are vanished
and the entries look like this:

   ("\\SetEnumitemValue{key}{val}{replacement-text}" "key" "val")

--8<---------------cut here---------------start------------->8---

%% Next lines entered with `C-c RET SetEnumitemValue RET ...'


Value of `LaTeX-enumitem-SetEnumitemValue-list':
((("1877263063476403189" "leftmargin" "almoststandard"))
 (("1189325255950269246" "leftmargin" "standard")
  ("1512365411982726166" "leftmargin" "semistandard")))

After `C-c C-n', value of `LaTeX-enumitem-SetEnumitemValue-list':
((("\\SetEnumitemValue{leftmargin}{standard}{ignore}" "leftmargin" "standard")
  ("\\SetEnumitemValue{leftmargin}{semistandard}{ignore}" "leftmargin"
  ("\\SetEnumitemValue{leftmargin}{almoststandard}{ignore}" "leftmargin"
--8<---------------cut here---------------end--------------->8---

Functionality-wise, I don't see any problems.  But I can get rid of those
random numbers, for sure.  So I would say it's your call: should I send a
small patch for this?  I would have to update caption.el as well.

Thank you and best, Arash

reply via email to

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