LyXSpanning pages with boxes

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
uudruid74
Posts: 6
Joined: Fri Jun 20, 2014 3:54 am

Spanning pages with boxes

Post by uudruid74 »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

uudruid74
Posts: 6
Joined: Fri Jun 20, 2014 3:54 am

Re: Spanning pages with boxes

Post by uudruid74 »

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.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Spanning pages with boxes

Post by Johannes_B »

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply