Document Classes ⇒ Question on use of "enumerate"
Question on use of "enumerate"
I wonder if anybody here knows how to create a list labeled by (1), (2), (3) ...
I tried
\begin{enumerate}[{(1)}]
\item
\item
\end{enumerate}
and it doesn't work for me.
If I use
\begin{enumerate}
\item
\item
\end{enumerate}
It only produces lists like, 1, 2, 3,...
Thanks,
George
I tried
\begin{enumerate}[{(1)}]
\item
\item
\end{enumerate}
and it doesn't work for me.
If I use
\begin{enumerate}
\item
\item
\end{enumerate}
It only produces lists like, 1, 2, 3,...
Thanks,
George
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Question on use of "enumerate"
Use the enumitem package.
Code: Select all
\documentclass[a4paper]{article}
\usepackage[shortlabels]{enumitem}
\begin{document}
\begin{enumerate}[(1)]
\item One
\item Two
\item Three
\end{enumerate}
\end{document}
Re: Question on use of "enumerate"
Thank you so much! It works~
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Question on use of "enumerate"
Hi George,
with enumitem you can set this enumeration style globally:
I prefer \setenumerate because it sets the style in the preamble for the whole document instead of doing it several times in the document like \begin{enumerate}[(1)]. Specifying the style in the preamble is consistent and changes would be easy.
Stefan
with enumitem you can set this enumeration style globally:
Code: Select all
\documentclass[a4paper]{article}
\usepackage{enumitem}
\setenumerate[1]{label=(\arabic*)}
\begin{document}
\begin{enumerate}
\item One
\item Two
\item Three
\end{enumerate}
\end{document}
Stefan
LaTeX.org admin
Question on use of "enumerate"
You could also put in the preamble and every enumeration item on the first leve lwould be with a ")". Maybe you could use that to include a "(".
Code: Select all
%enumeration FIRST level with right parentheses
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{\theenumi{)}}
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Question on use of "enumerate"
Arabic is the default, so redefining \labelenumi would be sufficient then:
Stefan
Code: Select all
\renewcommand{\labelenumi}{(\theenumi)}
LaTeX.org admin