The situation and the issue
When I launch
pdflatex from another program, programatically, it seems that, even with the option
-shell-escape, I am not able to launch
I have asked to specialists about my program environment (how should I launch
pdflatex programatically in a proper way?) and it seems that I have to ask some advice to the
LaTeX community. This question could also be asked on stackoverflow, but it seems that the solution would come more likely from someone who knows/understands how
gnuplot is launched by
- Is there a command line option to pdflatex to tell it where to find gnuplot?
- Do you understand what is going on? Is it a problem with
$PATHor something like that?
- Do you know how can I fix the situation?
Log from pdflatex
Here are parts of the log from
Log from my program
My program prints also the following message
sh: gnuplot: command not found
My programing environment is
cocoa and here is how I launch
NSTask * myTask ; myTask = [[NSTask alloc] init]; NSArray * arguments = @[@"-shell-escape", nameLatexFile] ; [myTask setCurrentDirectoryPath:[URLOfTheFolder path]]; [myTask setLaunchPath:@"/usr/texbin/pdflatex"]; [myTask setArguments:arguments]; [myTask launch];
Edit, answer to comments
$ gnuplot -Vgives
gnuplot 4.6 patchlevel 5