Questions tagged [auxiliary-files]
{auxiliary-files} is about files generated and read by LaTeX and packages which hold auxiliary information about the document.
471
questions
3
votes
1
answer
60
views
Why the \VerbatimInput of the .aux file is empty?
The following MCE shows that the .aux file, although found, produces an empty \VerbatimInput. Why?
\begin{filecontents}[noheader,force]{\jobname.txt}
\relax
\gdef \@abspage@last{1}
\end{filecontents}
...
2
votes
2
answers
122
views
How to let LaTeX ignore a part of a \section{....} argument for writing the .aux file?
Is there an easy way to let LaTeX ignore parts of the argument to a \section command when writing the .aux file?
Example:
\documentclass[halfparskip]{scrartcl}
\usepackage{lastpage}
\newcommand*{\...
0
votes
1
answer
35
views
Compute the sum of non-integer counters at the beginning of the document
I'd like to compute the sum of non-integer counters at the beginning of a document. How can I do this ?
\documentclass{article}
\usepackage{xparse}
%
\ExplSyntaxOn
\fp_new:N \g_total_sum_fp
\...
0
votes
0
answers
44
views
Rerun if toc, lot, lof or lol changed?
Assume a document has a table of contents, toc.
From my understanding, typically at the beginning of a document,
at the command \tableofcontents,
the file xxx.toc is read to insert the TOC.
After the ...
0
votes
0
answers
35
views
How to expand the argument to \defVal using globalvals package? [duplicate]
I would like to define a command and use its expanded content to use earlier in the document.
The globalvals package seems to do almost what I need it to do, except it stores the command verbatim in ...
1
vote
1
answer
21
views
make4ht with option for auxiliary files in Windows
I have this file Questions\285.tex:
\documentclass{report}
\usepackage{tikz}
\begin{document}
\begin{figure}[H]
\begin{center}
\textbf{line1}
\textit{line2}
\end{center}
\end{figure}
\end{document}
...
3
votes
1
answer
89
views
Why latexmk doesn't ignore certain input files as dependencies (again)
(This is a follow up of How to make latexmk ignore certain input files as dependencies, and Avoid latexmk rerun forced by new timestamp of lualatex cache where @JohnCollins asked for the work flow ...
5
votes
0
answers
76
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 ...
1
vote
1
answer
33
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:
...
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 ...
0
votes
0
answers
96
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 ...
2
votes
2
answers
86
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, ...
2
votes
1
answer
45
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 ...
3
votes
2
answers
72
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}
\...
0
votes
0
answers
101
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 ...
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 ...
5
votes
1
answer
140
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:...
2
votes
2
answers
124
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 ...
0
votes
0
answers
35
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 ...
1
vote
1
answer
49
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 ...
2
votes
2
answers
82
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 ...
3
votes
1
answer
117
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-...
0
votes
1
answer
30
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{\...
1
vote
1
answer
155
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 ...
0
votes
1
answer
66
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 ...
0
votes
0
answers
82
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 ...
0
votes
1
answer
43
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 ...
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 ...
0
votes
1
answer
111
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 ...
0
votes
0
answers
37
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 ...
1
vote
2
answers
446
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 ...
0
votes
1
answer
79
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 ...
1
vote
1
answer
53
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 ...
1
vote
1
answer
37
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{...
2
votes
1
answer
70
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 ...
0
votes
0
answers
140
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 ...
2
votes
1
answer
65
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 ...
0
votes
1
answer
76
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
\...
1
vote
2
answers
327
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 ...
6
votes
2
answers
117
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 ...
1
vote
2
answers
160
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 ...
0
votes
1
answer
65
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 ...
2
votes
0
answers
37
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 ...
0
votes
0
answers
64
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... ...
1
vote
2
answers
99
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 &...
0
votes
1
answer
327
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%
\...
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. ...
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 ...
1
vote
2
answers
221
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 *....
1
vote
2
answers
875
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 ...