summaryrefslogtreecommitdiff
path: root/info/examples/ltt/multibib.sty
blob: 897764d2ba76d381313febbd13e467787626c2a3 (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
%  multibib.sty
%  Zaehlt Eintraege ueber mehrere Bib-Umg. hinweg

\newcounter{bibcntr}
\setcounter{bibcntr}{0}

\newcommand{\myusecounter}[1]
 {\@nmbrlisttrue\def\@listctr{#1}}%

\renewenvironment{thebibliography}[2]             %<
                                 [\value{bibcntr}]%<
 {\chapter*{\bibname
    \@mkboth{\MakeUppercase\bibname}%
            {\MakeUppercase\bibname}}%
  \list{\@biblabel{\arabic{bibcntr}}}%            %<
    {\settowidth\labelwidth{\@biblabel{#2}}%      %<
     \leftmargin\labelwidth
     \advance\leftmargin\labelsep
     \@openbib@code
     \myusecounter{bibcntr}%                      %<
     \setcounter{bibcntr}{#1}%                    %<
     \renewcommand\thebibcntr{\arabic{bibcntr}}}% %<
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}
 {\def\@noitemerr
  {\@latex@warning{%
    Empty `thebibliography' environment}}%
  \endlist
 }