When compiling with pdflatex we need the *.aux files in a separate folder.
|
|
With MiKTeX and TeX Live you can use In MiKTeX you can additionally set |
||||
|
|
If you compile your document using This answer was rewritten to comply with the new 3.0 version of
The rule should work on all platforms, provided that the target directory exists. I could write a more complicated rule, but I don't think we need to make things difficult here. Now, we need to add the
After compiling the document via
We can also use other targets, say:
For this new rule, we simply provide the extension we want to move to the target:
After compiling the document via
Other rules can be written, but for now I think it's enough. |
|||||||||
|
|
You can do this using the filesystem. Here's a suggested workflow, which I'll illustrate with Bash/Unix, but which can be made to work on Windows: in your working directory, where you edit your Tex file and want your output to be produced, you have
|
|||
|
|
|
Here is a TeXnicCenter-specific solution which will hopefully seem sound enough to the people claiming it's bad practice to have one single, huge repository for all LaTeX auxiliary files (which it probably is).
On the Build->Define Output Profiles menu, choose your standard build profile (say, LaTeX => PDF) and copy it to a project-specific profile. (Here, Dissertation.) Then add --aux-directory=directoryname to the command line arguments passed to MikTeX. When compiling path/file.tex, this will create files as path/directoryname/file.aux, and so on. This should be enough of a compromise, I think. EDIT: to work with BibTeX, this requires |
||||
|
|
|
You could also use
The manual
|
||||
|
|
You can move the auxiliary files only after the "complete" PDF output is generated. The "complete" means that the cross-reference is properly typeset. Moving the auxiliary files will be easier if you create a make file (in Linux) or a batch file (in Windows). An example of batch file (for Windows user) that not only compiles the input file several times (3 times should be enough) but also moves the auxiliary files to a specified folder at the end.
Note that Exercise:Assume we have an input file named
|
|||
|
|
You can use also Eclipse IDE together with TeXlipse plugin. It is quite easy to separate there your .tex files from all that are generated by TeX. |
|||
|
|


