[Tex/LaTex] Enumerate package wont allow to change format

#enumerateenumitemieeetranroman numerals

I have a [journal]{IEEEtran} document (I just don't want to change the document type). The command enumerate won't let me put, for example, roman numbers. I am doing it this way:

\begin{enumerate}[i]
...
\end{enumerate}

How do I enumerate with roman numbers then (not loading any other packages)?

Best Answer

Can you use enumitem?

Global modification:

\documentclass[journal]{IEEEtran} 
\usepackage{enumitem}
\setlist[enumerate]{label=\roman*}  %% for all enumerate environments
\begin{document}
\begin{enumerate}
 \item One
 \item Two
\end{enumerate}
\end{document}

enter image description here

Local modification:

\documentclass[journal]{IEEEtran}
\usepackage{enumitem}
%\setlist[enumerate]{label=\roman*}
\begin{document}
\begin{enumerate}[label=\roman*]
 \item One
 \item Two
\end{enumerate}
\end{document}

Or emulating enumerate package:

\documentclass[journal]{IEEEtran} 
\usepackage[shortlabels]{enumitem}
%\setlist[enumerate]{label=\roman*}
\begin{document}
\begin{enumerate}[i]
 \item One
 \item Two
\end{enumerate}
\end{document}

enter image description here

If you pass shortlabels option to enumitem, it can emulate the functionality of enumerate package. Hence \begin{enumerate}[i] is applicable to only one enumerate environment where it is being used.

You can also define a new environment renumerate (say)

\documentclass[journal]{IEEEtran}
\usepackage{enumitem}
\newlist{renumerate}{enumerate}{1}
\setlist[renumerate]{label=\roman*}
\begin{document}
With \verb|renumerate|:
\begin{renumerate}
 \item One
 \item Two
\end{renumerate}

Regulae \verb|enumerate|:
\begin{enumerate}
 \item One
 \item Two
\end{enumerate}
\end{document}