Slightly hacky but good enough math rendering in emacs 馃獎
1mathrender.el
2
3Emacs minor mode that renders LaTeX math blocks as inline SVG images.
4Includes a CLI tool (src/) that converts LaTeX to SVG via Typst.
5
6Supported delimiters: $$...$$, \[...\], \(...\), $...$
7
8Moving the cursor into a preview removes it for editing; moving out
9re-renders it immediately. The idle timer scans for newly typed math.
10Click a preview to dismiss it manually.
11Integrates with gptel automatically when loaded.
12
13Requirements:
14 Emacs 27.1+
15 mathrender binary in PATH
16 cargo build --release (or: nix build)
17
18Usage:
19 (load "path/to/mathrender.el")
20 M-x mathrender-mode
21
22License: GPL-3.0-or-later