-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Keep a group of lines together on a page #1024
Comments
If There isn't an established mechanism for this yet. Yes there should be. It will probably follow naturally from being able to put stuff in vboxes. For now you might check out how I worked with this in CaSILE using Using this you can make sure ahead of time that you have room for the content you're thinking about putting there and break only if it's not going to all fit. If you really needed to you could pretend to typeset the content in a virtual frame, measure it's height, then ditch the typesetter and use the measured height to check for space. |
🤔💭💻⌨️🆗⌛😱"Today I learned", as the kids say. |
@alerque Hmm, I tried replacing my |
You are still thinking in TeX — which depending on circumstances can actually leave horizontal mode, enter vertical mode, and start a new paragraph to insert something that is ostensibly explicitly a "horizontal box". Because that makes sense. |
Oh I see, you're trying to tell me to put the |
Unless this is heavily clarified, this should be closed/rejected. two ways of avoiding breaks:
I don't see how else this issue should be tackled with (maybe it's just unclear) other than using existing solutions. |
@ctrlcctrlv Is part of the problem here that we don't have an easy to use equivalent of LaTeX's @Omikhleia I think we need some sort of "minipage" equivalent that handles what you are calling parboxing more gracefully than having to understand the interaction between vboxes and hboxes. |
That's correct, the problem is really lack of a way to inhibit page breaks as an |
For the record, my own parbox stuff (https://github.com/Omikhleia/omikhleia-sile-packages/blob/main/packages/parbox.lua) does something like that (which I then use in my table package). Still, it's not really related to page breaking, and has other side effects regarding it (which might or might not be acceptable, e.g. vertical stretchability is somewhat cancelled). LaTeX does distinguish the "minipage" and the "parbox", while quite similar, in subtle ways (e.g. see https://tex.stackexchange.com/questions/6472/parbox-vs-minipage-differences-in-applicability) but I have not dabbled so deep into trying to understand it. |
I am to closing this "old" issue:
|
Sorry if this is very stupid question, but I can't figure it out.
I have:
The
\hbox
doesn't do what I expect though, it still ends up broken across two pages:Is my only choice to put an \eject before it? But I want SILE to intelligently place it, not necessarily at top of next page.
What am I missing?
The text was updated successfully, but these errors were encountered: