From doc-tools
LaTeX builds with latexmk and live preview. TRIGGERS - latexmk, LaTeX build, live preview, compilation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/doc-tools:latex-buildThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Self-Evolving Skill**: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Use this skill when:
Industry standard build tool:
latexmk -pdf document.tex
# Result: document.pdf created
latexmk -pvc -pdf document.tex
# What happens:
# - Compiles document initially
# - Watches for file changes
# - Auto-recompiles when files change
# - Auto-reloads PDF in Skim viewer
Stop watching: Press Ctrl+C
# Build once
latexmk -pdf document.tex
# Live preview (watch mode)
latexmk -pvc -pdf document.tex
# Build with SyncTeX
latexmk -pdf -synctex=1 document.tex
# Clean artifacts
latexmk -c # Keep PDF
latexmk -C # Remove PDF too
# Force rebuild
latexmk -gg -pdf document.tex
# Non-interactive (for CI)
latexmk -pdf -interaction=nonstopmode document.tex
which latexmklatexmk -pdf document.tex-synctex=1 flaglatexmk -pvc -pdf document.texlatexmk -c removes artifactsFor detailed information, see:
Official Docs: Run man latexmk or latexmk -help for complete reference
See Also:
latex/setup skill for installing LaTeX and configuring environmentlatex/tables skill for creating tables with tabularray| Issue | Cause | Solution |
|---|---|---|
| latexmk not found | Not in PATH | Add /Library/TeX/texbin to PATH |
| Undefined control sequence | Missing package | Check \usepackage statements for required packages |
| References show ?? | Need multiple runs | latexmk handles this automatically; ensure no errors |
| Live preview not updating | Skim auto-reload disabled | Skim Preferences → Sync → Check for file changes |
| Build hangs | Input prompt in nonstop mode | Use -interaction=nonstopmode flag |
| PDF not updating | Build error preventing output | Check .log file for specific error |
| SyncTeX not working | Missing -synctex=1 flag | Add -synctex=1 to build command |
| Too many aux files | Normal build artifacts | Run latexmk -c to clean (keeps PDF) |
After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.
npx claudepluginhub terrylica/cc-skills --plugin doc-toolsLaTeX environment setup on macOS. TRIGGERS - install LaTeX, MacTeX, Skim viewer, SyncTeX setup.
Sets up and troubleshoots LaTeX environments on Linux/macOS, detects TeX tools like pdflatex/biber/bibtex, analyzes .tex files, installs venue-specific packages (NeurIPS/CVPR) via tlmgr/apt/brew.
Transforms LaTeX documents to produce accessible tagged PDFs (PDF/UA-1, PDF/A-2b) with LuaLaTeX. Creates a non-destructive copy or adds a Makefile target for accessible builds.