About compile-latex
A skill for compiling Beamer slide decks with XeLaTeX and resolving citations and references. It also checks compilation warnings and reports PDF output details.
Key features
- 01Three-pass XeLaTeX compilation
- 02BibTeX citation resolution
- 03latexmk alternative
- 04Warnings for overflow and unresolved references
- 05PDF compilation results
Use cases
- 01Compiling a Beamer deck with bibliography
- 02Checking for overflow or unresolved citations
- 03Reporting compilation status and PDF page count
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ pedrohcgs/ claude-code-my-workflow --skill compile-latexAfter installing, type/compile-latexin Claude Code to confirm it loaded.
Details
From the project READMECompile 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
Comments
Markdown supported