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
0 votes
0 answers
10 views

pgfplotstable, externalize and list-and-make with auxiliary output directory

I am setting up a .latexmkrc configuration for my workflow with latexmk, and ran into a dead end regarding a pathing/lookup problem. my setup so far (use as MWE) .latexmkrc: # Set the program used to ...
marc's user avatar
  • 484
1 vote
1 answer
21 views

Store + display text in the abstract environment

I am trying to store the text from the abstract environment to a file + display this text as well. I tried the following: \documentclass{article} \makeatletter \renewenvironment{abstract}{% \textbf{...
jwbos's user avatar
  • 33
2 votes
1 answer
47 views

Why TeXShop doesn't erase the "lol" file? Is it laughing at me?

TeXShop (with the standard MacTex distribution, and using the pdflatexmk engine) creates a lot of pesky temporary auxiliary files, and I always have to click the trash button to remove them. But ...
Cham's user avatar
  • 2,158
0 votes
0 answers
42 views

Compilation issue with TeXShop on Mac (cross references and index not compiled)

I have a large document which is compiling perfectly fine with my old app Latexian (which is now defunct, but still working great under the Rosetta 2 emulation on my Mac). When I try to compile the ...
Cham's user avatar
  • 2,158
2 votes
1 answer
52 views

Running lualatex after latex while retaining auxiliary files in the presence of colon in labels and nonmain french language

Let's assume that we have a huge LaTeX document, out of which we produce a PostScript version via latex+dvips and a PDF version via lualatex. Compiling everything from scratch (without any auxiliary ...
AlMa0's user avatar
  • 187
0 votes
0 answers
51 views

How to automatically populate a latex template from multiple tex files in pure latex?

I have a folder mytexfiles/ including tex files which I'm trying to automatically include/populate in a main.tex template located in the same directory as mytexfiles/. Each file contains a filename in ...
Kirk Walla's user avatar
0 votes
1 answer
52 views

Difference between `\newcommand{..}[1]` and `\NewDocumentCommand{..}{m}` [duplicate]

In this answer, egreg uses \NewDocumentCommand{\refprefix}{m}{% \ifinproofref\else #1\fi } The command \refprefix is part of code that's written to the aux file. Defining the command with \...
Bubaya's user avatar
  • 2,021
1 vote
2 answers
99 views

Use "precompiled" aux file to avoid limits on the arxiv

It seems that arXiv does not compile enough times my document (at some points it stops, saying that it reached the maximum number of tries). As a consequence, some parts of my document does not look ...
tobiasBora's user avatar
  • 6,623
5 votes
2 answers
80 views

Write LaTeX3 seq in aux file

The code below defines a macro \addtothelist that adds the name of a fruit and its color (this is just an example) to \g_mylist_seq. It also defines a macro \printmylist which prints all the items ...
user182849's user avatar
1 vote
1 answer
100 views

LuaTeX: Can I determine if it's the first run?

Is it possible to detect if the current run is the first (preferably from the Lua end)? I tried to read the log file, but it is apparently already erased when the Lua engine starts. I can of course ...
keth-tex's user avatar
  • 442
0 votes
1 answer
50 views

Background working differently in the first run

Coming back to a document after some months caused the background configured through the background package to disappear. I checked it was recovered after deleting the aux file, but only for the first ...
Andrestand's user avatar
  • 1,035
2 votes
0 answers
32 views

How to prevent extra spaces when writing to .aux file?

Consider this: \documentclass{article} \makeatletter \begin{document} \csname mycommand\endcsname \immediate\write\@auxout{\gdef\noexpand\mycommand{text}} \end{document} After running pdflatex .aux ...
Andrew15_5's user avatar
0 votes
0 answers
29 views

Help with refrences and couldnt open filename.aux

Ive done a search of the forums and tried the numberous workarounds for this issue. I have a handin a week from now and could do with sorting this, it did work for a time then one day just stopped... ...
Tam's user avatar
  • 1
1 vote
2 answers
76 views

Macro to define macros within .aux file is not working

Here are some macros that I am trying to define (based on this question): \odef{foo}{bar} will define an "object" with name foo and value bar. \objRef{foo} will insert the value of the foo &...
Ben Zelnick's user avatar
0 votes
1 answer
58 views

Debugging "Illegal unit of measure" evidently caused by hyperref

While compiling a large and complex document, I have suddenly started receiving this error: ) (./articles/mental-connections.tex ! Illegal unit of measure (pt inserted). <to be read again> ...
scorchgeek's user avatar
0 votes
1 answer
138 views

How do you resolve the aux file confusing citations?

I am writing a second version of a book and was provided a .tex file of first edition citations as \bibitem entries from the publisher (shortened version below). \makeatletter% \...
FoxyFellow's user avatar
3 votes
1 answer
4k views

Overleaf warning: \declareDelimAlias* is deprecated. How to fix that?

I'm working with overleaf on a Mac and I recently got a new yellow warning which I don't quite understand. It says Package biblatex Warning: The starred command '\DeclareDelimAlias*' is deprecated. ...
Fin's user avatar
  • 57
0 votes
0 answers
64 views

Move generated .pdf and .synctex.gz files into build folder in texstudio

The solution in this post Texstudio + Biber + build folder successfully results in the .log and .aux files being put into a separate folder, but it does not affect the .pdf and .synctex.gz files. Is ...
xojfqa's user avatar
  • 1
0 votes
0 answers
42 views

\ref doens't output the good reference

I have a big .aux file (850 lines), which contains the line: \newlabel{aumilieudesalarmes}{{6}{\pageref {86testpage}}} When I set \ref{aumilieudesalarmes}, I expect to see 6. But, in this case, i ...
Pierre Dufays's user avatar
1 vote
2 answers
93 views

Storing variables in aux files

Can I use a command to set a variable, then use that variable earlier in the document? Specifically, I want grab the last revision from the revision history table and put that in my footers. In my *....
Stewart's user avatar
  • 607
1 vote
2 answers
252 views

Where on Windows TeXStudio saves the output files (Auxiliary, pdf etc) of an unsaved document?

When we compile on Windows a saved document, TeXstudio saves auxiliary output files in the folder of the .tex file. But if we compile an unsaved document, I can't find where these output files are ...
miltos's user avatar
  • 2,370
1 vote
0 answers
84 views

Underscore in label name when switching to using hyperref

Compiling the following document first without hyperref, then with hyperref (consecutively), produces the error Runaway argument? {\@firstoffive }\fi ./test.tex:7: Paragraph ended before \Hy@setref@...
Bruno Le Floch's user avatar
0 votes
0 answers
24 views

Polyglossia fills the aux file with useless code

My file uses polyglossia with English, Hebrew and Arabic languages. The aux file is filled with 2,103 (!!) instances of the following code: \selectlanguage *[variant=usmax]{english} \@writefile{toc}{\...
yannis's user avatar
  • 1,932
0 votes
0 answers
24 views

Texstudio does not find .lof and .lot files [duplicate]

I have set up a subfolder for the aux-files which works fine so far (main_outputs). Only thing is that if I add a \listoffigures or \listoftables, I get the warning 'No file main.lot' / 'No file main....
Roland's user avatar
  • 1
0 votes
1 answer
242 views

Warning in arxiv compilation: LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right

I am trying to upload pdfLaTex of a document on https://arxiv.org/. After compiling, I notice the following. LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. Everything ...
Random's user avatar
  • 101
1 vote
0 answers
60 views

How to do twoside with a macro in the mid of document applying to whole document

I wrote a package on which depending on how the user invokes a macro, it should change the whole document to a twosided document: MWE test.sty: \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{...
Emilio Lazo's user avatar
3 votes
1 answer
134 views

Best way to `include` standalone files from parent directory

I am trying to set up a repository for my slides and talks, so I have a repository with two folders slides/ talks/ Now due to the security setup as mentioned here (How) can I include the file ...
Ronny's user avatar
  • 5,980
0 votes
0 answers
50 views

Is TeX code obtainable from other output files

Unfortunetely, all my TeX code within one of my .tex files got deleted. However, I still have all other output files from the compilation process of this specific .tex file. Is there any way I can get ...
mc.math's user avatar
  • 15
1 vote
1 answer
84 views

save a counter to the aux file and read it later

I would like to write a counter to the aux file and then read it back when compiling the tex file for the second time. Basically, I am trying to write a command that has the same logic as the LastPage ...
Marc Corluy's user avatar
4 votes
1 answer
51 views

package ntheorem seems not to obey the LaTeX-kernel's old protection mechanism

This question is related to my answer to the question Construct math super/sub-script from reference (\ref) with hyperref and cleveref being loaded: [...] In the example below this is done via ...
Ulrich Diez's user avatar
  • 26.3k
2 votes
1 answer
53 views

How to append the body of an environment to an output file?

I want to define an environment that expands as its body, which can contain mostly arbitrary content, and also appends its body (with some predictable level of expansion) to a file. (Motivation at the ...
BCS's user avatar
  • 209
1 vote
1 answer
71 views

Writing (nested) argument specifier to aux file

This is a follow-up to this question: where I explained that I want to write some definitions into an aux file and use hooks to achieve this. Refer to this question for context why I want to do the ...
Maximilian Keßler's user avatar
0 votes
1 answer
76 views

Append content to a file containing sharp

In my library, I need to be able to append some text to a file. The problem is that that file may contain the # symbol, and it turns out that every time I append something to a file containing a #, ...
tobiasBora's user avatar
  • 6,623
3 votes
2 answers
351 views

What triggers latexmk to invoke makeglossaries?

I've started using the make-glossaries package, and am creating more than one glossary. Unfortunately, my latexmk calls seem to skip calling makeglossaries, so my build doesn't conclude. I'm using a ...
ein supports Moderator Strike's user avatar
5 votes
1 answer
146 views

Detect Number of Times pdflatex was run

I would like to include information in the pdf to indicate of how many times pdflatex was run. This seems pretty trivial, but I can't seem to get this to work -- must be someting obvious. The output ...
Peter Grill's user avatar
0 votes
1 answer
74 views

How to make bibtex issue a meaningful error message if it is run instead of biber?

Suppose I have a custom class that requires the use of biblatex, and moreover with the biber backend (\RequirePackage[backend=biber]{biblatex}). Even though the documentation of this class states ...
Denis Bitouzé's user avatar
1 vote
1 answer
78 views

Can't write to aux file from cmd

I have an automating script written in Java to generate a PDF file from a source tex file. The?main tex file may reside in one drive say 'C:' and one included file via \input in another drive say 'D:'....
SolidMark's user avatar
  • 1,219
1 vote
1 answer
100 views

Is it possible to generate bbl file without compiling a pdf?

Suppose that we have a refs.bib file containing bibtex entries, and that we would like to use the plainnat as the style. I would like to generate a bbl file without the necessicity to compile a PDF ...
null's user avatar
  • 373
1 vote
0 answers
43 views

File referencing issue over a connection to server

I am working on a system where access to my LaTeX files/header.tex/even JPG files I created to insert in my LaTeX documents … is all on a work drive. Within a given LaTeX document, I’d normally write ...
john's user avatar
  • 11
0 votes
0 answers
177 views

LaTex error: missing \endcsname inserted. Cannot compile

while editing the citations in a chapter of my thesis I got dozens of errors like the following and can't compile the file to a pdf anymore: *Missing \endcsname inserted. <to be read again> ...
user255848's user avatar
4 votes
3 answers
418 views

How to create random number for a document only on first build then reuse it in subsequent builds?

I want to create unique ID numbers for my documents, and am doing so using a random number generator like this: \usepackage[first=1, last=100000000]{lcg} \newcommand{\random}{\rand\arabic{rand}} ...
crobar's user avatar
  • 1,093
1 vote
3 answers
114 views

Reading stored table lines with @starttoc: Problems with superfluous spaces

I want to store table lines with \addtocontents and generate a table afterwards from this entries with \@starttoc. Because \@starttoc uses \begingroup and \endgroup it makes problems with tables (! ...
Cryptkeeper's user avatar
0 votes
0 answers
215 views

Can I bypass having to compile LaTeX twice?

I read here that sometimes we must compile twice in order for the .aux file to allow sectioning to function properly in the typesetting process. My question is: if we manually delete the .aux file ...
preritdas's user avatar
  • 101
1 vote
1 answer
457 views

Vs-code latex change only pdf Out Dir

I use vs code for writing and compiling tex files. I changed on vs-code settings the Out Dir to the folder: %DIR%/build. With this setting all the auxiliary files and the pdf are saved in ./build but ...
Pablo's user avatar
  • 23
1 vote
1 answer
45 views

Delete a file using luacode

I would like to delete a file called \jobname.someext which is in the same directory of my .tex file, at the beginning of a typesetting. I know the shellesc package, but can I do this with a luacode ?
jowe_19's user avatar
  • 783
0 votes
2 answers
57 views

\addcontentsline not writing files

I try to make a custom list of answers as instructed by section 2.3 of The LaTeX Companion, 2nd edition. I write this code to define my custom list: \newcommand{\exerciseref}[1]{\hyperref[exercise#1]{...
Guanyuming He's user avatar
0 votes
1 answer
227 views

Changing the aux folder for makeglossaries

I am using Visual Studio Code with Latex Workshop and I am changing the directory for the auxiliary and output files to a directory called .aux (I want it to stay hidden if possible). My reciepe looks ...
TheWorker's user avatar
  • 261
6 votes
1 answer
236 views

How to extract variables from an auxiliary file?

I would like to use an auxiliary file to read and write some information. Context In this case, I am using this auxiliary file to record the widths used in the footnote formatting. Indeed, I want my ...
B Legrand's user avatar
  • 435
1 vote
3 answers
241 views

How to automatically generate data summary at the beginning of the document?

Within my report I want do define several structural damages and I want to automatically generate a summary table at the beginning of the document. Here is an example of how far I have come so far and ...
Cryptkeeper's user avatar
0 votes
2 answers
94 views

Combine .tex file with .aux files to produce a single self-contained .tex file

I have submitted a paper to PLoS Computational Biology and it has been accepted. The paper has three supporting text pieces, which PLOSCB requires to be separate files. So, I split my paper into four ...
Leon Avery's user avatar

1
2 3 4 5
9