Compile a LaTeX resume (.tex) into a one-page PDF and fix compile errors. Use after creating or editing a resume .tex, or when the user asks to compile or generate the PDF ("gerar o PDF do currículo").
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Build Pdf?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/devcelio-build-pdf)
---
name: build-pdf
description: Compile a LaTeX resume (.tex) into a one-page PDF and fix compile errors. Use after creating or editing a resume .tex, or when the user asks to compile or generate the PDF ("gerar o PDF do currículo").
---
# Build PDF
**Goal:** a PDF that compiles cleanly and fits on exactly one page.
`scripts/build.sh <file.tex>` compiles it with whichever engine is installed (`tectonic`, `latexmk` or `pdflatex`), cleans auxiliary files and prints the page count.
If it spills onto a second page, tighten the content before shrinking margins. Weak bullets and lines that wrap by one or two words are the usual culprits. Compile errors are almost always unescaped `& % $ # _` in the text or a brace missing in a `\cventry`. Portuguese also needs the `texlive-lang-portuguese` package.
If no LaTeX engine is installed, offer to install one and wait for the user's OK. Tectonic is the lightest option and fetches packages on its own: `brew install tectonic` on macOS, or the [install guide](https://tectonic-typesetting.github.io/en-US/install.html) for Windows and Linux. On Debian/Ubuntu, `sudo apt-get install texlive-latex-extra texlive-fonts-extra texlive-lang-portuguese` also works.