Math & Science ⇒ \qedhere -- replicating functionality
\qedhere -- replicating functionality
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!
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