One of the proofs in my paper ends with a multi-line equation. Unfortunately, when I put the QED sign at the end via the \qedhere command, it does not end up at the end of the line like the other QED signs (it also throws a warning that \qedhere may not work correctly). The difference is not big, but it's kind of annoying. How to make it right?
EDIT: now I see that a similar question has already been asked, but that was five years ago (and the suggested workaround does not seem to work). Has nothing changed?
MWE:
\documentclass{amsart}
\begin{document}
\begin{proof}
This is the first proof.
\end{proof}
\begin{proof}
This is another proof.
\begin{multline}
6\cdot 9=\\
42\qedhere
\end{multline}
\end{proof}
\end{document}


amsthm. – egreg Jun 01 '18 at 13:33ntheorem(and thearticleclass), everything is fine – and I don't have to type\qedhere. – Bernard Jun 01 '18 at 14:57amsthmoption? – Bernard Jun 01 '18 at 15:13ntheorem, such as also loadingamsthm. Can you compile the very code you posted (just modified to use ntheorem)? – Bernard Jun 01 '18 at 18:17[amsmath, thmmarks, standard]options it defines aproofenvironment (and lemma, theorem, definition &c.). If you don't like the details of the layout, it's easy to customise. – Bernard Jun 01 '18 at 19:15