使用Pandoc和Xelatex从Markdown转换为PDF时出现未定义的控制序列错误 [英] Undefined control sequence error while converting from markdown to PDF with pandoc and xelatex
问题描述
我正在为我们的项目制作一些文档,但是无法在pandoc中启用xelatex来设置自定义字体.如果我设置-latex-engine xelatex
pandoc将显示该错误:
I'm making some documentation for our project, but I can't enable xelatex in pandoc to setup custom fonts. If I set --latex-engine xelatex
pandoc will show that error:
pandoc: Error producing PDF from TeX source.
! Undefined control sequence.
l.17 \sys_if_engine_luatex:T
这是我运行的命令:
pandoc -s --latex-engine xelatex -f markdown build.md -o docs.pdf
我使用 Ubuntu 14.04 LTS
, pandoc 1.12.2.1
和 XeTeX,版本3.1415926-2.5-0.9999.3(TeX Live 2013/Debian)代码>.
推荐答案
糟糕...使用apt-get删除texlive 2013并手动安装texlive 2015 pandoc后,将使用旧的texlive(!!!).在步骤之后并将PATH设置为/usr/local/texlive/2015/bin/x86_64-linux/
pandoc将最终使用xelatex编译我的文件.
Oops... after removing texlive 2013 with apt-get and installing manualy texlive 2015 pandoc will use old texlive (!!!). After that steps and setting PATH to /usr/local/texlive/2015/bin/x86_64-linux/
pandoc will finaly compile my file with xelatex.
这篇关于使用Pandoc和Xelatex从Markdown转换为PDF时出现未定义的控制序列错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!