% LaTeX style file for use with jas99.bst BiBTeX style file.
% For American Meteorological Association journals like J. Atmos. Sci.
%
% \documentstyle[jasbib]{article}
% \begin{document}
% \bibliographystyle{jas99}
%
% This file implements citations for the jas99 bibliography style.
% This file was hacked from newapa.sty.
% The ``newapa'' BibTeX bibliography style creates citations with labels:
%       \citeauthoryear{author-info}{abbrev. author-info}{year}
%
% These labels are processed by the following LaTeX commands:
%    \cite  and \citein
%
% Examples:
%     this command                  produces this
%    \cite{Jones90}              (Jones et al., 1990)
%    \cite[e.g., ]{Jones90}      (e.g., Jones et al., 1990)
%    \citein{Jones90}            Jones et al. (1990)
%    \fullcite{Jones90}          (Jones, Smith & Harris, 1990)

\let\@internalcite\cite

\def\cite{\def\@citeseppen{-1000}%
	\def\@cite##1##2{(\if@tempswa##2\fi##1)}
	\def\citeauthoryear##1##2##3{##2, ##3}\@internalcite}

\def\citein{\def\@citeseppen{-1000}%
	\def\@cite##1##2{\if@tempswa##2\fi##1}
	\def\citeauthoryear##1##2##3{##2 (##3)}\@internalcite}

\def\fullcite{\def\@citeseppen{-1000}%
	\def\@cite##1##2{(\if@tempswa##2\fi##1)}
	\def\citeauthoryear##1##2##3{##1, ##3}\@internalcite}

\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{; \penalty\@citeseppen\ }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}

% No labels in the bibliography.
\def\@biblabel#1{}

% Set length of hanging indentation for bibliography entries.
\newlength{\bibhang}
\setlength{\bibhang}{2em}

% \thebibliography environment depends on whether or not chapters can exist.
%\@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth
%  {REFERENCES}{REFERENCES}}\list
%  {\relax}{\setlength{\labelsep}{0em}
%	\setlength{\itemindent}{-\bibhang}
%	\setlength{\leftmargin}{\bibhang}}
%    \def\newblock{\hskip .11em plus .33em minus .07em}
%    \sloppy\clubpenalty4000\widowpenalty4000
%    \sfcode`\.=1000\relax}}%
%{\def\thebibliography#1{\chapter*{Bibliography\@mkboth
%  {BIBLIOGRAPHY}{BIBLIOGRAPHY}}\list
%  {\relax}{\setlength{\labelsep}{0em}
%	\setlength{\itemindent}{-\bibhang}
%	\setlength{\leftmargin}{\bibhang}}
%    \def\newblock{\hskip .11em plus .33em minus .07em}
%    \sloppy\clubpenalty4000\widowpenalty4000
%    \sfcode`\.=1000\relax}}


