extract-tikz

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

1|1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/xashgg/claude-code-my-workflow-codex --skill extract-tikz-xashgg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tikz
Source: https://github.com/xashgg/claude-code-my-workflow-codex/tree/main/.codex/skills/extract-tikz
Command: npx skills add https://github.com/xashgg/claude-code-my-workflow-codex --skill extract-tikz-xashgg

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of extracting TikZ diagrams from Beamer .tex files, compiling them to PDF, and converting them to SVG for use in Quarto slides, saving time and reducing errors in the process.

Core Features & Use Cases

  • Automated Diagram Extraction: Extracts TikZ diagrams from Beamer .tex files.
  • PDF Compilation: Compiles extracted diagrams into multi-page PDFs.
  • SVG Conversion: Converts PDF pages to SVG format for use in Quarto slides.
  • Use Case: Ideal for users working on academic documents or presentations that require high-quality diagrams and would like to streamline the diagram creation and conversion process.

Quick Start

To extract TikZ diagrams from 'Lecture2.tex' and convert them to SVG, use the command: extract-tikz Lecture2

Frequently Asked Questions about extract-tikz

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

FAQPage Schema
How do I extract TikZ diagrams from a Beamer file and convert them to SVG?

To extract TikZ diagrams from a Beamer file, you compile the .tex file to PDF and convert the pages to SVG format. This Skill automates that entire extraction and conversion workflow for you.

Do I need xelatex and pdf2svg to convert TikZ diagrams to SVG?

Yes, you need xelatex, python3, and pdf2svg installed. These dependencies are required to compile the Beamer .tex files into PDFs and subsequently convert those PDF pages into SVG output.

Can I use extracted TikZ SVG files in Quarto presentations?

Yes, you can use extracted TikZ SVG files in Quarto slides. The Skill is specifically designed for academic workflows that require high-quality SVG diagram conversion for presentation platforms like Quarto.

What is the best way to automate TikZ diagram extraction for academic workflows?

The best way to automate TikZ diagram extraction is using a script that parses Beamer .tex files, isolates the diagrams, compiles them to PDF, and converts them to SVG. This reduces manual errors and saves time.

Does this tool convert entire Beamer presentations or just individual TikZ diagrams?

This tool extracts individual TikZ diagrams from Beamer .tex files. It isolates the specific diagram code, compiles those extracted pieces into multi-page PDFs, and then converts them to SVG format.

Why are my TikZ diagrams not converting properly from PDF to SVG?

PDF to SVG conversion issues for TikZ diagrams often stem from missing dependencies. Ensure xelatex, python3, and pdf2svg are properly installed in your environment to execute the compilation and format conversion correctly.