latex-scaffoldlisted
Install: claude install-skill WILLOSCAR/research-units-pipeline-skills
# LaTeX Scaffold
Convert the approved Markdown draft into a minimal, buildable LaTeX project.
This is a deterministic conversion step; prose quality should already be addressed in `output/DRAFT.md`.
## Inputs
- `output/DRAFT.md` or `output/TUTORIAL.md`
- optional: `citations/ref.bib`
## Outputs
- `latex/main.tex` (and any required LaTeX support files)
## Layout policy
The machine-readable layout contract lives in `assets/layout_profiles.json`.
The default profile uses a 1in A4 margin, includes a table of contents, and may
split large tables. The bounded `course_paper` profile uses a documented 0.9in
A4 margin, omits the table of contents, keeps a compact table whole when
possible, and sets only the bibliography in `\small`. Body text remains 11pt.
This profile is intended to respect an explicit page range, not to manufacture
substantive completeness by shrinking the paper.
## Workflow
1. Create `latex/` directory if missing.
2. Create `latex/main.tex` with sections matching the outline.
3. Wire bibliography to `citations/ref.bib` when that file exists.
## Quality checklist
- [ ] `latex/main.tex` exists.
- [ ] If `citations/ref.bib` exists, `latex/main.tex` references it.
## Script
### Quick Start
- `uv run python .codex/skills/latex-scaffold/scripts/run.py --help`
- `uv run python .codex/skills/latex-scaffold/scripts/run.py --workspace <workspace>`
### All Options
- See `--help` (inputs/outputs are taken from the unit runner when used via pipeline)
### Examp