I use a couple of boxes with colored background to specifically offset certain examples. These can get sort of long, and LyX is shifting them off to their own page, leaving the previous page sort of empty.
I've tried changing from a minipage to a paragraph box (parbox), and it doesn't help (can't even tell the difference between these options). How can I get LyX (maybe with some Latex code in the preamble?) to allow these boxes to be split like a regular paragraph, and just continue the box onto the next page?
Thanks
-- Evan
LyX ⇒ Spanning pages with boxes
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Spanning pages with boxes
Solved my own question. Turning off the "Inner Box" - whatever that does, still leaves the "Allow Page Breaks" greyed out and unchecked. This (to me) would indicate that it page breaks are not allowed. After all, that was the state of the check box when the Inner Box has other settings. However, it will render correctly.
This seems like a Bug to me. The UI is pretty non-intuitive to begin with. Having this box unchecked is giving me the opposite information.
But .. resolved.
This seems like a Bug to me. The UI is pretty non-intuitive to begin with. Having this box unchecked is giving me the opposite information.
But .. resolved.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Spanning pages with boxes
Hi, i do not use LyX so i can't say anything specific there.
But from the pure LaTeX point of view, neither minipages nor parboxes can be broken across pages.
If you need colored boxes, have a look at package mdframed. It can do what you are looking for.
But from the pure LaTeX point of view, neither minipages nor parboxes can be broken across pages.
If you need colored boxes, have a look at package mdframed. It can do what you are looking for.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.