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'm using the amsthm package to layout theorems and their proofs. How can I reduce the vertical spacing between the last line of the theorem statement and the first line of the proof?

BTW, I tried achieving this by fiddling with the third parameter to


...but even negative values (as illustrated above) failed to bring the first line of the proof closer than a certain fixed distance of about 2.5 line heights.

A related question: how can I prevent pagebreaks between the theorem and the proof? I would like to ensure that at least two lines from the theorem statement precede the first line of a proof on a page. (One may fairly assume that there is no text interposed between the last line of the theorem statement and the first line of the proof.)

share|improve this question
up vote 6 down vote accepted

One possibility would be to redefine the proof anvironment as defined in amsthm.sty (the definition uses \topsep6\p@\@plus6\p@\relax, so you could make some changes there). Another approach would be to use the front-end thmtools to define a new theorem-like structure behaving like the standard proof environment, but using the spaceabove key to control the vertical space above it. The following example illustrates this second approach and shows the different spacing for the new prf environment and the standard proof environment:




A really important result.
And its proof with less space above.
A really important result.
And its proof with too much space above.


enter image description here

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.