[OS X TeX] Custom labels in Paralist

Alain Schremmer schremmer.alain at gmail.com
Tue Jan 5 17:15:17 EST 2010


On Jan 5, 2010, at 4:56 PM, Ross Moore wrote:

> Hi Alain,
>
> On 06/01/2010, at 8:34 AM, Alain Schremmer wrote:
>
>>> \begin{enumerate}[(A)]
>>> \setcounter{enumi}{12}
>>> \item foo
>>> \item bar
>>> \end{enumerate}
>>
>> With great disappointment, I must report that the above didn't  
>> work: I still got (A) foo, (B) bar
>>
>>> The enumitem package allows you to specify the starting counter  
>>> in the list setup.  But if you're happy with paralist, you might  
>>> as well stick with it.
>>
>> \setcounte{enumi} didn't work with paralist either. Since it is  
>> really occasional, I will try enumitem tomorrow.
>>
>> The reason I would like to have it is only to list:
>>
>> M. foo
>> N. bar
>> O. fly
>> P. whatever
>
> This is inside another list, of Exercises, or Exercise Sets, yes?

A big SIGH: The i after enum did ring a very faint bell but . . . not  
loud enough.

> Then the counter might be  {enumii} , or {enumiii},
> or even {enumiv}, etc.
>
> The counter name increases (with roman numerals) for each
> increase in depth of nested counters.
>
>
> Alternatively, you can define your own counter
>
>    \newcounter{mycount}  %  once, in the preamble
>
> and always use this:
>
>>> \begin{enumerate}[(A)]
>    \usecounter{mycount}
>>> \setcounter{mycount}{12}
>    ...
>
>
> This is all explained in any LaTeX book.

Quite true! I had once read about it in Companion2ed and that is what  
the faint bell was about. And I am going to define my own counter  
because this is deep inside probsoln and I was afraid to mess up its  
innards.

Very embarrassed but very grateful regards to both Munn and you.
--schremmer



More information about the MacOSX-TeX mailing list