Reputation: 781
I was trying to convert a markdown file to pdf using Pandoc. The markdown is written in Atom editor. For simplicity I am just including the equation only.
The markdown file content is
\[
\frac{\partial \theta}{\partial t}= \mathrm{K}(\theta)\left( \frac{\partial h}{\partial z}\right) +1
\]
I run the following command from PowerShell
pandoc testfile1.md -s -o testfile1.pdf
and the following error was produced:
! Missing $ inserted.
<inserted text>
$
l.53 {[} \frac{\partial \theta}{\partial t}
pandoc.exe: Error producing PDF
The preview is able to display formula but produces an error while conversion. If I replace \[
and \]
by $$
i receive required output.
My question is: Can I not use \[
and \]
?
I am also attaching snapshorts
Upvotes: 1
Views: 5211
Reputation: 39189
My question is: Can I not use
\[
and\]
?
No, you can't. In pandoc markdown:
Anything between two $ characters will be treated as TeX math.
Upvotes: 0