Tx · LaTeX & TikZ

How to Remove an Unwanted Blank Page Before a LaTeX Report

Published By the 9to5Science editorial team

At a glance

  1. 1. Find the page break

    Check the main file and included files for page-break commands, title pages, and chapter commands.

  2. 2. Check class options

    Look for twoside and openright, which can make chapters begin on odd-numbered pages.

  3. 3. Choose the right command

    Use input for content that should continue on the current page; reserve include for separate chapters.

  4. 4. Compile the main file

    Compile the document's root file, then inspect the first page and the page immediately after it.

Advertisement

A blank first page in a LaTeX report is usually caused by the document structure or a page-breaking command, not by Texmaker itself. The fix depends on whether the page is genuinely empty, intentionally reserved for a title page, or inserted to make a chapter start on a right-hand page.

Start by checking the main .tex file and every file it includes. Look for page-break commands, title-page environments, and \chapter commands. Also check the document-class options for openright.

Check what creates the page

Common causes include:

  • \newpage, \clearpage, or \cleardoublepage before the document’s first content.
  • A titlepage environment that reserves a page, even if its contents are missing or moved elsewhere.
  • A chapter command: in layouts that use openright, chapters begin on odd-numbered pages. LaTeX may insert an empty page to achieve that.
  • An \include command. It forces page breaks before and after the included file, so it is intended for larger divisions such as chapters, not small fragments that should flow continuously.

The standard report class does not, by itself, always add a blank page at the front. In particular, \include forces page breaks, but it does not necessarily create a blank first page when the document starts with included content. Check the commands and options around the blank page rather than assuming \include is the sole cause.

Use \input for continuous content

If a file contains a short introduction, title details, or other material that should continue on the current page, use \input instead of \include. Unlike \include, \input does not force page breaks.

Here is a minimal, compilable report that starts directly with its content:

\documentclass[openany]{report}

\begin{document}

\chapter*{Report title}
This text appears on the first page.

\chapter{First chapter}
The chapter begins on a new page, as chapters normally do in the report class.

\end{document}

In a split-file project, the corresponding pattern is:

% In the main document, inside the document environment:
\input{front-matter}

The file front-matter.tex should contain document content only—not another \documentclass, \begin{document}, or \end{document}. The command shown is for a multi-file project; the minimal example above compiles on its own.

Use \include{chapter1} when you want a chapter in a separate file and want LaTeX’s include behavior, including page breaks and support for \includeonly.

If chapters are forced onto right-hand pages

In a two-sided layout, the openright option makes chapters start on odd-numbered pages. If a chapter would otherwise start on an even-numbered page, LaTeX inserts a blank page. For a report where chapters may start on either side, use openany:

\documentclass[twoside,openany]{report}

If you do not need two-sided printing, omit twoside as well. Avoid globally redefining \cleardoublepage just to remove one unexpected page; first check whether the class option or a specific page-break command is responsible.

A practical troubleshooting sequence

  1. Find the first content that should appear in the PDF and trace backwards through the source files.
  2. Temporarily comment out nearby \include, \chapter, titlepage, and page-break commands one at a time.
  3. Check whether an included file itself begins with a page-break command or contains a title-page environment.
  4. Confirm that Texmaker is compiling the intended root .tex file. In a multi-file project, compiling a chapter file by mistake can produce output that does not match the full document.
  5. Recompile and inspect the PDF. If the blank page disappears when a command is removed, you have identified the source; choose the fix that matches the intended layout.

Common mistakes

  • Replacing every \include with \input: This may make chapters run together. Change only the files that should not start on a separate page.
  • Removing \chapter to fix a blank page: Chapters normally start on a new page. If that is unwanted, consider whether a section command is more appropriate, rather than suppressing page breaks globally.
  • Assuming a page with no visible text is accidental: A title page or a right-hand-page layout may intentionally include one. Check the class options and the document’s intended print layout.
  • Blaming the editor: Texmaker edits and compiles source; the LaTeX commands and class determine page layout. Check the .tex source and the selected root document first.

References

  1. LaTeX2e unofficial reference manual: \include and \includeonly
  2. LaTeX2e unofficial reference manual: \input

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.