chiark / gitweb /
footnote.dtx (\fn@endnote): Use `\def', not `\let'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Sep 2020 13:57:08 +0000 (14:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2020 16:36:43 +0000 (17:36 +0100)
If the `color' package is loaded /after/ us then it redefines
`\color@begingroup' and `\color@endgroup' to actually do things, but it
won't redefine `\fn@endnote' for obvious reasons.  As a result,
`\fn@startnote' will now open a colour group, but nothing will close it
and one ends up on a debugging odyssey.

footnote.dtx

index 64eb6893491629ac94b75fdd8eddadc04e65921a..235b179fc19111320b18427f8d12c0374908b816 100644 (file)
 % Footnotes are finished off by this macro.  This is the easy bit.
 %
 %    \begin{macrocode}
 % Footnotes are finished off by this macro.  This is the easy bit.
 %
 %    \begin{macrocode}
-\let\fn@endnote\color@endgroup
+\def\fn@endnote{\color@endgroup}
 %    \end{macrocode}
 %
 % \end{macro}
 %    \end{macrocode}
 %
 % \end{macro}