extract-tikz

Convert TikZ diagrams from LaTeX Beamer sources into SVG files.

5|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/alohays/paper2pr --skill extract-tikz-alohays
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tikz
Source: https://github.com/alohays/paper2pr/tree/main/.claude/skills/extract-tikz
Command: npx skills add https://github.com/alohays/paper2pr --skill extract-tikz-alohays

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of updating and republishing TikZ diagrams by extracting them from Beamer source files, compiling them into multi-page PDFs, and converting each page into SVG format for easy integration into Quarto slides.

Core Features & Use Cases

  • Diagram Extraction: Identifies TikZ pictures in LaTeX Beamer source files and extracts their code snippets.
  • Compilation & Conversion: Compiles extracted TikZ code into a multi-page PDF and converts each page into a separate SVG file, indexed from zero.
  • Use Case: When preparing presentation slides, quickly update diagrams in LaTeX and generate web-friendly SVG images ready for Quarto deployment.

Quick Start

To update TikZ diagrams for a paper, ensure the Beamer source matches your extract_tikz.tex, run the script to compile the diagrams into SVG files, then sync the assets to your documentation folder.

Frequently Asked Questions about extract-tikz

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert TikZ diagrams from LaTeX Beamer to SVG for web slides?

This Skill converts TikZ diagrams by extracting code snippets from Beamer sources, compiling them into a multi-page PDF, and converting each page into an indexed SVG file suitable for web slides.

What is the best way to update TikZ diagrams for Quarto presentation slides?

Updating TikZ diagrams for Quarto slides involves extracting updated code from Beamer source, compiling it into SVG format, and syncing the web-friendly image assets into your documentation folder.

Do I need LaTeX and pdf2svg to extract TikZ pictures into SVG files?

Yes, LaTeX and pdf2svg are required. The Skill uses LaTeX to compile extracted TikZ code into a PDF, and pdf2svg to convert each page into an accessible SVG graphic for presentation slides.

How does TikZ extraction handle page indexing when converting a multi-page PDF to SVG?

TikZ extraction handles page indexing by converting each page of the compiled multi-page PDF into a separate SVG file, with indexing starting from zero to ensure accurate page-to-SVG mapping.

Why does my TikZ conversion fail when the Beamer source does not match the extract_tikz file?

TikZ conversion requires source file consistency. If your Beamer source does not match your extract_tikz.tex file, the extraction process cannot accurately identify and extract the intended TikZ pictures for SVG compilation.