I have some HTML documents with MathJax equations, and I want to convert them to Latex, and then to pdf. I'd like to use Pandoc.
However, Pandoc replaces $
with \$
and it replaces \
in formulas with \textbackslash{}
.
Is it possible to get Pandoc to pass MathJax formulas literally from HTML to Latex?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With