Claude Skill

translate-to-quarto

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 b

LLM Mart · 0 points · 1 views 0 listing impressions 0 install-command copies
Download pedrohcgs-claude-code-my-workflow-.claude_skills_translate-to-quarto-fe70774.zip · 1 KB

Install

skills CLI npx skills add https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/translate-to-quarto
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install pedrohcgs-claude-code-my-workflow@llmmart
Git git clone https://github.com/pedrohcgs/claude-code-my-workflow.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole pedrohcgs/claude-code-my-workflow collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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.

Files (claude-code-my-workflow)
  • SKILL.md 2.9 KB
    ---
    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
    background: false
    ---
    
    # 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.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.