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

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

Closed
brentonk opened this issue Jan 4, 2016 · 5 comments
Closed

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

brentonk opened this issue Jan 4, 2016 · 5 comments

Comments

@brentonk
Copy link

brentonk commented Jan 4, 2016

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
Copy link
Owner

jgm commented Jan 5, 2016 via email

@yihui
Copy link
Contributor

yihui commented Jan 8, 2016

@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
Copy link
Owner

jgm commented Jan 8, 2016

I will try to get something out this weekend.

+++ Yihui Xie [Jan 08 16 13:13 ]:

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


Reply to this email directly or [2]view it on GitHub.

References

  1. https://github.com/jgm
  2. Unknown program error when supplying path to latex-engine #2618 (comment)

@jgm
Copy link
Owner

jgm commented Jan 8, 2016

PS. You could fix this in R Markdown by simply adding the
path to the latex program to PATH in the local environment
in which pandoc is run, and using the basename instead of
the fully qualified path in --latex-engine.

+++ Yihui Xie [Jan 08 16 13:13 ]:

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


Reply to this email directly or [2]view it on GitHub.

References

  1. https://github.com/jgm
  2. Unknown program error when supplying path to latex-engine #2618 (comment)

@yihui
Copy link
Contributor

yihui commented Jan 8, 2016

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 pushed a commit to c-forster/pandoc that referenced this issue Jan 13, 2016
In 1.16 --latex-engine raises an error if a full path is
given. This commit fixes this reversion. Closes jgm#2618.
c-forster pushed a commit to c-forster/pandoc that referenced this issue Mar 4, 2016
In 1.16 --latex-engine raises an error if a full path is
given. This commit fixes this reversion. Closes jgm#2618.
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