Graphics, Figures & TablesBlank Page Problem after large table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jblocher
Posts: 7
Joined: Mon Feb 01, 2010 3:08 pm

Blank Page Problem after large table

Post by jblocher »

I have a very large table that I'm trying to fit onto a single page. I generate the code with Gnumeric, which outputs .tex files.

After a lot of narrowing and deleting rows, etc. I finally have the table on one page, but it's generating a blank page after it. It's like there is a carriage return after the table or something.

It's fundamentally using the longtable package. Is there any way to get rid of this extra blank page or is my table simply still not fitting?

Recommended reading 2024:

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

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

jblocher
Posts: 7
Joined: Mon Feb 01, 2010 3:08 pm

Blank Page Problem after large table

Post by jblocher »

Fixed my own problem.
If you have a large table structured basically like this:

Code: Select all

\begin{longtable}
\caption{this is the caption}
<insert very large table here>
\label{table:name_of_table}
\end{longtable}
That just barely fits on the page, the label at the end can cause an additional line. Restructure it like this, with the label right after the caption but before the table contents:

Code: Select all

\begin{longtable}
\caption{this is the caption}
\label{table:name_of_table}
<insert very large table here>
\end{longtable}
and then your table fits (just barely) on one page.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Blank Page Problem after large table

Post by localghost »

jblocher wrote:Fixed my own problem. […]
Then please mark the topic accordingly as written in Section 3 of the Board Rules (to be read before posting).


Thorsten
Post Reply