Agent skill

Tex Render Guide

by wentorai in wentorai/research-plugins

Render LaTeX math expressions to images in PNG, JPEG, and SVG

MITAuto-check passedDocuments & Office

Install Tex Render Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill tex-render-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins tex-render-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/writing/latex/tex-render-guide .claude/skills/tex-render-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tex-render-guide
GitHub stars
298
Used in
1 other repo
Token cost
~1.9k tokens
SKILL.md length
536 words
Files
1
Skills in repo
428
Repo updated
First seen
Licence
MIT

At a glance

Render LaTeX math expressions to images in PNG, JPEG, and SVG

  • Tasks that involve LaTeX
  • SKILL.md covers Overview, Method 1: Command-Line…, Method 2: KaTeX (Fast,… and Method 3: MathJax…, plus 4 more sections
  • Calls curl and npm; reaches latex.codecogs.com

What it does

Tex Render Guide is an agent skill from wentorai/research-plugins. Render LaTeX math expressions to images in PNG, JPEG, and SVG

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering LaTeX. It works with LaTeX. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve LaTeX

Example prompts

  • “/tex-render-guide”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • latex.codecogs.com

    Also links to:

    • katex.org
    • mathjax.org
    • ctan.org
    • dvisvgm.de

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tex Render Guide loads about 1.9k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 536 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 536 words, ~1,910 tokens.

Download SKILL.mdSave it as .claude/skills/tex-render-guide/SKILL.md (or your agent's skills folder).
name
tex-render-guide
description
Render LaTeX math expressions to images in PNG, JPEG, and SVG

TeX Render Guide

Overview

Researchers frequently need to render LaTeX mathematical expressions as standalone images—for inclusion in presentations, posters, web pages, documentation, social media posts, or any context where native LaTeX rendering is unavailable. Converting a LaTeX equation into a crisp PNG, JPEG, or SVG image requires selecting the right toolchain and configuring it for the appropriate output quality and format.

This skill covers multiple approaches to LaTeX-to-image rendering, from command-line tools to web APIs and JavaScript libraries. It provides guidance on choosing the right approach for your use case, achieving publication-quality output, and handling common challenges like transparent backgrounds, high DPI scaling, and color customization.

Whether you need a one-off equation image for a slide deck or a batch pipeline that renders hundreds of equations for a web application, this guide provides the tools and techniques to get it done.

Method 1: Command-Line Rendering with LaTeX + dvipng/dvisvgm

This is the highest-quality approach, producing output identical to what you would see in a compiled LaTeX document.

Single Equation to PNG

Create a minimal LaTeX document containing only your equation:

bash
# Create a temporary LaTeX file
cat > equation.tex << 'EOF'
\documentclass[border=2pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\begin{document}
$\displaystyle \int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}$
\end{document}
EOF

# Render to PDF, then convert to PNG
pdflatex equation.tex
# Convert PDF to high-resolution PNG (300 DPI)
convert -density 300 equation.pdf -quality 100 equation.png

# Alternative: use dvipng for direct DVI-to-PNG
latex equation.tex
dvipng -D 300 -T tight -bg Transparent equation.dvi -o equation.png
Key Options for dvipng
  • -D 300 — Resolution in DPI (300 for print, 150 for screen, 600 for high-quality)
  • -T tight — Crop tightly to the equation with minimal margins
  • -bg Transparent — Transparent background (essential for slides and web)
  • -fg "rgb 1.0 1.0 1.0" — White foreground (for dark backgrounds)
  • -o output.png — Output filename
Equation to SVG

SVG is the best format for web use and scalable documents:

bash
# Using dvisvgm (included with TeX Live)
latex equation.tex
dvisvgm --no-fonts equation.dvi -o equation.svg

# Or from PDF:
pdf2svg equation.pdf equation.svg

The --no-fonts flag in dvisvgm converts text to paths, ensuring the SVG displays correctly without requiring the original fonts to be installed.

Batch Rendering Script

For rendering multiple equations, use a script:

bash
#!/bin/bash
# render_equations.sh - Render a list of LaTeX equations to PNG
INPUT_FILE="equations.txt"  # One equation per line
OUTPUT_DIR="rendered"
DPI=300

mkdir -p "$OUTPUT_DIR"
counter=1

while IFS= read -r equation; do
    cat > /tmp/eq_temp.tex << EOF
\documentclass[border=2pt]{standalone}
\usepackage{amsmath,amssymb}
\begin{document}
\$\displaystyle ${equation}\$
\end{document}
EOF
    (cd /tmp && pdflatex -interaction=nonstopmode eq_temp.tex > /dev/null 2>&1)
    convert -density $DPI /tmp/eq_temp.pdf -quality 100 -trim "$OUTPUT_DIR/eq_$(printf '%03d' $counter).png"
    echo "Rendered equation $counter: $equation"
    ((counter++))
done < "$INPUT_FILE"

Method 2: KaTeX (Fast, Lightweight)

KaTeX is a JavaScript library that renders LaTeX math to HTML/CSS or SVG. It is significantly faster than MathJax and is ideal for web applications and real-time rendering.

Command-Line Usage with Node.js
bash
# Install KaTeX CLI
npm install -g katex

# Render to HTML
echo "E = mc^2" | katex --display-mode

# For SVG output, use the katex API programmatically:
javascript
const katex = require('katex');

const html = katex.renderToString(
  '\\int_{-\\infty}^{\\infty} e^{-x^2} \\, dx = \\sqrt{\\pi}',
  {
    displayMode: true,
    output: 'html',  // or 'mathml'
    throwOnError: false
  }
);
console.log(html);
Show full SKILL.md (223 more words)Show less
Advantages of KaTeX
  • Renders in milliseconds (10-100x faster than MathJax)
  • Produces identical output on server and client
  • Supports most common LaTeX math commands
  • Small bundle size (~200 KB)
Limitations
  • Does not support all LaTeX packages (no TikZ, limited matrix environments)
  • Some advanced math commands require MathJax

Method 3: MathJax (Comprehensive)

MathJax supports the widest range of LaTeX commands and produces high-quality output. Use it when KaTeX does not support the notation you need.

Server-Side Rendering with MathJax
javascript
// Using mathjax-node
const mjAPI = require('mathjax-node');
mjAPI.config({ MathJax: {} });
mjAPI.start();

mjAPI.typeset({
  math: '\\sum_{n=1}^{\\infty} \\frac{1}{n^2} = \\frac{\\pi^2}{6}',
  format: 'TeX',
  svg: true,      // Output as SVG
  // png: true,   // Or output as PNG
}, function(data) {
  if (!data.errors) {
    // data.svg contains the SVG string
    require('fs').writeFileSync('equation.svg', data.svg);
  }
});
Converting MathJax SVG to PNG

If you need PNG output from MathJax SVG:

bash
# Using Inkscape for high-quality SVG-to-PNG conversion
inkscape equation.svg --export-type=png --export-dpi=300 --export-filename=equation.png

# Or using ImageMagick
convert -density 300 equation.svg equation.png

Method 4: Web API Services

For quick, no-install rendering, use web APIs:

bash
# Using the codecogs API (free for reasonable usage)
# URL-encode your LaTeX and fetch the image
curl "https://latex.codecogs.com/png.image?\dpi{300}\bg{white}\int_{0}^{1}x^2\,dx" \
  -o equation.png

# SVG variant:
curl "https://latex.codecogs.com/svg.image?\int_{0}^{1}x^2\,dx" \
  -o equation.svg

Note: web APIs require internet access and may have usage limits. For privacy-sensitive equations (unpublished research), prefer local rendering.

Choosing the Right Method

Use CaseRecommended MethodFormat
Print publication figuresLaTeX + dvipngPNG (600 DPI)
Web pages / documentationKaTeX or MathJaxSVG or HTML
Presentations (PowerPoint, Keynote)LaTeX + dvipngPNG (300 DPI, transparent)
Dark-background slidesLaTeX + dvipng with white fgPNG (transparent)
Batch processing (100+ equations)LaTeX script or KaTeXPNG or SVG
Quick one-off equationWeb APIPNG or SVG
Real-time previewKaTeXHTML

Color and Style Customization

For equations on dark backgrounds or with custom styling:

latex
% White equation on transparent background
\documentclass[border=2pt]{standalone}
\usepackage{amsmath,xcolor}
\begin{document}
\color{white}
$\displaystyle E = mc^2$
\end{document}
bash
# Render with transparent background
dvipng -D 300 -T tight -bg Transparent equation.dvi -o equation.png

For colored equations or partial coloring:

latex
$\displaystyle \textcolor{blue}{\nabla} \times \textcolor{red}{\mathbf{E}} = -\frac{\partial \mathbf{B}}{\partial t}$

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/writing/latex/tex-render-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Tex Render Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tex Render Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tex Render Guide this skillwentorai/research-plugins2981 repos~1.9kAutomated safety check: PassMIT
Research Writingalfonso0512/research-writing-skill4861 repos~818Automated safety check: PassMIT
Paper WritingMLNLP-World/Paper-Writing-Tips4.7k—~630Automated safety check: PassNone
Evomath TaoEvoScientist/EvoSkills4742 repos~3.8kAutomated safety check: PassApache-2.0
PaperjurySpark-To-Paper-Skills/paperjury1.2k—~5.3kAutomated safety check: PassMIT
Thesis Defense PPTX Builderzouchenzhen/thesis-defense-pptx-skill266—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Research Writing

    alfonso0512/research-writing-skill

    科研论文写作助手,提供 30 个 Prompt 模板覆盖论文写作全流程. An agent skill from alfonso0512/research-writing-skill.

    486 GitHub starsUsed in 1 repo~818 tokens
    Documents & OfficeAuto-check passed
  • Paper Writing

    MLNLP-World/Paper-Writing-Tips

    学术论文写作检查与优化助手。基于 MLNLP-World 社区整理的论文写作技巧,帮助检查和优化学术论文。Use when: (1) 检查论文 LaTeX 格式和排版, (2) 优化公式符号使用, (3) 改进图表设计, (4) 润色英文学术表达, (5) 检查参考文献格式, (6) 投稿前终稿检查, (7) 用户询问论文写作技巧或规范。

    4.7k GitHub stars~630 tokensUpdated 11 days ago
    Documents & OfficeAuto-check passed
  • Evomath Tao

    EvoScientist/EvoSkills

    A skill your agent uses whenever the user submits a non-trivial mathematical claim that needs a rigorous proof or audit.

    474 GitHub starsUsed in 2 repos~3.8k tokens
    Documents & OfficeAuto-check passed
  • Paperjury

    Spark-To-Paper-Skills/paperjury

    Three modes for CS-conference papers (CVPR/ICCV/ECCV vision, ACL/EMNLP/NAACL NLP, ICLR/NeurIPS/ICML/AAAI ML).

    1.2k GitHub stars~5.3k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Thesis Defense PPTX Builder

    zouchenzhen/thesis-defense-pptx-skill

    Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check.

    266 GitHub stars~2.4k tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • Mathmodel Skill

    handsomeZR-netizen/mathmodel-skill

    CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling…

    292 GitHub stars~2.5k tokensUpdated 11 days ago
    Documents & OfficeAuto-check passed

More from wentorai/research-plugins

All 428 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Works with

Questions about Tex Render Guide

What does Tex Render Guide do?

Render LaTeX math expressions to images in PNG, JPEG, and SVG. Tex Render Guide is an agent skill from wentorai/research-plugins.

When should I use Tex Render Guide?

Tex Render Guide fits situations like: tasks that involve LaTeX.

How do I install Tex Render Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill tex-render-guide -a claude-code`. Or copy the skill folder (skills/writing/latex/tex-render-guide in wentorai/research-plugins) into .claude/skills/tex-render-guide in your project. Claude Code loads it when a task matches its description.

How do I install Tex Render Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill tex-render-guide -a codex`. Or copy the skill folder (skills/writing/latex/tex-render-guide in wentorai/research-plugins) into .agents/skills/tex-render-guide in your project. Codex loads it when a task matches its description.

Can I use Tex Render Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill tex-render-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tex-render-guide, .gemini/skills/tex-render-guide, .github/skills/tex-render-guide and .opencode/skills/tex-render-guide in your project.

What does Tex Render Guide need to run?

Going by SKILL.md and its folder, Tex Render Guide needs the command-line tools its instructions call (curl and npm). Our summary lists: Node.js.

Does Tex Render Guide access the network?

SKILL.md names 5 domains. In commands or code: latex.codecogs.com; the agent is likely to contact it when it follows the instructions. As links in the text: katex.org, mathjax.org, ctan.org and dvisvgm.de. This is read from the text; nothing was executed.

Is Tex Render Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tex Render Guide use?

Tex Render Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tex Render Guide use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tex Render Guide?

Skills that share tags, products or a category with Tex Render Guide: Research Writing (alfonso0512/research-writing-skill, 486 stars), Paper Writing (MLNLP-World/Paper-Writing-Tips, 4.7k stars), Evomath Tao (EvoScientist/EvoSkills, 474 stars) and Paperjury (Spark-To-Paper-Skills/paperjury, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tex Render Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 428 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.