LaTeX templates and examples — Books
LaTeX book templates to write your next best seller—whether you’re writing fiction or non-fiction, a short story or long textbook.
Recent
![Overleaf template to visualize the layout of a book prepared with \documentclass[twoside]{book}](https://writelatex-staging.s3.amazonaws.com/published_ver/907.jpeg?X-Amz-Expires=14400&X-Amz-Date=20250220T190311Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNF72YV4UC/20250220/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=51ddf8c5b66c1ffdde32be14022b14db6a0de976b5d71eedd614ae68f9e0c6ac)
This template, written using LuaLaTeX, accompanies the blog post Taming LaTeX’s Page Layout: A Template and Toolset for Book Authors. It provides tools for visualizing the layout of a book that will be produced with LaTeX's book class file ((i.e., via \documentclass[twoside]{book}). The template is not intended for final book production but to provide a tool for rapid prototyping of different paper sizes, book sizes and page margins. It overlays the book page with borders and also draws rulers rulers (using a mm scale) for you to visually inspect and check measurements. Each time you successfully typeset a document the template also writes out a file called "mypagesetup.tex" that contains the LaTeX code to set the various parameters needed to implement your own layout using book.cls: download your project, extract "mypagesetup,tex" and include that file into your own project.
\begin
Discover why 18 million people worldwide trust Overleaf with their work.