---
name: Compile Beamer LaTeX Slides
slug: compile-beamer-latex-slides
category: Automation
description: Compile Beamer LaTeX Slides compiles Beamer LaTeX slide decks using XeLaTeX with a 3-pass build sequence (xelatex, bibtex, xelatex twice). Use it when the user asks to compile, build slides, rebuild PDF, run latex, or render tex files in Slides/*.tex.
github: "https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/compile-latex"
language: HTML
stars: 1509
forks: 2943
install: "npx degit https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/compile-latex ~/.claude/skills/compile-latex"
installs_to: ~/.claude/skills/compile-latex
source_path: .claude/skills/compile-latex/SKILL.md
collection_size: 25
category_size: 1523
collection_url: "https://dirskills.com/collections/pedrohcgs/claude-code-my-workflow"
added: 2026-08-19T07:26:46.557Z
last_synced: 2026-08-19T07:26:46.557Z
canonical_url: "https://dirskills.com/skills/compile-beamer-latex-slides"
---

# Compile Beamer LaTeX Slides

Compile Beamer LaTeX Slides compiles Beamer LaTeX slide decks using XeLaTeX with a 3-pass build sequence (xelatex, bibtex, xelatex twice). Use it when the user asks to compile, build slides, rebuild PDF, run latex, or render tex files in Slides/*.tex.

**Install:**

```bash
npx degit https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/compile-latex ~/.claude/skills/compile-latex
```

## README

# Compile Beamer LaTeX Slides

Compile a Beamer slide deck using XeLaTeX with full citation resolution.

## Steps

1. **Navigate to Slides/ directory** and compile with 3-pass sequence:

```bash
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):**
```bash
cd Slides
TEXINPUTS=../Preambles:$TEXINPUTS BIBINPUTS=..:$BIBINPUTS latexmk -xelatex -interaction=nonstopmode $ARGUMENTS.tex
```

2. **Check for warnings:**
   - Grep output for `Overfull \\hbox` warnings
   - Grep for `undefined citations` or `Label(s) may have changed`
   - Report any issues found

3. **Open the PDF** for visual verification:
   ```bash
   open Slides/$ARGUMENTS.pdf          # macOS
   # xdg-open Slides/$ARGUMENTS.pdf    # Linux
   ```

4. **Report results:**
   - Compilation success/failure
   - Number of overfull hbox warnings
   - Any undefined citations
   - PDF page count

## Why 3 passes?
1. First xelatex: Creates `.aux` file with citation keys
2. bibtex: Reads `.aux`, generates `.bbl` with formatted references
3. Second xelatex: Incorporates bibliography
4. 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 `.bib` file lives in the repo root
