blob: 9f03fa9bb7162d0ce222bbedeeff655fb6830315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
% 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}
|