Pandoc: pdflatex not found. pdflatex is needed for pdf output mac

broken image
broken image

pandoc: CreateDirectory '.\\tex2pdf.4244': permission denied (Acc�s refus�.).In the log of the Dev Tools Console ( -1469503621744.log, attached) there are the following errors: However, I might have found the source of the issue. When pressing F1 then typing Pandoc render then choosing pdf, I had a message at the bottom of the Visual Code Studio window saying Generating 12:27:16 (current time) and nothing happened (no PDF created in the folder). I tried to run the extension again, but to no avail. After that, I could get a PDF file from every MD file I tested using this method without any additional install. I had to install three LaTeX packages (as I use the basic version of MiKTeX, but I don't remember which ones) in order to get this file on the first time I ran Pandoc. This output a proper PDF file (renamed to test_pandoc_command_line.pdf, attached). I tried to run Pandoc from the command line in the folder containing the markdown file ( test.md, attached, renamed to test.txt as GitHub doesn't support MD files) with the following command: pandoc test.md -s -o test.pdf. Sumatra PDF v3.1.1 64-bit (default PDF reader).I am using Windows 10 with the following software (installed in this order):

broken image

I think the issue (at least on Windows) might be permission (write) related. I was experiencing the same issue as DaveyD: I couldn't get any PDF output using this extension, but HTML and DOCX output worked fine.