← 返回
未分类 中文

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 pictu...
使用 KaTeX(LaTeX)+ 无头 Brave 将数学笔记渲染为 PNG,适用于需要清晰的解答/笔记或公式图片的场景。
rokokol rokokol 来源
未分类 clawhub v0.1.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 427
下载
💾 0
安装
1
版本
#latest

概述

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):

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

版本历史

共 1 个版本

  • v0.1.3 当前
    2026-05-03 07:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 429 📥 116,863
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,721
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 217 📥 47,468