Texmaker and TeXstudioRedirecting Output Files

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
ascatem
Posts: 2
Joined: Thu Jan 19, 2012 11:45 am

Redirecting Output Files

Post by ascatem »

Hi!

Is it possible to redirect the output files of PDFLaTeX in various folders?

For example:
if I have my a.tex file in "\" I want all the useless (for me) stuff automatically created (.gz, .lot, .lof, .aux, .toc, .log) in a proper folder let's say "\tmp\a" and the ".pdf" file in another folder, let's say "\pdf".
So if in "\" I've a.tex and b.tex I'll have a.pdf and b.pdf in "\pdf" and all the other stuff respectively in "\tmp\a" and "\tmp\b".

Is it possible to do that using TeXMaker (on Ubuntu) and the built-in PDFLaTeX or I've to create a script myself to run after PDFLaTeX?

Thanks a lot!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Redirecting Output Files

Post by localghost »

ascatem wrote:[…] I want all the useless (for me) stuff automatically created (.gz, .lot, .lof, .aux, .toc, .log) in a proper folder let's say "\tmp\a" and the ".pdf" file in another folder, let's say "\pdf". […]
These files are far from being useless. They contain very important information that is needed during the compilation process.

Open a terminal and call the man page of PDFLaTeX.

Code: Select all

man pdflatex
Or call PDFLaTeX with its help function.

Code: Select all

pdflatex -help
Among the command line parameters you will find such useful things like -output-directory.


Thorsten
Post Reply