LaTeX Build Skill for Multi-File PDFs with latexmk
Identify the document entry point and dependencies, then verify that an included chapter rebuilds into the PDF.
中文Install in Claude Code
Use a TeX distribution, latexmk, and your own project. The example has main.tex and one included section.
- Get the complete `plugins/doc-tools/skills/latex-build` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/latex-build/SKILL.md`, start Claude Code at the project root, and call `/latex-build`.
Example task
Include sections/example.tex from main.tex. Run latexmk -pdf main.tex, change the section heading, rerun the command, and inspect main.pdf.What to check
The PDF displays the changed section heading, and the report distinguishes existing warnings from actual build errors.
Original SKILL.md on GitHub · Updated
Frequently asked question
Do included changes require two manual pdflatex runs?
Use latexmk to track dependencies and repeat the compiler as needed, with your project's engine and settings.