Using LaTeX with all the AMS stuff (amsmath, amssymb, amsthm) ...
Suppose that a proof ends with a math display. How does one get a QED
square box (\qed) to be flush right on the same line as this closing
math display?
If I do
\begin{proof}
Blah, blah, blah, and so
\begin{equation*}
\int_{\partial\Omega} = \int_\Omega d\omega. \qed
\end{equation*}
\end{proof}
the QED box is placed a small amount to the right of the period.
I also get a QED box appearing at the end of a blank line that follows
the display.
If I do
\begin{proof}
Blah, blah, blah, and so
\begin{equation*}
\int_{\partial\Omega} = \int_\Omega d\omega.
\end{equation*}
\end{proof}
the QED box appears at the end of a blank line that follows the
display.
Suggestions? Thanks.
--
Art Werschulz (8-{)} "Metaphors be with you." -- bumper sticker
GCS/M (GAT): d? -p+ c++ l++ u+ P++ e--- m* s n+ h f g+ w+ t+ r-
Net: a...@dsm.fordham.edu http://www.dsm.fordham.edu/~agw
Phone: Fordham U. (212) 636-6325, Columbia U. (646) 775-6035
> Hi.
>
> Using LaTeX with all the AMS stuff (amsmath, amssymb, amsthm) ...
>
> Suppose that a proof ends with a math display. How does one get a QED
> square box (\qed) to be flush right on the same line as this closing
> math display?
\qedhere.
HTH
Ulrich
Ulrich's answer is right, but doesn't extend to multline environments
for which you should use
\newcommand{\lqedhere}{\ensuremath{\text{\qedhere\hspace{-1em}}}}
or
\newcommand{\rqedhere}{\tag*{\hspace{-1em}\qedhere}}
depending on whether your equation numbers are on the left or right.
Another option would be to use the ntheorem package (http://
www.ctan.org/pkg/ntheorem):
\documentclass{book}
\usepackage{amsmath}
\usepackage[amsmath,amsthm,thmmarks]{ntheorem}
\begin{document}
\begin{proof}
Blah, blah, blah, and so
\begin{equation*}
\int_{\partial\Omega} = \int_\Omega d\omega.
\end{equation*}
\end{proof}
\end{document}