Compile latex
Skill pedrohcgs/claude-code-my-workflow/.claude/skills/compile-latex
A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols.
npx -y skills add pedrohcgs/claude-code-my-workflow --skill compile-latexAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a `.tex` file isn't producing a PDF. Operates on `Slides/*.tex`.
SKILL.md
1.9 KB, as published. Nobody here has run it
Compile Beamer LaTeX Slides
Compile a Beamer slide deck using XeLaTeX with full citation resolution.
Steps
- Navigate to Slides/ directory and compile with 3-pass sequence:
cd Slides
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex
BIBINPUTS=..:$BIBINPUTS bibtex $ARGUMENTS
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex
Alternative (latexmk):
cd Slides
TEXINPUTS=../Preambles:$TEXINPUTS BIBINPUTS=..:$BIBINPUTS latexmk -xelatex -interaction=nonstopmode $ARGUMENTS.tex
-
Check for warnings:
- Grep output for
Overfull \\hboxwarnings - Grep for
undefined citationsorLabel(s) may have changed - Report any issues found
- Grep output for
-
Open the PDF for visual verification:
open Slides/$ARGUMENTS.pdf # macOS # xdg-open Slides/$ARGUMENTS.pdf # Linux -
Report results:
- Compilation success/failure
- Number of overfull hbox warnings
- Any undefined citations
- PDF page count
Why 3 passes?
- First xelatex: Creates
.auxfile with citation keys - bibtex: Reads
.aux, generates.bblwith formatted references - Second xelatex: Incorporates bibliography
- Third xelatex: Resolves all cross-references with final page numbers
Important
- Always use XeLaTeX, never pdflatex
- TEXINPUTS is required: your Beamer theme lives in
Preambles/ - BIBINPUTS is required: your
.bibfile lives in the repo root