更新时间:2023-11-10 16:51:40
如果只想将.tex
文件转换为PDF,则不需要pandoc
,***直接使用LaTeX处理器(而不是使用pandoc,它将依次调用pdflatex,但只会传递所有LaTeX命令的一个子集):
If you just want to convert a .tex
file to PDF you don't need pandoc
, it's better to use a LaTeX processor directly (instead of using pandoc which will call pdflatex in turn, but will pass along only a subset of all LaTeX commands):
pdflatex test.tex
要从markdown创建 PDF ,pandoc是正确的工具.默认情况下,它也会在后台使用LaTeX:
To create a PDF from markdown, pandoc is the right tool. It also uses LaTeX under the hood by default:
pandoc test.md -o test.pdf