I have a figure at the end of a proof
environment (see MWE below). I would like to have the QED symbol that ends the proof on the same line of the figure caption. Placing \qedhere
after or inside \caption
did not do it. Any suggestion is appreciated.
Thanks.
\documentclass{article}
\usepackage{amsthm,amssymb}
\usepackage{lipsum}
\renewcommand{\qedsymbol}{$\blacksquare$}
\begin{document}
\begin{proof}
\lipsum[1]
\begin{figure}[h]
\centering
%\includegraphics{...}
\caption{Figure caption.} \qedhere
\end{figure}
\end{proof}
\end{document}
\inputgraphic
and\captionof
is much more reliable in this department. Even so,\qedhere isn't going to work by itself, but a negative
\vspace` before the\end{proof}
should work. I'm sure this has been asked before, but I can't find it at the moment.