A LaTeX -> WordPress utility built on Pandoc.
Haskell TeX
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
Setup.hs
example.tex
latex2wp.cabal
stack.yaml

README.md

latex2wp

A LaTeX -> WordPress utility built on Pandoc. It converts a LaTeX input file to HTML suitable for WordPress: inline math uses WP-LaTeX syntax ($latex $), and display math is converted to PNG images.

Usage

Usage: latex2wp [OPTION] ... FILE
Convert LaTeX input files to HTML source suitable for WordPress.
Uses WP-LaTeX syntax ($latex $) for inline math,
and converts display math to PNG.

  -i PATH  --img-src=PATH    Prepend PATH to image URLs in HTML.
                             Does not affect where images will be saved.
  -o DIR   --output-dir=DIR  Output to DIR instead of current directory.
  -t DIR   --temp-dir=DIR    Use DIR for temporary files instead of /tmp.

You'll also need

  • Haskell (run stack build if you have it)
  • pdflatex
  • ImageMagick