I am trying to compile a Markdown file to PDF using pandoc and xelatex.
The command I employed is like this:
pandoc --pdf-engine=xelatex pantest.md -o pantest.pdf
The error information comes as follows:
Error producing PDF.
! Undefined control sequence.
l.931 \file_get:nnN
The markdown file I put into test is quite simple:
abcdefg
It does not contain any CJK characters.
I am using Windows 10, pandoc 2.7 and MikTex 2.9.
Following debugging steps suggested by @mb21 in the comment section, the error information seems to have relation with the "unicode-math". Here is the new error I have now:
command used:
pandoc pantest.md -s -o pantest.tex
xelatex pantest.tex
Error information generated:
l.931 \file_get:nnN
{unicode-math-table.tex} {} \l__um_mathtable_tl
'pdflatex pantest.tex' works fine.