Use this file to discover all available pages before exploring further.
Understanding the difference between single-sided and double-sided document layouts is crucial for professional document preparation. This guide covers layout options, margin considerations, and best practices for both digital and print documents.
Key concept: The choice between oneside and twoside affects not just printing but also margins, headers, page breaks, and overall document flow. Understanding these differences helps you choose the right option for your specific use case.Related topics: Page numbering | Headers and footers | Multiple columns
% Single-sided document (default for article)\documentclass[oneside]{article}% Double-sided document (default for book and report)\documentclass[twoside]{article}% Explicit specification\documentclass[12pt,letterpaper,oneside]{article}\documentclass[12pt,a4paper,twoside]{book}\begin{document}\section{Sample Content}This content will be formatted according to the chosen option.\end{document}
\documentclass[oneside]{article}\usepackage[showframe]{geometry} % Shows margin boxes\usepackage{lipsum} % For dummy text% All pages have identical margins\geometry{ left=3cm, right=3cm, top=3cm, bottom=3cm}\begin{document}\section{Page 1}\lipsum[1-2]\newpage\section{Page 2} \lipsum[3-4]\newpage\section{Page 3}\lipsum[5-6]% All pages have the same margin layout\end{document}
\documentclass[twoside]{article}\usepackage[showframe]{geometry}\usepackage{lipsum}% Different margins for odd and even pages\geometry{ inner=3.5cm, % Binding side (left on odd, right on even) outer=2.5cm, % Outer edge (right on odd, left on even) top=3cm, bottom=3cm}% Alternative: specify explicitly% \geometry{% left=2.5cm, % Left margin on odd pages % right=3.5cm, % Right margin on odd pages% bindingoffset=0.5cm, % Extra space for binding% top=3cm,% bottom=3cm% }\begin{document}\section{Odd Page (1)}\lipsum[1-2]Notice the larger inner margin for binding.\newpage\section{Even Page (2)}\lipsum[3-4]The margins are mirrored compared to odd pages.\newpage\section{Odd Page (3)}\lipsum[5-6]Back to the odd page margin layout.\end{document}
\documentclass[twoside]{article}\usepackage{fancyhdr}\usepackage{lipsum}\pagestyle{fancy}\fancyhf{}% Single-sided approach (same on all pages)% \fancyhead[L]{Document Title}% \fancyhead[R]{\thepage}% Double-sided approach (different for odd/even)\fancyhead[LE,RO]{\thepage} % Page number on outer edge\fancyhead[LO,RE]{Document Title} % Title on inner edge% Footers can also vary\fancyfoot[LE]{Even Page Footer}\fancyfoot[RO]{Odd Page Footer}\fancyfoot[C]{Center Footer on All Pages}\begin{document}\section{Headers Demo}\lipsum[1]\newpage\section{Page 2}\lipsum[2]\newpage\section{Page 3}\lipsum[3]\end{document}
\documentclass[twoside,openright]{book}\usepackage{lipsum}% openright: chapters always start on odd pages (right-hand side)% openany: chapters can start on any page% Default: book uses openright, report uses openany\begin{document}\chapter{First Chapter}\lipsum[1-3]This chapter starts on an odd page.\chapter{Second Chapter}\lipsum[4-6]If the previous chapter ended on an odd page, a blank even page will be inserted before this chapter.\chapter{Third Chapter}\lipsum[7-9]Consistent odd-page chapter openings.\end{document}
\documentclass[12pt,letterpaper,twoside]{article}\usepackage{fancyhdr}\usepackage[inner=1.5in,outer=1in,top=1in,bottom=1in]{geometry}% Academic-style headers\pagestyle{fancy}\fancyhf{}\fancyhead[LE]{\textit{Author Name}}\fancyhead[RO]{\textit{Paper Title}}\fancyfoot[LE,RO]{\thepage}% Special style for first page\fancypagestyle{firstpage}{% \fancyhf{} \fancyfoot[C]{\thepage} \renewcommand{\headrulewidth}{0pt}}\begin{document}\thispagestyle{firstpage}\title{Academic Paper Title}\author{Author Name}\maketitle\begin{abstract}Paper abstract content...\end{abstract}\section{Introduction}Main content begins here with regular headers.\newpage\section{Literature Review}Content continues with appropriate headers for even pages.\end{document}
\documentclass[11pt,twoside,openright]{book}\usepackage{fancyhdr}\usepackage[inner=1.25in,outer=0.75in,top=1in,bottom=1in,bindingoffset=0.25in]{geometry}% Book-style headers\pagestyle{fancy}\fancyhf{}\fancyhead[LE]{\leftmark} % Chapter on left of even pages\fancyhead[RO]{\rightmark} % Section on right of odd pages\fancyfoot[LE,RO]{\thepage}% Chapter pages use plain style\fancypagestyle{plain}{% \fancyhf{} \fancyfoot[C]{\thepage} \renewcommand{\headrulewidth}{0pt}}\begin{document}\frontmatter\tableofcontents\mainmatter\chapter{Introduction}Book content with professional layout.\section{Overview}Sections appear in headers on odd pages.\chapter{Main Content}New chapters start on odd pages with binding considerations.\end{document}
\documentclass[11pt,oneside]{article}\usepackage{fancyhdr}\usepackage[margin=1in]{geometry}% Business document typically uses oneside for simplicity\pagestyle{fancy}\fancyhf{}\fancyhead[L]{\textbf{Business Report}}\fancyhead[R]{\today}\fancyfoot[L]{Company Name}\fancyfoot[C]{Page \thepage}\fancyfoot[R]{Confidential}\renewcommand{\headrulewidth}{0.4pt}\renewcommand{\footrulewidth}{0.4pt}\begin{document}\title{Quarterly Business Report}\author{Analysis Team}\maketitle\section{Executive Summary}Business reports often use single-sided layout for easier digital distribution.\section{Financial Analysis}Consistent margins and headers work well for business documents.\end{document}
% Original oneside document% \documentclass[oneside]{article}% Convert to twoside\documentclass[twoside]{article}\usepackage{fancyhdr}% Update margins for binding\usepackage[inner=1.5in,outer=1in,top=1in,bottom=1in]{geometry}% Update headers for two-sided layout\pagestyle{fancy}\fancyhf{}% Change from:% \fancyhead[L]{Title}% \fancyhead[R]{\thepage}% To:\fancyhead[LE,RO]{\thepage}\fancyhead[LO,RE]{Document Title}\begin{document}Content that now works with two-sided layout...\end{document}
% Original twoside document% \documentclass[twoside]{book}% Convert to oneside for digital distribution\documentclass[oneside]{report}% Simplify margins\usepackage[margin=1in]{geometry}% Simplify headers\usepackage{fancyhdr}\pagestyle{fancy}\fancyhf{}% Change from:% \fancyhead[LE,RO]{\thepage}% \fancyhead[LO,RE]{Title}% To:\fancyhead[L]{Document Title}\fancyhead[R]{\thepage}\begin{document}Content adapted for single-sided digital viewing...\end{document}
\documentclass[twoside]{book}\usepackage{geometry}% Account for binding in printed documents\geometry{ paperwidth=8.5in, paperheight=11in, inner=1.5in, % Space for binding outer=1in, % Outer margin top=1in, bottom=1in, bindingoffset=0.25in % Extra space for binding}% Alternative: specify total text area% \geometry{% textwidth=5.5in,% textheight=8.5in,% hoffset=0.5in, % Adjust horizontal offset% bindingoffset=0.25in% }\begin{document}\chapter{Binding Considerations}This layout accounts for the space lost to binding in printed books.The binding offset ensures text doesn't disappear into the spine.\end{document}
\documentclass[twoside]{book}\usepackage[cam,a4,center]{crop} % Add crop marks\usepackage{geometry}% Set up for commercial printing\geometry{ paperwidth=8.5in, paperheight=11in, total={6in,9in}, inner=1.25in, top=1in, includefoot, footskip=0.5in}% Ensure no content in bleed area\setlength{\topmargin}{0pt}\setlength{\headheight}{12pt}\setlength{\headsep}{25pt}\begin{document}\chapter{Print-Ready Layout}This document is prepared for commercial printing with proper margins and crop marks.\end{document}
\documentclass[oneside]{article}\usepackage{hyperref}% Optimize for screen viewing\hypersetup{ colorlinks=true, linkcolor=blue, citecolor=green, filecolor=magenta, urlcolor=cyan, pdfpagemode=UseOutlines, bookmarksopen=true}% Use comfortable margins for screen reading\usepackage[margin=1in]{geometry}% Single-column layout works better on screens% Avoid multiple columns for digital documents\begin{document}\section{Digital Document}This layout is optimized for comfortable screen reading.Links are colored and clickable in PDF viewers.\end{document}
\documentclass[twoside,11pt]{book}\usepackage{microtype} % Better typography for print% Professional print margins\usepackage[inner=1.5in,outer=1in,top=1.25in,bottom=1in]{geometry}% Print-friendly settings\usepackage{hyperref}\hypersetup{ colorlinks=false, % Black links for print pdfborder={0 0 0} % No colored borders}% Optimize line spacing for print\linespread{1.1}\begin{document}\chapter{Print Document}This layout is optimized for high-quality print production.Typography and spacing are tuned for paper reading.\end{document}
\documentclass[twoside]{article}\usepackage{fancyhdr}% Problem: Headers not changing for odd/even pages% Solution: Use correct position specifiers\pagestyle{fancy}\fancyhf{}\fancyhead[LE,RO]{\thepage} % Correct% \fancyhead[L,R]{\thepage} % Wrong - same on all pages% Problem: Inconsistent margins% Solution: Use inner/outer instead of left/right\usepackage[inner=1.5in,outer=1in,top=1in,bottom=1in]{geometry}% Not: left=1.5in,right=1in (doesn't flip for even pages)% Problem: Chapters not starting on odd pages% Solution: Use openright option% \documentclass[twoside,openright]{book}% Problem: Text too close to binding% Solution: Add binding offset% \geometry{bindingoffset=0.25in}\begin{document}Properly configured two-sided document...\end{document}