Phase 19: Capstone Projects

Paper Writer

A LaTeX skeleton is a contract between the researcher and the typesetter. If the contract is broken the document does not compile, and the failure is loud. Build the skeleton first, then fill it. Treat a research paper as a structured artifact with a known section graph, not a freeform document. Generate a LaTeX skeleton that declares its abstract, sections, figure slots, and bibliography keys before any prose is written. Inject figures from experiment outputs (paths and captions) into the skeleton through a deterministic slot mechanism. Wire a mocked prose generator that fills each section from a structured outline so the harness is testable without a model. Emit a single paper.tex plus a references.bib plus a manifest that lists every figure referenced and every citation used. A draft that starts as prose accumulates structural debt. The introduction grows three paragraphs that should be in related work. A figure gets referenced before it is defined. The bibliography ends up with three keys for the same paper. By the time the author notices, the rewriting cost is higher than the writing cost. A skeleton inverts that. The structure is declared up front as data. Sections are slots with names and order. Figures are slots with ids and captions. Bibliography keys are declared at the top with the entries they point at. Prose…

Paper Writer: A LaTeX skeleton is a contract between the researcher and the typesetter. If the contract is broken the document does not compile, and the…

This free lesson is part of the AI Engineering from Scratch curriculum. Read the full explanation, run the lesson code, and verify the result in the interactive reader or from the repository source.

Browse the complete course catalog or open this lesson on GitHub.