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

Unable to create PDFs #52

Open mjfrigaard opened 7 years ago

mjfrigaard commented 7 years ago

Hello tbfisher, This package is great! I'm using it on my Windows machine without any issues, but when I try to run pandoc on my Mac:

screen

I get this message:

Could not find pandoc executable on PATH

This was after installing pandoc via Homebrew:

homebrew

In the package user settings, I changed the User Settings to the location indicated in the terminal above.

  "default": {

    // path to the pandoc binary. Default locations per platform:
    // -  mac
    //    "pandoc-path": "/usr/local/Cellar/pandoc/",

I'm sure that I am just overlooking something simple, but I'd really appreciate some feedback.

-mjfrigaard

dortamiguel commented 7 years ago

It happens to me exactly the same

aakosm commented 7 years ago

hey,

I think one part of the problem is that the path for pandoc is different, and you should stick to the default, that is the usr/bin/pandoc

This path will always have the alias for your most recent pandoc version, whereas within the "/usr/local/Cellar/pandoc/" you have folders for different versions (1.19.1._1 in your case).

so your pandoc settings should begin with the following:

{
    "default": {

         "pandoc-path": "/usr/local/bin/pandoc",

alternatively, you can also try putting pandoc into your osx PATH if it's not there.