Outlines With Enumerate In LaTeX

March 7, 2006 – 4:08 pm

I needed to find an easy way the other day to make a simple list in LaTeX. Specifically, I was recreating a problem set, and the problems were numbered one through three but were aligned nicely. I tried using the tabular environment to recreate it, but that wasn’t working. And then I found the enumerate environment.

Want to see a simple example?

Simple outline in LaTeX 1

I created this outline with the following TeX file:

\documentclass{article}
\begin{document}

\begin{enumerate}
\item This is the first item in my list.
\item Now I am on to the second item.
\item Here is the third and final item in my list.
\end{enumerate}

\end{document}

I can also create a list with a sub-list inside of it:

Simple outline in LaTeX 2

The above output was created with the following TeX file:

\documentclass{article}
\begin{document}

\begin{enumerate}
\item This is the first item in my list.
\begin{enumerate}
\item This is the first item in my sub-list.
\item Here is another sub-list item.
\end{enumerate}
\item Now I am on to the second item.
\item Here is the third and final item in my list.
\end{enumerate}

\end{document}

Do you want the outline to be lettered instead of numbered?

Simple outline in LaTeX 3

You can use the following code:

\documentclass{article}
\begin{document}

\renewcommand{\labelenumi}{\Alph{enumi}.}
\renewcommand{\labelenumii}{\alph{enumii}.}

\begin{enumerate}
\item This is the first item in my list.
\begin{enumerate}
\item This is the first item in my sub-list.
\item Here is another sub-list item.
\end{enumerate}
\item Now I am on to the second item.
\item Here is the third and final item in my list.
\end{enumerate}

\end{document}

Finally, what if you wanted the letters to be surrounded by parentheses?

Simple outline in LaTeX 4

You can just adjust the renewcommand statement, as in the following:

\documentclass{article}
\begin{document}

\renewcommand{\labelenumi}{(\Alph{enumi})}
\renewcommand{\labelenumii}{(\alph{enumii})}

\begin{enumerate}
\item This is the first item in my list.
\begin{enumerate}
\item This is the first item in my sub-list.
\item Here is another sub-list item.
\end{enumerate}
\item Now I am on to the second item.
\item Here is the third and final item in my list.
\end{enumerate}

\end{document}

In fact, you are at liberty to do a lot of things with the renewcommand statement. In the above example, I used \renewcommand{\labelenumi}{(\Alph{enumi})} to get a letter surrounded by parentheses. In the example above that, the {(\Alph{enumi})} was instead {\Alph{enumi}.}, where the parentheses were removed and a following period was added. You can remove the period to just display a letter with no accompanying punctuation.

If you wanted the first level of the outline to be numbered, but the second level to be lettered, you could use \renewcommand{\labelenumii}{(\alph{enumii})}, where you have only changed the second level of the outline.

  1. 12 Responses to “Outlines With Enumerate In LaTeX”

  2. great, thx! exactly what i’d been looking for.

    By woizanizer on Oct 31, 2006 at 12:46 pm

  3. I have a problem: I set \renewcommand{\labelenumi}{(\alph{enumi})}, however, I also use \label and \ref’s in the enumeration. Although compiling several times hoping it still needed just to update, it doesn’t seem to change the references, i.e. it shows (2) instead of (b) when referring to the second item.

    By J.S. Poorta on Feb 8, 2007 at 9:38 am

  4. OK, I found a solution:
    \renewcommand{\theenumi}{(\alph{enumi})}
    \renewcommand{\labelenumi}{\theenumi}

    By J.S. Poorta on Feb 8, 2007 at 9:52 am

  5. How to get the following:

    i) This is the first item in the list.
    ii) Now I am on to the second item.
    iii) Here is the final item

    I want replacement of (A),(B) and (C) with i),ii) and (iii) respectively.If the requirement is

    1. This is the first item.
    (i) First item in the sub-list
    (ii) Second item in the sub-list
    2. Second item
    3. Third item.
    What is the way out?

    By S.N.Bhadra on May 24, 2007 at 10:26 pm

  6. Replace \Alph with \arabic and \alph with \roman. Then remove the parentheses around \arabic{enumi}.

    By jjk on May 25, 2007 at 1:39 pm

  7. Found your site from Google, the first \renewcommand was exactly what I was looking for. Thanks!

    By Sloane Wiktorowicz on Feb 6, 2008 at 9:07 am

  8. What about the cross-referencing? I’m trying to put a label for something like

    \begin{enumerate}[N1]
    \item \label{one}the very first
    \item \label{two}the very second
    \end{enumerate}

    But when I call them by “\ref{one}” or “\ref{two}”, I read “1″ or “2″ but not “N1″ or “N2″. What’s the problem here?

    By Yusuf Gören on Mar 2, 2008 at 12:36 pm

  9. You need to change your \labelenumi in your header:

    \renewcommand{\labelenumi}{(N\arabic{enumi})}

    That will give you N1, N2, etc.

    By jjk on Mar 5, 2008 at 10:12 am

  10. Whoops, I did it incorrectly. It should be

    \renewcommand{\theenumi}{(N\alph{enumi})}
    \renewcommand{\labelenumi}{\theenumi}

    just as in the comment from J.S. Poorta above.

    By jjk on Mar 5, 2008 at 10:32 am

  11. Thank you. That was well presented and easy to follow.

    By Thomas on Mar 21, 2008 at 8:31 am

  12. i want to enumerate the numbers in the form
    [1]
    [2]
    so on in latex
    please give suggestions

    By waseem on Apr 2, 2008 at 12:10 am

  13. Seriously? You couldn’t figure this out? It’s nearly identical to the letters surrounded by parentheses example above. Put

    \renewcommand{\labelenumi}{[\arabic{enumi}]}

    in your preamble.

    By jjk on Apr 2, 2008 at 8:52 am

Post a Comment