I use the proof environment of the amsthm package.
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
How can I do that?
Changing the \qedsymbol won't do since that will delete the qed symbol in
the entire document.
It would be nice if a command (say \noqed) could delete the qedsymbol in the
proof environment where the command is typed.
Thanks for your help!!
E.M.
\documentclass{article}
\usepackage{amsthm}
\begin{document}
\begin{proof}
Foo\def\qedsymbol{}
\end{proof}
\begin{proof}
Bar
\end{proof}
\end{document}
> I use the proof environment of the amsthm package.
> I would like to be able to delete the QED symbol at the end of the proof
> *when* I don't need it.
If you are using a recent version of the amsthm package, maybe the
\qedhere command is relevant. I am not sure, because you neglected to
explain *why* you don't need the qed symbol. But in any case here is a
test file that may be helpful.
Regards, Michael Downes
tech-s...@ams.org
------------------------------------------------------------------------
\documentclass{article}
\usepackage{amsthm}
\providecommand{\noqed}{\sbox{0}{\popQED}}
\newenvironment{proofnobox}{%
\proof
}{%
\let\qed=\relax
\endproof
}
\begin{document}
I use the proof environment of the amsthm package.
\begin{proof}
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
How can I do that?
Changing the qedsymbol won't do since that will delete the qed symbol in
the entire document.
\end{proof}
It would be nice if a command (say noqed) could delete the qedsymbol in the
proof environment where the command is typed.
\begin{proof}
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
\renewcommand{\qedsymbol}{}
\end{proof}
\begin{proof}
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
\renewcommand{\qed}{}
\end{proof}
\begin{proof}
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
\sbox{0}{\popQED}
\end{proof}
\begin{proof}
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
\noqed
\end{proof}
\begin{proofnobox}[Proof of the Lemma]
I would like to be able to delete the QED symbol at the end of the proof
*when* I don't need it.
\end{proofnobox}
\begin{proof}
What if the proof ends with an equation?
\[
a=b+c-d.
\]
\end{proof}
\begin{proof}
What if the proof ends with an equation?
\[
a=b+c-d.\qedhere
\]
\end{proof}
\end{document}
EM