tbfisher/sublimetext-Pandoc

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

Opened this issue · 1 comments

I am running MacOS High Sierra 10.13.4, Sublimetext 3 build 3176, MacTex 2018, and have installed Pandoc plugin in order to convert markdown to PDF. (I had been using this plugin for years with previous versions of these softwares).

I have installed pandoc 2.2.1 via Homebrew.

If I run the plugin for PDF output, it fails and I get in the console:

error: Error when running: /usr/local/bin/pandoc -f markdown --pdf-engine=/Library/TeX/texbin/pdflatex --output=/Users/sylvain/Desktop/output.pdf --filter=/usr/local/bin/pandoc-citeproc --bibliography=/Users/sylvain/Dropbox/My_Library/Library_Sylvain.bib pdf-engine /Library/TeX/texbin/pdflatex not known

I have tried to change the pdflatex path in the user Pandoc.sublime-settings to:

"--pdf-engine=pdflatex"

and

"--pdf-engine=/usr/local/texlive/2018/bin/x86_64-darwin/pdflatex"

but I get the same error message.

If I run pandoc -s worldliness.txt -o worldliness.pdf --pdf-engine=pdflatex --filter=/usr/local/bin/pandoc-citeproc --bibliography=/Users/sylvain/Dropbox/My_Library/Library_Sylvain.bib from the command line, I get a good PDF.

I would appreciate any help. This plugin was really central to my workflow. Not a computer person here, so apologies if my message is naive or poorly phrased.

PDF is such a universal file format now, I would expect this to work out of the box with the default Pandoc installation. I'm trying to convert Markdown to PDF and it is not intuitive in the slightest. 👎