Promote Your Blog
Google

Friday, March 23, 2012

How To Continue Numbering in Enumerate From Previous List?

To pause and resume, enumerate using following (taken from a website and works wonderfully)

\newcounter{tempcounter}

\begin{document}

\begin{enumerate}
\item first;

\item second;
\setcounter{tempcounter}{\value{enumi}}
\end{enumerate}

This is a paragraph.

\begin{enumerate}
\setcounter{enumi}{\value{tempcounter}}
\item third;

\item and so on...
\end{enumerate}
\end{document}

Remember, \newcounter{tempcounter} goes before \begin{document}

No comments:

Post a Comment