File: bibsection.sty

package info (click to toggle)
dvb 0.9.4.20020321-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,068 kB
  • ctags: 5,791
  • sloc: ansic: 32,844; cpp: 13,679; xml: 9,017; makefile: 567; sh: 330; asm: 92
file content (29 lines) | stat: -rw-r--r-- 827 bytes parent folder | download | duplicates (2)
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
\def\thebibliography#1{\chapter*{\bibname\@mkboth
  {\uppercase{\bibname}}{\uppercase{\bibname}}}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \def\thechapter{Bib}
  \def\thesection{\Alph{section}}
  \edef\biblab{#1}
  \addcontentsline{toc}{chapter}{\bibname}
  }

\def\bibtitle#1#2{\expandafter\def\csname bibtitle#1\endcsname{
    \bibsection{#2}} }

\def\bibsection#1{\section{#1}
 \begin{list}
    {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{\biblab}}%
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \usecounter{enumiv}%
    \let\p@enumiv\@empty
    \def\theenumiv{\arabic{enumiv}}}%
    \def\newblock{\hskip .11em plus.33em minus.07em}%
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=\@m}

\def\endbibsection{\end{list}}

\def\endthebibliography{\endbibsection}