TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 trying to frame box a proof I have written

For instance



\emph{Proof} \\

 \text{content of proof goes here}



But the \ does absolutely nothing. All the text is squeezed together in the box

share|improve this question
It is not clear to me what you are trying to do. Also, it would be helpful if you posted a fully compilable MWE including the appropriate packages that sets up the problem. – Peter Grill Dec 29 '12 at 2:25
have you seen box around theorem statement – cmhughes Dec 29 '12 at 2:26
@PeterGrill, that's exactly what I have. There are no packages needed for frame box – Hawk Dec 29 '12 at 2:34
@jak maybe not, but the code is not compilable. – c.p. Dec 29 '12 at 2:37
If you use the amsmath package your proofs will look like proper proofs. As suggested by others, it is not clear why you would want to box frame your proofs. You should make this clearer. I guess you want to frame them for some presentation. If that's the case, then I suggest you use the beamer package, which will automatically do this for you. It comes with several styles for different kinds of frames/boxes and different colours for the forground and background of the frames. – Marc van Dongen Dec 29 '12 at 8:14

The answers provided at box around theorem statement by cmhughes should be useful. This is a slightly different layout which is taken and modified from the mdframed documentation.

apptotikzsetting={\tikzset{mdfframetitlebackground/.append style={%
shade,left color=white, right color=blue!20}}},
 %% \mdtheorem[style=proofstyle]{proof}{\itshape Proof}

\begin{proof}[Some heading]
content of proof goes here

\begin{proof*}%%[Some heading]
content of proof goes here


enter image description here

To remove colors, just comment out some lines like:

%apptotikzsetting={\tikzset{mdfframetitlebackground/.append style={%
%shade,left color=white, right color=blue!20}}},

enter image description here

share|improve this answer
Would it be possible to add an example of where all the colors and some of the decorations removed...? It's too colorful for me – Hawk Dec 29 '12 at 2:46
@jak Please see the edit. – Harish Kumar Dec 29 '12 at 2:57
How does one remove that double box and the line that precedes the content? I really don't need anything that fancy – Hawk Dec 29 '12 at 4:04
@jak: Put frametitlerule=false,% instead of true. – Harish Kumar Dec 29 '12 at 12:01
This is probably a little late, but upon using just regular \mdframe, I've notice the preview pdf compiled by latex and the actual pdf differ a lot. In the actual pdf, some frames were cut off – Hawk Jan 11 '13 at 0:24

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.