I use amsmath
to provide the proof
environment. However, if a itemize
(or tikzpicture
) environment immediately follows the proof
environment, xelatex
will produce a messy result:
\begin{proof}
\begin{itemize}
\item 1
\item 2
\end{itemize}
\end{proof}
Will produce something like this:
Proof. * 1
- 2
So I have to manually add a \mbox
after the proof
env. Is it possible to make proof
automatically add a newline in these situations?
($\Rightarrow$)
). Having a long (or even short) proof with a shifted margin makes for bad pages.proof
: only add a new line when the first 'thing' inside theproof
isitemize
,enumerate
,description
,tikzpicture
, or something like these environments. Seems I did not make it clear in the first place. Sorry about that.tikzpicture
, and without\mbox{}
, thetikzpicture
will float at the top of theproof
environment: