Enumerate: continuing from previous one
How to have the bullet number continue from a previous enumeration.
Say you have an enumeration with 3 items:
\begin{enumerate}
\item foo
\item bar
\item baz
\end{enumerate}
At times it is necessary to, possibly after some text, do another enumeration, but starting where the previous one left of. I.e., with the bullet numbers starting at (in this example) 4. A simple way to accomplish this—without needing additional packages—is to first, add a custom counter to the preamble:
\newcounter{auxCounter}
And then, add the end of the first enumeration, store the current bullet number:
\begin{enumerate}
\item foo
\item bar
\item baz
\setcounter{auxCounter}{\value{enumi}}
\end{enumerate}
And finally, restore it at the start of the second enumeration:
\begin{enumerate}
\setcounter{enumi}{\value{auxCounter}}
\item lorem ipsum
\item whatever
\end{enumerate}
This new enumeration will now start at 4.
April 18, 2024. Got feedback? See the contact page.