[tex-live] Repstopdf and Shell Escape

Manuel Pégourié-Gonnard mpg at elzevir.fr
Tue Jul 13 17:10:22 CEST 2010

Le 13/07/2010 15:08, Herbert Schulz a écrit :
> A problem has cropped up on the TeX on Mac OS X list with someone who is
> using TL2010 pretest with all updates (as of 12 July). He is using pdflatex
> with --shell-escape and using both the graphicx and epstopdf package
> (although the latter is not needed) and has given the full path
> (/Users/<usename>/Pictures/xxx.eps) to the graphic. In spite of using
> --shell-escape the xxx-eps-converted-to.pdf file is not created and there is
> an error message about restricted mode (I guess repstopdf is always used
> since that is what is set in epstopdf-sys.cfg). In TL2009 (where there was no
> restricted mode) this worked with --shell-escape. Shouldn't repstopdf behave
> exactly like epstopdf if --shell-escape is present?
Hum, this is no easy question. The core problem is, pdftex and repstopdf are
different processes, and there is currently no way for repstopdf to know which
options were passed to pdftex.

A possible way to solve this problem would be :
- make --shell-escape imply openout_any=a and openin_any=a;
- change the \write18 code so that a few critical values (such as shell_escape
and open{in,out}_any) are copied in the environement of the child process.

It looks like the long-term correct fix to me, but of course, such changes are
not going to happen before TL2010 is released.


PS : in the meanwhile, \esptopdfsetup{program at epstopdf=epstopdf} should to the

More information about the tex-live mailing list