-
-
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
escape-shell not working for minted #4721
Comments
Most definitely not a fault in plain pandoc. Sounds like minted didn’t install or cannot find all its files, please ask on their support channels or maybe better stackoverflow... or possibly there are minted users on pandoc-discuss. |
btw. from the manual:
|
I forgot to mention, I did test that. It works if I do it in two steps:
Therefore I think the problem could be |
your log shows the problem, it is |
@mb21 are you sure this should be closed here? The issue is in the way pandoc is calling pdftex not anything really that can be handled in minted (or latex itself) |
@davidcarlisle Ah, that makes me very interesting in whether pandoc has such an option. If anyone knows it's probably @jgm. As for a temporary fix, are you suggesting putting |
@gandalfsaxe I was suggesting something along those lines but it doesn't work and if I'm reading the haskell at https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/PDF.hs#L297 correct;y pandoc basically does that already. trouble is minted doesn't just require tex to find the files it needs the shell (pygmentize in particular) to know where they got written, tex's --output-directory option is such a pain it complicates the entire pipeline:-) However minted has an option to specify the directory so if you can change |
I can reopen this, but I don’t see a simple solition implementable on pandoc... maybe you’re better off just doing the two-steps. |
@mb21 doing it in two steps only works as the user isn't using |
@davidcarlisle Out of curiosity, would |
@gandalfsaxe it would work if you used |
Ok. Well I guess the best bet for a solution is what you write in the other thread:
|
I've noticed that pandoc already generates a temporary folder in the same path as the output files. It's deleted after the pandoc command is finished running. Seems like a good candidate for a temporary folder for |
i found a solution by setting as described in minted manual :
so change pandoc --filter pandoc-minted --pdf-engine-opt=--shell-escape --pdf-engine-opt=-aux-directory=temp -o minted-test.pdf minted-test.md |
Another approach: Try with |
Hi,
I'm having trouble using the
--shell-escape
flag for converting markdown to PDF having source code syntaxed by minted using a pandoc-minted filter.Minimal example:
minted-test.md
:Install pandoc-minted with
pip install pandoc-minted
Run command:
pandoc --filter pandoc-minted --pdf-engine-opt=--shell-escape -o minted-test.pdf minted-test.md
I get error:
with the
--verbose
option I get the full error output: https://gist.github.com/gandalfsaxe/e4f0bb280c8e441385bf46cd5be443feMay relate to nick-ulle/pandoc-minted#2 or gpoore/minted#93 - however I can't find out if the fault is with
minted
orpandoc
? Any suggestions?I did test doing intermediate latex conversion, then converting the .tex file to pdf via
pdflatex
. It works if I do it in two steps:pandoc-minted
)Even if it cannot be solved immediately / easily, it would be nice to gain some clarity into what is causing the issue.
The text was updated successfully, but these errors were encountered: