%%
%% This is file `footmisc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% footmisc.dtx  (with options: `package')
%% This is a generated file.
%% 
%% Copyright 1995 1996 1998 1999 Robin Fairbairns
%% 
%% This file may be distributed under the terms of the LaTeX Project
%% Public License, as described in lppl.txt in the base LaTeX
%% distribution.  Either version 1.0 or, at your option, any later
%% version.
%% This is footmisc.dtx, and it's -*-LaTeX-*- text
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{footmisc}%
        [1999/03/31 v3.3j1
     a miscellany of footnote facilities%
                   ]% $Id: footmisc.dtx,v 1.2 1999/03/31 12:29:44 rf Exp rf $
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\providecommand\protected@writeaux{%
  \protected@write\@auxout
}
\def\l@advance@macro{\@@dvance@macro\edef}
\def\@@dvance@macro#1#2#3{\expandafter\@tempcnta#2\relax
  \advance\@tempcnta#3\relax
  #1#2{\the\@tempcnta}%
}
\let\@advance@macro\l@advance@macro
\newdimen\footnotemargin
\footnotemargin1.8em\relax
\DeclareOption{symbol}{\renewcommand\thefootnote{\fnsymbol{footnote}}}
\DeclareOption{symbol*}{\renewcommand\thefootnote{%
    \ifnum\c@footnote<10
      \fnsymbol{footnote}%
    \else
      \arabic{footnote}%
      \PackageInfo{footmisc}{Footnote number \the\c@footnote\space
        out of range}%
      \protect\@fnsymbol@orange
    \fi
  }
  \global\let\@diagnose@fnsymbol@orange\relax
  \AtEndDocument{\@diagnose@fnsymbol@orange}
  \def\@fnsymbol@orange{\gdef\@diagnose@fnsymbol@orange{%
    \PackageWarningNoLine{footmisc}{Some footnote number(s)
      were out of range
      \MessageBreak
      see log for details}%
    }%
  }
}
\def\FN@unhbox@par#1{\unhbox#1\par}
\let\FN@tempboxa\@tempboxa
\newbox\FN@tempboxb
\newbox\FN@tempboxc
\newif\ifFN@para  \FN@parafalse
\DeclareOption{para}{%
  \newskip\footglue \footglue=1em plus.3em minus.3em
  \long\def\@makefntext#1{\leavevmode
    \@makefnmark\nobreak
    \hskip.5em\relax#1%
  }
  \FN@paratrue
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\footnotesize \newdimen\footnotebaselineskip
  \global
  \footnotebaselineskip=\normalbaselineskip}
\@tempdima=\footnotebaselineskip \multiply\@tempdima by 1024
\divide \@tempdima by \columnwidth \multiply\@tempdima by 64
\xdef\fudgefactor{\strip@pt\@tempdima }
\def\makefootnoteparagraph{\unvbox\footins \makehboxofhboxes
  \setbox\FN@tempboxa=\hbox{\unhbox\FN@tempboxa \removehboxes}
    \hsize\columnwidth
    \@parboxrestore
    \baselineskip=\footnotebaselineskip
    \noindent
  \rule{\z@}{\footnotesep}%
  \FN@unhbox@par{\FN@tempboxa}
}
\def\makehboxofhboxes{\setbox\FN@tempboxa=\hbox{}
  \loop\setbox\FN@tempboxb=\lastbox \ifhbox\FN@tempboxb
  \setbox\FN@tempboxa=\hbox{\box\FN@tempboxb\unhbox\FN@tempboxa}\repeat}
\def\removehboxes{\setbox\FN@tempboxa=\lastbox
  \ifhbox\FN@tempboxa{\removehboxes}\unhbox\FN@tempboxa \fi}
}
\newif\ifFN@perpage  \FN@perpagefalse
\DeclareOption{perpage}{%
\def \PP@footnote
  {%
  \if@minipage\else
     \if@filesw
        \edef \@tempa
           {%
           \noexpand\protected@writeaux\relax
              {%
              \string\newfoot@mark{\thepage}%
                 {\the\c@footnote}{\noexpand\thepage}%
              }%
           }%
        \@tempa
     \fi
     \edef \@tempa {ft@\thepage-\the\c@footnote}%
     \expandafter\ifx\csname\@tempa\endcsname \relax
     \else
       \begingroup
         \global\expandafter\c@footnote
           \csname\@tempa\endcsname\relax
         \xdef \@thefnmark {\thefootnote}%
         \expandafter\xdef\csname old\@tempa\endcsname
                       {\csname\@tempa\endcsname}%
         \global\expandafter\let
               \csname\@tempa\endcsname\relax
        \endgroup
     \fi
  \fi
  }
\def\ft@page{0}
\def\ft@prevpage{-1}
\def\ft@foot{0}
\def \newfoot@mark #1#2#3{%
  \edef\@tempb{\ft@foot}%
  \@advance@macro\@tempb1%
  \def\@tempa{#1}%
  \ifx\@tempa\ft@prevpage\else
    \edef\ft@prevpage{\@tempa}%
    \def\@tempb{1}%
  \fi
  \@ifdigit{#3}{%
    \expandafter\ifnum \ft@page > #3\relax
      \def\ft@page{0}%
    \else
      \expandafter\ifnum \ft@page < #3\relax
        \def\ft@page{#3}%
        \def\ft@foot{0}%
    \fi\fi}%
   {\def\ft@page{0}}%
  \@advance@macro\ft@foot1%
  \def\@tempa{#2}%
  \ifx \@tempa\ft@foot \else
    \ifx\@tempb\ft@foot \else
      \expandafter \xdef \csname ft@#1-#2\endcsname {\ft@foot}%
    \fi
  \fi
}
\@onlypreamble\newfoot@mark
\def\@ifdigit#1{\expandafter\@digithelp\string#1\@digithelp}%
\def\@digithelp#1#2\@digithelp{%
  \ifnum `#1<`0
    \expandafter\@secondoftwo
  \else
    \ifnum `#1>`9
      \@triple@expandafter\@secondoftwo
    \else
      \@triple@expandafter\@firstoftwo
    \fi
  \fi}
\providecommand\@triple@expandafter{\expandafter
  \expandafter\expandafter}
\def \enddoc@newfoot@mark #1#2#3{%
  \edef\@tempb{\ft@foot}%
  \@advance@macro\@tempb1%
  \def\@tempa{#1}%
  \ifx\@tempa\ft@prevpage\else
    \edef\ft@prevpage{\@tempa}%
    \def\@tempb{1}%
  \fi
  \@ifdigit{#3}{%
    \expandafter\ifnum \ft@page > #3\relax
      \def\ft@page{0}%
    \else
      \expandafter\ifnum \ft@page < #3\relax
        \def\ft@page{#3}%
        \def\ft@foot{0}%
    \fi\fi}%
   {\def\ft@page{0}}%
  \@advance@macro\ft@foot1%
  \def\@tempa{#2}%
  \ifx \@tempa\ft@foot \else
    \ifx\@tempb\ft@foot\else
      \expandafter \ifx \csname oldft@#1-#2\endcsname \ft@foot
        \global\expandafter\let
               \csname oldft@#1-#2\endcsname \relax
      \else
        \expandafter \ifx \csname ft@#1-#2\endcsname \ft@foot
          \global\expandafter\let
                 \csname ft@#1-#2\endcsname \relax
        \else
          \@tempswatrue
        \fi
      \fi
    \fi
  \fi
}
\AtEndDocument{%
  \def\ft@page{0}
  \def\ft@foot{0}
  \let\newfoot@mark\enddoc@newfoot@mark
  }
\FN@perpagetrue
\@addtoreset{footnote}{page}%
}
\newif\ifFN@bottom  \FN@bottomfalse
\DeclareOption{bottom}{%
  \FN@bottomtrue
}
\DeclareOption{marginal}{%
  \footnotemargin-0.8em\relax
}
\DeclareOption{flushmargin}{%
  \footnotemargin0pt\relax
}
\DeclareOption{norule}{%
  \renewcommand\footnoterule{}%
  \advance\skip\footins 4\p@\@plus2\p@\relax
}
\DeclareOption{splitrule}{%
  \gdef\split@prev{0}
  \let\pagefootnoterule\footnoterule
  \let\mpfootnoterule\footnoterule
  \def\splitfootnoterule{\kern-3\p@ \hrule \kern2.6\p@}
  \def\footnoterule{\relax
    \ifx \@listdepth\@mplistdepth
      \mpfootnoterule
    \else
      \ifnum\split@prev=\z@
        \pagefootnoterule
      \else
        \splitfootnoterule
      \fi
      \xdef\split@prev{\the\insertpenalties}%
    \fi
  }%
}
\newif\ifFN@stablefootnote  \FN@stablefootnotefalse
\DeclareOption{stable}{\FN@stablefootnotetrue}
\newif\ifFN@multiplefootnote  \FN@multiplefootnotefalse
\DeclareOption{multiple}{\FN@multiplefootnotetrue
  \providecommand\multfootsep{,}}
\ProcessOptions
\let  \if@tempswa  \ifFN@bottom
\ifFN@para    \@tempswatrue \fi
\if@tempswa
  \CheckCommand*\@makecol{\ifvoid \footins
      \setbox\@outputbox \box\@cclv
    \else
      \setbox\@outputbox \vbox{%
        \boxmaxdepth\@maxdepth
        \unvbox\@cclv
        \vskip \skip\footins
        \color@begingroup
          \normalcolor\footnoterule
          \unvbox\footins
        \color@endgroup
      }%
    \fi
    \xdef\@freelist{\@freelist\@midlist}%
    \global\let\@midlist\@empty
    \@combinefloats
    \ifvbox\@kludgeins
      \@makespecialcolbox
    \else
      \setbox\@outputbox \vbox to\@colht{%
        \@texttop \dimen@\dp\@outputbox
        \unvbox\@outputbox
        \vskip -\dimen@\@textbottom
      }%
    \fi
    \global\maxdepth\@maxdepth
  }
  \toks@{\ifvoid \footins
      \setbox\@outputbox \box\@cclv
    \else
  }
    \ifFN@bottom
    \toks@\expandafter{\the\toks@
      \setbox\@outputbox \vbox to\@colht\bgroup
        \boxmaxdepth\@maxdepth
        \unvbox\@cclv
        \vfill\relax
        \vskip\skip\footins
        \color@begingroup
          \normalcolor\footnoterule
    }
  \else
    \toks@\expandafter{\the\toks@
      \setbox\@outputbox \vbox\bgroup
      \boxmaxdepth\@maxdepth
      \unvbox\@cclv
      \vskip \skip\footins
      \color@begingroup
        \normalcolor\footnoterule
    }
  \fi
  \ifFN@para
    \toks@\expandafter{\the\toks@
          \global\setbox\FN@tempboxc\vbox{\makefootnoteparagraph}%
          \unvbox\FN@tempboxc
        \color@endgroup
      \egroup
    }
    \@ifl@t@r\fmtversion{1997/12/01}{%
      \CheckCommand\@footnotetext[1]{%
        \insert\footins{%
          \reset@font\footnotesize
          \interlinepenalty\interfootnotelinepenalty
          \splittopskip\footnotesep
          \splitmaxdepth \dp\strutbox
          \floatingpenalty\@MM
          \hsize\columnwidth
          \@parboxrestore
          \protected@edef\@currentlabel{%
            \csname p@footnote\endcsname\@thefnmark
          }%
          \color@begingroup
            \@makefntext{\rule\z@\footnotesep
            \ignorespaces#1\@finalstrut\strutbox
          }%
          \color@endgroup
        }%
      }%
    }{%
      \CheckCommand\@footnotetext[1]{%
        \insert\footins{%
          \reset@font\footnotesize
          \interlinepenalty\interfootnotelinepenalty
          \splittopskip\footnotesep
          \splitmaxdepth \dp\strutbox
          \floatingpenalty\@MM
          \hsize\columnwidth
          \@parboxrestore
          \protected@edef\@currentlabel
            {\csname p@footnote\endcsname\@thefnmark}%
          \color@begingroup
            \@makefntext{\rule\z@\footnotesep
            \ignorespaces#1\@finalstrut\strutbox
          }
          \color@endgroup
        }%
      }%
    }
    \renewcommand\@footnotetext[1]{%
      \insert\footins{%
        \reset@font\footnotesize
        \interlinepenalty\interfootnotelinepenalty
        \splittopskip\footnotesep
        \splitmaxdepth \dp\strutbox
        \floatingpenalty\@MM
        \hsize\columnwidth
        \@parboxrestore
        \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}%
        \color@begingroup
          \setbox\FN@tempboxa=\hbox{%
             \@makefntext{\ignorespaces#1\strut
            \penalty-10\relax
            \hskip\footglue
          }% end of \@makefntext parameter
        }% end of \hbox
        \dp\FN@tempboxa=0pt\ht\FN@tempboxa=\fudgefactor\wd\FN@tempboxa
        \box\FN@tempboxa
      }%
      \color@endgroup
    }
  \else
    \toks@\expandafter{\the\toks@
          \unvbox\footins
        \color@endgroup
      \egroup
    }
  \fi
  \toks@\expandafter{\the\toks@
    \fi
    \xdef\@freelist{\@freelist\@midlist}%
    \global\let\@midlist\@empty
    \@combinefloats
    \ifvbox\@kludgeins
      \@makespecialcolbox
    \else
      \setbox\@outputbox \vbox to\@colht{%
        \@texttop \dimen@\dp\@outputbox
        \unvbox\@outputbox
        \vskip -\dimen@\@textbottom
      }%
    \fi
    \global\maxdepth\@maxdepth
  }
  \edef\@makecol{\the\toks@}
\fi
\ifFN@perpage
  \CheckCommand*\footnote{\@ifnextchar [%]
    \@xfootnote
    {%
      \stepcounter\@mpfn \protected@xdef\@thefnmark{\thempfn}%
      \@footnotemark \@footnotetext
    }%
  }
  \renewcommand*\footnote{\@ifnextchar [%]
    \@xfootnote
    {%
      \stepcounter\@mpfn \protected@xdef\@thefnmark{\thempfn}%
      \PP@footnote\@footnotemark \@footnotetext
    }%
  }
  \CheckCommand*\footnotemark{%
    \@ifnextchar [%]
    \@xfootnotemark
    {%
      \stepcounter{footnote}%
      \protected@xdef\@thefnmark{\thefootnote}%
      \@footnotemark
    }%
  }
  \renewcommand*\footnotemark{%
    \@ifnextchar [%]
    \@xfootnotemark
    {%
      \stepcounter{footnote}%
      \protected@xdef\@thefnmark{\thefootnote}%
      \PP@footnote\@footnotemark
    }%
  }
\fi
\ifFN@para
\else
  \def\@makefntext#1{%
    \parindent1em
    \noindent
    \ifdim\footnotemargin>0pt
      \hb@xt@ \footnotemargin{\hss\@makefnmark}%
    \else
      \ifdim\footnotemargin=0pt
        \llap{\textsuperscript{\@thefnmark}}%
      \else
        \llap{\hb@xt@ -\footnotemargin{\textsuperscript{\@thefnmark}\hss}}%
      \fi
    \fi
    #1%
  }
\fi
\ifFN@multiplefootnote
  \let\MF@@footnote\footnote
  \renewcommand\footnote[2][]{\def\@tempa{#1}%
    \ifx\@tempa\@empty
      \MF@@footnote{#2}%
    \else
      \MF@@footnote[#1]{#2}%
    \fi
    \futurelet\@let@token\@next@footnote}
  %
  \let\MF@@footnotemark\footnotemark
  \renewcommand\footnotemark[1][]{\def\@tempa{#1}%
    \ifx\@tempa\@empty
      \MF@@footnotemark
    \else
      \MF@@footnotemark[2]%
    \fi
    \futurelet\@let@token\@next@footnote}
  %
  \def\@next@footnote{\ifx\@let@token\footnote
      \textsuperscript{\multfootsep}%
    \else
      \ifx\@let@token\footnotemark
        \textsuperscript{\multfootsep}%
      \fi
    \fi}
\fi
\ifFN@stablefootnote
\let\SF@@footnote\footnote
\def\footnote{\ifx\protect\@typeset@protect
    \expandafter\SF@@footnote
  \else
    \expandafter\SF@gobble@opt
  \fi
}
\edef\SF@gobble@opt{\noexpand\protect
  \expandafter\noexpand\csname SF@gobble@opt \endcsname}
\expandafter\def\csname SF@gobble@opt \endcsname{
  \@ifnextchar[%]
    \SF@gobble@twobracket
    \@gobble
}
\def\SF@gobble@twobracket[#1]#2{}
\let\SF@@footnotemark\footnotemark
\def\footnotemark{\ifx\protect\@typeset@protect
    \expandafter\SF@@footnotemark
  \else
    \expandafter\SF@gobble@optonly
  \fi
}
\edef\SF@gobble@optonly{\noexpand\protect
  \expandafter\noexpand\csname SF@gobble@optonly \endcsname}
\expandafter\def\csname SF@gobble@optonly \endcsname{
  \@ifnextchar[%]
    \SF@gobble@bracket
    {}%
}
\def\SF@gobble@bracket[#1]{}
\fi
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\endinput
%%
%% End of file `footmisc.sty'.
