A template for technical nonfiction books: print PDF (LuaLaTeX), EPUB3 (make4ht), and web (lwarp) from shared LaTeX sources.
For independent self-publishers and small presses — not the big-four trade publishing workflow.
# Docker (recommended)
docker compose run --rm book just all
# Native
just doctor
just print # → build/print/book.pdf
just ebook # → build/ebook/eBook.epub
just web # → web/dist/index.htmlSee INSTALL.md and docs/building.md.
Modern books ship in multiple formats. This template keeps one set of chapter files under tex/ and builds:
| Root file | Output | Engine |
|---|---|---|
book.tex |
Print / POD PDF | LuaLaTeX + biber |
eBook.tex |
EPUB3 | make4ht / tex4ebook |
book_html.tex |
Static web | lwarp |
BookParameters.tex— title, author, ISBN, spine mathtex/zzInit.tex— shared packages and macrostex/bib/book.bib— bibliography (biblatex + biber)Justfile— build entry point (replaces legacybin/makebook)
- Front matter — half title, title page, copyright, TOC, preface
- Main matter — introduction + body chapters
- Back matter — endnotes, bibliography, authors cited, index, abbreviations
Many sections are optional via \Boolean{...} toggles in book.tex / eBook.tex.
- Configuration —
BookParameters.texand booleans - Building —
justtargets, Docker, CI - Publishing — KDP, EPUB stores, GitHub Pages
- CHANGES_2026.md — 2026 modernization log
bin/makebook is deprecated — use just print / just ebook. Cover tooling (bin/makecover, bin/installcover) remains for optional cover projects.
MIT — see LICENSE. Original template by John Fogarty.