extract-tikz

Extract TikZ diagrams from Beamer sources and convert them to indexed SVGs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/diegosolarfuentes/geopolitics-gvc --skill extract-tikz-diegosolarfuentes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tikz
Source: https://github.com/diegosolarfuentes/geopolitics-gvc/tree/main/.claude/skills/extract-tikz
Command: npx skills add https://github.com/diegosolarfuentes/geopolitics-gvc --skill extract-tikz-diegosolarfuentes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract TikZ diagrams from Beamer sources, compile to a multi-page PDF, and convert each page to SVG for use in Quarto slides.

Core Features & Use Cases

  • Extract and validate TikZ blocks from Beamer sources, compile to PDF with xelatex, and convert each page to compact SVGs with 0-based indexing for easy embedding in slide decks.
  • Use Case: When updating TikZ diagrams for lecture slides or Quarto-based presentations, this tool provides a repeatable pipeline that keeps visuals in sync with the Beamer source.

Quick Start

Run the extract-tikz workflow for a given lecture to generate the corresponding SVGs.

Frequently Asked Questions about extract-tikz

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

FAQPage Schema
How do I convert Beamer TikZ diagrams to SVG for Quarto slides?

To convert Beamer TikZ diagrams to SVG, this tool extracts TikZ blocks from your Beamer source, compiles them into a multi-page PDF using xelatex, and converts each page to an SVG file with 0-based indexing for seamless Quarto embedding.

What is the best way to extract specific TikZ visuals from multiple Beamer lectures?

The best way to extract specific TikZ visuals is using per-lecture selection, such as specifying LectureN. This validates the Beamer source-of-truth and processes only the diagrams needed for that particular lecture's Quarto slides.

Do I need xelatex and pdf2svg to compile TikZ into SVG files?

Yes, you need a TeX toolchain like xelatex to compile the extracted TikZ into a multi-page PDF, and a PDF-to-SVG workflow like pdf2svg to enforce the 0-based SVG indexing required for slide embedding.

How does 0-based SVG indexing work when embedding TikZ graphics in Quarto?

0-based SVG indexing assigns a sequential index starting at zero to each converted diagram page. This allows precise, automated referencing and embedding of specific TikZ SVG files directly within your Quarto slide deck layout.

Can I sync Beamer presentation diagrams automatically with Quarto slides?

Yes, you can sync diagrams by running the extraction workflow whenever Beamer sources are updated. This repeatable pipeline extracts, compiles, and converts TikZ to SVG, ensuring Quarto lecture visuals remain in sync with the Beamer source-of-truth.