I'm trying to create a document with exercies and solutions. Since exercises often come in different parts (such as (a), (b) and so on), I want to use lists for the solutions. However, solutions are often complicated and need some formatting to be well understable. Therefore I need a list environment with flexible formatting such as stetting different paragraphs within an item.
I am using enumitem
, but the inline list environment enumerate*
doesn't accept paragraphs and seems to cause other minor problems. What alternatives do I have?
Here is a piece of code:
\begin{solution}
\begin{enumerate*}[label=(\alph*)]
\item {Text with, separated by an empty line
to set a new paragraph}
\end{enumerate*}
\end{solution}
An this is the output I get:
Here is a full minimal example:
\documentclass{scrreprt}
\PassOptionsToPackage{amsmath,thmmarks,thref}{ntheorem}
\PassOptionsToPackage{inline}{enumitem}
\usepackage{amsmath,MnSymbol}
\usepackage{ntheorem,thmtools}
\usepackage{
enumitem,
}
\declaretheoremstyle{plain}
\declaretheorem[style=plain,numbered=no,name=Proof]{proof}
\begin{document}
\begin{proof}
\begin{enumerate*}[label=(\alph*),mode=unboxed]
\item {A text
separated by an empty line}
\end{enumerate*}
\end{proof}
\end{document}
Again, here is my output:
enumerate
would allow paragraph breaks within items. IMHO it does not make sense to have paragraph breaks in an inline list.\label
and\ref
...