简体   繁体   中英

pdflatex not found on pandoc

im trying to convert a MarkDown file to pdf using pandoc. I have installed MikTex on my Windows PC but using the "code"

pandoc sample1.md -o sample1.pdf

pandoc responds:

pdflatex not found. Please select a different --pdf-engine or install pdflatex

I tried using the --pdf-engine=C:\Program Files\MiKTeX\pdftex and also the --pdf-engine=miktex command.

Thanks for your help!

If specifying a path, you must give the one to the pdflatex binary, not pdftex . Using --pdf-engine=C:\Program Files\MiKTeX\pdflatex should do the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM