Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

\qed flushright on a math display

974 views
Skip to first unread message

Art Werschulz

unread,
May 25, 2010, 1:39:47 PM5/25/10
to
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?

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

Ulrich M. Schwarz

unread,
May 25, 2010, 1:53:07 PM5/25/10
to
On Tue, 25 May 2010 19:39:47 +0200, Art Werschulz <a...@dsm.fordham.edu>
wrote:

> 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

Joris

unread,
May 25, 2010, 2:09:13 PM5/25/10
to
> Net: a...@dsm.fordham.eduhttp://www.dsm.fordham.edu/~agw

> Phone:   Fordham U. (212) 636-6325, Columbia U. (646) 775-603


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.

Gonzalo Medina Arellano

unread,
May 25, 2010, 9:59:26 PM5/25/10
to
> 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?

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}

0 new messages