Hello-
I have close to 50 lines in a page and it could vary-- what can I do to automatically move the lines to next page if it can't fit in one page?
I have a Python script which creates the .tex file with "\input{Table.tex}" .. If the table.tex has more lines then what can I do to automatically copy the header and multicolumn in to the next page?
Is there a conditional statement in LateX or other commands that I can use to move the extra lines to next page?
Thank you for your help.
General ⇒ How to automatically move lines to next page?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to automatically move lines to next page?
Seems to me like you should use the according environment from the longtable package instead of the default tabular environment.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to automatically move lines to next page?
Thank you for the reply.
I tried it and it seems to error out-- this is what it reads:
LaTeX Error: Environment Longtable undefined
Do you what that means?
I tried it and it seems to error out-- this is what it reads:
LaTeX Error: Environment Longtable undefined
Do you what that means?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to automatically move lines to next page?
Usually you have to include the longtable package in the same way as you include other packages in your document source. Information about using the package, its options and settings is given with the documentation.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
How to automatically move lines to next page?
LaTeX.org admin