- ePub v3.2 compliant book template, validated against the ePub standard with epubchecker
- Word count auto-inserted in the frontmatter
- ePub generation date auto-inserted into front-matter
- Minimal CSS
- Separate CSS for base, frontmatter, bodymatter
| Frontmatter | Chapter example | Script |
|---|---|---|
![]() |
![]() |
![]() |
- 12pt Times New Roman
- Indentation on every paragraph except first
- Scripts written on macos using zsh
- Requires JRE (setup script will install)
- Requires a local copy of the epubchecker .jar file (setup script will download)
- Run
build first_setup.shto install a local version of Java (JRE) and download the epubchecker java file epuchecker.jar. This will put a copy of the Java JRE and the epubchecker .jar in abinfolder
The epub name is book and this is hardcoded into the scripts.
./publish to create book.epub in the root folder
./publish -c to include an epub check, using the standard epubchecker
Warning! The publish script deletes the previous book.epub file each time you generate a new one. I suggest you use git to track your text changes, and consider the ebook a disposable output file.
Code is formatted using Prettier VSCode plugin


