First was getting a new user-defined processing tool configured in TeXworks:
Code: Select all
Program: pdflatex
Arguments: -shell-escape
$fullname
Finally I could not work out why my MWE would compile, yet my full paper wouldn't. The clue was in the instruction not to use a driver specification if the graphicx package was declared in the preamble:
What I didn't realise was that I was specifying pdftex in my declaration of package hyperref. Once I removed that option from hyperref the compilation worked. Error messages weren't really telling me anything, just that pstool execution failed, and on occasion that a graphics file couldn't be found (even though it was there). Weirder was that the file would compile if I had graphics files in the same dir as my tex file, but would fail if they were in a subdir.You also do not need to load graphicx separately, but if you do so, ensure that you do not include driver information (such as [pdftex]); this will play havoc with pstool’s automatic processing stage.
I am still not sure why I would use pstool command or psfragfig command, but perhaps this makes more sense to users experienced with the psfrag package than it can to me.
I also did not grasp at first or second or third reading that Package options (meant for the package declaration with \usepackage) can also be used in the pstool command.
I have read and re-read section 4.1 of the current (ver 3.1) manual, and still cannot make sense of it. Do I need to include the \EndPreamble command or not? How will I know? Where should it go?
However, now that I have it working, it's great! Thanks to the developer, Will.