I'm just writing my bachelor thesis and i got into some problems with vspace. To seperate definitions, theorems and so on, from the rest of the text i defined the following environment:


and this environment for definitions:

\textbf{Definition \thedefinition}

In some cases the vspace bevore and after the hrules become extremly large. Since I don't know the reason for this behaviour I'm not able to create an MWE. However, I tried to remove the \nopagebreak commands and replaced the \baselineskip by a precise number of pt. None of this solved the problem.

Does anyone here know the reason, or even better a possibility to resolve this problem?

EDIT: Here is an example picture, the space between the hrule and the line should be .5\baselineskip:


  • 2
    Did you try \raggedbottom in your preamble, instead of the default \flushbottom? On another hand, to separate theorem-like structures from ordinary text, you'd better use a dedicated package such as ntheorem.
    – Bernard
    Oct 19, 2014 at 12:29
  • 2
    I think that you should use the features of mdframed or tcolorbox for defining “ruled theorems”.
    – egreg
    Oct 19, 2014 at 12:30
  • I just tried \raggedbottom and it solved my problem. Either anyway I will try the packaged you suggested, because I think, that that would be a cleaner solution. Thanks for the quick help :-)
    – Dave
    Oct 19, 2014 at 12:43

1 Answer 1


I believe you should use mdframed instead of that handmade version.







A pig is called a \emph{flypig} if it can fly.


Flypigs exist.



enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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