book, memoir, or scrbook), configure the trim size and asymmetric inner/outer margins with geometry, divide the manuscript with \frontmatter, \mainmatter, and \backmatter, and check that every font is embedded in the final PDF before sending it to a printer.
Step 1: Choose a book document class
All three standard book classes are included in TeX Live 2026 and support\frontmatter, \mainmatter, \backmatter, \part, and \chapter:
By default,
book loads letterpaper, 10pt, twoside, onecolumn, final, and openright (chapters start on right-hand odd pages, inserting a blank left page when needed). Pass openany if you want chapters to start on the next available page instead.
Step 2: Set trim size, margins, and binding offset
Books are rarely printed on standard Letter or A4 paper. Set the exact trim size withgeometry (paperwidth and paperheight, such as 6in by 9in for US trade paperbacks) and use inner, outer, top, bottom, and bindingoffset so the spine margin accommodates the binding:
innersets the margin next to the spine;outersets the margin on the thumb edge.bindingoffsetadds extra space to the inner margin on both left-hand and right-hand pages undertwoside.- For a detailed breakdown of
onesidevs.twoside,openrightvs.openany, and odd/even headers, see Single-sided vs. double-sided documents.
Step 3: Structure front matter, main matter, and back matter
Inbook.cls, three division switches control page numbering and chapter numbers:
\frontmatter: Runs\cleardoublepage, turns off chapter numbers (chapters still appear in\tableofcontents), and switches page numbers to lowercase Roman numerals (i,ii,iii). Use it for title pages, copyright, dedication, contents, and preface.\mainmatter: Runs\cleardoublepage, turns chapter numbers back on, and resets page numbering to Arabic1.\backmatter: Starts a new page (\cleardoublepageunderopenright,\clearpageunderopenany), turns off chapter numbers while keeping entries in the table of contents, and lets Arabic page numbering continue without resetting.
geometry trim sizing (105mm × 148mm with inner=15mm and outer=10mm) together with all three book divisions:
book.tex
Test this example live in your browser. Open a ready-to-compile LaTeX project with TeX Live 2026 preinstalled and zero local setup.Open starter article
For a full-length book, keep each chapter in its own file and load them with \include from main.tex; see Managing large documents. To add a back-of-book index or glossary, see Indexes and Glossaries.
Step 4: Check fonts and printer specifications
Before uploading a PDF to a print-on-demand service or publisher, verify that every font is embedded as a vector outline. On Linux, macOS, or Windows (with Poppler installed), runpdffonts:
name, type, encoding, emb, sub, uni, and object ID for every font in the document:
- Confirm that every row shows
yesunderemb(embedded). - Confirm that no font has
Type 3in thetypecolumn—Type 3indicates a bitmap font that looks jagged in print. Loading\usepackage[T1]{fontenc}alongside a vector font package such aslmodernortgpagella(or compiling with XeLaTeX/LuaLaTeX andfontspec) prevents bitmap fallback.
Start from the Book template
The Book template below is a 6 × 9 inch trade format usingbook, tgpagella, geometry, and fancyhdr, with title and copyright pages, dedication, contents, preface, two parts with chapters, footnotes, and back matter. Open it directly in LaTeX Cloud Studio (which compiles on TeX Live 2026) or inspect its full source code below.
Related guides
- Managing large documents
- Single-sided vs. double-sided documents
- Sections and chapters
- Indexes
- Export LaTeX to Word and HTML
Book template source code
book.tex
