-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
--pdf-engine full path of the engine not working #4681
Comments
Indeed, I believe this was introduces by 582cb4b, specifically the deletion of |
I'm also having this issue. On Windows 10, pandoc 2.2.1:
Gives me:
However just launching |
Could be because the fix is not in latest release (2.2.1) yet? EDIT: I assume it is. Will try and compile the source myself. EDIT2: Can confirm latest source works 👍 |
Correct. This is fixed in HEAD, but not in a release.
Gandalf Saxe <notifications@github.com> writes:
… Could be because the fix is not in latest release (2.2.1) yet?
--
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#4681 (comment)
|
I'm still having the issue with pandoc 2.3.1 on macOS 10.13 with spaces in paths. not working :
working :
|
Try
…--pdf-engine="/Users/user/Library/Application\ Support/app/xelatex"
|
I've just tried that again, it does not work. I noticed that adding
doesn't work either, while it works without quotes. |
@pciavald what pandoc version are you on? works for me on pandoc 2.3 |
My bad, my path problem is actually not lying in pandoc but in nodejs' child_process.spawn which did not handle arguments as I expected, and also seemingly a problem in XeLaTeX/TeXLive. If anyone comes here experiencing a problem to spawn pandoc with a full-path pdf engine, this did it the trick for me :
the shell: true option launches pandoc with I'm building a text editor around pandoc, everything works on linux but on Mac it's a bit more complex seemingly due to spaces in paths. In this log you can see that pandoc successfully launches XeLaTeX but there's a path problem somewhere, accessing the "Application Support" folder :
Here's the TeXLive installation profile used, where we can see that paths have a space. I tried Trying XeLaTeX standalone also does not work with the same error, which confirms pandoc is not the cause. At this stage i had linked "Application Support" to "Application" in the same directory to try and trick the software into the right path, resulting in
If you have any idea why this may be happening, i'd be glad to hear. Tried IRC freenode#latex without luck for now. Sorry for wrong issue digging, and thank you for maintaining Pandoc it's a wonderful tool. |
@pciavald you may need to both double-quote and escape spaces:
|
Is this fix still unreleased? I'm running pandoc 2.7.2 and getting If I'm unable to specify the path without building from source, then I'm wondering what engine I could use with the pandoc/latex docker image. I have a multistage build and the path ends up being Update: Figured it out. Added |
Please reopen this issue, which is exist in the following version:
|
This issue happens if you want to use MikTex in Windows, but they renamed everything to have |
@wizpresso-steve-cy-fan that should best go into a separate issue. Please open a new one for this. |
According to the documentation:
--pdf-engine=pdflatex|lualatex|xelatex|wkhtmltopdf|weasyprint|prince|context|pdfroff
If the engine is not in your PATH, the full path of the engine may be specified here.
without full path it works:
pandoc version used:
It was working (with and without full path) in version 1.19.1
/usr/bin/xelatex
exists and is executable.The text was updated successfully, but these errors were encountered: