MiKTeX and proTeXtChange Output Folder for compiled Files

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
ForenDaddy
Posts: 8
Joined: Tue Oct 18, 2011 3:37 pm

Change Output Folder for compiled Files

Post by ForenDaddy »

hi, i am quite new with tex.
i installed miktex and texniccenter. created my first pdf, can insert pictures and so on. everything works quite good.

my problem is now that everytime i compile a pdf there are a lot of unwanted files within my folder. *.log, *.aux, *.bbl and *.blg
i have absolutely no use for these files but they are all the time in my way.
the folder looks unsorted and in disorder.

can i get rid of them after compiling?
like a setting to put these files in a separate folder or a delete operation afterwards?
anything is ok to put them somewhere else.

the pdf should still be put in the same folder as the *.tex file.
Last edited by ForenDaddy on Mon Oct 24, 2011 9:10 am, edited 1 time in total.

Recommended reading 2024:

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

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

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

Change Output Folder for compiled Files

Post by localghost »

ForenDaddy wrote:[…] my problem is now that everytime i compile a pdf there are a lot of unwanted files within my folder. *.log, *.aux, *.bbl and *.blg
i have absolutely no use for these files but they are all the time in my way.
the folder looks unsorted and in disorder. […]
These files are substantial for the entire build process of a document. The compiler retrieves important information from these files (ToC, labels, bibliography, …). Especially the log file contains valuable information about errors in the source. So these files aren't just produced to fill disk space, but have a certain purpose.

Running MiKTeX, you can redirect these files to another folder and specify a certain output folder [1].

Code: Select all

pdflatex -aux-directory=DIR -output-directory=DIR filename.tex
[1] MiKTeX 2.9 Manual


Best regards and welcome to the board
Thorsten
ForenDaddy
Posts: 8
Joined: Tue Oct 18, 2011 3:37 pm

Re: Change Output Folder for compiled Files

Post by ForenDaddy »

this is nice.

-aux-directory="c:/temp" works for me.
just added it in texniccenter under output profile of pdflatex.

thx and i'm right back at work ^^
Post Reply