General ⇒ new sections at bottom of page not being pushed to next page
new sections at bottom of page not being pushed to next page
i m new here, and although i ve been using latex for many years, I m not at all familiar with how it works internally.
So my problem is this: I thought latex was supposed to be pushing sections that are at the bottom of the page automatically to the following page, but this doesn't seem to happen in my case.. any ideas? i don't want to push them manually each time with pagebreaks, because every time i make a big change to the book i have to reposition them!!
the packages i m using are these:
\documentclass[11pt,a4paper,titlepage]{reitz_new}
\usepackage[greek]{babel}
\usepackage[iso-8859-7]{inputenc}
\usepackage{kerkis} %(this is a greek font)
\usepackage{psfig}
\usepackage{epsfig}
%\usepackage{xr}
\usepackage{cancel}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancybox}
%%%%%%%%%%\usepackage{makeidx,showidx}
\usepackage{bm}
\usepackage{amsfonts}
\usepackage{extarrows}
\usepackage{picins}
\usepackage{amsthm}
\usepackage{makeidx}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
thanks everyone!
sotiris
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
new sections at bottom of page not being pushed to next page
sfranky wrote: […] I thought latex was supposed to be pushing sections that are at the bottom of the page automatically to the following page, but this doesn't seem to happen in my case. […]
Who claims that? This is a misunderstanding. Sections are never set on the next page automatically when there's enough space left. But there are two possible solutions.
- Force the placement on the next side manually by adding a \newpage command right in front of every section.
- Split your document into several files where each file contains a single section and include them in your header file.
Code: Select all
\documentclass[11pt,a4paper,titlepage]{reitz_new}
…
\begin{document}
…
\include{section1} % First section saved in file section1.tex
\include{section2} % Second section saved in file section1.tex
…
\end{document}
Best regards and welcome on Board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: new sections at bottom of page not being pushed to next page
Unfortunately, as I ve stated in my first post, it will take ages to manually put pagebreaks or newpages (it's almost the same, is't it?) and I will also have to change them from time to time as I add/remove content,
and,
the other solution, I m already doing that!!! It's not working!!?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
new sections at bottom of page not being pushed to next page
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
new sections at bottom of page not being pushed to next page
Re: new sections at bottom of page not being pushed to next page
\documentclass[11pt,a4paper,titlepage]{reitz_new}
…
\begin{document}
…
\include{chapter1}
\input{section1}
\input{section2}
....
\include{chapter2}
…
\end{document}
?
i can't nest includes so i put inputs.. does \input do the same thing as \include, regarding the section placement?
Re: new sections at bottom of page not being pushed to next page
Where do you want to start a new page? Before every section? Even the first one of every chapter?
Re: new sections at bottom of page not being pushed to next page
@juanjo: I compile, and open the pdf document. In some pages, there is a section at the bottom of the page, as in, it's the last thing written on the page. I want to make all these bottom-showing sections show up in the following page instead, but without leaving a serious gap, if possible. I d rather not mess with the hierarchy of the document if possible (I mean, I wouldnt like to make it flat, one wrapper with a list of includes instead of includes with unputs inside)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
new sections at bottom of page not being pushed to next page
sfranky wrote: @localghost: i will try and make a mwe later tonight!
That's not necessary any more. My questions were answered in the course of this thread. If you haven't done so yet, add some commands to your preamble.
Code: Select all
\clubpenalty10000
\widowpenalty10000
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: new sections at bottom of page not being pushed to next page

(hmm it doesn't seem to be working for what it is supposed to be either...
