本文参考至:http://stackoverflow.com/questions/37208051/pandoc-xelatex-not-found-xelatex-is-needed-for-pdf-output

ubuntu 14.04 下执行:

pandoc test.md -o test.pdf -t beamer --latex-engine=xelatex --template=mytemplate.tex

时会报上述的错误。


对应方案:

sudo apt-get install texlive-xetex