Prerequisites: Intermediate LaTeX knowledge, understanding of document classes
Time to complete: 45-50 minutes
Difficulty: Advanced
What you’ll learn: Book classes, design, typography, publishing workflows, and production
Time to complete: 45-50 minutes
Difficulty: Advanced
What you’ll learn: Book classes, design, typography, publishing workflows, and production
Start from a book template
The book template below is a complete 6 x 9 inch non-fiction book: title and copyright pages, dedication, contents, preface, two parts with chapters, running heads, footnotes, further reading and an about-the-author page. The preview is page 1 of the PDF compiled from its full source.Book Publishing Overview
Why LaTeX for Books?
Professional Typography
Superior typesetting and font handling
Automated Layout
Consistent formatting throughout
Version Control
Track changes and collaborate
Multiple Outputs
Print, ebook, and web formats
Types of Books
- Fiction
- Non-fiction
- Textbooks
- Reference
Novels and stories
- Simple chapter structure
- Minimal front matter
- Focus on readability
- Creative typography
Academic and technical
- Complex structure
- Extensive references
- Figures and tables
- Index and glossary
Educational materials
- Pedagogical features
- Exercises and solutions
- Multiple difficulty levels
- Supplementary materials
Manuals and guides
- Heavy cross-referencing
- Detailed index
- Quick navigation
- Consistent formatting
Book Document Classes
Standard Book Class
book-basic.tex
\documentclass[11pt, twoside, openright]{book}
% Essential packages
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=1in, bindingoffset=0.5in]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
% Book metadata
\title{Your Book Title}
\author{Author Name}
\date{2024}
\begin{document}
% Front matter
\frontmatter
\maketitle
\tableofcontents
% Main matter
\mainmatter
\chapter{First Chapter}
Content begins here...
% Back matter
\backmatter
\chapter{Epilogue}
Final thoughts...
\end{document}
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio →
book-structure.tex
\documentclass[
11pt, % Font size
twoside, % Two-sided printing
openright, % Chapters start on right pages
final % Final version (not draft)
]{book}
% Page layout for books
\usepackage[
paperwidth=6in,
paperheight=9in,
top=0.75in,
bottom=1in,
inner=1in, % Inner margin (binding side)
outer=0.75in, % Outer margin
bindingoffset=0.25in,
headheight=14pt
]{geometry}
\begin{document}
\frontmatter
% Roman numerals for page numbers
\title{Professional Book Design}
\author{Jane Doe}
\maketitle
\chapter*{Dedication}
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\textit{To my family}
\end{center}
\vspace*{\fill}
\tableofcontents
\listoffigures
\listoftables
\chapter{Preface}
This book demonstrates...
\mainmatter
% Arabic numerals start here
\part{Foundations}
\chapter{Introduction}
\section{Background}
The journey begins...
\part{Advanced Topics}
\chapter{Deep Dive}
Advanced content...
\appendix
\chapter{Supplementary Material}
Additional resources...
\backmatter
\bibliographystyle{plain}
\bibliography{references}
\printindex
\end{document}
Memoir Class
memoir-book.tex
\documentclass[11pt, twoside]{memoir}
% Memoir provides extensive customization
\usepackage{lipsum}
% Page layout
\setstocksize{9in}{6in}
\settrimmedsize{9in}{6in}{*}
\setlrmarginsandblock{1in}{0.75in}{*}
\setulmarginsandblock{0.75in}{1in}{*}
\setheadfoot{14pt}{28pt}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
% Chapter style
\chapterstyle{bianchi}
% Custom chapter style
\makechapterstyle{custom}{%
\renewcommand{\chapnamefont}{\normalfont\large\scshape}
\renewcommand{\chapnumfont}{\normalfont\Huge}
\renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries}
\setlength{\beforechapskip}{0pt}
\setlength{\midchapskip}{20pt}
\setlength{\afterchapskip}{40pt}
}
\begin{document}
\frontmatter
\title{Advanced Book with Memoir}
\author{Author Name}
\maketitle
\begin{abstract}
The memoir class provides professional book design capabilities...
\end{abstract}
\tableofcontents*
\mainmatter
\chapterstyle{custom}
\chapter{Flexible Design}
\epigraph{The details are not the details. They make the design.}
{Charles Eames}
\lipsum[1-3]
\section{Typography Control}
\lettrine[lines=3]{M}{emoir} provides extensive control...
\end{document}
memoir-features.tex
\documentclass[10pt, twoside, openany]{memoir}
% Advanced features
\usepackage{graphicx}
\usepackage{xcolor}
% Define custom trim marks
\showtrimson
\trimLmarks
% Side notes setup
\setmarginnotes{7pt}{51pt}{\onelineskip}
\checkandfixthelayout
% Epigraph style
\setlength{\epigraphwidth}{0.6\textwidth}
\epigraphfontsize{\small\itshape}
% Fancy breaks
\renewcommand{\plainfancybreak}{%
\fancybreak{* * *}
}
% Custom page styles
\makepagestyle{custom}
\makeevenhead{custom}{\thepage}{}{\leftmark}
\makeoddhead{custom}{\rightmark}{}{\thepage}
\makeevenfoot{custom}{}{}{}
\makeoddfoot{custom}{}{}{}
\makeheadrule{custom}{\textwidth}{\normalrulethickness}
\pagestyle{custom}
\begin{document}
\chapter{Advanced Features}
Main text with a margin note.\marginpar{This appears in the margin}
\section{Special Breaks}
First section of text...
\plainfancybreak
Second section after decorative break...
\section{Epigraphs}
\epigraph{Books are a uniquely portable magic.}{Stephen King}
Regular text continues here...
\end{document}
KOMA-Script Book
scrbook-example.tex
\documentclass[
11pt,
twoside=true,
open=right,
chapterprefix=true,
numbers=endperiod,
bibliography=totoc,
listof=totoc,
index=totoc
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{scrlayer-scrpage}
% KOMA options
\KOMAoptions{
paper=6in:9in,
DIV=12, % Type area calculation
BCOR=0.5in, % Binding correction
fontsize=11pt,
parskip=half
}
% Headers and footers
\pagestyle{scrheadings}
\automark[chapter]{chapter}
% Chapter formatting
\RedeclareSectionCommand[
beforeskip=0pt,
afterskip=2\baselineskip,
font=\Huge\bfseries
]{chapter}
\begin{document}
\frontmatter
\title{Professional Book}
\subtitle{Using KOMA-Script}
\author{Your Name}
\publishers{Publisher Name}
\date{\today}
\maketitle
\tableofcontents
\mainmatter
\chapter{Modern Book Design}
KOMA-Script provides modern European book design...
\minisec{Unnumbered subsection}
Special formatting options...
\dictum[Oscar Wilde]{We are all in the gutter, but some of us are looking at the stars.}
\end{document}
Book Design Principles
Typography
book-typography.tex
\documentclass{book}
\usepackage{fontspec} % XeLaTeX/LuaLaTeX
% Professional book fonts
\setmainfont[
Ligatures=TeX,
Numbers=OldStyle,
Scale=1.0
]{Minion Pro}
\setsansfont[
Scale=MatchLowercase,
Numbers=Lining
]{Myriad Pro}
\setmonofont[
Scale=MatchLowercase
]{Source Code Pro}
% Microtypography
\usepackage[
activate={true,nocompatibility},
final,
tracking=true,
kerning=true,
spacing=true,
factor=1100,
stretch=10,
shrink=10
]{microtype}
% Leading (line spacing)
\usepackage{setspace}
\setstretch{1.15}
% Paragraph settings
\setlength{\parindent}{1em}
\setlength{\parskip}{0pt plus 1pt}
\emergencystretch=3em % Prevent overfull boxes
% Widow and orphan control
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\begin{document}
\chapter{Professional Typography}
\lettrine[lines=3, loversize=0.1]{T}{ypography} is the art and technique
of arranging type to make written language legible, readable, and appealing
when displayed. The arrangement of type involves selecting typefaces, point
sizes, line lengths, line-spacing (leading), and letter-spacing (tracking).
\section{Type Hierarchy}
{\Large\bfseries Display Text for Impact}
{\large\itshape Subheadings in Italic}
Regular body text maintains readability with appropriate leading and measure.
\end{document}
font-combinations.tex
\documentclass{book}
\usepackage{fontspec}
% Classic combination: Garamond + Helvetica
\setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros} % Helvetica clone
% Alternative: Palatino + Optima
% \setmainfont{TeX Gyre Pagella}
% \setsansfont{Optima}
% Modern: Charter + Fira Sans
% \setmainfont{XCharter}
% \setsansfont{Fira Sans}
% Define font sizes
\newfontfamily\displayfont[Scale=1.5]{EB Garamond}
\newfontfamily\chapterfont[Scale=1.2]{TeX Gyre Heros}
% Chapter number style
\usepackage{lettrine}
\renewcommand{\LettrineFontHook}{\displayfont}
\begin{document}
\chapter{Font Harmony}
\lettrine[lines=4]{F}{ont selection} significantly impacts the reading
experience. Serif fonts like Garamond provide excellent readability for
body text, while sans-serif fonts like Helvetica work well for headings
and captions.
\begin{figure}[h]
\centering
\fbox{Placeholder}
\caption{\sffamily This caption uses the sans-serif font for distinction.}
\end{figure}
\end{document}
Page Layout
page-design.tex
\documentclass[11pt]{book}
\usepackage[
paperwidth=6in,
paperheight=9in,
top=72pt,
bottom=90pt,
inner=72pt,
outer=54pt,
headsep=24pt,
footskip=36pt,
marginparwidth=36pt,
marginparsep=18pt
]{geometry}
\usepackage{fancyhdr}
\usepackage{eso-pic}
\usepackage{xcolor}
% Running headers and footers
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE]{\thepage\quad\textsc{\nouppercase{\leftmark}}}
\fancyhead[RO]{\textsc{\nouppercase{\rightmark}}\quad\thepage}
\renewcommand{\headrulewidth}{0pt}
% Chapter opener style
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}
{\chaptertitlename\ \thechapter}
{20pt}
{\Huge}
\titlespacing*{\chapter}{0pt}{50pt}{40pt}
% Drop caps
\usepackage{lettrine}
\setlength{\DefaultNindent}{0em}
\renewcommand{\LettrineFontHook}{\bfseries}
\begin{document}
\chapter{Page Architecture}
\lettrine[lines=3]{T}{he page} is the fundamental unit of book design.
Classical proportions, derived from centuries of bookmaking tradition,
create harmonious layouts that enhance readability.
\section{The Golden Rectangle}
The ratio 1:1.618, known as the golden ratio, has been used in book
design since the Renaissance...
\newpage
\section{Margins and White Space}
Generous margins serve multiple purposes: they provide space for the
reader's thumbs, create visual breathing room, and establish a refined
appearance...
\end{document}
grid-system.tex
\documentclass{book}
\usepackage{tikz}
\usepackage[
paperwidth=6in,
paperheight=9in,
layoutwidth=6in,
layoutheight=9in,
layouthoffset=0pt,
layoutvoffset=0pt,
showcrop,
showframe
]{geometry}
% Define modular grid
\newcommand{\showgrid}{%
\begin{tikzpicture}[remember picture, overlay]
% Vertical grid lines
\foreach \x in {0,0.5,...,6} {
\draw[red!20, very thin]
(current page.south west) ++(\x in,0) --
(current page.north west) ++(\x in,0);
}
% Horizontal grid lines
\foreach \y in {0,0.5,...,9} {
\draw[red!20, very thin]
(current page.south west) ++(0,\y in) --
(current page.south east) ++(0,\y in);
}
% Major grid lines
\foreach \x in {0,1,...,6} {
\draw[red!40, thin]
(current page.south west) ++(\x in,0) --
(current page.north west) ++(\x in,0);
}
\foreach \y in {0,1,...,9} {
\draw[red!40, thin]
(current page.south west) ++(0,\y in) --
(current page.south east) ++(0,\y in);
}
\end{tikzpicture}
}
\begin{document}
% Show grid on this page
\showgrid
\chapter{Grid-Based Design}
Using a modular grid ensures consistent placement of elements throughout
the book. This page shows the underlying grid structure.
\vspace{2\baselineskip}
Elements align to the grid for visual harmony and professional appearance.
\end{document}
Front and Back Matter
Front Matter Components
front-matter.tex
\documentclass{book}
\usepackage{graphicx}
\usepackage{afterpage}
\begin{document}
\frontmatter
% Half title page
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
{\LARGE Your Book Title}
\end{center}
\vspace*{\fill}
\newpage
% Blank verso
\thispagestyle{empty}
\null\newpage
% Full title page
\thispagestyle{empty}
\begin{center}
\vspace*{2in}
{\Huge\bfseries Your Book Title}\\[1em]
{\Large\itshape A Comprehensive Guide}\\[3em]
{\Large Author Name}\\[1em]
\vfill
\includegraphics[width=2in]{publisher-logo}\\[1em]
{\large Publisher Name}\\
{\large 2024}
\end{center}
\newpage
% Copyright page
\thispagestyle{empty}
\vspace*{\fill}
\noindent
Copyright \copyright\ 2024 by Author Name\\[1em]
All rights reserved. No part of this publication may be reproduced,
stored in a retrieval system, or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording, or otherwise, without
the prior written permission of the publisher.\\[1em]
ISBN: 978-0-000-00000-0\\[1em]
First Edition\\[1em]
Printed in the United States of America\\[1em]
10 9 8 7 6 5 4 3 2 1
\newpage
% Dedication
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\textit{For those who dare to dream}
\end{center}
\vspace*{\fill}
\newpage
% Epigraph
\thispagestyle{empty}
\vspace*{\fill}
\begin{flushright}
\textit{``The only way to do great work\\
is to love what you do.''}\\[1em]
---Steve Jobs
\end{flushright}
\vspace*{\fill}
\newpage
% Table of contents
\tableofcontents
% Foreword
\chapter{Foreword}
Written by a distinguished colleague...
% Preface
\chapter{Preface}
This book arose from...
% Acknowledgments
\chapter*{Acknowledgments}
\addcontentsline{toc}{chapter}{Acknowledgments}
I would like to thank...
\mainmatter
% Main content begins
\end{document}
back-matter.tex
\documentclass{book}
\usepackage{makeidx}
\usepackage[totoc]{idxlayout}
\usepackage{glossaries}
\makeindex
\makeglossaries
\begin{document}
\mainmatter
% ... main content ...
\backmatter
% Epilogue
\chapter{Epilogue}
Final thoughts and reflections...
% Appendices
\appendix
\chapter{Resources}
\section{Further Reading}
\begin{itemize}
\item Essential books on the topic
\item Online resources
\item Professional organizations
\end{itemize}
\section{Tools and Software}
Recommended tools for practitioners...
% Glossary
\printglossary[title=Glossary, toctitle=Glossary]
% Bibliography
\bibliographystyle{plain}
\bibliography{references}
\addcontentsline{toc}{chapter}{Bibliography}
% Index
\printindex
% About the Author
\chapter*{About the Author}
\addcontentsline{toc}{chapter}{About the Author}
\begin{minipage}{0.3\textwidth}
\includegraphics[width=\textwidth]{author-photo}
\end{minipage}
\hfill
\begin{minipage}{0.65\textwidth}
\textbf{Author Name} is a distinguished professor...
\end{minipage}
% Colophon
\clearpage
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\textsc{Colophon}\\[2em]
This book was typeset using \LaTeX{} with the Book document class.\\
The main text is set in Minion Pro at 11/15pt.\\
Chapter headings use Myriad Pro.\\[1em]
Designed and typeset by Author Name\\
First printing, January 2024
\end{center}
\vspace*{\fill}
\end{document}
Advanced Features
Indexing
book-indexing.tex
\documentclass{book}
\usepackage{makeidx}
\usepackage[columns=2]{idxlayout}
\makeindex
% Custom index commands
\newcommand{\boldindex}[1]{\textbf{#1}\index{#1|textbf}}
\newcommand{\conceptindex}[2]{#1\index{#2}}
\newcommand{\subindex}[2]{#1\index{#1!#2}}
\begin{document}
\chapter{Content with Index Entries}
The \boldindex{index} is a crucial component of any reference book.
It allows readers to quickly find specific topics\index{topics!finding}.
\section{Creating Entries}
Basic index entries\index{index entries!basic} are created with the
\verb|\index| command. You can create \subindex{subentries}{nested}
and \conceptindex{cross-references}{cross-references|see{references}}.
Range of pages\index{page ranges|(} can span multiple pages.
Content continues here with more details about the topic.
This concludes the discussion\index{page ranges|)}.
Special formatting\index{formatting!bold|textbf} can be applied to
page numbers\index{page numbers!italic|textit}.
\printindex
\end{document}
advanced-indexing.tex
\documentclass{book}
\usepackage{imakeidx}
% Multiple indexes
\makeindex[name=general, title=General Index]
\makeindex[name=authors, title=Author Index]
\makeindex[name=subjects, title=Subject Index]
% Custom commands for different indexes
\newcommand{\authorindex}[1]{#1\index[authors]{#1}}
\newcommand{\subjectindex}[1]{#1\index[subjects]{#1}}
\begin{document}
\chapter{Scholarly Work}
According to \authorindex{Smith (2020)}, the theory proposed by
\authorindex{Jones (2019)} has significant implications for
\subjectindex{quantum mechanics}.
The \subjectindex{classical interpretation} differs from the
\subjectindex{modern approach} in several key aspects.
\backmatter
\printindex[general]
\printindex[authors]
\printindex[subjects]
\end{document}
Cross-referencing
cross-references.tex
\documentclass{book}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{varioref}
% Configure cleveref
\crefname{chapter}{Chapter}{Chapters}
\crefname{section}{Section}{Sections}
\crefname{figure}{Figure}{Figures}
\crefname{table}{Table}{Tables}
\crefname{equation}{Equation}{Equations}
\begin{document}
\chapter{Introduction}
\label{ch:intro}
This chapter introduces key concepts that will be explored throughout
the book. \Cref{ch:methodology} presents our methodology, while
\cref{ch:results} discusses the findings.
\section{Background}
\label{sec:background}
As shown in \vref{fig:example}, the relationship is clear. The data
in \cref{tab:summary} on \cpageref{tab:summary} supports this conclusion.
\begin{figure}[htbp]
\centering
\fbox{Placeholder}
\caption{Example figure}
\label{fig:example}
\end{figure}
\chapter{Methodology}
\label{ch:methodology}
Building on \cref{sec:background}, we develop...
\begin{table}[htbp]
\centering
\begin{tabular}{ll}
\hline
Method & Result \\
\hline
A & Good \\
B & Better \\
\hline
\end{tabular}
\caption{Summary of results}
\label{tab:summary}
\end{table}
\chapter{Results}
\label{ch:results}
The methodology from \vref{ch:methodology} yielded...
\end{document}
Publishing Workflows
Print Preparation
print-ready.tex
\documentclass[11pt]{book}
% Print specifications
\usepackage[
paperwidth=6in,
paperheight=9in,
inner=0.875in,
outer=0.75in,
top=0.75in,
bottom=0.875in,
bindingoffset=0.125in
]{geometry}
% Crop marks for printer
\usepackage[
cam,
center,
width=6.25in,
height=9.25in
]{crop}
% Color management
\usepackage[cmyk]{xcolor}
% Ensure black text
\usepackage{fixcmyk}
% High-quality output
\pdfcompresslevel=0
\pdfminorversion=7
\pdfobjcompresslevel=0
% Embed all fonts
\pdfinclusionerrorlevel=1
% Resolution settings
\pdfimageresolution=300
\pdfpkresolution=600
\begin{document}
\chapter{Print-Ready Content}
This document is prepared for professional printing with:
\begin{itemize}
\item Proper bleeds and margins
\item CMYK color space
\item Embedded fonts
\item High-resolution settings
\end{itemize}
\end{document}
preflight-check.tex
% Preflight checklist for print
% 1. PDF/X compliance
\usepackage[x-1a]{pdfx}
% 2. Color profiles
\immediate\pdfobj stream attr{/N 4} file{ISOcoated_v2_300_eci.icc}
\pdfcatalog{/OutputIntents [<<
/Type /OutputIntent
/S /GTS_PDFX
/OutputConditionIdentifier (ISO Coated v2 300\% \(ECI\))
/DestOutputProfile \the\pdflastobj\space 0 R
>>]}
% 3. Bleed settings
\usepackage[
paperwidth=6in,
paperheight=9in,
layoutwidth=6.25in,
layoutheight=9.25in,
layouthoffset=0.125in,
layoutvoffset=0.125in,
showcrop
]{geometry}
% 4. Font embedding verification
\pdfmapfile{=pdftex.map}
% 5. Image resolution check
\newcommand{\checkimage}[1]{%
\immediate\pdfximage{#1}%
\edef\imagewidth{\the\pdfximagexres}%
\ifnum\imagewidth<300
\PackageWarning{Image}{Low resolution image: #1}%
\fi%
}
Digital Formats
ebook-version.tex
\documentclass[oneside, 11pt]{book}
% Ebook-friendly settings
\usepackage[
paperwidth=6in,
paperheight=9in,
margin=0.5in,
includehead,
includefoot
]{geometry}
% No page numbers for ebooks
\pagestyle{empty}
% Hyperlinks for navigation
\usepackage[
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
pdfauthor={Author Name},
pdftitle={Book Title},
pdfsubject={Subject},
pdfkeywords={keywords}
]{hyperref}
% Responsive images
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth, height=\textheight, keepaspectratio}
% Flowable text
\raggedbottom
\usepackage{ragged2e}
\setlength{\RaggedRightParindent}{1em}
\begin{document}
\chapter{Ebook-Optimized Content}
This version is optimized for digital readers with:
\begin{itemize}
\item Reflowable text
\item Clickable navigation
\item Responsive images
\item No fixed page breaks
\end{itemize}
\end{document}
multiple-outputs.tex
% Conditional compilation for different formats
\usepackage{ifthen}
\newboolean{printversion}
\newboolean{ebookversion}
\newboolean{webversion}
% Set target format
\setboolean{printversion}{true}
% \setboolean{ebookversion}{true}
% \setboolean{webversion}{true}
% Format-specific settings
\ifthenelse{\boolean{printversion}}{
% Print settings
\usepackage[twoside]{geometry}
\usepackage[cmyk]{xcolor}
\hypersetup{hidelinks}
}{
\ifthenelse{\boolean{ebookversion}}{
% Ebook settings
\usepackage[oneside]{geometry}
\usepackage[rgb]{xcolor}
\hypersetup{colorlinks=true}
\pagestyle{empty}
}{
% Web settings
\usepackage[margin=1in]{geometry}
\usepackage{lmodern}
\hypersetup{colorlinks=true, linkcolor=blue}
}}
% Content variations
\newcommand{\printonly}[1]{%
\ifthenelse{\boolean{printversion}}{#1}{}%
}
\newcommand{\digitalonly}[1]{%
\ifthenelse{\boolean{printversion}}{}{#1}%
}
Production Checklist
Pre-production
✅ Book production checklist:
- Finalize manuscript content
- Professional editing completed
- Choose trim size and format
- Select appropriate fonts
- Design page layout and grid
- Create style specifications
- Set up document structure
- Configure output settings
- Test sample chapters
- Review with stakeholders
Quality Assurance
Common book production issues:
- Inconsistent formatting - Use styles consistently
- Poor image quality - Minimum 300 DPI for print
- Missing fonts - Embed all fonts
- Bad breaks - Check page and line breaks
- Orphans/widows - Adjust text flow
- Color problems - Use correct color space
- Binding issues - Account for gutter
Book template source code
This is the complete source of the book template in the gallery above. It uses the standardbook class with \frontmatter, \mainmatter and \backmatter, geometry for the 6 x 9 inch page and fancyhdr for running heads. Edit the book details block, then replace the sample chapters with your own.
book.tex
% Book Template
% LaTeX Cloud Studio - https://www.latex-cloud-studio.com
%
% Non-fiction book in a 6 x 9 inch trade format: title and copyright
% pages, dedication, contents, preface, parts and chapters, footnotes,
% further reading and an about-the-author page.
% Compile with pdfLaTeX.
\documentclass[11pt,openright]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tgpagella}
\usepackage{microtype}
\usepackage[
paperwidth=6in, paperheight=9in,
inner=0.85in, outer=0.65in,
top=0.8in, bottom=0.85in
]{geometry}
\usepackage{fancyhdr}
\usepackage[hidelinks]{hyperref}
% ============================================
% BOOK DETAILS - edit these
% ============================================
\newcommand{\booktitle}{The Patient Garden}
\newcommand{\booksubtitle}{Growing Food in Small Spaces Through the Seasons}
\newcommand{\bookauthor}{Author Name}
\newcommand{\bookpublisher}{Publisher Name}
\newcommand{\bookyear}{2026}
\hypersetup{pdftitle={\booktitle}, pdfauthor={\bookauthor}}
% Running heads: chapter title on even pages, section title on odd pages
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE]{\small\thepage\quad\textsc{\leftmark}}
\fancyhead[RO]{\small\textsc{\rightmark}\quad\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\fancypagestyle{plain}{\fancyhf{}\fancyfoot[C]{\small\thepage}}
% A short quotation under a chapter heading
\newcommand{\chapterquote}[2]{%
\begin{flushright}\small\itshape #1\par\normalfont--- #2\end{flushright}%
\vspace{1.5em}}
\begin{document}
% ============================================
% FRONT MATTER
% ============================================
\frontmatter
% Title page
\thispagestyle{empty}
\vspace*{0.18\textheight}
\begin{center}
{\Huge\bfseries \booktitle\par}
\vspace{1em}
{\large\itshape \booksubtitle\par}
\vspace{3em}
{\Large \bookauthor\par}
\vfill
{\small\scshape \bookpublisher\par}
\end{center}
\clearpage
% Copyright page
\thispagestyle{empty}
\vspace*{\fill}
\begin{flushleft}\small
Copyright \copyright\ \bookyear\ \bookauthor. All rights reserved.\par
\medskip
No part of this book may be reproduced in any form without written
permission from the publisher, except for brief quotations in reviews.\par
\medskip
Published by \bookpublisher\par
ISBN 000-0-00-000000-0 (paperback)\par
\medskip
First edition, \bookyear\par
Typeset in TeX Gyre Pagella with \LaTeX.
\end{flushleft}
\cleardoublepage
% Dedication
\thispagestyle{empty}
\vspace*{0.3\textheight}
\begin{center}
\itshape For everyone who has grown a tomato on a windowsill.
\end{center}
\cleardoublepage
\tableofcontents
\chapter{Preface}
This book grew out of six years of notes kept on a fourth-floor balcony that
receives direct sun for five hours on a good summer day. It is written for
readers with a balcony, a yard the size of a parking space, or a single bright
window, who want to grow some of what they eat.
The chapters follow the gardening year. Part~I covers what to decide before
anything is planted: light, containers and soil. Part~II moves through the
seasons, from the first spring sowing to the last autumn harvest. Each chapter
ends with a short list of tasks, so you can open the book at the current month
and start working.
Measurements are given in both metric and imperial units. Plant names use the
common name first and the botanical name at first mention.
\bigskip
\noindent\bookauthor\\
\textit{Spring \bookyear}
% ============================================
% MAIN MATTER
% ============================================
\mainmatter
\part{Before You Plant}
\chapter{Reading the Light}
\chapterquote{Every plant is a record of the light it was given.}{A gardener's notebook}
Light decides more about a small garden than any other factor. Before buying a
single seed, spend one sunny day noting when direct sun reaches each part of
the space and when it leaves.
\section{Measuring Hours of Sun}
Check the space every hour from early morning to evening and sketch where the
shadows fall. Fruiting crops such as tomatoes, peppers and beans need at least
six hours of direct sun. Leafy greens and herbs manage with four.\footnote{%
These figures assume a temperate summer. In hot climates, afternoon shade
helps leafy crops more than it harms them.}
\section{Reflected Light}
A pale wall can add a surprising amount of light to a shaded corner. Painting
a fence white or placing a light-coloured board behind a container is an
inexpensive way to extend the range of crops a space can support.
\section{Tasks for This Chapter}
\begin{itemize}
\item Map the sun in your space on a clear day.
\item Mark the areas with six or more hours of direct sun.
\item Note any walls or surfaces that reflect light.
\end{itemize}
\chapter{Containers and Soil}
\chapterquote{Feed the soil, not the plant.}{Traditional saying}
A container garden is only as good as what the roots grow in. Garden soil
compacts in pots and drains poorly, so containers need a lighter mix.
\section{Choosing Containers}
Depth matters more than width for most vegetables. Tomatoes and squash need at
least 30~cm (12~in) of soil; lettuce and radishes manage with 15~cm (6~in).
Every container needs drainage holes, whatever material it is made of.
\section{A Simple Potting Mix}
Combine equal parts of peat-free compost, coir and fine bark, and add a handful
of slow-release organic fertiliser for each 10~litres of mix. Replace a third
of the mix each spring and top up the rest with fresh compost.
\section{Tasks for This Chapter}
\begin{itemize}
\item Choose containers to match the crops you plan to grow.
\item Check that every container drains freely.
\item Prepare enough potting mix for the first sowings.
\end{itemize}
\part{Through the Seasons}
\chapter{Spring Sowing}
\chapterquote{Sow a little, and sow it often.}{A gardener's notebook}
Spring is the busiest season in a small garden. Sow in small batches every two
weeks rather than all at once, so that harvests arrive steadily instead of in
a single glut.
\section{Starting Seeds Indoors}
Tomatoes, peppers and basil need warmth to germinate. Sow them on a bright
windowsill six to eight weeks before the last expected frost, and move them
outside only once night temperatures stay above 10\,\textdegree C
(50\,\textdegree F).
\section{Sowing Directly Outdoors}
Radishes, lettuce, peas and spinach tolerate cool weather and can be sown
outside as soon as the soil can be worked. Keep the surface moist until the
seedlings appear.
\section{Tasks for This Chapter}
\begin{itemize}
\item Start warm-season crops indoors.
\item Sow the first batch of cool-season crops outside.
\item Plan follow-on sowings every two weeks.
\end{itemize}
% ============================================
% BACK MATTER
% ============================================
\backmatter
\renewcommand{\bibname}{Further Reading}
\begin{thebibliography}{9}
\bibitem{soil}
A. Author, \emph{Soil for Small Spaces}. Example Press, 2021.
\bibitem{seasons}
B. Author and C. Author, \emph{The Container Year}, 2nd ed.
Example Publishing, 2024.
\end{thebibliography}
\chapter{About the Author}
\bookauthor\ has grown vegetables on balconies and rooftops for more than a
decade and teaches community workshops on small-space gardening. Replace this
paragraph with a short biography.
\end{document}
Complete Book Example
complete-book.tex
\documentclass[11pt, twoside, openright]{book}
% Packages
\usepackage{fontspec} % XeLaTeX
\usepackage[
paperwidth=6in,
paperheight=9in,
top=0.75in,
bottom=1in,
inner=1in,
outer=0.75in,
bindingoffset=0.25in,
footskip=0.5in
]{geometry}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{lettrine}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage{hyperref}
\usepackage{microtype}
\usepackage{imakeidx}
\usepackage[style=authoryear]{biblatex}
% Fonts
\setmainfont[
Ligatures=TeX,
Numbers=OldStyle
]{Minion Pro}
\setsansfont[Scale=MatchLowercase]{Myriad Pro}
\setmonofont[Scale=MatchLowercase]{Source Code Pro}
% Index
\makeindex[intoc]
% Bibliography
\addbibresource{references.bib}
% Page styles
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE]{\thepage\quad\small\textsc{\leftmark}}
\fancyhead[RO]{\small\textsc{\rightmark}\quad\thepage}
\renewcommand{\headrulewidth}{0pt}
% Chapter style
\titleformat{\chapter}[display]
{\normalfont\huge\sffamily}
{\chaptertitlename\ \thechapter}
{20pt}
{\Huge\bfseries}
\titlespacing*{\chapter}{0pt}{30pt}{40pt}
% Section styles
\titleformat{\section}
{\normalfont\Large\bfseries}
{\thesection}
{1em}
{}
\titleformat{\subsection}
{\normalfont\large\bfseries}
{\thesubsection}
{1em}
{}
% TOC styling
\renewcommand{\cfttoctitlefont}{\Large\bfseries\sffamily}
\renewcommand{\cftchapfont}{\bfseries}
\renewcommand{\cftchappagefont}{\bfseries}
\setlength{\cftbeforechapskip}{0.5em}
% Document info
\title{The Art of Book Design}
\author{Master Typographer}
\date{2024}
\begin{document}
% Front matter
\frontmatter
\pagestyle{empty}
% Half title
\vspace*{\fill}
\begin{center}
{\Large The Art of Book Design}
\end{center}
\vspace*{\fill}
\clearpage
% Title page
\begin{titlepage}
\vspace*{2in}
\begin{center}
{\Huge\bfseries The Art of\\[0.5em] Book Design}\\[2em]
{\Large\itshape A Comprehensive Guide to\\Professional Typography}\\[4em]
{\Large Master Typographer}\\[4em]
\vfill
{\large Publisher Name}\\
{\large 2024}
\end{center}
\end{titlepage}
% Copyright
\vspace*{\fill}
\noindent
Copyright \copyright\ 2024 by Master Typographer\\[0.5em]
All rights reserved.\\[0.5em]
ISBN: 978-0-123-45678-9\\[0.5em]
First Edition
\clearpage
% Dedication
\vspace*{\fill}
\begin{center}
\textit{For all who appreciate\\the beauty of the printed word}
\end{center}
\vspace*{\fill}
\clearpage
% Table of contents
\pagestyle{plain}
\tableofcontents
\clearpage
% Preface
\chapter{Preface}
\pagestyle{fancy}
This book represents a journey through the art and craft of book design,
exploring the principles that have guided typographers for centuries while
embracing modern digital tools.
\mainmatter
% Part One
\part{Foundations}
\chapter{The History of Book Design}
\lettrine[lines=3]{T}{he history} of book design stretches back over five
centuries, from Gutenberg's revolutionary printing press to today's digital
publishing platforms. Throughout this evolution, certain principles have
remained constant: the pursuit of readability, beauty, and effective
communication.
\section{The Incunabula Period}
\index{incunabula}
The earliest printed books, known as incunabula\index{incunabula|textbf},
sought to replicate the appearance of manuscripts...
\section{Renaissance Innovation}
\index{Renaissance}
During the Renaissance\index{Renaissance!printing}, printers like Aldus
Manutius\index{Manutius, Aldus} revolutionized book design...
\chapter{Typography Fundamentals}
\lettrine[lines=3]{T}{ypography} forms the foundation of book design.
Understanding type anatomy\index{type anatomy}, classification
\index{type classification}, and usage enables designers to make informed
decisions that enhance both aesthetics and readability.
\section{Type Anatomy}
The structure of letterforms\index{letterforms} includes several key
components:
\begin{itemize}
\item \textbf{Ascenders}\index{ascenders}: Strokes extending above the x-height
\item \textbf{Descenders}\index{descenders}: Strokes extending below the baseline
\item \textbf{X-height}\index{x-height}: The height of lowercase letters
\item \textbf{Serifs}\index{serifs}: Terminal strokes on letters
\end{itemize}
\part{Practice}
\chapter{Modern Book Production}
\lettrine[lines=3]{M}{odern} book production combines traditional
craftsmanship with digital precision...
\backmatter
% Bibliography
\printbibliography[heading=bibintoc]
% Index
\printindex
% Colophon
\clearpage
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\rule{2in}{0.5pt}\\[1em]
{\small\textsc{Colophon}}\\[1em]
{\footnotesize
This book was designed and typeset by the author\\
using \XeLaTeX\ and the book document class.\\[0.5em]
The text is set in Minion Pro,\\
designed by Robert Slimbach.\\
Display type is set in Myriad Pro,\\
designed by Slimbach and Carol Twombly.\\[0.5em]
Typeset in 2024}
\end{center}
\vspace*{\fill}
\end{document}
Next Steps
Explore related topics:Large Documents
Managing book projects
Typography
Advanced typography techniques
Templates
Book templates and themes
Multi-language
Multilingual books
Pro tip: Start with a clear vision of your book’s purpose and audience. Design decisions should support readability and enhance the reader’s experience. Test your design with sample chapters before committing to the full manuscript. Consider hiring a professional book designer for commercial publications.
