Lists with LaTeX

While writing documents one needs lists. Usually the lists are either numbered or with bullet. The standard enumerate option in LaTeX by default provides Arabic-Hindu numbers for the list.

The standard syntax is as under:

\item First item
\item Second item

This will produce a list with Arabic-Hindu numbers with the items at each head.

In case one wanted a list with bullets, we can use the itemize environment.

\item First item
\item Second item

This will produce a list with with bullets
There is yet another environment description which can take user supplied options for list headings.
For example:

\item[First] First item
\item[Second] Second item

In this case the descriptors in square brackets after the \item will be used as the item titles. So when I required any alphabetical list, I used to make list in the description environment and put the alphabets/ descriptors manually.

So far so good.

Recently I had to make a list with Roman numerals instead of Arabic ones. The list was fairly long so manual option seemed to be a very un-LaTeX kind of thing to do. Just a little googling and I found a treasury of options that can be used with the standard enumerate environment. This was the enumitem package.

The package provides various options for the enumerate environment like label and its formatting, style, alignment,  indent, vertical and horizontal spacing etc.

The label options that are available are \alph, \Alph, \arabic, \roman and \Roman,
These can be intialised by using


After this the regular \item will produce list with alphabets, numbers or roman numerals.

Please see the documentation for more details.

Suppose you have a list which is split in many parts. You can use resume function to continue with numbering left off in the last part of the list. The resume function can be named and you can have different lists to resume.


About The Mitr

I am The Mitr, The Friend
This entry was posted in computers, latex and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s