GeneralUnwanted space between section and tabular environments

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ckleiner
Posts: 7
Joined: Mon Jan 31, 2022 8:38 pm

Unwanted space between section and tabular environments

Post by ckleiner »

Hi there

I am creating a diary with a section for each month. Within such a section, I have 1-20 separate tabular environments, each with 2 columns (left picture, text right). Now when I run LaTeX, it creates a page break after the last tabular environment fitting onto a page. However - after a section, it places all those environments at the bottom of the page, creating a big space between the section and the first tabular environment (see the attached picture on the left). What I would like to have instead is the layout shown on the attached picture on the right: the empty space on the page is after the last environment which fits onto the page.

I am sure it's a 1-liner to solve the issue - however: so far I wasn't able to figure out a solution.

Very happy for any support. What I - obviously - don't want to do is to insert manual page breaks....

-- Christoph
Screenshot 2022-01-31 200022.jpg
Screenshot 2022-01-31 200022.jpg (214.42 KiB) Viewed 2628 times

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: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Unwanted space between section and tabular environments

Post by Stefan Kottwitz »

Hi Christoph,

welcome to the forum!

Usually we need the problem code to tell what's the cause of an issue. Perhaps a wild guess at the moment: your page height may be balanced, so LaTeX inserts white space to fill the page.

Try \raggedbottom in the preamble to switch of the height justification.

Stefan
LaTeX.org admin
ckleiner
Posts: 7
Joined: Mon Jan 31, 2022 8:38 pm

Unwanted space between section and tabular environments

Post by ckleiner »

Hi Stefan

Perfect; that solved my problem!

Thanks a lot!

-- Christoph
Post Reply