extract-tikz

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the extraction of TikZ diagrams from Beamer source files, compiling them to standalone PDFs and converting each to SVG for use in Quarto slides, streamlining the workflow for academic presentations and reports.

Core Features & Use Cases

  • TikZ Diagram Extraction: Automatically extract TikZ diagrams from Beamer source files.
  • PDF Compilation: Compile extracted diagrams to PDFs for additional formatting options.
  • SVG Conversion: Convert PDFs to SVG format for seamless integration into Quarto slides.
  • Use Case: After editing TikZ blocks in a Beamer deck, use this Skill to regenerate the SVG diagrams, ensuring consistency across multiple slides or presentations.

Quick Start

Extract TikZ diagrams from 'Lecture2' and convert them to SVG.

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 source file?

This Skill automates TikZ diagram extraction from Beamer source files by parsing the LaTeX code and isolating individual TikZ blocks. It compiles each extracted diagram into a standalone PDF for formatting.

Can I convert TikZ diagrams to SVG for Quarto presentations?

Yes, you can convert TikZ diagrams to SVG for Quarto integration. The Skill compiles extracted Beamer TikZ blocks to PDF and then converts each PDF file into SVG format for seamless presentation embedding.

Do I need XeLaTeX to compile TikZ diagrams to PDF?

Yes, you need XeLaTeX installed to compile TikZ diagrams to PDF. XeLaTeX is a required dependency for the compilation phase, ensuring the extracted Beamer diagrams are properly formatted before SVG conversion.

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

The best way to automate TikZ diagram regeneration for academic workflows is using a script that extracts, compiles, and converts the diagrams. This Skill handles the entire pipeline from Beamer source extraction to SVG output.

Why does my TikZ SVG conversion not work after editing Beamer slides?

TikZ SVG conversion may not work if XeLaTeX is missing or if the Beamer source file has syntax errors. The extraction process requires valid LaTeX code to isolate TikZ blocks and compile them to PDF before conversion.