From 6e963aa4445a7e0e8549406ccd3932e364cb8d92 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 16 May 2013 22:55:14 +0000 Subject: multibibliography (16may13) git-svn-id: svn://tug.org/texlive/trunk@30511 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/multibibliography/multibibliography.sty | 166 +++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/multibibliography/multibibliography.sty (limited to 'Master/texmf-dist/tex/latex/multibibliography') diff --git a/Master/texmf-dist/tex/latex/multibibliography/multibibliography.sty b/Master/texmf-dist/tex/latex/multibibliography/multibibliography.sty new file mode 100644 index 00000000000..210d2c9de5b --- /dev/null +++ b/Master/texmf-dist/tex/latex/multibibliography/multibibliography.sty @@ -0,0 +1,166 @@ +%% +%% This is file `multibibliography.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% multibibliography.dtx (with options: `style') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from multibibliography.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file multibibliography.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% Copyright 2013, Michael Cohen +%% Yannis Haralambous +%% Boris Veytsman +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3 of this license or (at your option) any +%% later version. +%% The latest version of the license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2003/06/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Michael Cohen +%% +%% This work consists of the file multibibliography.dtx, the +%% derived file multibibliography.sty, and the files +%% chronological.bst and multibibliography.pl +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{multibibliography} +[2013/03/26 v1.02 Multibibliography support for LaTeX] +\providecommand\NAT@parse[1]{} +\providecommand*\@extra@binfo{} +\providecommand*\@extra@b@citeb{} +\providecommand*{\@BIBLABEL}{\@biblabel} +\AtBeginDocument{ + \ifx\hyper@@link\@undefined + \providecommand\@skiphyperreftrue{}% + \providecommand\@skiphyperreffalse{}% + \let\H@item\item + \providecommand\Hy@raisedlink[1]{#1}% + \let\hyper@anchorstart\@gobble + \providecommand\hyper@@link[4][]{#4}% + \providecommand{\hyper@anchorend}{}% + \providecommand{\@currentHref}{}% + \fi} +\newif\if@BR@tocstarted +\@BR@tocstartedfalse +\newif\if@backref@loaded +\AtBeginDocument{% + \@ifpackageloaded{backref}{\@backref@loadedtrue + \let\BR@starttoc@orig\BR@starttoc + \def\BR@starttoc{\if@BR@tocstarted\else + \BR@starttoc@orig\@BR@tocstartedtrue\fi} +}{\@backref@loadedfalse}} +\def\MBbibcite#1#2#3#4{% + \@newl@bel{b}{#1\@extra@binfo}{% + \hyper@@link[cite]{}{cite.#1\@extra@b@citeb}{#3}, + \hyper@@link[cite]{}{cite.#1\@extra@b@citeb-timeline}{#4}: + \hyper@@link[cite]{}{cite.#1\@extra@b@citeb-sequence}{#2}% + \if@filesw + \if@backref@loaded\phantomsection + \immediate\write\@mainaux{% + \string\backcite{#1}{{\thepage}{\@currentlabel}{\@currentHref}}}\fi\fi + }% +}% + \def\@lbibitem[#1]#2{% + \gdef\MB@sequence{}% + \gdef\MB@name{}% + \gdef\MB@name{}% + \def\MBlabel##1##2##3{##2, + \hyper@@link[cite]{}{cite.#2\@extra@b@citeb-timeline}{##3}: + \hyper@@link[cite]{}{cite.#2\@extra@b@citeb-sequence}{##1}% + \gdef\MB@sequence{##1}% + \gdef\MB@name{##2}% + \gdef\MB@date{##3}% + }% + \@skiphyperreftrue + \H@item[% + \ifx\Hy@raisedlink\@empty + \hyper@anchorstart{cite.#2\@extra@b@citeb}% + \@BIBLABEL{#1}% + \hyper@anchorend + \else + \Hy@raisedlink{% + \hyper@anchorstart{cite.#2\@extra@b@citeb}\hyper@anchorend + }% + \@BIBLABEL{#1}% + \fi + \hfill + ]% + \@skiphyperreffalse + \if@filesw + \begingroup + \let\protect\noexpand + \immediate\write\@auxout{% + \string\MBbibcite{#2}{\MB@sequence}{\MB@name}{\MB@date}% + }% + \endgroup + \fi + \ignorespaces + } +\def\bibliographysequence#1{% + \def\@lbibitem[##1]##2{% + \def\MBlabel####1####2####3{####1: + \hyper@@link[cite]{}{cite.##2\@extra@b@citeb}{####2}, + \hyper@@link[cite]{}{cite.##2\@extra@b@citeb-timeline}{####3}}% + \@skiphyperreftrue + \H@item[% + \ifx\Hy@raisedlink\@empty + \hyper@anchorstart{cite.##2\@extra@b@citeb-sequence}% + \@BIBLABEL{##1}% + \hyper@anchorend + \else + \Hy@raisedlink{% + \hyper@anchorstart{cite.##2\@extra@b@citeb-sequence}\hyper@anchorend + }% + \@BIBLABEL{##1}% + \fi + \hfill + ]% + \@skiphyperreffalse + \ignorespaces + } + \@input@{\jobname-sequence.bbl}} +\def\bibliographytimeline#1{% + \def\@lbibitem[##1]##2{% + \def\MBlabel####1####2####3{% + \hyper@@link[cite]{}{cite.##2\@extra@b@citeb}{####2}, + ####3: + \hyper@@link[cite]{}{cite.##2\@extra@b@citeb-sequence}{####1}}% + \@skiphyperreftrue + \H@item[% + \ifx\Hy@raisedlink\@empty + \hyper@anchorstart{cite.##2\@extra@b@citeb-timeline}% + \@BIBLABEL{##1}% + \hyper@anchorend + \else + \Hy@raisedlink{% + \hyper@anchorstart{cite.##2\@extra@b@citeb-timeline}\hyper@anchorend + }% + \@BIBLABEL{##1}% + \fi + \hfill + ]% + \@skiphyperreffalse + \ignorespaces + } + \@input@{\jobname-timeline.bbl}} +\endinput +%% +%% End of file `multibibliography.sty'. -- cgit v1.2.3