I want my theorems be ended by a diamond. It works fine, except when there is an equation at the end, then the diamond is in a new, empty line. With the following MWE, I get this:
Here is my MWE:
\documentclass[ngerman, fontsize=11pt, DIV=15, BCOR = 10mm,parskip=half-, twoside]{scrbook}
\usepackage{babel}
\newcommand{\thmend}{\hfill\mbox{$\diamond$}}
\usepackage{cleveref}
\crefname{thm}{Theorem}{Theorems}
\newtheorem{thm}{Theorem}
\begin{document}
\begin{thm}
This works fince because it's in one line. \thmend
\end{thm}
\begin{thm}
This does not work because:
\[
1+2=3
\]\thmend
\end{thm}
\end{document}
If I set \thmend
right after the equation, the diamond comes right after the 3 and not at the end of the line.