4

I have two enumerates

\documentclass[12pt]{article}
\begin{document}

\begin{enumerate}
\item 5 + 7 = 12
\item 9 + 1 = 10
\end{enumerate}

lorel ipsum, blah blah blah

\begin{enumerate}
\item 5 * 7 = 12
\item A+B = C
\end{enumerate}

\end{document}  

How can I make the item numbering goes like, 1,2,3,4 instead of 1,2,1,2? I know I can do by adding to second enumerate block

\setcounter{enumi}{3} 

but this can cause problems if i change first enumerate block later?

Emmet B
  • 1,159
  • 1
    Have you taken a look at the [enumitem][http://www.ctan.org/pkg/enumitem] package? – Mario S. E. Jan 19 '14 at 12:01
  • 3
    Load the enumitem package, and use \begin{enumerate}[series=foo] for your first enumerate environment, and \begin{enumerate}[resume=foo] for the second. Of course, the choice of name for the series is your own. – jub0bs Jan 19 '14 at 12:05

1 Answers1

4

Upon Mario's suggestion I found out that solution is really simple, just put [resume] after the enumerate like

\begin{enumerate}[resume]
\item 5 + 7 = 12
\item 9 + 1 = 10
\end{enumerate}
Emmet B
  • 1,159