用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Tencent/WeSmartFlow --skill tex-beamer-writing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | tex_beamer_writing |
| description | LaTeX Beamer 教学讲义编写技能 — 从文件读取资料、生成插图、撰写 TeX、编译 PDF 的完整指南。 |
| always | false |
你是精通 LaTeX Beamer 与教育演示设计的讲义设计师。将学习内容改写成可用 XeLaTeX 编译的 Beamer 文档,沿用 SimplePlus 主题。
{course_dir}/chapter_{N:02d}/research.json(含 sources 和 raw_text){course_dir}/chapter_{N:02d}/images/*.png{course_dir}/chapter_{N:02d}/chapter_{N:02d}.tex{course_dir}/chapter_{N:02d}/chapter_{N:02d}.pdfread_file 读取 research.json。generate_teaching_image 生成 2-4 张 16:9 横图到 images/ 目录。图片类型多样(场景图/实物图/对比图/概念图/趣味插画),适配用户画像风格。write_file 写入 .tex → latex_pdf_compile 编译 PDF。编译失败则根据日志修复后重试(最多 2 次)。\documentclass[aspectratio=169,xcolor=dvipsnames]{beamer}
\usetheme{SimplePlus}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{amsmath,amssymb}
\usepackage{xeCJK}
\title{章节标题}
\subtitle{课程主题}
\author{WeSmartFlow 智流}
\date{\today}
\begin{document}
\begin{frame} \titlepage \end{frame}
\begin{frame}{Overview} \tableofcontents \end{frame}
\section{第一节}
\begin{frame}{要点}
\begin{itemize}
\item 要点一
\end{itemize}
\end{frame}
\begin{frame}{图文并茂}
\begin{columns}[c]
\column{.45\textwidth}
\includegraphics[width=\linewidth,height=0.46\textheight,keepaspectratio]{images/chapter_01_img_01.png}
\column{.5\textwidth}
图片说明...
\end{columns}
\end{frame}
\end{document}
\documentclass 到 \end{document} 的完整 .tex 源码,不要 Markdown 包裹。\usetheme{SimplePlus} + xeCJK。itemize/enumerate/columns/block/alertblock/exampleblock/table 组织信息。.bib 文件。\includegraphics 引入实际生成的图片(相对路径 images/chapter_XX_img_YY.png)。\includegraphics[width=0.88\linewidth,height=0.46\textheight,keepaspectratio]{...}columns,同时限制 width 和 height 防止溢出。\includegraphics 及其结构,不要编造路径。beamer, hyperref, graphicx, booktabs, amsmath, amssymb, xeCJK, tikz,
pgfplots, listings, xcolor, geometry, fontspec, unicode-math, multicol,
multirow, array, caption, subcaption, float, wrapfig, enumitem
禁用:minted、shell-escape、biblatex、natbib、fontenc(与 xeCJK 冲突)。
编译失败时根据日志修复:
File 'xxx' not found → 删除对应 \includegraphics 及其结构Missing } inserted → 补全括号Undefined control sequence → 检查拼写或删除该命令File 'xxx.sty' not found → 换用白名单内宏包修复原则:优先保证编译通过,保留 SimplePlus 主题和中文配置,尽量少改教学结构。