% custombib.sty - thebibliography with customizable text and sectioning
%
% This is a small modification of the standard command made by L. Lamport.
%
% Pablo A. Straub, University of Maryland, straub@cs.umd.edu
%
% 11/08/91  Posted to comp.text.tex
% 11/09/91  Add \bibliogrphyitem for extra customization
% 11/10/91  Posted again to comp.text.tex with extra customization
%
% An example of use:  To use in report or book style, you should redefine
% \theblibliographysection.  If you want it to be like an unnumbered chapter
% with an entry in the table of contents, the following will do.
%
%    \renewcommand{\bibliographysection}{\addcontentsline
%    {toc}{chapter}{\bibliographytext}\chapter*}
%
% Another example:  To make the list appear as an enumeration (a number and a
% a period, instead of the number in square brackets), the following will do.
%
%    \renewcommand{\bibliographyitem}[1]{#1.\hfil}


\newcommand{\bibliographysection}{\section*}

\newcommand{\bibliographytext}{References}

\newcommand{\bibliographyitem}[1]{[#1]}

\def\thebibliography#1{\bibliographysection{\bibliographytext\@mkboth
 {\uppercase{\bibliographytext}}{\uppercase{\bibliographytext}}}\list
 {\bibliographyitem{\arabic{enumi}}}
 {\settowidth\labelwidth{\bibliographyitem{#1}}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}