Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sylvaindarwish opened this issue Jun 16, 2018 · 2 comments

Comments

@sylvaindarwish
Copy link

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

This comment has been minimized.

@realyukii
Copy link

realyukii commented Nov 13, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants