Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-10 14:50:50 +02:00
__pycache__ backyard-ultra: auto-sync 2026-08-10 14:42 2026-08-10 14:50:50 +02:00
compare_split.py latex-split: the book-dissector toolchain (split + compare — shipped means measured) 2026-08-10 14:25:05 +02:00
README.md latex-split: the book-dissector toolchain (split + compare — shipped means measured) 2026-08-10 14:25:05 +02:00

latex-split — the book-dissector toolchain

Split a monolithic LaTeX book into a folder-and-chapter structure with a compilable main.tex, and PROVE the split lost nothing.

  • split_book.py — dissect one .tex into chapters/ + a compilable main.tex
  • compare_split.py — verify: reconstructed main.tex vs original .tex (word counts full + chapter-only, per-file sizes, first diff window)

The "shipped means measured" rule for the sovereign literature: a split that can't be verified byte-symmetric isn't a split, it's a risk.

Usage: uv run --script split_book.py book.tex split_out/ uv run --script compare_split.py book.tex split_out/