Single-Sided and Double-Sided Documents in LaTeX: oneside, twoside and openright

Quick answer

  • Double-sided: \documentclass[twoside]{report}. Margins and headers alternate between odd and even pages.
  • Single-sided: oneside, the default for article and report.
  • Chapters on right-hand pages: openright (default in book); openany removes the blank pages.
  • Binding: \usepackage[bindingoffset=1cm]{geometry}.
\documentclass[twoside, openright]{report}
\usepackage[inner=3cm, outer=2cm]{geometry}

\begin{document}
\chapter{Introduction}
Odd pages have the wide margin on the left.
\end{document}

A printed book is read as spreads: the left page (verso, even numbered) faces the right page (recto, odd numbered), and the margins, headers and page numbers are mirrored across the spine. LaTeX can lay out a document that way, or treat every page the same for reading on screen. This guide covers the oneside and twoside options, the defaults of each class, mirrored margins and a binding offset, openright and the blank pages it creates, alternating headers with fancyhdr, and how to set up a thesis for printing. Every example compiles with pdfLaTeX.

oneside vs twoside

onesidetwoside
MarginsSame on every pageInner and outer margins swap on even pages
Running heads (headings style)One mark on every pageChapter on even pages, section on odd pages (article: section and subsection)
Page numbers in headersSame cornerOuter corner
\marginpar notesRight marginOuter margin
Page bottoms\raggedbottom\flushbottom: every page filled to the same height
Default inarticle, report, letterbook, memoir

Pass the option to the class. Everything below works the same in article, report and book; class defaults are compared in the document classes guide.

\documentclass[twoside]{article}
\usepackage{lipsum}   % dummy text
\pagestyle{headings}

\begin{document}
\section{First Section}
\lipsum[1-6]
\section{Second Section}
\lipsum[7-12]
\marginpar{A note in the outer margin}
\end{document}

Margins and a Binding Offset

In twoside mode the standard classes make the inner margin narrower than the outer one, so that the two text blocks of a spread sit together like one page. With the geometry package, set inner and outer instead of left and right, and add bindingoffset for the paper lost in the binding:

\documentclass[twoside]{report}
\usepackage[a4paper, inner=2.5cm, outer=2.5cm, top=3cm, bottom=3cm,
            bindingoffset=1cm]{geometry}
\usepackage{lipsum}

\begin{document}
\chapter{Method}
\lipsum[1-10]
\end{document}

The offset always goes on the binding side: left on odd pages, right on even pages. To keep twoside headers but stop the margins from swapping (useful when notes must stay in the right margin), add asymmetric to the geometry options. More on page dimensions in page size and margins.

openright, openany and \cleardoublepage

Books start chapters on a right-hand (odd) page. The openright option does this by inserting a blank page when a chapter would otherwise start on an even page; openany starts each chapter on the next page. book defaults to openright, report to openany, and article has no chapters, so the options do not apply to it.

\documentclass[twoside, openright]{report}
\usepackage{emptypage}   % no header or number on the inserted blank pages
\usepackage{lipsum}

\begin{document}
\chapter{One}
\lipsum[1]
\chapter{Two}            % starts on page 3; page 2 is left blank
\lipsum[4-6]

\cleardoublepage         % jump to the next odd page by hand
\section*{Appendix Notes}
\lipsum[7]
\end{document}

\cleardoublepage moves to the next odd page in twoside mode and acts like \clearpage in oneside. Use it before the table of contents, the first chapter and the bibliography if those must start on the right. Without emptypage, the inserted blank pages still carry the running header or page number of the current page style.

Alternating Headers and Page Numbers with fancyhdr

In twoside mode, fancyhdr positions take an E (even) or O (odd) prefix besides L, C and R. The usual book layout puts the page number in the outer corner, the chapter on the left page and the section on the right:

\documentclass[twoside]{book}
\usepackage{fancyhdr}
\usepackage{lipsum}

\pagestyle{fancy}
\fancyhf{}                        % clear all fields
\fancyhead[LE,RO]{\thepage}       % outer corner
\fancyhead[RE]{\leftmark}         % chapter on even pages
\fancyhead[LO]{\rightmark}        % section on odd pages
\renewcommand{\headrulewidth}{0.4pt}

\begin{document}
\chapter{Background}
\section{History}
\lipsum[1-8]
\section{Today}
\lipsum[9-16]
\end{document}

In oneside mode, the E and O fields are ignored and every page uses the odd-page settings. Number styles and “Page X of Y” are covered in page numbering.

Printing a Thesis or Book

  • Printed on both sides and bound: twoside, openright, a bindingoffset of 0.5 to 1.5 cm, and emptypage.
  • Submitted as a PDF or printed one-sided: oneside, openany and equal margins; set a wider left margin only if it will be bound.
  • Both versions: keep the options in one line of the preamble so you can switch, as the page count and blank pages change between them.
  • Front matter: start the title page, abstract and contents on odd pages with \cleardoublepage; see the title page guide.

Common Mistakes

SymptomCauseFix
Blank pages before chaptersopenright, the book defaultopenany, or keep them and load emptypage
Text jumps left and right in a PDFtwoside margins on a document read on screenoneside, or equal inner and outer
fancyhdr E/O settings have no effectThe document is onesideAdd twoside to the class options
Stretched gaps between paragraphs, Underfull \vbox warningstwoside switches on \flushbottom\raggedbottom in the preamble
\cleardoublepage does not skip a pageIt only does so in twoside modeUse twoside, or add \clearpage\null\newpage by hand
Binding margin on the wrong sideleft/right used with twosideinner/outer and bindingoffset

Frequently Asked Questions

What is the difference between oneside and twoside in LaTeX?

oneside lays out every page the same way, for reading on screen or printing on one side of the paper. twoside treats odd and even pages as the right and left halves of a spread: the margins swap sides, headers and page numbers can alternate, and margin notes go to the outer edge. article and report default to oneside, book to twoside.

How do I remove the blank pages before chapters in LaTeX?

They come from the openright option, which starts every chapter on an odd page; book uses it by default. Add openany to the class options, as in \documentclass[openany]{book}, to start chapters on the next page. To keep openright but hide the header on the empty pages, load the emptypage package.

How do I add a binding offset in LaTeX?

Load geometry with the bindingoffset option, for example \usepackage[twoside, bindingoffset=1cm, inner=2.5cm, outer=2.5cm]{geometry}. The offset is added to the inner margin, the edge that goes into the binding, and it moves to the correct side on odd and even pages.

Should my thesis be oneside or twoside?

Follow your university's rules first. If the thesis will be printed on both sides of the paper and bound, use twoside, usually with openright so chapters start on a right-hand page. If it is submitted as a PDF or printed single-sided, use oneside with equal margins, so the text is not shifted left and right on alternate pages.

Why do the margins alternate between pages in my LaTeX document?

The document is set twoside, either by the option or because it uses the book class. In twoside mode the inner margin is narrower than the outer one and they swap on even pages. Add oneside to the class options, or set equal inner and outer margins with geometry, to stop the shift.

Next Steps

Free LaTeX Tools

Get your thesis print-ready with AI

Ask Octree's AI to switch your thesis between screen and print layouts, add a binding offset or remove stray blank pages, and check every page in the compiled PDF next to your code.

Try Octree Free →