A Pandoc workflow for building PDF, HTML, EPUB, and LaTeX book format.
Go to file
John Haverlack 74b4efd2cf v1.2.0 2026-02-05 15:35:47 -09:00
.obsidian v1.1.0 2026-02-05 15:14:51 -09:00
build v1.1.0 2026-02-05 15:24:44 -09:00
chapters v1.1.0 2026-02-05 15:11:30 -09:00
filters Fixed Code and CLI blocks 2026-02-05 13:01:44 -09:00
lib v1.1.0: Documenting usage 2026-02-05 15:02:41 -09:00
scripts v1.1.0: New Project Script 2026-02-05 15:07:37 -09:00
templates v1.1.0: Documenting usage 2026-02-05 15:02:41 -09:00
.gitignore v1.1.0 Refactor 2026-02-05 08:53:38 -09:00
LICENSE.md Updating workflow 2025-11-13 07:40:22 -09:00
Makefile Version 1.0.0 Refactor: Fixed Zotero Lib 2026-02-05 11:33:29 -09:00
README.md v1.2.0 2026-02-05 15:35:47 -09:00
metadata.yaml v1.1.0 2026-02-05 15:24:44 -09:00

README.md

basic-book-builder (b3)

Attribute Value
Author John Haverlack
Copyright 2026 John Haverlack
License CC BY-ND 4.0
Version 1.1.0
Date 2026-02-05

This is a basic book (article) builder template based on a Pandoc build process in conjunction with a number of other tools to generate PDF, DOCX, ODT, HTML, LaTeX, Markdown, and Epub book formats all from a single set of Markdown source content in an Obsidian vault.

Usage

PDF

make pdf

NOTE: Building the PDF also builds the LaTeX version of the book.

HTML

make html

DocX

make docx

NOTE: DocX is a work in progress

ODT

make odt

NOTE: ODT is a work in progress

Other Formats

  • Markdown is a work in progress
  • EPub is a work in progress

Getting Started

Download PDF or HTML version of the b3 book. Which self documents how to use this template:

Setup Build Environment

NOTE: For Debian based systems.

scripts/setup-linux-deb.sh

Testing Build Environment

make all

If this succeeds you have a build environment.

Create a New Project

./scripts/new-project.sh <PATH_TO_PROJECT>
cd <PATH_TO_PROJECT>

Update Config Files:

  1. metadata.yaml
  2. templates/pandoc.yaml
  3. Edit Chapter Content
  4. Build your book