| 1 |
%% |
| 2 |
%% This is file `bibentry.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% bibentry.dtx (with options: `package') |
| 8 |
%% ============================================= |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 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. |
| 15 |
%% |
| 16 |
%% This is a generated file. |
| 17 |
%% It may not be distributed without the original source file bibentry.dtx. |
| 18 |
%% |
| 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-2007 Patrick W Daly |
| 23 |
%% Max-Planck-Institut f\"ur Sonnensystemforschung |
| 24 |
%% Max-Planck-Str. 2 |
| 25 |
%% D-37191 Katlenburg-Lindau |
| 26 |
%% Germany |
| 27 |
%% E-mail: [email protected] |
| 28 |
\NeedsTeXFormat{LaTeX2e} |
| 29 |
\ProvidesPackage{bibentry} |
| 30 |
[2007/10/30 1.5 (PWD)] |
| 31 |
% Bibliography Entries in Text |
| 32 |
% |
| 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) |
| 37 |
% |
| 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. |
| 42 |
\newif\ifBR@star |
| 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 |
| 46 |
\begingroup |
| 47 |
\ifBR@star\@fileswfalse\fi |
| 48 |
\renewenvironment{thebibliography}[1]{% |
| 49 |
\usecounter{enumiv}% |
| 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 |
\ifx\relax#1\relax\global\BR@startrue\else\global\BR@starfalse\fi} |
| 58 |
\newcommand\BR@b@bibitem[2][]{\ifx\relax#1\relax\BR@bibitem{#2}% |
| 59 |
\else \BR@bibitem[#1]{#2}\fi \BR@c@bibitem{#2}} |
| 60 |
\def\BR@c@bibitem#1 #2 \par{{\let\protect\@unexpandable@protect |
| 61 |
\expandafter \gdef\csname BR@r@#1\@extra@b@citeb\endcsname |
| 62 |
{\BR@nodot#2\relax.\relax\relax}}} |
| 63 |
\def\BR@nodot#1.\relax#2\relax{#1} |
| 64 |
\newcommand\bibentry[1]{\nocite{#1}{\frenchspacing |
| 65 |
\hyper@natanchorstart{#1\@extra@b@citeb}% |
| 66 |
\@nameuse{BR@r@#1\@extra@b@citeb}\hyper@natanchorend}} |
| 67 |
\providecommand\@extra@b@citeb{} |
| 68 |
\providecommand\hyper@natanchorstart[1]{} |
| 69 |
\providecommand\hyper@natanchorend{} |
| 70 |
\AtBeginDocument{% |
| 71 |
\providecommand*{\urlprefix}{URL } |
| 72 |
\providecommand*{\url}[1]{\texttt{#1}} |
| 73 |
} |
| 74 |
\AtBeginDocument{\let\BR@bib\bibliography |
| 75 |
\def\bibliography{\global\BR@starfalse\BR@bib}} |
| 76 |
\AtEndDocument{\ifBR@star\PackageWarningNoLine{bibentry} |
| 77 |
{You have used \string\nobibliography* \MessageBreak |
| 78 |
without a following \string\bibliography.\MessageBreak |
| 79 |
You may not be able to run BibTeX}\fi} |
| 80 |
\AtBeginDocument{\@ifpackageloaded{url} |
| 81 |
{\providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}} |
| 82 |
{\providecommand{\doi}[1]{doi: #1}}} |
| 83 |
%% |
| 84 |
%% <<<<< End of generated file <<<<<< |
| 85 |
%% |
| 86 |
%% End of file `bibentry.sty'. |