In thm-listof.sty, the command \thmtlo@newentry which defines l@<theorem> is called multiple times for every theorem. Once in \thmt@mklistcmd which is added to every theorem definition:
And indeed, removing either the first \thmtlo@newentry above or the \@for block seems to have no effect. I guess removing the \@for block is more efficient since it leads to fewer total definitions.
Note the % CHECK: comment is in the file, not added by me.
In
thm-listof.sty
, the command\thmtlo@newentry
which definesl@<theorem>
is called multiple times for every theorem. Once in\thmt@mklistcmd
which is added to every theorem definition:then
And again for every call of
\listoftheorems
:And indeed, removing either the first
\thmtlo@newentry
above or the\@for
block seems to have no effect. I guess removing the\@for
block is more efficient since it leads to fewer total definitions.Note the
% CHECK:
comment is in the file, not added by me.