napkin icon indicating copy to clipboard operation
napkin copied to clipboard

Allow page-breaking for boxes?

Open user202729 opened this issue 2 years ago • 5 comments

Currently, the example boxes are not allowed to page-break, which leads to awkward underfull vbox sometimes.

Before I (possibly) try to figure out how to fix it, is it desirable for these to be fixed in the first place?

user202729 avatar Nov 20 '23 14:11 user202729

I'd be okay with splitting example boxes.

vEnhance avatar Nov 20 '23 17:11 vEnhance

Looking at the preamble...

https://github.com/vEnhance/napkin/blob/32cde8595d5aeab72f5e23912e6ff638ff13654c/tex/preamble.tex#L149

looks like the nobreak is intentional though.

user202729 avatar Nov 21 '23 02:11 user202729

It's probably copy-pasted from evan.sty many years back where the examples tend to be shorter and it makes more sense to disallow breaking. Since the examples in napkin are longer I'd be willing to drop that line if people think it looks better (I'm fairly indifferent).

vEnhance avatar Nov 23 '23 16:11 vEnhance

Anyone else have an opinion one way or the other?

vEnhance avatar Dec 19 '23 18:12 vEnhance

I've been using this option locally for a while now.

Sometimes I get a very bad break with this option...

image

Looks like it's mdframed 's fault. https://tex.stackexchange.com/questions/241543/how-to-prevent-mdframed-from-typesetting-a-widow-line-that-contains-just-a-bit-v The usual fix is to switch to tcolorbox.

user202729 avatar Dec 20 '23 00:12 user202729

Finished in bb899135ff39d2a930cb13a3db3cf1969451968e.

vEnhance avatar Feb 08 '25 17:02 vEnhance