2 %% This is file `bibentry.sty',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% bibentry.dtx (with options: `package')
8 %% =============================================
11 %% This program can be redistributed and/or modified under the terms
12 %% of the LaTeX Project Public License Distributed from CTAN
13 %% archives in directory macros/latex/base/lppl.txt; either
14 %% version 1 of the License, or any later version.
16 %% This is a generated file.
17 %% It may not be distributed without the original source file bibentry.dtx.
19 %% Full documentation can be obtained by LaTeXing that original file.
20 %% Only a few abbreviated comments remain here to describe the usage.
21 %% =============================================
22 %% Copyright 1997-1999 Patrick W Daly
23 %% Max-Planck-Institut f\"ur Aeronomie
25 %% D-37191 Katlenburg-Lindau
27 %% E-mail: daly@linmpi.mpg.de
28 \NeedsTeXFormat{LaTeX2e
}
29 \ProvidesPackage{bibentry
}
30 [1999/
02/
23 1.2 (PWD)
]
31 % Bibliography Entries in Text
33 % In place of \bibliography{database}, enter \nobibliography{database}
34 % No bibliography is written at this point, but afterwards,
35 % \bibentry{key} prints the bibliography entry for citation <key>
36 % (whereas \cite{key} prints the citation, not the bib entry)
38 % If \bibliography is also to be given, then issue the starred variant
39 % \nobibliography* (without argument).
40 %-----------------------------------------------------------
41 % See documentation in the source .dtx file for more details.
43 \newcommand\nobibliography{\@ifstar
{\BR@nobib
{}}{\BR@nobib
}}
44 \newcommand\BR@nobib
[1]{%
45 \ifx\relax#1\relax\global\BR@startrue
\else\global\BR@starfalse
\fi
47 \ifBR@star\@fileswfalse
\fi
48 \renewenvironment{thebibliography
}[1]{%
50 \renewcommand\item[1][]{%
51 \ifx\relax###
#1\relax\stepcounter\@listctr
\fi}%
52 \ifBR@star
\newcommand\BR@bibitem
[2][]{}\else
53 \let\BR@bibitem=
\bibitem\fi
54 \let\bibitem=
\BR@b@bibitem
}{}%
55 \let\@biblabel\@gobble
56 \bibliography{#1}\endgroup}
57 \newcommand\BR@b@bibitem
[2][]{\ifx\relax#1\relax\BR@bibitem
{#2}%
58 \else \BR@bibitem
[#1]{#2}\fi \BR@c@bibitem
{#2}}
59 \def\BR@c@bibitem
#1 #2 \par{{\let\protect\@unexpandable@protect
60 \expandafter \xdef\csname BR@r@
#1\@extra@b@citeb
\endcsname
61 {\BR@nodot
#2\relax.
\relax\relax}}}
62 \def\BR@nodot
#1.
\relax#2\relax{#1}
63 \newcommand\bibentry[1]{\nocite{#1}{\frenchspacing
64 \@nameuse
{BR@r@
#1\@extra@b@citeb
}}}
65 \providecommand\@extra@b@citeb
{}
66 \AtBeginDocument{\let\BR@thebib
\thebibliography
67 \def\thebibliography{\global\BR@starfalse
\BR@thebib
}}
68 \AtEndDocument{\ifBR@star
\PackageWarningNoLine{bibentry
}
69 {There was
\string\nobibliography* without
\string\bibliography.
71 You will not be able to run BibTeX
}\fi}
73 %% <<<<< End of generated file <<<<<<
75 %% End of file `bibentry.sty'.