yochju / latex-makefile

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

Makefile should detect shell-escape option, needed by pgfplot/gnuplot #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you use pgfplot with gnuplot in order to draw inlay graphics, pdflatex needs 
an additional command line argument (-shell-escape). It would be nice if the 
Makefile appends it automatically.

@see www.iro.umontreal.ca/~simardr/pgfplots.pdf page 34

Original issue reported on code.google.com by patrick....@gmx.net on 11 Jul 2011 at 7:21

GoogleCodeExporter commented 9 years ago
I'm reading about pgfplots now.  Looks really interesting.

So, the -shell-escape is there because pdflatex wants to shell out to gnuplot 
to do its work, right?  Make makes this sort of thing really hard (global 
parameter settings based on the way that dependencies are set up).  I think we 
have basically two options:

1) Always set --shell-escape.  This seems like it could be dangerous, but I 
don't have my head wrapped around all of the implications.
2) Provide an externally-settable LATEX_OPTS variable, that you can set in 
e..g, Makefile.ini or Variables.ini like so:  LATEX_OPTS := -shell-escape

Thoughts?

Original comment by shiblon on 12 Jul 2011 at 1:18

GoogleCodeExporter commented 9 years ago
I'd prefer the second option - seems more generic :D
A notable alternative to pgfplots is TiKZ, which works with pdflatex without 
any issues.

Original comment by patrick....@gmx.net on 19 Jul 2011 at 9:07

GoogleCodeExporter commented 9 years ago
OK - try the attached.  It allows you to set "LATEX_OPTS" and add extra latex 
options to the command line, like the --shell-escape option you need.

You can put it into Variables.ini or Makefile.ini like this:

LATEX_OPTS := -shell-escape

Original comment by shib...@google.com on 20 Jul 2011 at 8:00

Attachments: