I'm working with a Windows machine. I use Rstudio/knitr to write and convert a (R)markdown file to an html file. The source markdown file contains some mathematics typed in the LaTeX language hence the html file contains some Mathjax.
For instance there is the following LaTeX code in the markdown file is:
$H_0:= \{|\mu_x-\mu_y|>S\}$
hence the expected output is:
This output correctly appears in the html file.
But now I try to convert this html file to a tex file:
pandoc -s myfile.html -o myfile.tex
And then I get the following code in the output tex file:
\textbackslash{}( H\_0:=
\textbackslash{}\{\textbar{}\textbackslash{}mu\_x-\textbackslash{}mu\_y\textbar{}\textgreater{}S\textbackslash{}\}
\textbackslash{}) où \textbackslash{}( S \textbackslash{})
which gives the following rendering after compiling with (pdf)latex: