I have left Harvard as of July 1, 2008 to take a position at NYU. This website has been cached and left static. Feel free to browse my new website, aka "What the heck is a Clinical Associate Professor?"

05.25.07

LaTeX package of the week: enumitem

Posted in LaTeX at 9:06 am by leingang

Last week I wrote about the enumerate package which customizes the ordered list environment. It’s very useful, but if you want to do more, enumitem is for you.

This package takes many more optional arguments using the keyval-style interface. This means in order to get a list labeled (a)…(b)…(c)… you can type

\begin{enumerate}[label=(\alph*)]
\item item the first
\item item the second
\item item the third
\end{enumerate}

So far this is the same functionality as enumerate with more cumbersome syntax. But there are lots of other optional arguments you can use as well. For instance, on tests I want not only ordered lists of problem parts, but lots of space between the list items for the students to work. With enumitem I can type

\begin{enumerate}[label=(\alph*),itemsep=\fill]
\item Derive the equation …
\item Now solve the equation.
\end{enumerate}
\vfill

The package’s documentation has lots of other examples.


technorati tags:, , ,


Blogged with Flock

Comments are closed.