summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/margbib/margbib.sty
blob: 696929a34948a41f33e1cfacc6f0192cebf45843 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
%%
%% This is file `margbib.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% margbib.dtx 
%% 
%% This file is part of the MARGBIB package, a package for displaying
%% bibliography tags in the margins. Copyright (C) 1997 Karsten Tinnefeld.
%% 
%% This file is NOT part of the LaTeX2e system, but intended for use with
%% it.
%% 
%% This file is free software; you can redistribute it and/or modify it
%% under the terms of the GNU Library General Public License as published
%% by the Free Software Foundation; either version 2 of the License, or
%% (at your option) any later version.
%% 
%% This document is distributed in the hope that it will be useful, but
%% WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%% General Public License for more details.
%% 
%% You should have received a copy of the GNU General Public License
%% somehow; if not, write to the Free Software Foundation, Inc., 675 Mass
%% Ave, Cambridge, MA 02139, USA.
%% 
%% Error Reports in case of UNCHANGED versions to
%% 
%%              Karsten Tinnefeld
%%              Leostrasse 11
%%              D-44225 Dortmund
%%              Germany
%%       Email: tinnefeld@irb.cs.uni-dortmund.de
%% 
%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{margbib}
  [1997/11/11 1.0c Bib-Items into the margins]
\IfFileExists{marn.sty}{%
  \RequirePackage{marn}
  }{%
  \PackageWarning{margbib}{%
    marn package unavailable -- using \string\marginpar}%
  \let\marn\marginpar}
\def\bibitem{\@ifnextchar[\@lbibitem\@bibitem}
\def\@lbibitem[#1]#2{\item[]\if@filesw
  {\makebox{}\marn{\@biblabel{#1}}%
    \let\protect\noexpand
    \immediate
    \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces}
\def\@bibitem#1{\item[]\if@filesw\immediate\write\@auxout
  {\string\bibcite{#1}{\the\value{\@listctr}}}\fi\ignorespaces}
\let\m@rgbib=\thebibliography
\let\endm@rgbib=\endthebibliography
\renewenvironment{thebibliography}[1]{%
  \begin{m@rgbib}{#1}
    \parshape=0\relax
    }{%
  \end{m@rgbib}
  }
\endinput
%%
%% End of file `margbib.sty'.