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").
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: build-pdfdescription: 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 for Windows and Linux. On Debian/Ubuntu, sudo apt-get install texlive-latex-extra texlive-fonts-extra texlive-lang-portuguese also works.