%%
%% This is file `appendix.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% appendix.dtx  (with options: `package')
%% =============================================
%% IMPORTANT NOTICE:
%% This is a generated file.
%% 
%% It is subject to the same copyright conditions (see below)
%% as in the original file: appendix.dtx.
%% It may not be distributed without appendix.dtx.
%% 
%% Full documentation can be obtained by LaTeXing that original file.
%% Only a few abbreviated comments remain here to describe the usage.
%% =============================================
%% Copyright 1993-2005 Patrick W Daly
%% Max-Planck-Institut f\"ur Aeronomie
%% Max-Planck-Str. 2
%% D-37191 Katlenburg-Lindau
%% Germany
%% E-mail: daly@linmpi.mpg.de
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{appendix}
           [2005/10/30 2.2 (PWD)]
 % Adding this package redefines \appendix so that main counters for
 % figures, tables, equations are subnumbered under the appendix.
 % A \noappendix command is included so that things like bibliographies
 % may be called after the appendix with \section*. It resets the sectioning
 % commands. There should be no \section commands after this though.
 %
 % LaTeX2e options:
 %   mylang (default) -> keeps current \appendixname
 %   english, american  -> sets \appendixname to  `Appendix'
 %   german, austrian, french, esperanto -> translates \appendixname
 %   blank    -> suppresses the word `Appendix' with \appendix
 % Options processed in order given, default is mylang (no change)
 %-----------------------------------------------------------
\@ifundefined{iffigcaps}{}
  {\PackageWarningNoLine{appendix}
     {***********************************\MessageBreak
      This package read in after `figcaps'\MessageBreak
      There could be problems with sublabelled\MessageBreak
      figure and table numbers.\MessageBreak
      ***********************************}}
\DeclareOption{english}{\def\appendixname{Appendix}}
\DeclareOption{american}{\def\appendixname{Appendix}}
\DeclareOption{german}{\def\appendixname{Anhang}}
\DeclareOption{austrian}{\def\appendixname{Anhang}}
\DeclareOption{french}{\def\appendixname{Annexe}}
\DeclareOption{esperanto}{\def\appendixname{Apendico}}
\DeclareOption{blank}{\def\appendixname{}}
\DeclareOption{mylang}{\providecommand{\appendixname}{Appendix}}
\ExecuteOptions{mylang}
\ProcessOptions*
\let\orisection=\section
\let\theolds=\thesection
\let\theoldss=\thesubsection
\def\appendix{\par
  \if\@empty\appendixname \else  \section*{\appendixname} \fi
  \setcounter{section}{0}
  \setcounter{subsection}{0}
  \def\thesection{\Alph{section}}
  \def\thesubsection{\thesection\arabic{subsection}}
  \setcounter{secnumdepth}{4}
  \@addtoreset{equation}{section}
  \setcounter{equation}{0}
  \def\theequation{\thesection\arabic{equation}}
  \@addtoreset{figure}{section}
  \setcounter{figure}{0}
  \def\thefigure{\thesection\arabic{figure}}
  \@addtoreset{table}{section}
  \def\thetable{\thesection\arabic{table}}
  \setcounter{table}{0}
\def\@Alph##1{%
  \ifcase##1A\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or
   K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or X\or
    Y\or Z\else\@ctrerr\fi}
}
\def\noappendix{\setcounter{secnumdepth}{0}
  \global\let\section=\orisection
  \global\let\thesection=\theolds
  \global\let\thesubsection=\theoldss
}
%% 
%% <<<<< End of generated file <<<<<<
%%
%% End of file `appendix.sty'.
