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