How do I put text in the 'enumerate' list by the inserted text can not be numbered, and that the bulleted list is not interrupted?
3 Answers
The enumitem
package defines a resume
option, with this syntax:
\usepackage{enumitem}
…
\begin{document}
\item
\item
…
\end{enumerate}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
\begin{enumerate}[resume]
\item
…
\end{enumerate}
The resume*
option uses the options of the previous enumerate environment
This enables more packages for list. One of them is mdwlist
which use the following syntax:
\begin{enumerate}
\item text
\item text
\suspend{enumerate}
some texts between enumerating
\resume{enumerate}
\item text
\item text
\item text
\end{enumerate}
of course, in preamble of your document you should add
\usepackage{mdwlist}
-
Isn't mdwlist incompatible with several other packages? There is one of these older packages that has some issues.– daleifCommented Oct 22, 2016 at 11:24
-
1Till to now I didn't observe any problems with it. I liked it because to my opinion has more logical syntax.– ZarkoCommented Oct 22, 2016 at 11:27
You can use the counter enumi
that is used to number the bullets. By setting \setcounter{enumi}{2}
the next bullet will have number 3, since it is increased before display. To get an automated system you can define your own counter where you save the value between two occurances of enumerate
.
\documentclass{article}
\usepackage{lipsum}
\newcounter{TMPenumnbr}
\begin{document}
\begin{enumerate}
\item First bullet
\item Second bullet
\setcounter{TMPenumnbr}{\value{enumi}}
\end{enumerate}
\lipsum[2]
\begin{enumerate}
\setcounter{enumi}{\value{TMPenumnbr}}
\item Third bullet
\item Fourth bullet
\end{enumerate}
\end{document}
\item[] some text here
?....