Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
77

You can write to the aux file with \write\@auxout{hello} or \immediate\write\@auxout{hello2} or \protected@write\@auxout{}{hello3} Depending on requirements. \immediate\write writes to the specified file at that point, expanding the supplied tokens (like \edef) so fragile commands will do the wrong thing. \write does not write at that point it puts a ...


40

General Manually created .tex: The document itself Created by you. Automatically created .aux: An auxiliary file that saves information for the creation of ToC, references, indices, bibliographies and other things like that. It is reread in the next compiling to create the ToC, references etc. Created by (pdf/xe/lua)(la)tex .toc: An auxiliary file that ...


39

Based on this example on texample.net I have created this diagram: This infographic is an attempt to visualize the interaction of 'User level' and 'Software/file level' in LaTeX workflow. Sources available here. This is not exactly an answer. To give an idea of the files involved in the compilation, the node named ".tex file" should be elaborated further. ...


35

Bibliographies Manually created .bib: The data base file containing your bibliography entries. Created by you. .bst: BibTeX style file. Determines how the bibliography looks (usually downloaded from somewhere). .bbx: A biblatex bibliography style. Created by users. .cbx: A biblatex cite style. Created by users. Automatically created .bbl: bibliography ...


31

beamer special files In addition to the standard .aux, .log, and .toc files, a beamer document will also create the following auxiliary files: .nav: contains the information needed for the navigation bar hyperlinks. .vrb: will contain the verbatim material when fragile (containing verbatim material) frames. .snm: will contain information that will be used ...


29

Each document in a different folder, is a good archiving. Though I usually remove auxiliary files, keeping the tex source and pdf output, for convenience. The dedicated document folder keeps your file system clean if you compile again. I organize my documents in topic folders, first such as letters, articles, books, and below subfolders such as job, private ...


28

The .aux file is read as part of the \document macro (\begin{document}) but before the \AtBeginDocument hook is used. (You can check this by inserting some 'test code' into the .aux file and the hook.) Writing to the .aux file takes place both 'immediately' and at shipout. The latter is important to get for example the correct page numbers for cross-...


27

General Layout and Package files Manually created .cls: Class files containing settings for you document and providing the basic macros for the mark up, e.g \section. Created by users or latex with an ins file. .def: Collection of a list of similar definitions, that would make a sty file long and unreadable. See What does the .def file do?, and When to use ...


27

Writing balanced braces doesn't require anything special, as the following transcript of an interactive TeX session shows: $ tex This is TeX, Version 3.1415926 (TeX Live 2011) **\relax *\newwrite\mywr *\immediate\openout\mywr=temp.dat *\immediate\write\mywr{{}} *\bye No pages of output. Transcript written on texput.log. $ cat temp.dat {} If you want to ...


27

Solution to use Texstudio and output the build (temporary) files into a seperate folder using biber: Put a new Folder with YourName into the same directory as your main .tex file. Options -> Configure -> Commands -> PdfLaTeX add -aux-directory=YourName. Result looks something like this: pdflatex.exe -synctex=1 -interaction=nonstopmode -aux-...


26

The files that you are talking about (.log, .aux., .bbl., .blg, .toc, etc.) are created by LaTeX (or BibTeX, or any other auxiliary program) “on the fly.” They are usually dependent on the source .tex file. Since there's no information in those files that's unique to them (i.e., that can't be recovered from the source .tex file) and you would never edit ...


25

How does LaTeX implement UTF-8? The Unicode character é is encoded as two byte in UTF-8, precisely <C3><A9> (I'll use throughout this to denote bytes, also when they are character tokens for TeX). When \usepackage[utf8]{inputenc} is loaded, the byte <C3> is made active and defined to look for the following byte, because <C3> in UTF-8 ...


21

If you compile your document using arara, we can write a rule to move selected files to an arbitrary directory. This is my humble attempt with the move.yaml plain rule: This answer was rewritten to comply with the new 3.0 version of arara. For arara 2.0, see the revision. !config # Move rule for arara # requires arara 3.0+ identifier: move name: Move ...


21

Another solution is to use the --clean flag from rubber. rubber is, according to the project description, "a program whose purpose is to handle all tasks related to the compilation of LaTeX documents. This includes compiling the document itself, of course, enough times so that all references are defined, and running BibTeX to manage bibliographic references....


21

For portability purposes, as well as keeping things clean/tidy, I use embedfile to attach the source .tex (as well as other required sources) to the output .pdf. The attachment is compressed, which also saves some space. Then, once a project is complete, you can erase everything but the .pdf. The requirement though is that you use pdflatex. Here is a ...


21

I started compiling a list of all known auxiliary files on github: https://github.com/wspr/latex-auxfiles Any help in filling out the document greatly appreciated :)


21

It depends on how paranoid your settings in texmf.cnf are. Mine (default texlive 2014) says: % Allow TeX \openin, \openout, or \input on filenames starting with `.' % (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)? % a (any) : any file can be opened. % r (restricted) : disallow opening "dotfiles". % p (paranoid) : as `r' and ...


20

I've made a new version of latexmk, which supports -aux-directory and -output-directory. It's v. 4.27a and can be found at http://www.phys.psu.edu/~collins/latexmk/versions.html This version will be submitted to CTAN fairly soon, but some feedback would be useful, since I have not tested the new features extensively, especially as I don't have current ...


20

Just to avoid confusion, the way to produce a generic index should be include \usepackage{makeidx} Put a \makeindex command in the preamble Put a \printindex where the index should appear Run LaTeX which generates an "fname".idx file Run makeindex "fname".idx to generate the "fname".ind Run LaTeX again to include the .ind file and generate the index in the ...


20

There are certainly several ways to implement a data transport mechanism between runs. The LaTeX one attempts to be rather economically with resources. There are a number of tasks that it caters for: TOC-type files are only generated if the document asks for a TOC. This only becomes clear somewhere within the document (i.e., not automatically available at \...


19

Unfortunately, latexmk -c does not delete all generated files by default. For example, it does not delete files generated for glossary, acronym and index creation. I managed to have latexmk -c delete more temporary files by creating a global .latexmkrc file (on Unix-like systems, put it into your home directory): @generated_exts = qw(aux idx ind lof lot ...


19

I think you need the package xr - it allows one tex file to use eXternal References, defined in the .aux file of another tex file


18

Without a minimal working example (MWE) this is just guessing, but if your document has defined acronyms or glossary entries within the document environment and you upgraded to version 4.0, an extra write is required. The reason for this is as follows: Version 3.07¹ and below wrote the name, description and symbol fields to the external glossary files (in ...


18

You can use the draft mode: -draftmode Sets \pdfdraftmode so pdfTeX doesn't write a PDF and doesn't read any included images, thus speeding up execution. Arara also supports it, here's an example for TeXworks: % arara: pdflatex: { draft : yes } I use the following snippet to compile a large document with hundreds of pages and ...


18

I have the same problem. According to the bug report, it seems to be related to a change in the way TeXstudio saves a file. What can you do? Two options: a) Give up the cloud ... and simply work outside your Dropbox, as the OP suggested. You can still manually copy files into the Dropbox to back them up or share them. b) Downgrade TeXstudio and keep the ...


17

TeX does not have a serialisation of its box structures that may be accessed, in particular it can not be written to a file. You either need to save the box within TeX memory for re-use or instead of saving the box, grab the tokens that make up the text and write those to a file to be re-set when the file is read in. That is how tables of contents and ...


17

Adding to the nice answer by Christian, I'd like to mention some subtler aspects of writing in the .aux file. LaTeX defines a file handle for this, which is \@auxout, and provides the function \protected@write for “safe” writing in files. This function differs from ordinary \write in three main aspects: robust commands or \protected ones are written out ...


16

Not regarding the LaTeX processing flow, but dependencies of LaTeX, TeX and related software, still matching the title of your question and your visual thinking: An overview of TEX, its children and their friends by Arno Trautmann is an overview with a many diagrams. It deals with the difference between engine, format and distribution Gives a short and an ...


Only top voted, non community-wiki answers of a minimum length are eligible