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

Error when compiling using PDF TOC on linux #41

Closed jakkubu closed 7 years ago

jakkubu commented 8 years ago

Error when running:

/usr/bin/pandoc -f markdown -s --toc --number-sections --parse-raw --latex-engine=C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdflatex.exe -o /tmp/tmpuwmaes.pdf

pandoc: C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdflatex.exe not found. C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdflatex.exe is needed for pdf output

It's because you use direct path to latex engine in Pandoc.sublime-settings in lines 99, 111, 137, 148 and 159:

"--latex-engine=C:/Program Files (x86)/MiKTeX 2.9/miktex/bin/pdflatex.exe"

It's working without any problems when I overwrite these in user settings.