6

I use the enumitem package:

\usepackage[shortlabels]{enumitem}

And I put some numeration like this in a theorem environment with \theoremstyle{plain}:

\begin{prop}
    We have
        \begin{enumerate}[(i)]
            \item $χ(c_M)=-\Id_{σM}$,

        and if $π_0(M)=0$, 
            \item $χ(f_M)=-α_M^{-1}$.
        \end{enumerate}
\end{prop}

the [(i)] after \begin{enumerate} is supposed to make items indexed by (i)(ii)(iii). But in this theorem environment, as texts are italic, the (i)(ii)(iii) become funny things like (i)(ii)(iii). How do I fix it?

5

Instead of using the short labels method, you should specify the label with the key-value syntax that enumitem provides:

\begin{enumerate}[label={\upshape(\roman*)}]
5
  • Thanks. I did a global replacement of \begin{enumerate}[(i)]. Is there a way to make a short hand for this? typing that long string every time is a bit painful.
    – h__
    Mar 2 '13 at 4:06
  • BTW, what should I replace \begin{enumerate}[a)] with?
    – h__
    Mar 2 '13 at 4:07
  • OK I put [label=\upshape{\alph*)}] there.
    – h__
    Mar 2 '13 at 4:16
  • 1
    @hyh Your braces are in the wrong place: this should be label={\upshape\alph*)} \upshape does not take an argument.
    – Alan Munn
    Mar 2 '13 at 4:26
  • I use the function search and replacement of the EDITOR program to change quickly something like that if I already wrote wrong code and repeated in several places.
    – skpblack
    Jul 19 '14 at 19:48
2

You can also use the following:

\begin{enumerate}[label={\upshape(\roman*)}, align=left, widest=iii, leftmargin=*]

to get left-aligned roman (i), (ii), (iii), with no leftmargin, and the widest spacing taken to be (iii).

2

If you don't want to repeat theses options for every Theorem/Proposition/etc in your article, you can make the following global choice at the preamble:

\setlist[enumerate,1]{label={\upshape(\roman*)}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.