summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/multibibliography/multibibliography.sty
blob: 210d2c9de5b6bff71d422a251a6619a52755ee2e (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
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 <mcohen@u-aizu.ac.jp>
%% Yannis Haralambous <yannis.haralambous@telecom-bretagne.eu>
%% Boris Veytsman <borisv@lk.net>
%% 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'.