Claude-skill-registry latex-compilation
Use when LaTeX documents fail to compile, have undefined references, duplicate labels, or citation errors
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/latex-compilation" ~/.claude/skills/majiayu000-claude-skill-registry-latex-compilation && rm -rf "$T"
manifest:
skills/data/latex-compilation/SKILL.mdsource content
LaTeX Compilation
Overview
Fix common LaTeX compilation errors systematically by running the full build sequence and addressing errors in order of dependency.
When to Use
- Document won't compile (pdflatex errors)
- "Undefined reference" or "multiply-defined labels" warnings
- Citations showing as
or undefined[?] - Cross-references not resolving
Quick Reference
| Problem | Solution |
|---|---|
| Undefined citations | Run: |
| Duplicate labels | Each must be unique across document |
Empty | Remove or fill in citation key |
| Citation key mismatch | Ensure keys match entry names exactly |
| Cross-refs not updating | Run pdflatex twice after changes |
Full Compilation Sequence
pdflatex -interaction=nonstopmode paper.tex bibtex paper pdflatex -interaction=nonstopmode paper.tex pdflatex -interaction=nonstopmode paper.tex
Common Mistakes
Duplicate
tags - Copy-pasting figures often duplicates labels. Search with:\label{}
grep -n 'label{' paper.tex | sort -t'{' -k2 | uniq -d -f1
Citation key typos -
altabaa2025co vs altabaa2025cot causes undefined citation. Always verify keys match the .bib file exactly.
Running pdflatex only once - Cross-references and citations need multiple passes to resolve.
Empty citations -
\cite{} causes warnings. Remove or add proper key.