Math & Sciencenewtheorem and QED

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
holysword
Posts: 3
Joined: Mon Jul 19, 2010 9:08 pm

newtheorem and QED

Post by holysword »

Hi guys...

I would like to create a theorem enviroment, but I would like it to end with the QED character (some few authors seem to prefer this option because Definitions, for instance, have nothing to mark their end). What I have been doing now is to do something like

Code: Select all

\begin{mydefinition}
blablalbal\hfill$\blacksquare$
\end{mydefinition}
However I would like to know if there is a more "elegant" way of doing this, that is, an environment that already comes with the \blacksquare at the end.

Any clues?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

newtheorem and QED

Post by localghost »

Maybe I'm off the mark, but perhaps the ntheorem offers what you need.


Thorsten
Post Reply