In LaTeX the aux files are read in twice: At the beginning of the LaTex run, the aux files that were created during the previous LaTeX run. At the end of the LaTeX run, the aux files created during the current LaTeX run. Does the LaTeX2e kernel provide a routine for branching depending on whether reading in at the beginning or reading in at the end of the LaTeX run?
This would be useful if you have things done via the aux files at the begin of the LaTeX-run but don't need them to be done once more at the end of the LaTeX run, and vice versa, for example. I branch for this purpose by having tested whether \@newl@bel
is equal to \@testdef
. I wonder if there are documented macros for users to do this by now.