Questions tagged [auxiliary-files]

{auxiliary-files} is about files generated and read by LaTeX and packages which hold auxiliary information about the document.

Filter by
Sorted by
Tagged with
123
votes
18answers
74k views

Prevent pdflatex from writing a bunch of files

If I create just a basic hello.tex file an compile it using pdflatex hello.tex The pdflatex program is creating a plethora of file which is a little annoying. Currently it writes all those files ...
113
votes
13answers
48k views

File extensions related to LaTeX, etc

In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically ...
98
votes
16answers
99k views

Deleting external/auxiliary files?

Is there a way to make TeX delete files? In my document a lot of auxiliary files are created and it would be wonderful to have them removed after their content has been used.
69
votes
10answers
35k views

Need *.aux file in separate folder

When compiling with pdflatex we need the *.aux files in a separate folder.
36
votes
3answers
26k views

Texstudio + Biber + build folder

I used this tutorial to export my auxiliary files into a different directory. Basically i just add -aux-directory=build in Options -> Configure -> Commands and added the build folder into ...
20
votes
1answer
3k views

Egad! What are all those files?

Ok, let's write a document! $ vim thesis.tex i[input a whole bunch of latex and text]<Esc>ZZ $ pdflatex thesis $ ls thesis.acn thesis.alg thesis.bbl thesis.dvi thesis.glo thesis.ilg thesis....
27
votes
8answers
7k views

Is there a way to configure pdflatex to make all but the .tex and .pdf files hidden files?

I have asked a previous question about how to manage all the files generated when my LaTeX files are compiled but the approach in the answer I accepted is still unsatisfactory for the many small ...
14
votes
3answers
4k views

I need to save/compile a few times and a bunch of weird files (like foo.tex.Ak6664) appear in my Dropbox folder each time

I need to compile between two and four times before I see changes I make in the editor (TeXstudio) and each time I compile, a new .tex file is created with random letters and numbers at the end. For ...
61
votes
2answers
8k views

What is the basic mechanism for writing something to an aux file?

I am interested in the basic mechanism behind writing stuff to the .aux file. (Or some other auxiliary file). Let's say I want to write myself a basic package for making notes on my files. (I know ...
30
votes
7answers
41k views

Placing Intermediate and Output Files in Another Folder

I am trying to figure out a way to cleanly separate the TEX files from all of the intermediate and output files. Various approaches I've tried, including the one described by ‘Bundle’ TeX output in a ...
24
votes
5answers
6k views

‘Bundle’ TeX output in a directory

(My personal interest in this question is mainly for OS X but solutions/approaches for other operating systems are also appreciated.) What I see as a main distraction with using TeX/LateX is that it ...
84
votes
1answer
9k views

On the basics of writing to & reading from auxiliary files (.aux, .toc, etc.)

Some actions (such as generating the Table of Contents) require two passes of the TeX compiler: during the first pass, some data get written to an auxiliary file, only to be retrieved during the ...
35
votes
6answers
12k views

How do I run bibtex after using the -output-directory flag with pdflatex, when files are included from subdirectories?

When I have master pdflatex file which includes one or more child documents using something like \include{include/childdoc}, and I call pdflatex on it using pdflatex -output-directory=out parent.tex, ...
17
votes
3answers
2k views

Mimicking LaTeX's "table of contents" functionality [closed]

I need to mimic (= duplicate) LaTeX's "table of contents" functionality on a lower level. Basically, I would like to learn how to write entries to the .aux file on the first run of LaTeX and include ...
20
votes
3answers
4k views

Writing { and } to a file with LaTeX

How can the special characters { and } be written literally to an external file in LaTeX, without being balanced? Obviously the following does not work: \immediate\write\my@outfile{{} \immediate\...
19
votes
2answers
7k views

debug No room for a new \write problem

I have a template with an extensive documentation. (See TemplateDocumentation.pdf). It compiled several month ago. Now with updated packages it does not compile anymore because of the famous No room ...
18
votes
1answer
3k views

\addtocontents at end of document not getting written to .toc file?

I'm trying to find a more elegant solution for ToC, LoT, and LoF formatting for my university's thesis/dissertation style. The short form of their requirements means I need one page style for the ...
14
votes
2answers
6k views

TexShop will not compile without trashing aux files after every error

I have a couple of LaTeX files with the same problem. If I produce an error, fix it, and then try to compile a pdf, I get the following error. )Runaway argument? {{ ! File ended while scanning use of ...
17
votes
3answers
3k views

How can I open a file in "append" mode?

Could not find anything in the TeXBook, but this could be just me. I guess it is always possible to open the file for reading, copy its content to another file, and then continue writing to that file....
15
votes
2answers
5k views

MacTeX -aux-directory=DIR

i'm using Textmate and MacTeX (texLive 1.12). There is the option in MiKTeX (Windows) to use the command -aux-directory=DIR and -output-directory=DIR. The output part works in TeXLive, but the PDF ...
37
votes
7answers
4k views

How do you store all your TeX files long-term?

Reading through As an expert, can you always use TeX for (nearly) any kind of document?, it seems most people use TeX for almost all their documents. My question is this: how do you store these ...
30
votes
1answer
5k views

When is the aux file read and written?

I'd like to know when the aux file is read. I know it happens after the preamble, but does it come before or after the \AtBeginDocument hook? I'd like to know when the aux file (or any other helper ...
17
votes
4answers
1k views

File copy without expansion

What is the command for file copy? I want to copy the contents of one file into another without any command expansion. In a command line driven operating system one would use copy source target I ...
9
votes
1answer
9k views

*.aux file not generated

I am using \documentclass[margin]{res}. On running latex/xelatex, *.aux file is not generated. Because of this the references in the document are not being cited. I am using biblatex for citations. ...
19
votes
5answers
2k views

Making efficient use of \writes

I'm currently trying to compile my thesis using LaTeX and have run up against the old ! No room for a new \write . problem. After some googling it seems the only way to actually resolve this problem ...
18
votes
4answers
5k views

Use MiKTeX option through latexmk

When I use MiKTeX normally, I call this: pdflatex --aux-directory="C:\Users\doncherry\Documents\LaTeX\AUXI_global" foo.tex For latexmk outputting pdf (via pdfLaTeX) with continuous previewing, my ...
12
votes
4answers
1k views

How can I write % into a file?

How can I write % into an auxiliary file? % will not work, because LaTeX thinks that I start a comment with it (in the main file, not in the auxiliary file!), and \% will write \% into the file. How ...
10
votes
1answer
965 views

Write information on aux file when using include to build document

This may be an odd question, but I'm having trouble writing information on the main .aux file when I split my documents through more than one .tex. Here is the deal: I'm trying to calculate the size ...
17
votes
2answers
546 views

Write content of box to a file

I would like to take the contents of a box generated with \begin{lrbox} ... \end{lrbox} and write it to a file. The use case is a question and answer environment, where the answer should be collected ...
15
votes
3answers
736 views

Need help creating a custom aux file read/write routine to suit my needs

I require two new commands, \createreference and \citereference, to work with. They should work as shown in the following examples: \createreference{john}{John Q. Citizen} should write the text “John ...
16
votes
1answer
905 views

Is it possible to compile hidden files?

(This question may make sense only in Linux.) I have the following simple file called .main.tex. Note that it is a "hidden" file because of its name. \documentclass[]{article} \begin{document} ...
11
votes
4answers
4k views

How to write a command to file

I am trying to write to a auxillary file using \newwrite\tempfile [...] \immediate\openout\tempfile=list.tex \immediate\write\tempfile{Text to write to file} \immediate\closeout\tempfile It works ...
7
votes
1answer
526 views

Arara rule for log file scraping

Is there a script or arara rule that does log file scraping for messages about bad boxes, warnings, and obvious rerun messages and outputs this to stdout? It doesn't need to be perfect. I am looking ...
7
votes
2answers
18k views

Can I recover my .tex file?

I have lost my tex file but I still have my pdf, .aux, .bak, .bbl, performance monitor file, and my text document. Can anyone tell me if I can restore my .tex file from this? In any form? Addition ...
3
votes
2answers
3k views

How can I force LyX to rebuild intermediate files for clean PDF display?

I am working on a multi-file document in LyX (my thesis) and occasionally have problems where LyX seems to rely on old version of intermediate files when updating the PDF output. Is there an easy way ...
2
votes
1answer
425 views

Extract floats and read an external aux file to get hyperref infos in captions

My purpose is to use the endfloat package to extract all figures (with their captions) in a separate pdf file. I want to do it with a script combining bash command line and emacs-lisp. I want to do ...
1
vote
1answer
3k views

Compiling LaTeX document empties .bbl file

I'm trying out biblatex for the document I'm compiling, using the biber backend on my miktex distribution. Everything, including biber, should be up to date, assuming the MiKTeX repository currently ...
14
votes
1answer
51k views

Package babel Error: You haven't loaded the option english yet [duplicate]

Sorry for the less-than-descriptive title, but I'm new to LaTeX and have no idea how to debug or make sense of errors. I've modified an invoice template from here to suit my needs, but I'm getting ...
7
votes
1answer
1k views

Use of different output files in LaTeX (pdflatex) [duplicate]

When I use pdflatex, I get a bunch of files: test.aux test.log test.out test.pdf test.tex test.toc The .tex file and the .pdf file have an obvious use, but what do the other files do? ...
2
votes
1answer
673 views

Finding LaTex output files [duplicate]

I'm using TeXstudio 2.6.2 with MiKTeX-pdfTeX 2.9.4535 on Windows7. I configured TeXstudio to store all output files in a separate directory. It now looks like this: -src |_Report.tex |_*....
77
votes
4answers
10k views

Which auxiliary LaTeX files should be ignored by Version Control Software?

I'm about to start version controlling my LaTeX documents with Git but I haven't used either very much. I would like to version only the files needed to compile the document but I use different OS's (...
21
votes
5answers
3k views

Best script for automatically copying references from a centralised bib file based on aux file [duplicate]

In a previous question I asked about best practices when managing multiple bibtex files. One strategy involves having a single centralised bibtex file. Then, citations in a particular article are ...
31
votes
3answers
12k views

What is the variable that contains the source file name?

I am writing a package that saves information to an external file. I would like to name that file according to the source one; something like foo.tex -> foo.bar But I cannot find any variable that ...
17
votes
3answers
18k views

Index not working [closed]

I'm working on a document. There's an index there, but for some reason when I change things in it it doesn't update the rendered outcome and I can't correct it. I tried erasing the .ind file, but ...
7
votes
1answer
2k views

Caption makes Table move in statsoc class

I am working in statsoc.cls (you can find it here). Here I show you a working file for the problem I am facing in my paper. I have a table which has a long-ish caption (2-3 lines). Every time I ...
14
votes
1answer
1k views

Macro saving a value for next run

I need a macro, which saves a string (like the content of a label) to the aux file. During the next run, there should be a macro checking, if that string has been set in the last run or not. My ...
8
votes
1answer
862 views

Put projects into OS X bundles

I’m still looking for the solution to a question asked in 2010: Under Mac OS X, but staying compatible with other operating systems, I want to hide the mechanics. Please note: I do not want to delete ...
7
votes
1answer
548 views

To-do-notes in separate TeX File, but without \listoftodo in main doc

I am using the todonotes package and have three requirements, the first two which the MWE already does: Obtain a list of todo notes in a separate auxiliary file. This can easily be obtained via the \...
0
votes
0answers
406 views

Redirecting *.aux, *.log files, with a command in the tex file [duplicate]

Is there a latex command that can be included in a file compiled with pdflatex that can direct the *.aux, *.log files resulting from the compilation process, to a specific folder ? I have seen ...
13
votes
1answer
429 views

The LaTeX runs (with varioref) never settle down to a stable final state

This is something which has happened for real in a document where I am using varioref. The LaTeX runs never end, a text chunk keeps on being moved back and forth accross a page break (naturally with ...