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}


amsthmyou can only do it manually using\qedherein the list and\tag*{\qedhere}inalign*. Note that thentheorempackage can do this automatically with the right options (though their algorithm is fragile, for example no blank lines before\end) – daleif May 24 '23 at 15:20\qedhereto close this as a duplicate of. I'm sure a lot of newer users run into this. Maybe someone should write a canonical answer? – Willie Wong May 24 '23 at 20:49\qedheredoesn't work inalign*if there's no&on the particular line. Butalign*for a single equation is wrong to begin with. – egreg May 24 '23 at 21:51