···11+[package]
22+name = "mathrender"
33+version = "0.1.0"
44+edition = "2024"
55+description = "Render LaTeX/Typst math to SVG via Typst's layout engine"
66+77+[[bin]]
88+name = "mathrender"
99+path = "src/main.rs"
1010+1111+[dependencies]
1212+typst = "0.13"
1313+typst-svg = "0.13"
1414+typst-library = "0.13"
1515+typst-assets = { version = "0.13", features = ["fonts"] }
1616+1717+tex2typst-rs = "0.1"
1818+1919+comemo = "0.4"
2020+chrono = { version = "0.4", features = ["clock"], default-features = false }
2121+clap = { version = "4", features = ["derive"] }
+22
README
···11+mathrender.el
22+33+Emacs minor mode that renders LaTeX math blocks as inline SVG images.
44+Includes a CLI tool (src/) that converts LaTeX to SVG via Typst.
55+66+Supported delimiters: $$...$$, \[...\], \(...\), $...$
77+88+Moving the cursor into a preview removes it for editing; moving out
99+re-renders it immediately. The idle timer scans for newly typed math.
1010+Click a preview to dismiss it manually.
1111+Integrates with gptel automatically when loaded.
1212+1313+Requirements:
1414+ Emacs 27.1+
1515+ mathrender binary in PATH
1616+ cargo build --release (or: nix build)
1717+1818+Usage:
1919+ (load "path/to/mathrender.el")
2020+ M-x mathrender-mode
2121+2222+License: GPL-3.0-or-later