Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow page-breaking for boxes? #218

Open
user202729 opened this issue Nov 20, 2023 · 5 comments
Open

Allow page-breaking for boxes? #218

user202729 opened this issue Nov 20, 2023 · 5 comments
Labels
formatting Format of the outputted PDF file

Comments

@user202729
Copy link
Contributor

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?

@vEnhance
Copy link
Owner

I'd be okay with splitting example boxes.

@user202729
Copy link
Contributor Author

Looking at the preamble...

nobreak=true,

looks like the nobreak is intentional though.

@vEnhance
Copy link
Owner

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 vEnhance added the formatting Format of the outputted PDF file label Nov 23, 2023
@vEnhance
Copy link
Owner

Anyone else have an opinion one way or the other?

@user202729
Copy link
Contributor Author

user202729 commented Dec 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatting Format of the outputted PDF file
Projects
None yet
Development

No branches or pull requests

2 participants