When my proof end with an enumeration resp. a formula, the qed-symbol is set in a new line. But I want it to be in the last line of the enumeration resp. the formula.
Here is my code:
\documentclass[ngerman, fontsize=11pt, DIV=15, ,BCOR = 10mm, parskip=half-, twoside]{scrbook}
\usepackage{amsmath, amsthm}
\usepackage{cleveref}
\begin{document}
\begin{proof}
We want to prove
\begin{enumerate}
\item that this is true
\item and that the QED-symbol is not on this line. But it is not, and that makes me sad.
\end{enumerate}
\end{proof}
%
\begin{proof}
We want to prove that
\begin{align*}
1+2 = 4
\end{align*}
\end{proof}
\end{document}
amsthm
you can only do it manually using\qedhere
in the list and\tag*{\qedhere}
inalign*
. Note that thentheorem
package can do this automatically with the right options (though their algorithm is fragile, for example no blank lines before\end
)\qedhere
to close this as a duplicate of. I'm sure a lot of newer users run into this. Maybe someone should write a canonical answer?\qedhere
doesn't work inalign*
if there's no&
on the particular line. Butalign*
for a single equation is wrong to begin with.