extract-tikz

仓库创建 2026年2月7日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

自动化把 LaTeX 图块转为网页友好 SVG,便于在 Quarto 等中复用。

▸ 风险提示

需要本地 LaTeX/编译工具与外部转换工具,过程会执行编译命令。

这个 Skill 做什么

从 Beamer 源代码提取 TikZ 图,编译为独立 PDF 并转换为 SVG。

从 Beamer 的 .tex 源里把 TikZ 图块抽出来,单独编译成 PDF 再转成 SVG(从 0 开始编号),方便在 Quarto 或网页里复用。适合刚改完 TikZ 图、需要批量重建 SVG 或把幻灯片图同步到其他文档时用,省去手动拆图和调试的麻烦。

▸ 展开 SKILL.md 英文原文

Extract TikZ diagrams from Beamer `.tex` source, compile each to a standalone PDF, and convert to SVG with 0-based indexing. Use when user says "extract the tikz", "regenerate the diagrams", "rebuild the SVGs", "sync tikz to quarto", or after editing TikZ blocks in a Beamer deck that also has a Quarto mirror.

开发编程TikZBeamerSVG通用
1.4k
Stars
2.8k
Forks
40
仓库内 Skill
+65
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/extract-tikz/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/extract-tikz/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Extract TikZ Diagrams to SVG

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

> **Creating a brand-new diagram instead of extracting?** Use [`/new-diagram`](../new-diagram/SKILL.md) — it scaffolds from `templates/tikz-snippets/` with the prevention rules pre-applied.

## Steps

### Step 0: Freshness Check (MANDATORY)

**Before compiling, verify that `extract_tikz.tex` matches the current Beamer source.**

1. Find the Beamer source: `ls Slides/$ARGUMENTS*.tex`
2. Extract all `\begin{tikzpicture}` blocks from Beamer
3. Compare with `Figures/$ARGUMENTS/extract_tikz.tex`
4. If ANY difference exists: update extract
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有