LyXPage breaking within a table

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
liamg
Posts: 3
Joined: Sat Jul 31, 2010 10:59 am

Page breaking within a table

Post by liamg »

I've been using Lyx for a while but still feel fairly new to it.

I'm trying to use Lyx to design lesson plan for my class. I set up a two column table and fixed the width of both columns. I then put the categories I need down the left hand column and inserted boxes (minipage) on the right for the content.

It looks great, except that the PDF goes crazy if the content exceeds a single page. I've tried using pagebreaks, but they don't work.

I need to find out how to make the table automatically break at the end of the page. Can anyone help? (I thought Lyx was supposed to do this sort of thing for me!)

Thanks,

Liam

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Page breaking within a table

Post by Stefan Kottwitz »

Hi Liam,

welcome to the board!
Use the option Use long table in the tab Longtable of the table dialog to split the table automatically at page breaks.

Stefan
LaTeX.org admin
liamg
Posts: 3
Joined: Sat Jul 31, 2010 10:59 am

Re: Page breaking within a table

Post by liamg »

Thanks, Stefan--that did it.

From experimenting, enabling "long table" and "page break on current row" will implement a page break only if required by the length of the text, which is exactly what I wanted.

Is there any disadvantage to enabling these options? Could I enable them for ever row, so as to ensure proper page breaking wherever it needs to occur? (If so, why isn't this the default?)
ChemFloris
Posts: 3
Joined: Mon Mar 20, 2017 5:09 pm

Page breaking within a table

Post by ChemFloris »

Hej Stefan,

I am using LyX 2.2, and instead of Longtable -> Use long table, when I right-click on my table and in Tabular Settings there is a Multi-page table menu, with the possibility of ticking on "Use multi-page table". I did it, but my table does not break. Even if I manually select a line and tick on "Page break on current row", the table keeps disappearing at the bottom of the page.

Any idea of why is this happening? Thank you for your help!
BruceZh
Posts: 1
Joined: Sun Apr 23, 2017 1:00 pm

Page breaking within a table

Post by BruceZh »

ChemFloris wrote:Hej Stefan,

I am using LyX 2.2, and instead of Longtable -> Use long table, when I right-click on my table and in Tabular Settings there is a Multi-page table menu, with the possibility of ticking on "Use multi-page table". I did it, but my table does not break. Even if I manually select a line and tick on "Page break on current row", the table keeps disappearing at the bottom of the page.

Any idea of why is this happening? Thank you for your help!
Don't put your table into any float environment, see http://wiki.lyx.org/LyX/Tables#longtab-cap
Post Reply