[texhax] On \qed macros

Michael Barr barr at math.mcgill.ca
Mon Dec 31 21:37:07 CET 2007


After the discussion involving \pushright and so on, I got to wonder if 
there wasn't a simpler solution.  Perhaps there is a problem with the 
following, but it seemed to work:

\documentclass{article}
\newbox\endproofbox
\setbox\endproofbox\hbox{\vrule width5pt height 5pt depth 0pt}
\def\eop{\hbox to .3em {\hss}\hfill\copy\endproofbox \par\kern5pt}

\begin{document}
Now is the time for all good men to come to the aid of the party.\eop
Now is the time for all good men to come to the aid of the party.
Now is~the \eop
\end{document}

The reason for the ~ in the last line was to inhibit tex from putting 
"the" on the next line.

--MB


More information about the texhax mailing list