Time for action – writing a book with chapters
We will start to write a book. At first, we shall choose a class, further we will use some filler text to work out the page layout.
Create a new document with the following code:
\documentclass[a4paper,12pt]{book} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \chapter{Exploring the page layout} In this chapter we will study the layout of pages. \section{Some filler text} \blindtext \section{A lot more filler text} More dummy text will follow. \subsection{Plenty of filler text} \blindtext[10] \end{document}
Save the document and Typeset it. Look at the first page:
What just happened?
We have chosen the document class book. As the name implies, this class is suitable for book-like documents. Books are commonly two-sided and consist of chapters which usually start at right-hand pages. They may have a front matter with one or more title pages and a back matter with bibliography, index, and so on. The book
class supports all of this...