keynote
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKeynote Skill
Keynote Skill
Quick Reference
快速参考
| Task | Guide |
|---|---|
Read / analyze a | |
| Dump text by slide | |
| Get slide count | |
| Read presenter notes | |
| List master layouts | |
| Edit existing Keynote deck | Read editing.md |
| Create deck from scratch | Read creation.md |
| List available themes | |
| Export to PPTX / PDF | |
| Render slide images | |
| Render specific slides | |
| 任务 | 操作指南 |
|---|---|
| 读取/分析.key演示文稿 | |
| 按幻灯片导出文本 | |
| 获取幻灯片数量 | |
| 读取演示者备注 | |
| 列出母版版式 | |
| 编辑现有Keynote演示文稿 | 阅读editing.md |
| 从头创建演示文稿 | 阅读creation.md |
| 列出可用主题 | |
| 导出为PPTX/PDF | |
| 渲染幻灯片图片 | |
| 渲染指定幻灯片 | |
Reading Content
内容读取
bash
undefinedbash
undefinedInspect slide structure, layouts, and text item counts
检查幻灯片结构、版式和文本项数量
python scripts/keynote_tool.py inspect presentation.key --json
python scripts/keynote_tool.py inspect presentation.key --json
Dump text grouped by slide (includes layout names)
按幻灯片导出带版式信息的可读文本
python scripts/keynote_tool.py dump-text presentation.key
python scripts/keynote_tool.py dump-text presentation.key
Quick slide count
快速获取幻灯片数量
python scripts/keynote_tool.py get-slide-count presentation.key
python scripts/keynote_tool.py get-slide-count presentation.key
Read presenter notes (all slides or specific)
读取演示者备注(全部幻灯片或指定幻灯片)
python scripts/keynote_tool.py get-notes presentation.key --json
python scripts/keynote_tool.py get-notes presentation.key --slide 3
python scripts/keynote_tool.py get-notes presentation.key --json
python scripts/keynote_tool.py get-notes presentation.key --slide 3
List available master slide layouts (essential for template-based work)
列出可用母版幻灯片版式(基于模板工作的必备操作)
python scripts/keynote_tool.py list-masters presentation.key --json
python scripts/keynote_tool.py list-masters presentation.key --json
Export for downstream tooling
导出供下游工具使用
python scripts/keynote_tool.py export presentation.key --pptx output.pptx --pdf output.pdf
---python scripts/keynote_tool.py export presentation.key --pptx output.pptx --pdf output.pdf
---Editing Workflow
编辑工作流
Read editing.md for full details.
- Inspect slide structure with and
inspect.dump-text - Apply targeted edits with ,
replace-text,set-text, or structural commands.format-text - Export to /
.pdfand run visual/content QA..pptx
详细说明请阅读editing.md
- 使用和
inspect命令检查幻灯片结构。dump-text - 使用、
replace-text、set-text或结构命令进行针对性编辑。format-text - 导出为.pdf/.pptx格式并进行视觉/内容QA测试。
Creating From Scratch
从头创建演示文稿
Read creation.md for full details.
Use when no template deck exists or when a new native deck is required.
For template-based workflows (corporate templates), see the template section in creation.md.
.key详细说明请阅读creation.md
当没有模板演示文稿或需要新建原生.key演示文稿时使用此功能。对于基于模板的工作流(如企业模板),请查看creation.md中的模板章节。
Command Reference
命令参考
| Command | Purpose |
|---|---|
| Slide count, layout names, and text-item inventory |
| Human-readable text by slide with layout info |
| Quick slide count |
| Read presenter notes |
| Write presenter notes |
| Find/replace text across all text items |
| Set text of a specific text item on a specific slide |
| Set font, size, and/or color of a text item |
| Create a new text box on a slide with optional formatting |
| Add a new slide (optional position and layout) |
| Delete a slide by index |
| Insert an image on a slide with optional position/size |
| List available Keynote themes |
| List master slide layouts in a document |
| Create a new empty Keynote document |
| Export |
| Slide image rendering for QA (supports selective slides) |
| 命令 | 用途 |
|---|---|
| 获取幻灯片数量、版式名称和文本项清单 |
| 按幻灯片导出带版式信息的可读文本 |
| 快速获取幻灯片数量 |
| 读取演示者备注 |
| 写入演示者备注 |
| 在所有文本项中查找并替换文本 |
| 设置指定幻灯片上指定文本项的内容 |
| 设置文本项的字体、大小和/或颜色 |
| 在幻灯片上创建新文本框并可选择设置格式 |
| 添加新幻灯片(可指定位置和版式) |
| 按索引删除幻灯片 |
| 在幻灯片上插入图片并可指定位置/大小 |
| 列出可用的Keynote主题 |
| 列出文档中的母版幻灯片版式 |
| 创建新的空白Keynote文档 |
| 将.key文件导出为.pptx和/或.pdf格式 |
| 渲染幻灯片图片用于QA测试(支持选择特定幻灯片) |
Design Guidelines
设计规范
Color Strategy
色彩策略
- Use 2-3 accent colors plus a neutral background.
- Pick colors from the Keynote theme palette for consistency.
- Ensure sufficient contrast between text and background (4.5:1 minimum).
- 使用2-3种强调色加中性背景。
- 从Keynote主题调色板中选择颜色以保持一致性。
- 确保文本与背景之间有足够的对比度(最小4.5:1)。
Typography
排版
| Element | Font Size | Weight |
|---|---|---|
| Slide title | 36-44 pt | Bold |
| Section header | 28-32 pt | Bold |
| Body text | 18-24 pt | Regular |
| Code blocks | 14-20 pt | Monospace (Menlo, SF Mono) |
| Captions / footnotes | 12-14 pt | Regular or Light |
- Limit each slide to 2 font families maximum.
- Use the theme's default fonts unless there is a specific reason to override.
- For code slides: use on Code master layouts.
format-text --font "Menlo" --color "#FFFFFF"
| 元素 | 字体大小 | 字重 |
|---|---|---|
| 幻灯片标题 | 36-44 pt | 粗体 |
| 章节标题 | 28-32 pt | 粗体 |
| 正文文本 | 18-24 pt | 常规 |
| 代码块 | 14-20 pt | 等宽字体(Menlo, SF Mono) |
| 说明文字/脚注 | 12-14 pt | 常规或轻量 |
- 每张幻灯片最多使用2种字体族。
- 除非有特殊原因,否则使用主题默认字体。
- 对于代码幻灯片:在代码母版版式上使用命令。
format-text --font "Menlo" --color "#FFFFFF"
Layout
布局
- Keep a 40-60 pt margin from all slide edges.
- Align elements to a consistent grid.
- Place one key idea per slide; avoid visual clutter.
- Use visual elements (images, shapes, charts) on most slides to maintain engagement.
- 所有幻灯片边缘保留40-60 pt的边距。
- 元素对齐到统一网格。
- 每张幻灯片只放一个核心观点;避免视觉杂乱。
- 大多数幻灯片使用视觉元素(图片、形状、图表)以保持吸引力。
QA (Required)
QA测试(必填)
- Always export edited deck to and/or
.pdf..pptx - Verify text content after edits (or
dump-texton exportedmarkitdown)..pptx - Render slide images and inspect overlap, clipping, and spacing.
- Use to render only changed slides and conserve resources.
--slides
bash
undefined- 编辑后的演示文稿务必导出为.pdf和/或.pptx格式。
- 编辑后验证文本内容(使用命令或对导出的.pptx使用markitdown)。
dump-text - 渲染幻灯片图片并检查重叠、裁剪和间距问题。
- 使用参数仅渲染修改过的幻灯片以节省资源。
--slides
bash
undefinedRender all slides
渲染所有幻灯片
python scripts/keynote_tool.py render-images presentation.key --out-dir rendered
python scripts/keynote_tool.py render-images presentation.key --out-dir rendered
Render only specific slides (saves time and tokens)
仅渲染指定幻灯片(节省时间和资源)
python scripts/keynote_tool.py render-images presentation.key --out-dir rendered --slides 3,6-8
---python scripts/keynote_tool.py render-images presentation.key --out-dir rendered --slides 3,6-8
---Limitations
限制说明
- Native editing requires macOS + Keynote.app.
.key - Keynote automation is not truly headless; the app may still launch or briefly appear during operations.
- Script avoids forced app focus () to reduce UI interruption, but macOS may still surface windows.
activate - Some master layouts have linked text items (e.g., Code layout links t1 and t3). Use to create independent text boxes when needed.
add-text-item
- 原生.key文件编辑需要macOS + Keynote.app。
- Keynote自动化并非真正的无头模式;操作期间应用程序可能仍会启动或短暂显示。
- 脚本避免强制获取应用焦点()以减少UI干扰,但macOS仍可能弹出窗口。
activate - 部分母版版式包含关联文本项(例如代码版式关联t1和t3)。需要时使用命令创建独立文本框。
add-text-item
Dependencies
依赖项
- Python 3.10+
- macOS with
Keynote.app osascript- (optional, for image rendering)
pdftoppm
- Python 3.10+
- 安装有的macOS系统
Keynote.app osascript- (可选,用于图片渲染)
pdftoppm