auctex-devel
[Top][All Lists]
Advanced

[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: Tue, 10 Mar 2015 17:49:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Tassilo Horn <tsdh <at> gnu.org> writes:

> Arash Esbati <esbati <at> gmx.de> writes:
>
> > 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.
> 
> Yes, I'd prefer that even if it's only for having more meaningful (read,
> human-understandable) entries in auto/yourdoc.el.

Will do.  As a final polish, I tweaked
`LaTeX-enumitem-SetEnumitemValue-regexp' to ignore the 3. argument (usually
(La)TeX-code not relevant for the style).  Now, the result looks like this:

--8<---------------cut here---------------start------------->8---
\documentclass[a4paper,10pt]{article}
\usepackage[inline]{enumitem}

%% Next lines entered with `C-c RET SetEnumitemValue RET ...'
\SetEnumitemValue{leftmargin}{standard}{ignore}
\SetEnumitemValue{leftmargin}{semistandard}{ignore}
\SetEnumitemValue{leftmargin}{almoststandard}{ignore}

\begin{document}
Value of `LaTeX-enumitem-SetEnumitemValue-list':
((("\\SetEnumitemValue{leftmargin}{almoststandard}" "leftmargin"
"almoststandard"))
 (("\\SetEnumitemValue{leftmargin}{semistandard}" "leftmargin" "semistandard")
  ("\\SetEnumitemValue{leftmargin}{standard}" "leftmargin" "standard")))

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

I will do some final testing and send a patch for both styles this weekend.

Best, Arash




reply via email to

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