Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to suspend and resume an enumerated list, with Roman numerals. I am using the enumerate and mdwlist packages and have the following:

\begin{enumerate}[I]
\item Item
\item Item
\suspend{enumerate}
Text in between...
\resume{enumerate}
\item Item
\item Item
\end{enumerate}

But the way it comes out is that the first two items (before suspending) are numbered I and II (as desired), and the second two items (after resuming) are numbered 3 and 4. How do I get those to be numbered III and IV?

share|improve this question
    
Welcome to TeX.sx! –  Peter Jansson Mar 3 '13 at 16:21
add comment

1 Answer

up vote 8 down vote accepted

As the documentation of mdwlist shows, you need to repeat the optional argument to enumerate in this situation; it needs a couple of extra level of brackets:

Sample output

\documentclass{article}

\usepackage{enumerate,mdwlist}

\begin{document}
\begin{enumerate}[I]
\item Item
\item Item
\suspend{enumerate}
Text in between...
\resume{enumerate}[{[I]}]
\item Item
\item Item
\end{enumerate}
\end{document}

Alternatively you can used the enumitem package with the shortlabels option to get the same syntax for specifying labels in enumerate and use its resume* option for the resumed list.

\documentclass{article}

\usepackage[shortlabels]{enumitem}

\begin{document}
\begin{enumerate}[I]
\item Item
\item Item
\end{enumerate}
Text in between...
\begin{enumerate}[resume*]
\item Item
\item Item
\end{enumerate}
\end{document}
share|improve this answer
    
Ah, I see. Couldn't find that in the documentation! Thanks. –  Sam Mar 3 '13 at 16:16
    
Its page 5, just before the Implementation section. –  Andrew Swann Mar 3 '13 at 16:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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