yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

Package minted requires running latex with -shell-escape #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If external programs are to be run from within a tex file, then latex must be 
run with command option -shell-escape. For example, the minted package uses 
pygments to syntax-highlight code using an external filter.

In the makefile, I have specified the latex binary as follows:

LATEX ?= latex -shell-escape

This works, but produces a warning:

which: invalid option -- 's'

What is the best way to add a command-line option to latex?

Original issue reported on code.google.com by eorli...@gmail.com on 12 Aug 2010 at 6:12

GoogleCodeExporter commented 9 years ago
That's strange.  Does latex give you that warning when invoking it with that 
flag outside of the makefile?

Original comment by shib...@google.com on 12 Aug 2010 at 8:12

GoogleCodeExporter commented 9 years ago
Good question; it seems I didn't do my homework properly. I see the same 
warning when invoking latex directly; indeed, in minted.sty I see the line

    \immediate\write18{which -s #1 && touch \jobname.aex}

which leads me to think the problem is that package, and not the makefile.

My apologies!

Original comment by eorli...@gmail.com on 13 Aug 2010 at 12:40

GoogleCodeExporter commented 9 years ago
This is a bug in minted that has been fixed in the trunk, but not yet in a 
release version. Simply remove the `-s` flag from the call, or upgrade your 
installation to the latest developer version (directly from source control).

Sorry for the inconvenience.

Original comment by konrad.r...@gmail.com on 5 Sep 2010 at 9:20

GoogleCodeExporter commented 9 years ago
Yes, that is correct. I upgraded minted to trunk and the problem went away.

Thanks for your help. I believe this issue may be closed.

Original comment by eorli...@gmail.com on 6 Sep 2010 at 1:24

GoogleCodeExporter commented 9 years ago
Great!  Closing this bug.  Glad you all got it worked out :)

Original comment by shiblon on 7 Sep 2010 at 3:53