Math & Science\qedhere -- replicating functionality

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
archels
Posts: 3
Joined: Tue Aug 31, 2010 7:25 pm

\qedhere -- replicating functionality

Post by archels »

Hello,

I am using a predefined stylesheet which defines various environments like {definition}, {proof}, {lemma}, etc. I want to add a little box symbol to the end of each of these environments.
I run into the problem that if the last element of these environments is an {align} or an {equation} or so, the box symbol appears on the next line. This issue has been addressed (and, apparently, solved) in amsthm, which defines an environment--with box--for proofs.
However, using this package conflicts with my predefined styles. Looking at the source of amsthm, I couldn't make heads or tails of it--guess I'm still a LaTeX newbie!
Could someone possibly direct me on how to replicate the \qedhere behaviour, i.e. box symbol on the same line even when the proof environment ends with an align or equation or so?

Many thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: \qedhere -- replicating functionality

Post by daleif »

Why don't you just use ntheorem instead?
Post Reply