返回顶部
m

math-notes-katex

Render math-heavy notes to PNG using KaTeX (LaTeX) + headless Brave. Use when the user asks for a clean “solution/конспект as an image”, “formulas as a picture”, or when chat formatting is insufficient (e.g., Telegram). Not for normal text replies.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.3
安全检测
已通过
102
下载量
0
收藏
概述
安装方式
版本历史

math-notes-katex

# Notes → PNG (KaTeX + headless Brave) ## Core rule - Default: reply as normal text - Render a PNG only when explicitly requested ("as an image", "KaTeX skill", "нормально записанное решение") or when high-quality formula layout is needed - If using this skill → write formulas in **LaTeX** (`$...$`, `$$...$$`), not ASCII approximations - Inside the PNG: **Markdown headings (`#`, `##`) are NOT parsed**. Use `--title="..."` for the page title; use plain text for section headers (e.g., `1) ...`) ## Input format - Save a UTF-8 text file (e.g. `out/_scratch/notes/note.md`) - Inline math: `$...$` - Display math: blocks between lines containing `$$` Details: `references/formatting.md` ## Render to PNG Scripts: - `scripts/render_note_png.js` — single-page PNG - `scripts/render_note_pages.sh` — multi-page (splits into multiple PNGs) Single-page steps: 1) Write your note (e.g. `out/_scratch/notes/note.md`) 2) Render (keep outputs in `out/` to avoid cluttering repo root): - `node skills/math-notes-katex/scripts/render_note_png.js out/_scratch/notes/note.md out/katex/note.png --title="Topic" --brave=/usr/bin/brave-browser` 3) Send `out/katex/note.png` Multi-page (when the note does not fit well into one image): ```bash skills/math-notes-katex/scripts/render_note_pages.sh \ out/_scratch/notes/note.md out/katex/note_pages "Topic" /usr/bin/brave-browser ``` This produces: - `out/katex/note_pages/page-001.png`, `page-002.png`, ... ## Important: KaTeX CSS/fonts - KaTeX needs `katex.min.css` + fonts (`fonts/...`) - This skill links KaTeX CSS via a local `file:///.../katex.min.css` path so relative `fonts/` resolve correctly If formulas look broken: `references/troubleshooting.md`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 math-notes-katex-1775946504 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 math-notes-katex-1775946504 技能

通过命令行安装

skillhub install math-notes-katex-1775946504

下载 Zip 包

⬇ 下载 math-notes-katex v0.1.3

文件大小: 10.21 KB | 发布时间: 2026-4-12 10:32

v0.1.3 最新 2026-4-12 10:32
Tidy docs; clarify usage without extra security notes

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部