I'm using the enumerate
environment to make a numbered list. I want to write a paragraph that serves as information for the next items. I want to remove the indent on this paragraph of text, so that it is indented just as much as the numbers in the list. How do I do this?
This is in essence what I've done. I've tried using \noindent,
but without success.
\documentclass{book}
\begin{document}
\section*{Exercises}
Here are some exercises.
\begin{enumerate}
\item This is the first exercise.
\item This is the second exercise.
Here is some information to answer the questions below. This paragraph
should be indented just as much as the numbers in the list are.
\item This is the third exercise.
\item This is the fourth exercise.
\end{enumerate}
\end{document}
The output is:
Best Answer
Here is a solution that uses the
enumitem
package: it hasresume
optional parameter and aseries
notion for enumerate environments. So I define aquest
series, and aninform
series, that are formatted so that the inform series leftmargin is exactly where labels of the quest series begin.The information could be made of several paragraphs. I don't know if you want those after the first one to be indented. In my code they are; if you do not want this indentation, just remove
listparindent=\parindent
.