Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a claude-code
Open on GitHub

What 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-quarto check
  • sync translation corrections back to the original Beamer .tex file

Example prompts for the agent

  • Translate Lecture01_Intro.tex into a Quarto RevealJS deck
  • Mirror Lecture04_Regression.tex in Quarto/ and run the parity checks
  • Convert this Beamer lecture Lecture02_Overview.tex to quarto

How to install translate-to-quarto

1Skills CLI (Vercel)

npx skills add pedrohcgs/claude-code-my-workflow --skill translate-to-quarto -a claude-code

2Manually: put the files in place

~/.claude/skills/translate-to-quarto/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/translate-to-quarto/

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

Similar skills

All skills for Writing and docs →

From the same set56

verify-claims Checks factual statements in a draft through an independent verification pass. Use it for citations, figures, dataset claims, and research references. CX Codex +1 ★ 1,671repo stars validate-bib Cross-references lecture citations against bibliography files. Catches missing keys, duplicate entries, and metadata mismatches. CX Codex +1 ★ 1,671repo stars vaccinate Tests whether a reviewer or automated check catches the defects it is meant to find. Use it before trusting a review gate for a release or another consequential decision. CX Codex +1 ★ 1,671repo stars triage-inbox Sorts academic mail and calendar events through MCP into buckets, then proposes one gated action per thread. It never sends or accepts anything. CX Codex +1 ★ 1,671repo stars teach-from-paper Turn a single research paper into a lecture plan, slide outline, discussion prompts, and an exercise brief. Use it when you need to teach the paper to a defined audience. CX Codex +1 ★ 1,671repo stars syllabus Turns a topic or reading list into a teachable syllabus: description, weekly schedule, objectives, assessment and policies. Built for instructors. CX Codex +1 ★ 1,671repo stars submission-disclosures Drafts four mandatory journal submission disclosures covering AI usage, CRediT contributor roles, conflict of interest, and data availability. CX Codex +1 ★ 1,671repo stars stata-replication This skill builds numbered Stata scripts, runs them through an MCP server, and saves logs, tables, and figures. Use it to set up a reproducible analysis workflow. CX Codex +1 ★ 1,671repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor