跳到正文
TakoAPI
返回技能列表

tex-render

由 thebigoranger 提供

Web & Frontend Development
652下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Renders LaTeX math to PNG, JPEG, WebP, or AVIF images using MathJax (TeX→SVG) and @svg-fns/svg2img.

描述

该技能的功能

Renders LaTeX math expressions to PNG, JPEG, WebP, or AVIF images using MathJax for TeX-to-SVG conversion. When active, the agent automatically renders any LaTeX in its replies and sends images in reading order without prompting the user. Output defaults to PNG files saved locally, with optional Data URL output.

Eliminates the need to copy LaTeX into an external renderer by converting formulas to images inline, in the natural reading order of the conversation.

何时使用

  • Rendering physics equations for a study guide
  • Converting calculus expressions to shareable image files
  • Visualizing chemistry notation inline in chat
  • Embedding matrices and integrals in technical documentation
  • Exporting scientific formulas as JPEG or WebP for web use

示例工作流

输入

User asks: Show me the Euler-Lagrange equation as an image

智能体
  1. 1

    Sends preceding plain text to the user

  2. 2

    Runs render.js with the LaTeX expression via shell using single-quote escaping

  3. 3

    Parses the returned JSON for the PNG file path

  4. 4

    Sends the image file with a short caption

输出

PNG image of the Euler-Lagrange equation delivered inline in the conversation

安装

clawhub install thebigoranger/tex-render

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接