Page Layoutno page break after chapter / before section

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
pflosi
Posts: 2
Joined: Wed Oct 28, 2009 5:34 pm

no page break after chapter / before section

Post by pflosi »

hello there,

first post :)

maybe this is not the correct subforum for my question, but i didnt see any better one... a mod might move it if there's one that suits better...

anyway, here is what i want to do:

I use the documentclass report, cause i want to use chapters. After the \chapter{} command, i want to write a short introduction on what will be written in this chapter (it's a scientific work). And after that comes the first \section{} command. But now Latex makes page breaks after my short introduction to the chapter / before the first \section{} command in that chapter. I think this is unnecessary, as that introduction is mostly only half a page. Note: I DO WANT Latex to break the page before a new chapter begins (which is standard), but i DO NOT WANT it to break the page between the chapter and the first section command in that chapter...

I wasnt really successful doing this with \nopagebreak[number]. The command \begin{samepage} \end{samepage} does what i want, but the formatting in that command is horrible (every header stays now on the page until it REALLY is finished, i.e. it writes over the page numbers etc...).

I also tried a search on this forum as well as a google search, but i didnt find anything really useful

any help is really appreciated here!

thanks

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

no page break after chapter / before section

Post by frabjous »

Could you provide a minimal working example showing the problem? This does not sound like normal report class behavior. For example, the following:

Code: Select all

\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\chapter{My Chapter Title}
\blindtext[2][2]
\section{My Section Title}
\blindtext[1][3]
\end{document}
Has text after the chapter header but before the first section header, and there's no page break before the section header. Are you using some other package or setting that may be creating this problem?
pflosi
Posts: 2
Joined: Wed Oct 28, 2009 5:34 pm

Re: no page break after chapter / before section

Post by pflosi »

hey there,

thanks a lot for the quick reply!

I just realized that i was too quick with searching a solution for this...

As soon as some text is after the first \section{} command in the chapter, it doesn't break the page anymore...

Well thanks anyways ;)

Kind regards
Post Reply