Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-pptx
wecomcli-pptx
Verified何时用:仅当用户明确指向企业微信 PPT/演示文稿(生成在线 PPT、编辑在线 PPT、导入本地 .ppt/.pptx)时使用;泛指做文档/表格默认走本地工具。「做个PPT」「写份汇报PPT」「把文档转成PPT」「改第3页标题」或需要能讲的分页材料(周会/汇报/路演/课件)时触发;一律作用于企微在线 slide 文档,交付在线链接;不支持编辑本地文件、无导出能力;仅读取本地 PPT 改用 wecomcli-media。
references/component-math.md
View on GitHub---
name: component-math
description: Math component - LaTeX rendering via MathJax, display mode, common syntax
---
# Math 组件规范
用于展示数学公式,使用 MathJax 将 LaTeX 转换为 SVG。
## 核心属性
- **latex**: LaTeX 公式字符串(推荐)
- **width**: 公式宽度(推荐指定,避免过大或过小)
- **color**: 公式颜色,默认 #000(黑色)
- **display**: 是否为块级公式,默认 false
## 常用 LaTeX 语法
**基础**:
- 分数: `\frac{a}{b}`
- 根号: `\sqrt{x}` 或 `\sqrt[n]{x}`
- 上下标: `x^2`, `x_i`, `x^{10}`, `x_{ij}`
**符号**:
- 希腊字母: `\alpha, \beta, \gamma, \delta, \pi, \theta, \lambda, \mu, \sigma`
- 运算: `\pm, \times, \div, \cdot, \leq, \geq, \neq, \approx`
- 求和积分: `\sum, \int, \prod, \lim`
- 集合: `\in, \subset, \cup, \cap, \forall, \exists, \emptyset, \infty`
**高级**:
- 矩阵: `\begin{pmatrix} a & b \\ c & d \end{pmatrix}`
- 方程组: `\begin{cases} x + y = 5 \\ 2x - y = 1 \end{cases}`
## 示例
### 基础公式
```jsx
<Math latex="E = mc^2" width={200} color="#000" />
<Math latex="a^2 + b^2 = c^2" width={180} color="#000" />
<Math latex="e^{i\pi} + 1 = 0" width={180} color="#000" />
```
### 复杂公式(display 模式)
```jsx
<Math latex="\frac{-b \pm \sqrt{b^2-4ac}}{2a}" width={280} display={true} color="#000" />
<Math latex="\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}" width={300} display={true} color="#000" />
```
### 组合布局
```jsx
<Box style={{ display: 'flex', alignItems: 'center', gap: '15px' }}>
<Text style={{ fontSize: '18px' }}>勾股定理:</Text>
<Math latex='a^2 + b^2 = c^2' width={200} color='#000' />
</Box>
```
## 注意事项
- **Math 不是 inline 元素,不能放在 Text 内部**
- ❌ 错误: `<Text>参数 <Math latex="\theta" width={10} /> 说明</Text>`
- ✅ 正确: `<Box style={{ display: 'flex' }}><Text>参数</Text><Math latex="\theta" width={10} color="#000" /><Text>说明</Text></Box>`
- LaTeX 反斜杠需转义:`\\frac` 而非 `\frac`
- 建议指定 width 避免尺寸问题
- 复杂公式使用 `display={true}` 以块级模式渲染
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |