I want to produce output something like this:
1
.
List item2
.
Another list itemParagraph of comments on list items 1 and 2.
3
.
Further item4
.
Final item
I'm sure I've seen a nice way to interrupt and resume lists in this way (without explicitly setting some counter), but I can't reproduce it.
The environment where this happens is called cenumerate-- as in, continuing to enumerate. To employ this environment at any level k in i, ii, iii or iv, just employ the command \renewcommand{outlinek}{cenumerate} before the start of your outline. Be warned, this will even continue to count across outlines!
You can also use \addtocounter{enumi}{2} (for example, in your particular case) to skip 2 items.
You can create a numbered list with LaTex bullet points with the same code we used before, except with \begin{enumerate} and \end{enumerate} around the list items instead of \begin{itemize} and \end{itemize}.
I like enumitem for this sort of thing:
\documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate} \item List item \item Another list item \end{enumerate} Paragraph of comments on list items 1 and 2. \begin{enumerate}[resume] \item Further item \item Final item \end{enumerate} \end{document}
The TeX FAQ lists several ways of doing this. Read here for full details.
I've successfully used the mdwlist package (which is part of mdwtools) in my own documents. For example:
\documentclass{article}
\usepackage{mdwlist}
\begin{document}
\begin{enumerate}
\item List item
\item Another list item
\suspend{enumerate}
Paragraph of comments on list items 1 and 2.
\resume{enumerate}
\item Further item
\item Final item
\end{enumerate}
\end{document}
Thanks to Dervin Thunk for providing the FAQ link.
\documentclass{article}
\begin{document}
\begin{enumerate}
\item first;
\item second;
\end{enumerate}
This is a paragraph.
\begin{enumerate}
\setcounter{enumi}{2}
\item third;
\item and so on...
\end{enumerate}
\end{document}
edit: as pointed out by Dervin Thunk, I hardcoded 2 here.
so, here's a solution that seems to work:
\documentclass{article}
\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}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With