On Tue, Dec 06, 2011 at 08:28:30PM +0100, Enrico Forestieri wrote: > On Tue, Dec 06, 2011 at 10:58:51AM +0000, Jack Kelly wrote: > > > > I'd really love it if someone could suggest a solution! > > Inserting the following lines in the preamble works for me: > > \usepackage{graphicx} > \usepackage{epstopdf} > \def\docpath#1{#1} > \DeclareGraphicsRule{.eps}{pdf}{.pdf}{% > `epstopdf \expandafter\docpath\input@path#1 > }
The above will create file.pdf alongside with file.eps in the document directory. If you want the .pdf always regenerated, the following is better (latex has already the macro \@iden, doing the same as \docpath above): \usepackage{graphicx} \usepackage{epstopdf} \DeclareGraphicsRule{.eps}{pdf}{.pdf}{% `epstopdf \expandafter\@iden\input@path#1 --outfile=\noexpand\OutputFile } -- Enrico