tbfisher / sublimetext-Pandoc

A Sublime Text plugin that uses Pandoc to convert text from one markup format into another. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to XHTML, HTML5, HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides, Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, EPUB version 2 or 3, FictionBook2, DocBook, GNU TexInfo, Groff man pages, Haddock markup, OPML, LaTeX, ConTeXt, LaTeX Beamer slides, PDF via LaTeX, Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile, or custom writers can be written in lua.
MIT License
137 stars 26 forks source link

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

Open sylvaindarwish opened 6 years ago

sylvaindarwish commented 6 years ago

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.

Chiramisu commented 5 years ago

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. 👎