%% 
%% This is file `natbib.sty', generated 
%% on <1995/4/9> with the docstrip utility (2.2i).
%% 
%% The original source files were:
%% 
%% natbib.dtx  (with options: `package,all')
%% 
%% Only a few abbreviated comments remain here to describe the usage. 
%% 
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{natbib}
        [1994/09/26 5.3 (PWD)]
 %-------------------------------------------------------------------
 % NOTICE:
 % This file may be used for non-profit purposes.
 % It may not be distributed in exchange for money,
 %   other than distribution costs.
 %
 % The author provides it `as is' and does not guarantee it in any way.
 %
%% Copyright (C) 1994 Patrick W. Daly
 % Max-Planck-Institut f\"ur Aeronomie
 % Postfach 20
 % D-37189 Katlenburg-Lindau
 % Germany
 %
 % E-mail:
 % SPAN--     nsp::linmpi::daly    (note nsp also known as ecd1)
 % Internet-- daly@linax1.dnet.gwdg.de
 %-----------------------------------------------------------
 % Intended mainly for author-year style citations, but will work with
 % numericals as well.
 %
 % If author-year style selected, then \bibitem must have one of the
 %   following forms:
 %   \bibitem[Jones et al.(1990)]{key}...
 %   \bibitem[Jones et al.(1990)Jones, Baker, and Williams]{key}...
 %   \bibitem[Jones et al., 1990]{key}...
 %   \bibitem[\protect\citeauthoryear{Jones, Baker, and Williams}{Jones
 %       et al.}{1990}]{key}...
 %   \bibitem[\protect\citeauthoryear{Jones et al.}{1990}]{key}...
 %   \bibitem[\protect\astroncite{Jones et al.}{1990}]{key}...
 %   \bibitem[\protect\citename{Jones et al., }1990]{key}...
 %   \harvarditem[Jones et al.]{Jones, Baker, and Williams}{1990}{key}...
 %
 % This is either to be made up manually, or to be generated by an
 % appropriate .bst file with BibTeX.
 %
 % Then, \cite{key}  ==>>  Jones et al. (1990)
 %       \cite[]{key} ==>> (Jones et al., 1990)
 % Multiple citations as normal:
 %       \cite[]{key1,key2} ==>> (Jones et al., 1990; Smith, 1989)
 %                           or  (Jones et al., 1990, 1991)
 % Full author lists may be forced with \cite*, e.g.
 %       \cite*[]{key}      ==>> (Jones, Baker, and Williams, 1990)
 % Optional notes as:
 %   \cite[chap. 2]{key}    ==>> (Jones et al., 1990, chap. 2)
 %   \cite[e.g.,][]{key}    ==>> (e.g., Jones et al., 1990)
 %   \cite[see][pg. 34]{key}==>> (see Jones et al., 1990, pg. 34)
 %  (Note: in standard LaTeX, only one note is allowed, after the ref.
 %   Here, one note is like the standard, two make pre- and post-notes.)
 %
 % Additional citation possibilities (author-year only)
 %   \citeauthor{key}     ==>> Jones et al.
 %   \citeyear{key}       ==>> 1990
 %   \citefullauthor{key} ==>> Jones, Baker, and Williams
 % (Multiple keys NOT allowed!)
 % Note: full author lists depends on whether the bib style supports them;
 %       if not, the abbreviated list is printed even when full requested.
 %
 % Defining the citation style of a given bib style:
 % Use \bibpunct with 6 arguments:
 %    1. opening bracket for citation
 %    2. closing bracket
 %    3. citation separator (for multiple citations in one \cite)
 %    4. the letter n for numerical styles, else anything for author-year
 %    5. punctuation between authors and date
 %    6. punctuation between years when common authors missing
 % Example (and default) \bibpunct{(}{)}{;}{a}{,}{,}
 %
 % To make this automatic for a given bib style, named newbib, say, add
 % to this style file
 %   \bibstyle@newbib{\bibpunct... + any other redefinitions (see examples)}
 % Then the \bibliographystyle{newbib} will cause \bibstyle@newbib to
 % be called on THE NEXT LATEX RUN (via the aux file).
 %
 % LaTeX2e Options: (for selecting punctuation)
 %   round  -  round parentheses are used (default)
 %   square -  square brackets are used   [option]
 %   curly  -  curly braces are used      {option}
 %   angle  -  angle brackets are used    <option>
 %   colon  -  multiple citations separated by colon (default)
 %   comma  -  separated by comma
 %   authoryear - selects author-year citations (default)
 %   numbers-  selects numerical citations
 %   nobibstyle - deactivates punctuation selection via \bibliographystyle
 % Note: normally the punctuation style defined by \bibstyle@xxx and invoked
 %       with \bibliographystyle{xxx} dominates; with option nobibstyle
 %       this is no longer the case.
 % LaTeX2e options are called as, e.g.
 %        \usepackage[square,comma]{natbib}
 %-----------------------------------------------------------
 % Define citation punctuation for some author-year styles
 % One may add and delete at this point
 % Or put additions into local configuration file natbib.cfg
\def\bibstyle@aa{\bibpunct{(}{)}{;}{a}{}{,}}
\def\bibstyle@pass{\bibpunct{(}{)}{;}{a}{,}{,}}
\def\bibstyle@anngeo{\bibpunct{(}{)}{;}{a}{,}{,}}
\def\bibstyle@agsm{\bibpunct{(}{)}{,}{a}{}{,}\gdef\harvardand{\&}}
\def\bibstyle@kluwer{\bibpunct{(}{)}{,}{a}{}{,}\gdef\harvardand{\&}}
\def\bibstyle@dcu{\bibpunct{(}{)}{;}{a}{;}{,}\gdef\harvardand{and}}
\def\bibstyle@agu{\bibpunct{[}{]}{;}{a}{,}{,}}
\def\bibstyle@nlinproc{\bibpunct{(}{)}{;}{a}{,}{,}}
 % Define citation punctuation for some numerical styles
 % One may add and delete at this point
\def\bibstyle@cospar{\bibpunct{/}{/}{,}{n}{}{}%
     \gdef\@biblabel##1{##1.}}
\def\bibstyle@esa{\bibpunct{(}{)}{,}{n}{}{}%
     \gdef\@biblabel##1{##1.\hspace{1em}}%
     \gdef\@cite##1##2##3{\@citebegin Ref.~##1\if@tempswa,
          ##3\fi\@citeend}}
\def\bibstyle@nature{\bibpunct{}{}{,}{n}{}{}%
     \gdef\@biblabel##1{##1.}%
     \gdef\@cite##1##2##3{\unskip\mbox{$^{##1}$}}}
 % The standard LaTeX styles
\def\bibstyle@plain{\bibpunct{[}{]}{,}{n}{}{}}
\let\bibstyle@alpha=\bibstyle@plain
\let\bibstyle@abbrv=\bibstyle@plain
\let\bibstyle@unsrt=\bibstyle@plain
\InputIfFileExists{natbib.cfg}
       {\typeout{Local config file natbib.cfg used}}{}
\DeclareOption{round}{\def\@citebegin{(} \def\@citeend{)}}
\DeclareOption{square}{\def\@citebegin{[} \def\@citeend{]}}
\DeclareOption{angle}{\def\@citebegin{$<$} \def\@citeend{$>$}}
\DeclareOption{curly}{\def\@citebegin{\{} \def\@citeend{\}}}
\DeclareOption{comma}{\def\@citesep{,}}
\DeclareOption{colon}{\def\@citesep{;}}
\DeclareOption{numbers}{\let\@bibsetup=\@bibsetnum
   \let\@citex=\@citexnum
   \let\@biblabel=\@biblabelnum
   \let\@cite=\@citenum
   \ExecuteOptions{square,comma}}
\DeclareOption{super}{\ExecuteOptions{numbers}%
      \def\@cite##1##2##3{\unskip\mbox{$^{##1}$%
          \if@tempswa(##3)\fi}}}
\DeclareOption{authoryear}{}
\DeclareOption{nobibstyle}{\let\bibstyle=\@gobble}
\def\@cite#1#2#3{\if@tempswa\@citebegin\if#2\@empty\else#2 \fi
        #1\if#3\@empty\else, #3\fi\@citeend\else#1\fi}
\def\@citenum#1#2#3{\@citebegin\if@tempswa\if#2\@empty\else#2 \fi\fi
   #1\if#3\@empty\else, #3\fi\@citeend}
\def\@citexnum[#1][#2]#3{\if@filesw\immediate\write
      \@auxout{\string\citation{#3}}\fi
  \let\@citea\@empty
  \@cite{\@for\@citeb:=#3\do
    {\@citea\def\@citea{\@citesep\penalty\@m\ }%
     \def\@tempa##1##2\@nil{\edef\@citeb{\if##1\space##2\else##1##2\fi}}%
     \expandafter\@tempa\@citeb\@nil
     \@ifundefined{b@\@citeb}{%
       {\reset@font\bfseries ?}\G@refundefinedtrue\@latex@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
     \hbox{\csname b@\@citeb\endcsname}}}{#1}{#2}}
\def\@citex[#1][#2]#3{\let\@citea\@empty
  \@cite{\let\@citenm\@empty
    \@for\@citeb:=#3\do
    {\edef\@citeb{\expandafter\@iden\@citeb}%
     \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
     \@ifundefined{b@\@citeb}{\@citea%
       {\reset@font\bfseries ?}\G@refundefinedtrue\@latex@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
     {\let\@citemm=\@citenm
     \@cite@parse{\@citeb}%
     \if@tempswa
       \ifx\@citemm\@citenm\@yrsep\else\@citea{\@citenm}\@auyrsep\fi
       \ \@citedt \def\@citea{\@citesep\ }%
     \else
       \ifx\@citemm\@citenm, \@citedt\else\@citea{\@citenm}
           \@citebegin\@citedt\fi
       \def\@citea{\@citeend\@citesep\ }%
     \fi}}\if@tempswa\else\@citeend\fi}{#1}{#2}}
\def\@biblabel#1{\hfill}
\def\@biblabelnum#1{[#1]}
\def\@bibsetnum#1{\settowidth\labelwidth{\@biblabel{#1}}%
   \leftmargin\labelwidth \advance\leftmargin\labelsep
   \if@openbib
     \advance\leftmargin\bibindent
     \itemindent -\bibindent
     \listparindent \itemindent
     \parsep \z@
   \fi
}
\def\@bibsetup#1{\leftmargin=1em\itemindent=-\leftmargin}
\ExecuteOptions{authoryear,round,colon}
\ProcessOptions
\def\@auyrsep{,} \def\@yrsep{,}
\def\bibstyle#1{\@ifundefined{bibstyle@#1}{\relax}
     {\csname bibstyle@#1\endcsname}}
\AtBeginDocument{\global\let\bibstyle=\@gobble}
\def\bibpunct#1#2#3#4#5#6{\gdef\@citebegin{#1}\gdef\@citeend{#2}\gdef
   \@citesep{#3}\ifx #4n\global\let\@bibsetup=\@bibsetnum
   \global\let\@citex=\@citexnum
   \global\let\@biblabel=\@biblabelnum
   \global\let\@cite=\@citenum\fi
   \gdef\@auyrsep{#5}\gdef\@yrsep{#6}}
\newif\ifNAT@full\NAT@fullfalse
\def\cite{\@ifstar{\NAT@fulltrue\@citee}{\NAT@fullfalse\@citee}}
\def\@citee{\@ifnextchar [{\@tempswatrue\@citex@}{\@tempswafalse
    \@citex@[]}}
\def\@citex@[#1]{\@ifnextchar [{\@citex[#1]}{\@citex[][#1]}}
\newcommand{\citeauthor}[1]{\if@filesw\immediate\write
     \@auxout{\string\citation{#1}}\fi
\ifx\@citex\@citexnum
       {\reset@font\bfseries(author?)}\PackageWarning{natbib}
       {Cannot use \protect\citeauthor
         \MessageBreak
        with numerical citations}\else
     \@ifundefined{b@#1}{%
       {\reset@font\bfseries ?}\G@refundefinedtrue\@latex@warning
       {Citation `#1' on page \thepage \space undefined}}%
       {\@cite@parse{#1}{\@citenm}}\fi}
\newcommand{\citeyear}[1]{\if@filesw\immediate\write
   \@auxout{\string\citation{#1}}\fi
\ifx\@citex\@citexnum
       {\reset@font\bfseries(year?)}\PackageWarning{natbib}
       {Cannot use \protect\citeyear
         \MessageBreak
        with numerical citations}\else
     \@ifundefined{b@#1}{%
       {\reset@font\bfseries ?}\G@refundefinedtrue\@latex@warning
       {Citation `#1' on page \thepage \space undefined}}%
       {\@cite@parse{#1}\@citedt}\fi}
\newcommand{\citefullauthor}[1]{\if@filesw\immediate\write
     \@auxout{\string\citation{#1}}\fi
\ifx\@citex\@citexnum
       {\reset@font\bfseries(author?)}\PackageWarning{natbib}
       {Cannot use \protect\citeauthor
         \MessageBreak
        with numerical citations}\else
     \@ifundefined{b@#1}{%
       {\reset@font\bfseries ?}\G@refundefinedtrue\@latex@warning
       {Citation `#1' on page \thepage \space undefined}}%
       {\@cite@parse{#1}{\@citefull}}\fi}
\def\@cite@parse#1{{%
     \let\protect=\@unexpandable@protect
     \xdef\@tempa{\csname b@#1\endcsname\relax}}%
     \expandafter\@citez\@tempa()()\@nil
     \ifNAT@full\let\@citenm\@citefull\fi}
\def\@citez#1(#2)#3()#4\@nil{\gdef\@citenm{#1}\gdef\@citedt{#2}%
  \ifx#3\relax\gdef\@citefull{#1}\else\gdef\@citefull{#3}\fi
  \if!#2!\expandafter\@citeapalk#1\@nil\fi}
\def\@citeapalk#1, #2\@nil{\gdef\@citenm{#1}\gdef\@citedt{#2}%
   \gdef\@citefull{#1}}
\newcommand{\citeauthoryear}[3]{\ifx#3\relax #1(#2)#1\else #2(#3)#1\fi}
\newcommand{\citestarts}{\@citebegin}
\newcommand{\citeends}{\@citeend}
\newcommand{\betweenauthors}{and}
\def\astroncite#1#2{#1(#2)}
\def\citename#1{#1}
\def\harvarditem{\@ifnextchar[{\@harvarditem}{\@harvarditem[\@empty]}}
\def\@harvarditem[#1]#2#3#4{\if!#1!\bibitem[#2(#3)]{#4}\else
  \bibitem[#1(#3)#2]{#4}\fi }
\newcommand{\harvardleft}{\@citebegin}
\newcommand{\harvardright}{\@citeend}
\newcommand{\harvardyearleft}{\@citebegin}
\newcommand{\harvardyearright}{\@citeend}
\AtBeginDocument{\providecommand{\harvardand}{and}}
\newcommand{\harvardurl}[1]{\textbf{URL:} \textit{##1}}
\@ifundefined{chapter}{\def\bibsection{\section*{\refname
   \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}}}{\def
   \bibsection{\chapter*{\bibname
   \@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}}}
\renewenvironment{thebibliography}[1]
 {\bibfont\bibsection\parindent \z@\list
   {\@biblabel{\arabic{enumiv}}}{\@bibsetup{#1}%
    \usecounter{enumiv}\let\p@enumiv\@empty
    \renewcommand{\theenumiv}{\arabic{enumiv}}}%
    \if@openbib
      \renewcommand\newblock{\par}
    \else
      \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
    \fi
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}
  {\def\@noitemerr{%
  \@latex@warning
     {Empty `thebibliography' environment}}%
  \endlist\vskip-\lastskip}
\let\bibfont=\relax
%% <<<<< End of decommented file <<<<<< 
%% 
%% End of file natbib.sty. 
