# Avoiding Page Break - Box for Theorems

I was using tcolorbox for creating a new box for theorems following this post: How to create theorem boxes.

The problem is that it's not avoiding page breaks. I used a box on a pretty big proof, and it is starting on a new page. Is there a way to avoid this?

Thanks

• Can you please provide us with a minimal working example (MWE) that illustrates your problem with the tcolorbox? Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Cragfelt Dec 21 '17 at 4:54

You can use \usepackage[breakable]{tcolorbox}, and add the option breakable in the options of the box you create. This way, it will separate the box between two boxes if a pagebreak is needed.