Open sylvaindarwish opened 6 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. 👎
I tried to convert md file to pdf too and encountered the same error. If the markdown is not using Latex, can I somehow disable this feature?
EDIT: sorry, I think I comment in the wrong place, I use pandoc-cli and it's not originated from this repository.
EDIT 2: This error:
[hemlo@asus tmp]$ pandoc smtp.md -o review-non-fiction.pdf
pdflatex not found. Please select a different --pdf-engine or install pdflatex
solved by installing texlive-latex package, mentioned on arch wiki
and This error:
Error producing PDF.
! LaTeX Error: File `lmodern.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.19 \ifPDFTeX
solved by installing another package
EDIT 3: it not solving the font problem wtf
EDIT 4: I ended up using docs.google.com and format markdown manually and export it as pdf.
EDIT 5: proprietary software is pretty neat, huh (no need to manually format the markdown, just paste it to the google docs as markdown and it will format itself)
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.