Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 991 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 991 Bytes

LaTeX math to SVG Lua Pandoc filter

Description

The latex-math.lua filter for Pandoc converts LaTeX math formulas to SVG.

Prerequisites

  • LaTeX must be installed. MiKTeX on Windows. TeX Live on Windows and other OS.
  • dvisvgm 1.4 or later. dvisvgm is now part of MiKTeX.
  • The preview package for LaTeX must be installed. MiKTeX will install the package automatically when the filter is executed the first time.

Usage

To use the latex-math.lua filter you need to save download it and place it into the working directory. Example:

@echo off
pandoc -t html5 -o test.html --lua-filter latex-math.lua --standalone test.md

The latex-math.lua filter will generate an SVG file for each math formula and place it into the working directory.