https://github.com/phadej/latex-svg
Render LaTeX math to SVG mages
https://github.com/phadej/latex-svg
Last synced: 8 months ago
JSON representation
Render LaTeX math to SVG mages
- Host: GitHub
- URL: https://github.com/phadej/latex-svg
- Owner: phadej
- License: bsd-3-clause
- Created: 2020-03-05T20:39:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T11:09:18.000Z (over 2 years ago)
- Last Synced: 2025-10-17T08:25:32.746Z (9 months ago)
- Language: Haskell
- Size: 69.3 KB
- Stars: 18
- Watchers: 1
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LaTeX SVG
This is a fork for [`latex-formulae`](https://github.com/liamoc/latex-formulae)
which produces SVG images instead of raster PNGs.
Some differences:
- Uses `latex` and `dvisvgm`, ImageMagick *is not required*. (You don't need to tweak `policy.xml`)
- `latex-svg-image` supports global cache (off by default), which speedups hakyll site builds.
- `latex-svg-hakyll` has `initFormulaCompilerSVGPure` variant, which doesn't need `IO` to be created. You don't need to thread `renderFormulae` function through.
- Drawback is that result pages become bigger. For example a formula-heavy https://oleg.fi/gists/posts/2018-12-12-find-correct-laws.html is
- `576k` in size with `latex-formulae`
- `2819k` in size with `latex-svg`
Also rendering SVG images is more expensive.