Placing Intermediate and Output Files in Another Folder

Since Texmaker 3.4, you can specify the option "Use a build directory for output", which creates a "build" folder in your project folder, and saves everything but the .tex file there. See the manual Now you can also specify the output directory as an option to pdflatex as e.g. -output-directory pdf. But you will also have a copy of the pdf in the build folder no matter what. And I haven't found a straight-forward way to have the output file in the root folder, either.

(And I also have a .gz file in the folders, but that might be an option you can turn off.)


As suggested by lockstep, I write a short answer: AFAIK, this is currently not possible, because the path cannot be changed for the messages / log viewer and for the pdf viewer from within the Texmaker GUI. There is a feature request on the Texmaker issue list to make the path configurable: http://code.google.com/p/texmaker/issues/detail?id=97 Maybe you are lucky and in a later release this will be available. I personally would also use this new feature (and only backup the input folder, not the output folder).


For TeXstudio (since a fork from texmaker, it might be similar there):

  1. Add the options -aux_directory and -output-directory to the latex pdflatex and other commands, if needed.
  2. Change the appropriate lines (160 and 161 in my case) in the texstudio.ini file, in W7 usually located under

C:\Users\username\AppData\Roaming\texstudio

Modify the path for the two varables accordingly.

Tools\Log%20Paths=C:\\\Users\\\username\\\AppData\\\Local\\\Temp

Tools\PDF%20Paths=D:\\\repos\\\pdf

(double-backslashes by intention)

Enjoy!