Set up professional Quarto documentation projects with PDF output via LaTeX templates. Use this skill when the user wants to create a Quarto project, set up a documentation project with PDF output, configure LaTeX templates for Quarto, render markdown to professional PDF, or asks about Quarto document setup. Triggers on mentions of "quarto", "pdf template", "latex template for documents", "documentation project setup", or "professional PDF from markdown".
This skill sets up professional documentation projects that render Markdown to PDF using Quarto and custom LaTeX templates.
Follow these steps in order when setting up a new Quarto document project.
Run these checks and report results to the user:
# Check Quarto
quarto --version
# Check TeX Live
pdflatex --version
# Check required LaTeX packages
for pkg in libertinus.sty fontspec.sty multirow.sty mdframed.sty zref.sty needspace.sty titlesec.sty enumitem.sty; do
kpsewhich "$pkg" > /dev/null 2>&1 && echo "OK: $pkg" || echo "MISSING: $pkg"
done
# Check JetBrains Mono font (system font, not a TeX package)
fc-list "JetBrains Mono" | head -1 || echo "MISSING: JetBrains Mono font"
If Quarto is missing, tell the user to install it from https://quarto.org/docs/get-started/
If the JetBrains Mono font is missing, install it:
brew install --cask font-jetbrains-mono
If TeX packages are missing, provide this command:
sudo tlmgr install libertinus libertinus-fonts libertinus-otf libertine fontspec multirow mdframed zref needspace titlesec enumitem
Present the user with these template options using AskUserQuestion:
Corporate Report — Professional business documents with logo support, navy blue accents, clean tables. Good for: annual reports, proposals, policy documents.
Technical Manual — Optimized for technical content with styled code blocks, admonition boxes (note/warning/tip), dark teal accents. Good for: API docs, technical specs, runbooks, SOPs.
Assessment Report — Color-coded status indicators, metadata boxes, summary tables, blue accents. Good for: compliance assessments, audits, gap analyses, security reviews.
Minimal Clean — No title page, black/gray only, wide margins, elegant typography. Good for: memos, short reports, internal documents, drafts.
Ask the user for:
The templates are located in this skill's templates/ directory. Resolve the skill path by finding where this SKILL.md file lives (check ~/.claude/skills/skill-quarto-doc-setup/ for the symlink, or the original repo path). Copy the selected template and create the QMD file.
4a. Copy the LaTeX template to the user's project directory:
cp ~/.claude/skills/skill-quarto-doc-setup/templates/<selected-template>.tex <project-dir>/<template-name>.tex
4b. Create the QMD document with this frontmatter structure:
---
Edit PDFs with natural-language instructions using the nano-pdf CLI.