# mdframed frametitle no page break [closed]

How can one prevent the frame title from breaking? I'm getting a break right between the title and the contents which looks silly.

I still want the content to be broken as normal but I want the frame title to be on the same page as the content.

-

## closed as too localized by egreg, Joseph Wright♦Apr 6 '13 at 21:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Use the option needspace – Marco Daniel Jul 1 '12 at 10:23
@MarcoDaniel That doesn't do anything. I used \begin{mdframed}[needspace,...] and there is still a page break between the frametitle and content. – AbstractDissonance Jul 1 '12 at 20:32
The option needspace requires a length. – Marco Daniel Jul 2 '12 at 17:15
@MarcoDaniel Is there any way to add an option to prevent frametitle breaks similar to the nobreak option? Needspace doesn't seem to work in my case because I have to give it a very large number(around 5cm) which may cause other problems(such as not breaking the content at all or having large extra header space). Basically there is no way to explicitly set the value by hard coding it since it changes and it would be easier to simply do a check on the break in the first place. – AbstractDissonance Jul 3 '12 at 7:21
At the moment Im must answer with no. I will add such an option. – Marco Daniel Jul 3 '12 at 8:33