StartLaTeX faqLaTeX for Beginners F.A.Q.LaTeX topicsLaTeX courseSearch

In LaTeX, by default, each new chapter begins on a new page. However, there may be instances where you want to have two chapters start on the same page, without introducing a new page break between them. This can be achieved by redefining the \chapter command.

The \chapter command is defined in files like book.cls or report.cls. The default definition includes commands like \cleardoublepage and \clearpage to ensure a new page begins for each chapter.

To prevent the page break between chapters, we need to redefine the \chapter command by removing these page-breaking commands.

Here's how to redefine the \chapter command to achieve this:

\makeatletter
\renewcommand\chapter{\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\makeatother

In the redefined \chapter command, the \cleardoublepage and \clearpage commands have been removed. This allows two consecutive chapters to appear on the same page.

The \makeatletter and \makeatother commands are used because the @ symbol is a special character in LaTeX.

By using this redefined \chapter command, new chapters will start on the same page where the previous chapter ends, without introducing a new page break.

Example

\documentclass{report}

\makeatletter
\renewcommand\chapter{\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\makeatother

\begin{document}
\chapter{One}
%...
\chapter{Two}
%...
\end{document}

Contact   Privacy Policy   disclosures

accept decline

This website uses cookies and pixel tags to ensure you get the best experience on our website. By using this website, you consent to the use of cookies.learn more about cookies see also our privacy policy