[texhax] Nested enumeration.

Rolf Turner r.turner at auckland.ac.nz
Thu Dec 20 02:51:54 CET 2007


On 20/12/2007, at 1:17 PM, Eduardo wrote:

> On Wednesday 19 December 2007 17:54, Rolf Turner wrote:
>> I want to produce a nested set of lists numbered in an ``i.j'' style.
>> I.e. I want something like
>>
>> 	1. Blah.
>>             1.1 blah
>>             1.2 blah blah
>>
>> 	2. Blah Blah.
>> 	    2.1 blah
>>             2.2 blah blah
>>             2.3 blah blah blah
>>
>> 	3. Blah Blah Blah
>> 		<etc>
>>
>
> \usepackage{enumitem}

That's exactly what I needed; thank you very much.

To elaborate slightly for those who, like myself, struggle with these  
things:

After putting \usepackage{enumitem} in the preamble, add the command:

\setenumerate[2]{label=\theenumi.\arabic*}

and that will give numbering of nested enumerate environments exactly as
I wanted.  Note that endless varieties of labelling styles may be  
obtained
in a similar fashion.  The documentation file enumitem.pdf gives lots of
detail and is lucidly written.  (The author, whose first language is  
apparently
Spanish, apologises quite unnecessarily for his English, which is  
actually
excellent.)

The argument ``2'' inside the square brackets refers to the second level
(inner) enumerate environment; ``\theenumi'' refers to the counter  
for the
outer enumerate environment which is called ``enumi''.

Thanks again.

		cheers,

			Rolf Turner

######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################


More information about the texhax mailing list