I have a markdown file like:
blah blah $|\left<R_j^{(x)},g_j^{(x)}\right>|$ blah
I tried to use Pandoc to convert this file into a .docx
file, but it cannot recognise the math expression surrounded by dollar sign '$'
. The math content appears in the output .docx
file as raw (or verbatim) text.
However, the another file that contains a different math expression, like:
blah blah $\min _{ \omega _{ j }^{ (x) } } \left\| x-\sum _{ j=0 }^{ p-1 }{\omega^{(x)}_j g_{ d\gamma _{ d }j }^{ (x) } } \right\|$
was handled well by Pandoc.
Is it because that I've done something wrong in my first markdown file?
Or it is just a bug in Pandoc? How can I avoid it?
My Pandocversion is:
pandoc 1.17.1
Compiled with texmath 0.8.6.3, highlighting-kate 0.6.2.
Best Answer
Instead of
<
...>
as the delimiters, you need to use\langle
...\rangle
: