Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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

Cross-reference expl3 integers with cleveref

Suppose I implement numbered document elements using expl3 integers. Suppose further that I would like to cross-reference these elements using cleveref. What is the best way to do this? I came up with ...
cfr's user avatar
  • 201k
1 vote
1 answer
21 views

tikz/external: Error writing files

The following code used to work before but now it is having trouble to write output files to destination, what is the problem here? Tried solution from this issue but it didn't work command: ...
Felipe9's user avatar
  • 329
0 votes
0 answers
36 views

using aux file for multiple volumes [duplicate]

I'm writing multi-volume book for a publisher who has an in-house LaTeX support person but I'm a little confused about some of his suggestions on how to handle links from one volume to another. They ...
Chip Brock's user avatar
0 votes
0 answers
62 views

Which types of files can be safely deleted from a finsihed project?

I wrote a book with LaTeX and it's done (in case you are interested, the title is Twice as Weird: A Memoir about Twice Exceptionality). As it does, LaTeX generated a lot of files, especially because ...
Peter Flom's user avatar
  • 1,176
2 votes
2 answers
82 views

The timing of defining new macro and reading its value from the aux file

I would like to define two commands: \RecordTagText{tag}{text} which stores to each unique tag some text, and \ShowTagText{list of tags} which prints the text corresponding to the given list of tags, ...
Jinwen's user avatar
  • 8,568
2 votes
1 answer
44 views

Correct way to set expl3 sequences in the aux file

Consider the following example, in which it (globally) adds an element TEST to the sequence \g__mymodule_test_seq in the .aux file. Then if it is asked to show the sequence content immediately in the ...
Jinwen's user avatar
  • 8,568
3 votes
2 answers
65 views

Print a list of items at the beginning, where each item is defined throughout the document

I would like to print a list of items at the beginning of a document, where each item is defined throughout the document. How can I do this? MWE \documentclass[11pt]{article} \begin{document} \...
jowe_19's user avatar
  • 939
0 votes
0 answers
25 views

How to make VS Code LaTeX extension put extra files in a subdirectory? [duplicate]

Is it possible to make the extra latex files to go into some subdirectory (e.g. .auxlatex/)? I am running LaTeX using the LaTeX extension on VS Code. The extra files really clog up the directories ...
user avatar
0 votes
1 answer
22 views

\bibdata transformed with relative path, any way to stop this? [closed]

At some point pdflatex has started generating \bibdata entries in the .aux file with a leading ./, which causes bibtex to ignore the BIBINPUTS path. Is there any option to stop pdflatex from doing ...
Joel Mussman's user avatar
5 votes
1 answer
134 views

trouble with expansion in ltproperties

I am struggling to control expansion in code recorded with ltproperties. In the following example, I am trying to record the body of an environment as stated, without expansion (so as if with \exp_not:...
mbert's user avatar
  • 4,216
2 votes
2 answers
113 views

Understanding expansion in \addtocontents

I am confused about how expansion works in \addtocontents, or more precisely in \protected@write. As I understand it, \addtocontents should essentially expand its second argument with \protected@edef ...
mbert's user avatar
  • 4,216
0 votes
0 answers
32 views

Can not open aux file with AASTeX template

Yesterday, I tried to use a template AASTeX from AAS website. https://journals.aas.org/aastex-package-for-manuscript-preparation/ After downloading the source file from this website, I tried to ...
Trần Quang Minh's user avatar
1 vote
1 answer
45 views

Issue using `totcount` to create a score counter per-exam question

On the cover sheet of an exam, I want to generate a tabulation of the questions and their point totals. (This is part of a package I'm writing. I am aware of exam.sty, but it doesn't suit me.) I have ...
Timtro's user avatar
  • 1,430
2 votes
2 answers
77 views

LaTeX does not finish compiling (infinite loop, maybe) when I place multiple \tl_use commands inside the \bool_until_do loop

I am trying to retrieve data from a .aux file using expl3. I want to ignore the first line because it serves a different purpose (hence the \ior_str_get:NN \l_seccion_lista_ior \l_tmpa_tl). The ...
gxono's user avatar
  • 77
3 votes
1 answer
107 views

Can't check if a string(token list) type macro in a sequence in LaTeX3?

This is my first time on TeX Stack Exchange, so please forgive me if I unintentionally offend anyone. Compile Environment(using pdflatex to compile): WSL: x86_64 Linux 5.15.133.1-microsoft-standard-...
zongpingding's user avatar
0 votes
1 answer
27 views

How to \immediate\write multiple lines produced using \newline and \StrSubstitute

Why this does not work when the lines are produced using \newline (instead of ^^J) and \StrSubstitute as follows? Thanks \documentclass{article} \usepackage{xstring} \begin{document} \def\mystrings{\...
Krantz's user avatar
  • 159
1 vote
1 answer
139 views

How to read a file line by regular expression and extract and evaluate the number contained in the matching line?

Can this be generalized to use some kind of regular expression, not just index, and then extract and evaluate the numbers at the beginning or end of the selected line, using some modifiable arbitrary ...
Krantz's user avatar
  • 159
0 votes
1 answer
62 views

Export-import a value produced in one tex file and use it in another tex file efficiently

Based on here, the following should work but does not. Why? All I want to do is to copy one or two values from one .tex file to another: copy 12 from A.tex to B.tex. Is there a simple way to get this ...
Krantz's user avatar
  • 159
0 votes
0 answers
65 views

Save the temporary files produced during the compilation

I know that when we compile a .tex file, pdflatex or the compiling program generates temporary files. I would like to know how I can make these files be saved in the source folder of the compiled .tex ...
jon jones's user avatar
  • 113
0 votes
1 answer
42 views

Locally adjust a dimension written into aux

I am writing some code that makes use of a dimension (termed \shape below) that gets adjusted several times over the course of the code. The value \shape has by the time the code is finished is what ...
Noah J's user avatar
  • 515
0 votes
0 answers
27 views

Additional [auxiliary] files in LaTeX [duplicate]

I'm working with LaTeX. When I run the code, several files appear, which I don't know how to avoid. I erase these files, but when I run the code again, they reappear, as shown in picture (1). I have ...
Gema89.'s user avatar
  • 111
0 votes
1 answer
76 views

.aux files missing or not being created in texshop

I am using texshop on a mac (version below) and when compiling the main thesis file it is missing out two of the chapters as it 'cant find the aux file'. Why would this be and how can I resolve the ...
Harriet R's user avatar
0 votes
0 answers
36 views

More labels inside an equation

I am trying to add more labels to an equation. I want to refer to the text in the equation and to the equation separately. The code has to fit the following preamble (I have a solution that has some ...
Luca Benatti's user avatar
1 vote
2 answers
309 views

latexmk dependency files and $aux_dir

I am working with custom dependencies in latexmk, but I want the output files to be placed in $aux_dir and $out_dir, respectively. I managed to do this sucessfully, but latexmk exits with the ...
marc's user avatar
  • 701
0 votes
1 answer
71 views

Advice for file structure

I made a customized document class called note and since I added a lot of additional features (e.g., fonts, tikz) so I feel that my file structure needs some modifications/improvements and I'd like ...
Yiyang Yan's user avatar
1 vote
1 answer
45 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
  • 701
1 vote
1 answer
33 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
  • 57
2 votes
1 answer
66 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,304
0 votes
0 answers
120 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,304
2 votes
1 answer
64 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 ...
user avatar
0 votes
1 answer
70 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,475
1 vote
2 answers
256 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
  • 8,804
6 votes
2 answers
113 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
2 answers
157 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
62 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,085
2 votes
0 answers
36 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
45 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
96 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
277 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
6 votes
1 answer
6k 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
  • 119
0 votes
0 answers
43 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
185 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
  • 703
1 vote
2 answers
712 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,625
1 vote
0 answers
147 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
  • 2,003
0 votes
1 answer
535 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
68 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
238 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
  • 6,120
0 votes
0 answers
67 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
151 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

1
2 3 4 5
10