%%% fullname.sty
%%%
%%% Stuart M. Shieber
%%% Mon Mar 30 17:23:36 EST 1992

%%% Modifications to the citation macros intended to be used with the
%%% fullname.bst style.

%%% Some material taken from Peter Patel-Schneider's AAAI style for
%%% use in conjunction with AAAI-named bibliography style.
%%%
%%% Citation forms:
%%%
%%% Macro	Output format
%%% -----------	-----------------------------------------
%%% \cite:	(Dewey, 1988)
%%% 		(Dewey, 1988, page 15)
%%% 		(Dewey, 1988; Cheatham, 1987; Howe, 1903)
%%% \shortcite:	(1988)
%%%		(1988, page 15)
%%% \namecite:	Dewey (1988)
%%%		Dewey (1988, page 15)

% don't box citations, add space between multiple citations, separate with ;
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{; }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}
% Allow short (name-less) citations, when used in
% conjunction with a bibliography style that creates labels like
%	\citename{<names>, }<year>
\let\@internalcite\cite
\def\cite{\def\citename##1{##1, }(\@internalcite}
\def\shortcite{\def\citename##1{}(\@internalcite}
\def\namecite{\def\citename##1{##1 (}\@internalcite}
\def\@biblabel#1{\def\citename##1{##1}[#1]\hfill}

%%% More changes made by SMS (originals in latex.tex)
% Use parentheses instead of square brackets in the text.
\def\@cite#1#2{{#1\if@tempswa , #2\fi})}

% Don't put a label in the bibliography at all.  Just use the unlabeled format
% instead.
\def\thebibliography#1{\section*{References\@mkboth
 {References}{References}}\list
 {}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
 \setlength{\itemindent}{-\parindent}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

\def\@lbibitem[#1]#2{\item[]\if@filesw 
      { \def\protect##1{\string ##1\space}\immediate
        \write\@auxout{\string\bibcite{#2}{#1}}\fi\ignorespaces}}

\def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
       {\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces}

	
