I wrote a Prolog predicate that generates a Latex file, and I am looking for a way to be able to compile such a file automatically, within Prolog, to return instead the associated PDF file. I have found the shell predicate (http://www.swi-prolog.org/pldoc/man?predicate=shell/2) but I can't figure out how to properly make it work.
In case it is of any relevance, I am using SWI-Prolog 7.1.33 in a Mac.
Thanks in advance!
shell/2predicate? - Paulo Mourapdflatexcommand can not be found on thePATHfor the shell started by theshell/2predicate. Try calling thepdflatexcommand using its full, absolute, path. - Paulo Moura