X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/9369e223dca3894fb5845de9e38072773ab1ab22..9cb5c64cc696cd59cf723021386b254ab8de5b13:/footnote.dtx?ds=sidebyside diff --git a/footnote.dtx b/footnote.dtx index 7723453..c36ec46 100644 --- a/footnote.dtx +++ b/footnote.dtx @@ -1,53 +1,24 @@ -% \begin{meta-comment} -% -% $Id: footnote.dtx,v 1.2 2002/03/13 21:50:04 mdw Exp $ -% -% Save footnotes around boxing environments and things -% -% (c) 1996 Mark Wooding -% -%----- Revision history ----------------------------------------------------- -% -% $Log: footnote.dtx,v $ -% Revision 1.2 2002/03/13 21:50:04 mdw -% Make \fn@fntext be \long; suggested by `rockmover'. -% -% Revision 1.1 2002/02/03 20:49:03 mdw -% Checkin for new build system. -% -% Revision 1.13 1997/01/28 19:45:16 mdw -% Fixed stupid bug in AMS environment handling which stops the thing from -% working properly if you haven't included amsmath. Doh. -% -% Revision 1.12 1997/01/18 00:45:37 mdw -% Fix problems with duplicated footnotes in broken AMS environments which -% typeset things multiple times. This is a nasty kludge. -% -% Revision 1.11 1996/11/19 20:50:05 mdw -% Entered into RCS -% -% -% \end{meta-comment} -% % \begin{meta-comment} %% %% footnote package -- Save footnotes around boxing environments -%% Copyright (c) 1996 Mark Wooding +%% Copyright (c) 1996, 1997, 2002, 2020 Mark Wooding %<*package> %% -%% This program is free software; you can redistribute it and/or modify -%% it under the terms of the GNU General Public License as published by -%% the Free Software Foundation; either version 2 of the License, or -%% (at your option) any later version. +%% This file is part of the `mdwtools' LaTeX package collection. +%% +%% `mdwtools' is free software: you can redistribute it and/or modify it +%% under the terms of the GNU General Public License as published by the +%% Free Software Foundation; either version 2 of the License, or (at your +%% option) any later version. %% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. +%% `mdwtools' is distributed in the hope that it will be useful, but +%% WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +%% General Public License for more details. %% %% You should have received a copy of the GNU General Public License -%% along with this program; if not, write to the Free Software -%% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +%% along with `mdwtools'. If not, write to the Free Software Foundation, +%% Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. % %% % \end{meta-comment} @@ -55,10 +26,10 @@ % \begin{meta-comment} %<+package>\NeedsTeXFormat{LaTeX2e} %<+package>\ProvidesPackage{footnote} -%<+package> [1997/01/28 1.13 Save footnotes around boxes] +%<+package> [2020/09/06 1.14.0 Save footnotes around boxes] % \end{meta-comment} % -% \CheckSum{328} +% \CheckSum{329} %\iffalse %<*package> %\fi @@ -245,7 +216,7 @@ % 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} @@ -499,6 +470,7 @@ \def\fn@endfntext{% \@finalstrut\strutbox% \fn@postfntext% + \fn@endnote% \egroup% \begingroup% \let\@makefntext\@empty%