I am executing the following command in the terminal, but that does not generate the *.aux
file:
pdflatex main.tex
Why is it not generating the main.aux
file?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am executing the following command in the terminal, but that does not generate the *.aux
file:
pdflatex main.tex
Why is it not generating the main.aux
file?
The writing of the .aux
files in LaTeX is controlled by switch \if@filesw
(w
short for writable). The command \nofiles
sets the switch to false to prevent the rewriting of the auxiliary files.
The main .aux
file is opened for writing in \begin{document}
. If the LaTeX job does not reach this point, for example, because of an error or on purpose,
the auxiliary files are also not written.
@filesw
is short for file
- switch
not files
- writable
:-)
– David Carlisle
Jul 19 '16 at 22:09
\nofiles
command is not there, writing will happen by default or not?
– vipin8169
Apr 15 '20 at 20:25
.aux
files are written by default unless turned off.
– Heiko Oberdiek
Apr 16 '20 at 21:18
\nofiles
or \@fileswfalse
, end of the TeX job before \begin{document}
is executed, option setting (-output-directory
in TeX Live) with a different output directory, ...
– Heiko Oberdiek
Apr 17 '20 at 23:09
\nofiles
was used or if the compilation finishes (on purpose or because of error) before\begin{document}
. – Heiko Oberdiek Jul 19 '16 at 20:55latex3
? – user31729 Jul 19 '16 at 20:56\nofile
was the issue. Thank you :) – J4cK Jul 19 '16 at 21:03