I have a set of rules for the questions of an exam I'm trying to design. I want to find a way to respect all the following rules:
_ if two or more questions can fit inside the same page, make it happen.
_ if one question spills over another page but that one or more questions may fit at the end of the last page of that first question,make it fit.
_ if one question doesn't fit normally on a single page, you don't have to make it fit on only one page, it's okay to have questions that are very long and spill over multiple pages.
Is there an environment that fits my criterias?
edit: one more rule:
_ if n questions fits inside a single page, but if you put the n+1th inside the same page and it spill over another page. Then make the n+1th be on the next page.
mdframed
ortcolorbox
packages -- you will have to design the look of such 'question' boxes yourself, but that's pretty easy for both packagestcolorbox
supports the float option -- it will be a float type of its own