试过其他的方式,都无法转换TOC,在网上介绍pandoc可以支持.现在试试 还是在linux换件下安装Pandoc吧
1 2 3 4 |
apt-get install pandoc texlive-xetex -y pandoc -N -s --toc --smart --latex-engine=xelatex -V CJKmainfont='Microsoft YaHei' -V mainfont='Microsoft YaHei' -V geometry:margin=1in 1.md -o output.pdf |
参考:https://www.zhihu.com/question/20849824 命令行有两个最关键参数,–latex-engine=xel……