mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-11-09 10:39:41 -06:00
MIT Press Assets
Scripts and generated files for MIT Press submission.
Figure List Generator
Extracts figure metadata from QMD source files and combines it with the figure-number and page manifest produced by the PDF build:
# From the quarto/ directory, before rendering:
python3 scripts/mit_press/generate_figure_list.py --clear
# Post-render runs automatically for the production PDF. To rerun it:
python3 scripts/mit_press/generate_figure_list.py
The generator writes FIGURE_LIST.txt into the active PDF output directory.
Run it only after a fresh render so the LaTeX manifest, figure numbers, and
page numbers correspond to the current manuscript.
Output Fields
| Field | Description |
|---|---|
| Figure Number | Chapter.Figure format (e.g., 1.1, 2.3) |
| Label | Source reference (e.g., fig-ai-timeline) |
| Caption | Full caption text |
| Alt-Text | Accessibility description |
Tracked submission logs
PERMISSIONS_FIGURES_VOL1.csvrecords source and permission status for every Volume I figure. It is source-based and can be maintained without a render.- The generated
FIGURE_LIST.txtis a build artifact and is intentionally not tracked in this directory.
Validate that the permissions log covers the current QMD figure inventory:
python3 scripts/mit_press/check_permissions_log.py
Before final submission, require every permission scope to be resolved:
python3 scripts/mit_press/check_permissions_log.py --require-resolved