How to convert HTML with mathjax into Latex using Pandoc?

With the latest version of pandoc (1.12.2), you can do this:

pandoc -f html+tex_math_dollars+tex_math_single_backslash -t latex

Much nicer! If you don’t want to convert math delimited by \( and \), just do

pandoc -f html+tex_math_dollars -t latex

Leave a Comment