TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using




A = B


and an empty square box will be added automatically at the end of the proof. I am wondering how to add a solid black box instead, in an automatic way.

share|improve this question
Please add a minimal working example (MWE) that shows your document class and the relevant (theorem-related) packages. – lockstep Feb 15 '13 at 17:37
\renewcommand{\qedsymbol}{\rule{1ex}{1ex}} put in the preamble, would it work? – yo' Feb 15 '13 at 17:40
up vote 22 down vote accepted

The documentation of amsthm says:

A QED symbol, □, is automatically appended at the end of a proof environment. To substitute a different end-of-proof symbol, use \renewcommand to redefine the command \qedsymbol.

Thus, one might proceed as follows:


A mwe to play with:



\begin{proof}[Proof of the Main Theorem]
    G(t)=L\gamma!\,t^{-\gamma}+t^{-\delta}\eta(t) \qedhere

If you're looking for beamer, it is quite the same: you have to re-define the template qed symbol (almost similar to my previous answer in How to change the end-proof symbol in Beamer?).

A mwe:



\setbeamertemplate{qed symbol}{$\blacksquare$}
\item First item.
\item Second item.
\item Third item.


Notice that in this case the symbol will assume the colors of the Beamer color theme currently in use.

share|improve this answer
Thank you very much for \qedhere! – bkarpuz Sep 30 '14 at 8:55
@bkarpuz: Glad it helped :) – Claudio Fiandrino Sep 30 '14 at 12:37

If you are using the amsthm package (or one of the ams documentclasses), then the symbol used is given by the command \qedsymbol. It can be redefined as follows:

Sample output




share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.