![将以图结尾的证明的 QED 符号放在图标题的同一行](https://linux22.com/image/468373/%E5%B0%86%E4%BB%A5%E5%9B%BE%E7%BB%93%E5%B0%BE%E7%9A%84%E8%AF%81%E6%98%8E%E7%9A%84%20QED%20%E7%AC%A6%E5%8F%B7%E6%94%BE%E5%9C%A8%E5%9B%BE%E6%A0%87%E9%A2%98%E7%9A%84%E5%90%8C%E4%B8%80%E8%A1%8C.png)
我在环境末尾有一个图proof
(见下面的 MWE)。我希望将结束证明的 QED 符号放在图标题的同一行上。放在\qedhere
后面或里面\caption
都没有效果。任何建议都值得赞赏。
谢谢。
\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}
答案1
为了说明比顿的评论:
请注意,标题包\dp\strutbox
在底部基线中添加了一个附加内容。
\documentclass{article}
\usepackage{amsthm,amssymb}
%\usepackage{caption}
\usepackage{capt-of}
\usepackage{lipsum}
\renewcommand{\qedsymbol}{$\blacksquare$}
\begin{document}
\begin{proof}
\lipsum[1]
\begin{minipage}[b]{0.9\textwidth}
\centering
%\includegraphics{...}
\captionof{figure}{Figure caption.}%\vspace{-\dp\strutbox}
\end{minipage}%\llap{\rule{0.9\textwidth}{0.5pt}}% show baseline
\end{proof}
\end{document}