Skip to content

Unknown program error when supplying path to latex-engine #2618

Closed
brentonk opened this Issue · 5 comments

3 participants

@brentonk

I'm using Pandoc 1.16 on OS X 10.11.2 installed via the OS X binary. I'm trying to convert a Markdown file to PDF, and I'm supplying a custom LaTeX engine via --latex-engine.

Here's what I entered at the command line to produce the error.

~$ echo "Hello world" > test.md
~$ which pdflatex
/Library/TeX/texbin/pdflatex
~$ pandoc test.md -o test.pdf --latex-engine=/Library/TeX/texbin/pdflatex
Unknown program /Library/TeX/texbin/pdflatex
pandoc: Error producing PDF
~$ echo $?
43

This appears to be a regression from Pandoc 1.15.2, since the same commands produce the expected output when I install that version.

@jgm
Owner
@jgm jgm added a commit that closed this issue
@jgm Fixed v1.16 reversion with --latex-engine.
In 1.16 --latex-engine raises an error if a full path is
given. This commit fixes this reversion. Closes #2618.
4990350
@jgm jgm closed this in 4990350
@yihui yihui referenced this issue in rstudio/rmarkdown
Closed

Knitting PDF from Rmd fails #590

@yihui

@jgm Could you provide a patch release for this bug at your earliest convenience? It has affected quite a few R Markdown users. Thanks!

@jgm
Owner
@jgm
Owner
@yihui

Yeah, I know we can fix it in R Markdown, but our problem is that it is not easy for us to make a new release soon (due to the restrictions of CRAN). Thanks very much!

@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm Fixed v1.16 reversion with --latex-engine.
In 1.16 --latex-engine raises an error if a full path is
given. This commit fixes this reversion. Closes #2618.
ae5f157
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm Fixed v1.16 reversion with --latex-engine.
In 1.16 --latex-engine raises an error if a full path is
given. This commit fixes this reversion. Closes #2618.
4555fba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.