\NeedsTeXFormat{LaTeX2e}[1995/12/01]
%
% a jiffy to ensure that footnotes don't migrate to the table of
% contents, list of tables/figures, headlines, etc.
%
% Author: Robin Fairbairns
% Last revised Dec 13 1996

\let\SF@@footnote\footnote
\def\footnote{\ifx\protect\@typeset@protect
    \expandafter\SF@@footnote
  \else
    \expandafter\SF@gobble@opt
  \fi
}

\expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%]
  \SF@gobble@twobracket
  \@gobble
}
\edef\SF@gobble@opt{\noexpand\protect
  \expandafter\noexpand\csname SF@gobble@opt \endcsname}

\def\SF@gobble@twobracket[#1]#2{}
