math-equation-images

Extract LaTeX/TeX and Markdown math equations and render them as PNG images.

14|3|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/juntao/math-images-skill --skill math-equation-images
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: math-equation-images
Source: https://github.com/juntao/math-images-skill/tree/main
Command: npx skills add https://github.com/juntao/math-images-skill --skill math-equation-images

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Extracting and rendering LaTeX/TeX or Markdown math into images is slow and often breaks formatting, especially when you need results ready for chat, slides, or web posts.

Core Features & Use Cases

  • Equation extraction from documents: Finds inline and display math in LaTeX/TeX and Markdown while skipping math inside fenced code blocks and inline code.
  • PNG rendering for each equation: Produces sequentially numbered PNGs (equation_0001.png, equation_0002.png, …) that you can embed anywhere.
  • Theme control for readability: Renders with a dark theme by default, or a light theme on request, using consistent math typography.
  • Two rendering backends: Uses a fast pure-Rust renderer by default, with an optional higher-fidelity Tectonic-based backend for complex LaTeX.

Quick Start

Tell your agent: generate PNG images for every LaTeX and Markdown math equation in the attached document, using the light theme if I ask for light mode.

Frequently Asked Questions about math-equation-images

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert LaTeX equations to PNG images for sharing in chat?

To convert LaTeX equations to PNG images, this tool extracts inline and display math from .tex or .md files and renders each equation as a sequentially numbered PNG. It outputs images ready for messaging, slides, or documentation embedding.

Can I render Markdown math equations as images without installing extra LaTeX packages?

Yes, you can render Markdown math equations as images using the default pure-Rust backend, which requires no external LaTeX distribution. For complex LaTeX, an optional Tectonic-based backend provides higher fidelity rendering.

Does equation extraction skip math inside fenced code blocks?

Equation extraction does skip math inside fenced code blocks and inline code. It identifies inline and display math in LaTeX/TeX and Markdown documents, rendering only the actual equations as PNG snapshots.

What is the best way to generate dark theme math equation snapshots for presentations?

The best way to generate dark theme math equation snapshots is using this tool's default rendering mode. It applies consistent math typography with a dark theme by default, or switches to a light theme upon request.

How do I extract every math equation from a document and save them as separate image files?

To extract every math equation and save them as separate image files, the tool processes your .tex or .md file and outputs sequentially numbered PNGs like equation_0001.png. It returns all rendered images in document order.

Are there limitations when rendering complex LaTeX expressions to PNG?

A limitation when rendering complex LaTeX expressions is that the default pure-Rust renderer may lack full fidelity. You should switch to the optional Tectonic-based backend for higher fidelity rendering of complex LaTeX.