Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计提醒

tex-render特克斯渲染

Agent Skill

tex-render 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

34,566

周安装

1,426

GitHub Stars

1

下载量

11,294
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tex-render(特克斯渲染)
来源仓库:https://github.com/thebigoranger/tex-render
安装命令:
openclaw skills install tex-render
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tex-render

简介

用于将 LaTeX 数学公式渲染为 PNG、JPEG 等图像格式。

  • 适用于学术论文、技术文档或教育课件中的公式可视化。
  • 基于 MathJax 和 SVG 转换工具链,支持高分辨率输出。
  • 使用前需指定输出尺寸和格式,避免内存溢出。tex-render 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 建议缓存常用公式以提升渲染效率,减少重复计算。

SKILL.md

name
tex-render
description
Renders LaTeX math to PNG, JPEG, WebP, or AVIF images using MathJax (TeX→SVG) and @svg-fns/svg2img. Invoke whenever the agent needs to output LaTeX as a viewable image (equations, formulas, notation).
metadata
openclaw
emoji
📐

TeX Render 📐

Renders LaTeX math to PNG, JPEG, WebP, or AVIF (and SVG). Use when you need a viewable image from LaTeX instead of raw code.

User notice: When this skill is active, the agent will automatically render any LaTeX in its replies as images and send them in order—without asking for permission. If you prefer to be prompted or to receive raw LaTeX instead, do not enable this skill (or remove it from your workspace).

Location

The render script lives in the same skill folder as this SKILL.md:

<skill_folder>/
├── SKILL.md
├── package.json
└── scripts/
    ├─── render.js
    └─── validate.js

Use the directory containing this SKILL.md as the skill path. The script is at scripts/render.js relative to that folder. Invoke: node <skill_folder>/scripts/render.js. The agent loading this skill has the skill path—use it to run the script.

Install

One-time setup. After clawhub install tex-render, run npm install in the skill folder:

cd <skill_folder>
npm install
  • Source: All dependencies are from the public npm registry only (no ad-hoc downloads, shorteners, or remote archives).
  • Native module: The sharp package may compile during install; ensure Node.js 14+ and a working build toolchain if needed (see sharp install for platform notes).

When to Use

  • User or task asks to "render this equation as image" or "show formula as picture"
  • Your reply would contain LaTeX — render formulas as images first, then respond with plain text

Workflow: Response Contains LaTeX

Output your reply interleaved: whenever you would output LaTeX, do this instead:

  1. Send the preceding plain text — call message with the text written so far (no LaTeX).
  2. Render the LaTeX expression with this skill (default PNG; no --output dataurl). Parse the JSON for the PNG path.
  3. Send the image — call message with action: "send", path set to the rendered PNG, and message as short caption.
  4. Continue outputting the rest of the message. Repeat the cycle (text → render → send image) for each LaTeX block.

Do not output raw LaTeX. Do not ask the user for permission to render — render and send images immediately when LaTeX would appear in your reply (users are informed of this automatic behavior in the user notice above). Do not accumulate everything and send at the end — send text and images in order as you go.

Critical: Output in order: plain text → send → LaTeX → render → send image → plain text → send → LaTeX → render → send image → … The user must receive text and images in the natural reading order.

Example: Explaining Lagrangian: → Send "The Lagrangian is defined as " → Render L = T - V → Send image with caption "L = T - V" → Send ". The Euler-Lagrange equation is " → Render d/dt(∂L/∂q̇) - ∂L/∂q = 0 → Send image → Send " — this yields the equations of motion."

Usage

Run: node <skill_folder>/scripts/render.js (or node scripts/render.js when already in the skill folder).

Escaping: When invoking via shell:

  • Single quotes for LaTeX without apostrophe: node scripts/render.js '\frac{d}{dt}'
  • Stdin when LaTeX contains apostrophe (e.g. y' for derivative): printf '%s' "y' = f(t, y), \quad y(t_0)=y_0" | node scripts/render.js — use double quotes so ' is literal; backslashes like \quad stay intact.
node <skill_folder>/scripts/render.js --help

Default output is PNG to ~/.openclaw/media/tex-render/. The script prints one JSON line with file paths: {"svg":"...","png":"..."} or {"svg":"...","jpeg":"..."}, etc. Use --output dataurl only when the conversation system explicitly supports Data URL images (otherwise it may show raw base64 text).

Examples (validated by npm test)

Use <skill_folder> = the directory containing this SKILL.md.

Basic (PNG default):

node <skill_folder>/scripts/render.js 'E = mc^2'
node <skill_folder>/scripts/render.js '$$\frac{F}{m}=a$$'

LaTeX with apostrophe (e.g. y'): use stdin to avoid shell quoting issues:

printf '%s' "y' = f(t, y), \quad y(t_0)=y_0" | node <skill_folder>/scripts/render.js

JPEG / WebP / AVIF:

node <skill_folder>/scripts/render.js --format jpeg --quality 80 '\frac{F}{m}=a' ./out/formula
node <skill_folder>/scripts/render.js --format webp 'x^2 + y^2 = z^2'
node <skill_folder>/scripts/render.js --format avif 'E = mc^2'

Data URL (no file):

node <skill_folder>/scripts/render.js --output dataurl 'E = mc^2'

Scale by width:

node <skill_folder>/scripts/render.js --width 800 '\int_0^\infty e^{-x^2} dx'

Inline math (smaller rendering):

node <skill_folder>/scripts/render.js --inline 'a^2 + b^2 = c^2'

Height and zoom: Use --height N or --zoom N as documented in --help.

Automatic Triggering (TOOLS.md)

To make the agent use tex-render without the user explicitly asking, add to your workspace TOOLS.md:

## LaTeX in Responses (tex-render)

**Whenever your reply would contain LaTeX** (equations, formulas, scientific notation), **use the tex-render skill** automatically. Examples: physics, math, chemistry questions with formulas.

**Workflow:** send plain text → render LaTeX → send image via message tool → continue text. Use single quotes when invoking (e.g. `'\frac{a}{b}'`).

### LaTeX / Equations (tex-render)

- When answering scientific or math questions, if your reply would contain LaTeX, use tex-render and send images — do this automatically.

Test: Ask "Explain the Lagrangian formula" without mentioning tex-render. The agent should render and send images.

Repository

This package is maintained at https://github.com/TheBigoranger/tex-render. You can open issues there for bug reports and feature requests.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.38%
按下载量换算10,095

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install tex-render 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills