我看过几篇关于如何在证明中删除 qed 符号的帖子,但这会影响所有证明环境。我想知道如何在特定证明中删除 qed 符号,因为我有一个证明在另一个证明中。
答案1
只需在本地改变含义\qedsymbol
:
\documentclass{article}
\usepackage{amsthm}
\begin{document}
\begin{proof}
This has the QED symbol.
\end{proof}
\begin{proof}\renewcommand{\qedsymbol}{}
This hasn't.
\end{proof}
\begin{proof}
And this has it again.
\end{proof}
\end{document}
您可以为“内部证明”创建一个新的环境:
\newenvironment{innerproof}
{\renewcommand{\qedsymbol}{}\proof}
{\endproof}
其作用相同。
答案2
如果你正在使用amsthm
,你可以这样做:
\documentclass{article}
\usepackage{amsthm}
\begin{document}
\begin{proof}
This has the QED symbol.
\end{proof}
\begin{proof}\let\qed\relax
This hasn't.
\end{proof}
\begin{proof}
And this has it again.
\end{proof}
\end{document}
(感谢 egreg 提供一个可以轻松抄袭的例子。)
答案3
我对此类情况的处理如下。
\begin{proof}\phantom{\qedhere}
No QED symbol.
\end{proof}
\begin{proof}
QED symbol.
\end{proof}
\begin{proof}
\begin{itemize}
\item \textellipsis
\item QED symbol at the end of the final item. \qedhere
\end{itemize}
\end{proof}
\begin{proof}\phantom{\qedhere}
\begin{equation}
\text{QED symbol at the end of the final equation.}\tag*{\qed}
\end{equation}
\end{proof}