I am using texstudio, miketex and windows 7. I would like to specify different default directory for all but .tex and .pdf files so that I could keep working directory clean. But I donot want to use following command everytime

latex -output-directory=C:\texoutput -aux-directory=C:\tobedeleted foo.tex

I mean, I expect it to be default behaviour. Whenever I compile abc.tex or xyz.tex, all non .tex file should go to directory to be deleted. Is it possible to configure the system this way?

  • Can't you write a script that does this? Must be pretty easy on Windows (but I don't know Windows).
    – jon
    Nov 4 '14 at 20:41
  • Which editor you are using? If it is winedt, it can do it easily.
    – user11232
    Nov 4 '14 at 23:39

Insert -output-directory=C:\texoutput -aux-directory=C:\tobedeleted just before %.tex in the lines that configure the compilers in The Options> Configure TeX Studio > Compiling menu & submenu as in the first line of this snapshot:

enter image description here

  • 1
    How can synctex file also be moved to that directory?
    – Vaibhav
    Nov 5 '14 at 2:55
  • @Vaibhav: Normally, it should be in that directory. But in that case, forward and inverse search don't work any more – at least in my configuration (MiKTeX + WinEdt).
    – Bernard
    Nov 5 '14 at 9:34

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.