# Latex Svg

> Render a LaTeX formula to an SVG file using MathJax

- Skill: `oneptica/latex-svg` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds@latest add oneptica/latex-svg`
- Raw SKILL.md: https://api.skillmd.com/api/skills/oneptica/latex-svg/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Oneptica (https://skillmd.com/u/oneptica)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/oneptica/latex-svg

---


## Render LaTeX to SVG

When the user asks to render or export a LaTeX formula, run:

```
node render.mjs "<latex>" [output.svg]
```

- `<latex>` is the LaTeX source (required)
- `[output.svg]` is the output path (defaults to `formula.svg` in CWD)

The render script uses MathJax to produce scalable SVG output. It supports standard LaTeX math mode, including fractions, roots, matrices, Greek letters, and common math symbols.

After rendering, tell the user where the SVG was saved and show a preview if possible.

