25

I would like to force latex enumerate environment to output (1), (2),... in place of 1., 2. that he gives by default. How could I do this ?

I don't need to do it in my whole document but in some places only. Hence I should only make modifications in the chosen enumerate environment.

lockstep
  • 250,273
mwoua
  • 1,369
  • 3
  • 15
  • 24
  • Not totally the answer, but should give you a good hint – darthbith Sep 13 '13 at 12:40
  • @darthbith Thanks. The link you provided answered my question. I posted it as an answer. Should I delete my question? – mwoua Sep 13 '13 at 12:42
  • This is not totally a duplicate, only here I've found how to avoid trailing periods in custom list numbering. – mmj Jan 17 '19 at 01:28

2 Answers2

32

Here's a solution that doesn't require loading a separate package (such as enumerate or enumitem): Just issue the command

\renewcommand\labelenumi{(\theenumi)}

in a TeX group, before \begin{enumerate}. (To make the scope of \renewcommand\labelenumi{(\theenumi)} global, place the instruction in the preamble.)

Here's the output of an MWE that also shows how one may cross-reference enumerated items:

enter image description here

\documentclass{article}
\begin{document}

\begingroup \renewcommand\labelenumi{(\theenumi)} \begin{enumerate} \item A first item. \label{item:1} \item A second item. \label{item:2} \end{enumerate} \endgroup \noindent Here are some cross-references to items \ref{item:1} and \ref{item:2}.

\end{document}

Mico
  • 506,678
  • Thanks for your answer. I'll keep it in mind but here I only need to do this on one list in my whole document so I can't use this solution – mwoua Sep 13 '13 at 12:55
  • 5
    @mwoua -- If it's only one enumerated list in the entire document for which the labels need to be changed to (1), (2), etc., you could write { \renewcommand\labelenumi{(\theenumi)} (note the presence of the left curly brace) immediately before the list in question and } after the list. Doing so will limit the scope of the redefinition of \labelenumi to the group defined by the pair of curly braces. – Mico Sep 13 '13 at 13:00
  • 1
    I found the following significantly easier to implement, simply add [label=(\arabic*)] after \begin{enumerate}. – apgsov Oct 31 '21 at 18:26
  • @AlexanderHepburn - Thanks. I actually fully agree! :-) But please note the age of my answer -- it's more than 8 years old by now -- and that I was careful to write that it was "a solution that doesn't require loading a separate package". Not sure if, back then, the enumitem package had the functionality to recognize the option label=(\arabic*)... – Mico Oct 31 '21 at 18:41
26

Finally I found what I was looking for

\usepackage{enumerate}

\begin{enumerate}[{(1)}]
\item 
.
.
.
\end{enumerate}
mwoua
  • 1,369
  • 3
  • 15
  • 24