translate-to-quarto — Claude Code skill: what it does and install
Converts Beamer LaTeX slides into Quarto RevealJS presentations inside Quarto/. Useful when preparing academic decks for online publication without rewriting math.
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a claude-codeWhat translate-to-quarto does
The skill transforms .tex slides into a .qmd deck while treating the original Beamer file as the primary source of truth. Before generating slides, it checks for theme SCSS styles, runs /extract-tikz to prepare diagrams, and inventories RDS datasets. The beamer-translator subagent then mirrors frames one-to-one, preserving verbatim formulas.
Figures transition to static SVG or interactive Plotly charts loaded from RDS data. The pipeline runs visual inspection, checks pedagogical layout, proofreads content via /proofread, and performs parity validation with /qa-quarto. Any corrections discovered during translation sync back to the original .tex document.
Custom environments require matching CSS in your SCSS theme beforehand. The workflow stops before version control: it marks the deck ready, leaving git commits and pull requests to the user.
What it helps with
- convert LaTeX Beamer presentations into Quarto RevealJS HTML slides
- preserve raw math blocks and slide environments during conversion
- turn RDS data into interactive Plotly figures for slides
- verify visual and structural parity with the
/qa-quartocheck - sync translation corrections back to the original Beamer
.texfile
Example prompts for the agent
- Translate
Lecture01_Intro.texinto a Quarto RevealJS deck - Mirror
Lecture04_Regression.texinQuarto/and run the parity checks - Convert this Beamer lecture
Lecture02_Overview.texto quarto
How to install translate-to-quarto
1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a claude-code2Manually: put the files in place
~/.claude/skills/translate-to-quarto/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/translate-to-quarto/
1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a codex2Manually: put the files in place
.agents/skills/translate-to-quarto/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a cursor2Manually: put the files in place
.cursor/skills/translate-to-quarto/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pedrohcgs/claude-code-my-workflow translate-to-quarto2Manually: put the files in place
.github/skills/translate-to-quarto/SKILL.md1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a gemini-cli2Platform CLI
gemini skills install https://github.com/pedrohcgs/claude-code-my-workflow --path .claude/skills/translate-to-quartoManually: put the files in place
.devin/skills/translate-to-quarto/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about translate-to-quarto
How to install translate-to-quarto in Claude Code?
Run npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a claude-code in your terminal. You can also place the skill file directly at ~/.claude/skills/translate-to-quarto/SKILL.md.
What does the translate-to-quarto skill do?
It executes a multi-stage migration pipeline from LaTeX Beamer to RevealJS HTML in Quarto/. It handles TikZ graphics, citations, interactive Plotly plots, and verifies slide-by-slide layout consistency.
Does the skill automatically commit changes to git?
No, the skill explicitly skips git operations. It updates CLAUDE.md and the session log, then signals that the deck is ready for a manual /commit.
Source text
SKILL.md · MIT
--- name: translate-to-quarto description: Translate a Beamer `.tex` lecture to a Quarto RevealJS `.qmd` mirror. Multi-phase: TikZ extraction → slide-by-slide translation → citation conversion → automatic QA parity check. Use when user says "translate to quarto", "port to revealjs", "make an html version", "convert this beamer to quarto", "mirror this lecture in qmd", or after a Beamer deck is ready for web publication. Output lands in `Quarto/`. argument-hint: "[LectureN_Topic.tex]" allowed-tools: ["Read", "Grep", "Glob", "Write", "Edit", "Bash", "Agent", "Task"] context: fork --- # Beamer → Quarto Translation Workflow Full translation of a Beamer LaTeX lecture to Quarto RevealJS HTML slides. **The Beamer `.tex` is the source of truth:** the `.qmd` mirrors it, and corrections found during translation go back to the `.tex` (Phase 10). --- ## Phase 0: Pre-Flight Checks ### 0A. Environment Parity Audit Scan Beamer for all custom environments. Verify CSS equivalents exist in your theme SCSS. If any are missing, create them FIRST. ### 0B. TikZ Freshness Verification Run `/extract-tikz` to verify SVGs match current Beamer source. ### 0C. RDS Data Inventory List all RDS files needed for interactive charts. ### 0D. Citation Key Mapping Extract all citations from Beamer, map to bibliography keys. ## Phase 1: Pre-Translation Preparation - Read complete Beamer source, count frames - Inventory figures (TikZ → SVG, R plots → plotly, other → SVG) ## Phase 2: Create QMD File with YAML Header - Standard RevealJS YAML with theme, logo, footer, bibliography - Setup chunk for R data loading if needed ## Phase 3: Slide-by-Slide Translation - Delegate to `beamer-translator` agent - 1:1 frame-to-slide mapping - Verbatim math, environment parity, no font reduction ## Phase 4: TikZ Diagram Integration Reference extracted SVGs with 0-based indexing. ## Phase 5: R Figure Integration (Plotly-First) Interactive plotly from RDS data, static SVG for TikZ/complex figures. ## Phase 6: First Render & Content Fidelity Check Render, count slides, go through EVERY slide checking for issues. ## Phase 6.5: Pedagogical Review Run pedagogy-reviewer before visual polish. ## Phase 7: Visual Polish Semantic colors, transition slides, framing sentences. ## Phase 8: Proofreading Run `/proofread` on the QMD file. ## Phase 9: Final Verification & Deployment Render, then check the rendered output yourself (the rendered HTML, plus any screenshot or PDF export the user supplies) — every figure present, no overflow, all environments styled. ## Phase 10: Beamer Source Sync Apply any corrections back to Beamer source. ## Phase 11: Parity QA + Documentation Run `/qa-quarto` on the new mirror for Beamer↔Quarto parity. Then update the lecture row in CLAUDE.md and the session log, and tell the user the deck is ready for `/commit` — this skill does not commit or open a PR.
© pedrohcgs · MIT · pedrohcgs/claude-code-my-workflow