GeneralOutput Files

General information and discussion about TeXnicCenter
Post Reply
lexis1983
Posts: 3
Joined: Tue Oct 12, 2010 4:03 pm

Output Files

Post by lexis1983 »

Hello,

I am using the TeXnicCenter for a long time already and with a lot of my projects. However one thing I was never able to figure out and now I am writing my PhD- Thesis and it bothers me now. So now the not really necesarry background information is given I wil get to my problem:
I have a Project with lots (lots) of tex-files. Each represents a chapter. When creating my document all the output files that are necessarry (aux, bib, etc.) are written in the same folder and the contents get really confusing.
I know I can clean up the project, but that is not really what I want.
Is there a way in TexnicCenter to tell it to write these files in a temp-folder or something similar?
I would like a structure like.
Project:
Pictures
Source (tex-file)
temp (aux, bib, etc)
...
Is that possible? I hope you can give me a tip on wether this is possible or not because I could not find anything about that anywhere (that is probably because of my lack of talent in finding things on the internet, but that doesn't solve my problem ;) )

Thanks

Lexis
Last edited by lexis1983 on Wed Oct 13, 2010 1:40 pm, 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
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Output Files

Post by frabjous »

TexnicCenter isn't what's creating those files, LaTeX does that. TXC just calls LaTeX. There are ways of telling LaTeX to put them somewhere else, but I think it would help to know what LaTeX distribution you're using. If MikTeX, see here (the section on "Specifying the Directory for Auxiliary Files"). I'm afraid I don't know offhand how to tell TXC to pass that option on to LaTeX, since I don't use TXC (or Windows for that matter), but surely someone else will.
lexis1983
Posts: 3
Joined: Tue Oct 12, 2010 4:03 pm

Re: Output Files

Post by lexis1983 »

Hello,

thank you for your fast reply. Of course you are right Latex is doing that. I am using MikTex and with the help of the link I got it working now the way I want it to :-)
Thank you very much!

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

Output Files

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
lexis1983
Posts: 3
Joined: Tue Oct 12, 2010 4:03 pm

Output Files

Post by lexis1983 »

Hello,

sorry I didn't mark the post as solved imediatly. I read the Board Rules but I did not think about it at the moment I should have. I was just happy that I got the help I needed here and wanted to thank 'frabjous' for the help. I will remember next time.

Now for everybody who has the same problem I had I am giving you my solution (might not be the best one but it works good enough for me :-)).

In TeXnicCenter with the use of MikTex:

Arguments given to Latex Compiler:
-output-directory=output -aux-directory=tobedeleted -interaction=nonstopmode "%pm"

Arguments given to BibTex:
--include-directory="%dm\tobedeleted" "%dm\tobedeleted\%tm"

Arguments given to MakeIndex:
-s indexNeu.ist "%dm\tobedeleted\%tm"

Viewer:
[DocOpen("%dm\output\%tm.pdf")][FileOpen("%dm\output\%tm.pdf")]

This is for LateX -> PDF as I have done it. The source files are in my project folder. In this folder there are the subfolders output (holds then the PDF) and the subfolder tobedeleted (holds the aux, log etc. files) [I created these folders 'per hand' before running MikTex].

Hope this helps :-)

Thanks again for the help!

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

Re: Output Files

Post by localghost »

Many thanks for sharing this detailed solution.
Post Reply