How can I change the output directory of PDF figures converted from a EPS file? I have a output folder for my auxiliary files that are made on compile of the document, but figures in the format of EPS are leaving the output file of the PDF format in the same folder.

- Figure.eps
- Figure.pdf
- main.aux
- etc...

So to make it clear I want to move the file Figure.pdf to _output, not manually but so that the compiling software does it. I am using lualatex if that makes any difference.


You will need to set the outdir for epstopdf as well the usual \graphicspath (or TEXINPUTS) to find the original image:

\epstopdfsetup{outdir = ./output/}
  • epstopdf is auto-loaded nowadays, but as we are explicitly setting a key it provides, I've gone with making it clear that it is loaded. – Joseph Wright May 14 '19 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.