In a document whose content is split across several files, included with \input, the .aux file produced by pdflatex has lines of the form \@input{otherfile.aux} for each of the input files.
The code which looks for \@writefile commands expects everything to be a string, so the argument to \@input causes an error because it's a bgroup object.
We should cope with non-string elements following the @, and also parse the input .aux files because that's where the table of contents entries are.
In a document whose content is split across several files, included with
\input
, the .aux file produced by pdflatex has lines of the form\@input{otherfile.aux}
for each of the input files.The code which looks for
\@writefile
commands expects everything to be a string, so the argument to\@input
causes an error because it's abgroup
object.We should cope with non-string elements following the
@
, and also parse the input .aux files because that's where the table of contents entries are.