extract-tikz

Extract TikZ diagrams from Beamer LaTeX sources and convert them to SVG files.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/AmbroseTriC/ECON53_DAC --skill extract-tikz-ambrosetric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tikz
Source: https://github.com/AmbroseTriC/ECON53_DAC/tree/main/.agents/skills_pre_codex_migration_2026-03-19/extract-tikz
Command: npx skills add https://github.com/AmbroseTriC/ECON53_DAC --skill extract-tikz-ambrosetric

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires xelatex, pdfinfo, pdf2svg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables users to extract TikZ diagrams from Beamer LaTeX sources, compile them into PDFs, and convert each page into SVG files, facilitating easy inclusion of diagrams in Quarto slides or web formats.

Core Features & Use Cases

  • Diagram Extraction: Finds and extracts TikZ pictures from Beamer .tex files for editing or reuse.
  • Compilation & Conversion: Compiles the extracted TikZ code into a PDF, counts pages, and converts each page to an SVG with 0-based indexing.
  • Application Example: When updating presentation diagrams, extract the TikZ code from LaTeX source, compile into SVG for web or slide use, and synchronize assets automatically.

Quick Start

Use the extract-tikz skill to convert TikZ diagrams from the specified lecture's LaTeX source into SVG files for slide deployment.

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?

To convert TikZ diagrams to SVG, the Skill extracts TikZ pictures from Beamer `.tex` files, compiles them into a PDF using xelatex, and converts each page into an SVG file using pdf2svg for web integration.

What dependencies do I need to extract TikZ code and compile it into SVG?

You need xelatex, pdfinfo, and pdf2svg installed to compile TikZ code into PDFs, count pages, and convert each page into an SVG file with 0-based indexing.

Can I extract specific TikZ pictures from my LaTeX source for reuse?

Yes, the Skill finds and extracts TikZ pictures from your Beamer `.tex` source files, allowing you to isolate specific diagrams for editing, updating, or deploying in other presentation formats.

How are multi-page TikZ PDFs handled during SVG conversion?

During SVG conversion, the Skill uses pdfinfo to count the pages in the compiled Tikz PDF, then converts each page into an individual SVG file using a 0-based indexing system.

What is the best way to synchronize TikZ diagrams with Quarto slides?

The best way to synchronize TikZ diagrams is to extract the code from LaTeX source, compile it into SVG files, and use synchronization scripts to automatically deploy the updated assets into your Quarto slides.