I have a weird behavior of the \qedhere
command while using amsmath
in combination with autonum
.
Consider the minimal (not working) example below: In unreferenced equation with \qedhere
(Theorem 2) the qed symbol is not shown at all. Not using the autonum
package obviously resolves this issue, but then both equations are numbered. Is there a way to get \qedhere
working with autonum
?
Another (maybe related) problem occurs if the \usepackage{amsmath}
- line is commented out. Now the second, unreferenced equation gets the right qed symbol but the referenced equation does not display correctly (the diamond is shown in front of the numbering "(1)" ).
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{autonum}
\declaretheoremstyle[qed=$\diamondsuit$]{myTheorem}
\declaretheorem[style=myTheorem]{theorem}
\begin{document}
Refer to equation \ref{eq:eq1}.
\begin{theorem}
\begin{equation}\label{eq:eq1}
a = b+c \qedhere
\end{equation}
\end{theorem}
\begin{theorem}
\begin{equation}
a = b+c \qedhere
\end{equation}
\end{theorem}
\end{document}
\qedhere
from both the equations I get the symbol in both the equations.\qedhere
with a numbered equation, particularly if the equation numbers are on the right margin. To be honest, I'd be very cautious with ending a proof with an equation. Since you don't know whether your equation will get numbered, just add some words after it to end the proof.