latex-beamer

latex-beamer is a skill for Claude Code, Codex from phanghonghao/THU-Awesome-Skills. It costs 54 tokens per session (9,555 once invoked), scanned A, original, MIT.

A tool that converts Markdown notes into LaTeX Beamer presentations, a system for making slide decks with LaTeX.

In plain words
What is it for?
Use it to produce PDF or PPTX presentations containing Chinese or English text, mathematical formulas, images, and tables.
Why use it?
It can create a presentation when none exists and update an existing one when the Markdown changes, reducing repeated manual slide edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to produce PDF or PPTX presentations containing Chinese or English text, mathematical formulas, images, and tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phanghonghao/thu-awesome-skills/latex-beamer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phanghonghao/THU-Awesome-Skills --skill latex-beamer
Clone the repo
git clone --depth 1 https://github.com/phanghonghao/THU-Awesome-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for latex-beamer

README.md
[![agentmods](https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/latex-beamer/github.svg)](https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/latex-beamer)
Your own site
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/latex-beamer"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/latex-beamer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for latex-beamer

Your own site · 80×15
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/latex-beamer"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/latex-beamer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.09555
Opus 5 $0.00027 $0.04777
Sonnet 5 $0.00011 $0.01911
Haiku 4.5 $0.00005 $0.00955

Measured 12d ago against content hash f8d06e3619c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

latex-beamer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/latex-beamer/SKILL.md · 992 lines

How it starts

The opening of the file, as written. The whole thing — 992 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LaTeX Beamer 智能同步 Skill

将 Markdown 笔记转换为 LaTeX Beamer 演示文稿,支持增量更新。

Overview

核心功能

  1. 不存在则生成 - 如果 .tex 文件不存在,从 .md 完整生成
  2. 存在则同步 - 如果 .tex 已存在,先检测 .md 变化,然后增量更新
  3. 双向同步 - 支持 .md 和 .tex 内容的智能对比和同步
  4. 单版本输出 - 统一使用 ctex (XeLaTeX) 编译,兼容中英文
  5. PPTX 输出 - --pptx 跳过 PDF 编译,直接从 .tex 生成 PPTX

命令行标志

标志 说明 行为
(无标志) 默认流程 Step 1→2/3→4 (PDF 编译) → 5 (可选 PPTX)
--pptx 仅生成 PPTX 跳过 Step 4 (PDF 编译),直接走 Step 5 (读取 .tex → 生成 gen_pptx.py → 执行)
--pptx <path> 指定路径 + 仅 PPTX 定位到 <path> 目录,跳过 PDF 编译,直接生成 PPTX

--pptx 的使用场景

  1. 已有 .tex 和 .pdf,只需要 PPTX — 不需要重新编译 PDF,直接从 .tex 生成 PPTX
  2. 快速迭代 PPTX 排版 — 修改 gen_pptx.py 后重新执行,不用等 xelatex 编译
  3. 没有 MiKTeX 环境 — 不需要 xelatex,只要有 .tex 文件就能生成 PPTX

Workflow

Step 1: 文件状态检测

检查目标 LaTeX 文件是否存在:

# 检查文件是否存在
ls docs/presentation/templates/latex/xxx/main.tex

判断逻辑

  • 如果不存在 → 走 Step 2: 完整生成流程
  • 如果存在 → 走 Step 3: 增量同步流程

--pptx 跳转逻辑

  • 如果用户传入 --pptx 且 .tex 已存在 → 跳过 Step 2/3/4,直接走 Step 5
  • 如果用户传入 --pptx 但 .tex 不存在 → 先走 Step 2 生成 .tex,然后跳过 Step 4,走 Step 5
  • 如果用户传入 --pptx 指向 .tex 文件路径 → 直接读取该 .tex,走 Step 5

Step 2: 完整生成流程(文件不存在时)

2.1 分析 Markdown 文件

读取并分析 .md 文件结构:

# 关键信息提取
- 项目名称: 从标题或 # 中提取
- 作者信息: 从 "团队成员" 或类似章节提取
- 章节结构: ## 标记的章节
- 图片引用: ![alt](path) 或 <img> 标签
- 表格数据: Markdown 表格格式
- 数学公式: $...$ 或 $$...$$

2.2 选择文档类型

根据用户需求选择:

  • Beamer 演示文稿: \documentclass{beamer}
  • Article 文档: \documentclass{article}

2.3 生成 .tex 文件(XeLaTeX + ctex)

\documentclass[aspectratio=169, 10pt]{beamer}
\usepackage[UTF8]{ctex}
% ... 其他设置
\begin{document}
% 内容(无需 CJK* 环境,原生支持中英文)
\end{document}

2.4 处理图片

  1. 复制图片到 sources/ 目录
  2. 重命名为英文(中文转拼音)
  3. 更新 LaTeX 中的引用路径

2.5 处理 GIF / 视频动画

当 .md 中引用了 .gif.mp4.avi 等动态媒体文件时,自动提取帧并嵌入为 PDF 动画。

检测规则

扫描 .md 中的媒体引用(与图片相同语法):

![描述](path/to/demo.gif)
![描述](path/to/clip.mp4)

也扫描 sources/ 目录中的 .gif 文件。

Read the full file on GitHub · 992 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 992 lines · 54 tokens per session scan A f8d06e3619c0

Subscribe to this mod's changes

latex-beamer is a skill published in the GitHub repository phanghonghao/THU-Awesome-Skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 9,555 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens