Lines 1-6
Link Here
|
1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
2 |
% biblatex.4ht 2009-05-21-09:32 % |
2 |
% biblatex.4ht 2011-09-18-16:07 % |
3 |
% Copyright (C) 2007--2009 Eitan M. Gurari % |
3 |
% Copyright (C) 2007--2009 Eitan M. Gurari % |
|
|
4 |
% 2009--2011 TeX Users Group % |
4 |
% % |
5 |
% % |
5 |
% This work may be distributed and/or modified under the % |
6 |
% This work may be distributed and/or modified under the % |
6 |
% conditions of the LaTeX Project Public License, either % |
7 |
% conditions of the LaTeX Project Public License, either % |
Lines 14-37
Link Here
|
14 |
% This work has the LPPL maintenance status "maintained".% |
15 |
% This work has the LPPL maintenance status "maintained".% |
15 |
% % |
16 |
% % |
16 |
% This Current Maintainer of this work % |
17 |
% This Current Maintainer of this work % |
17 |
% is Eitan M. Gurari. % |
18 |
% is the TeX4ht Project <tex4ht@tug.org>. % |
18 |
% % |
19 |
% % |
19 |
% If you modify this program your changing its signature % |
20 |
% If you modify this program your changing its signature % |
20 |
% with a directive of the following form will be % |
21 |
% with a directive of the following form will be % |
21 |
% appreciated. % |
22 |
% appreciated. % |
22 |
% \message{signature} % |
23 |
% \message{signature} % |
23 |
% % |
24 |
% % |
24 |
% gurari@cse.ohio-state.edu % |
25 |
% tex4ht@tug.org % |
25 |
% http://www.cse.ohio-state.edu/~gurari % |
26 |
% http://www.tug.org/tex4ht % |
26 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
27 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
27 |
\immediate\write-1{version 2009-05-21-09:32} |
28 |
\immediate\write-1{version 2011-09-18-16:07} |
28 |
|
29 |
% |
|
|
30 |
% This work may be distributed and/or modified under the |
31 |
% conditions of the LaTeX Project Public License, either |
32 |
% version 1.3c of this license or (at your option) any |
33 |
% later version. The latest version of this license is in |
34 |
% http://www.latex-project.org/lppl.txt |
35 |
% and version 1.3c or later is part of all distributions |
36 |
% of LaTeX version 2005/12/01 or later. |
37 |
% |
38 |
% This work has the LPPL maintenance status "maintained". |
39 |
% |
40 |
% The Current Maintainer of this work |
41 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
42 |
% |
43 |
% If you modify this program, changing the |
44 |
% version identification would be appreciated. |
29 |
\ifx \blx@startbib\:UnDef |
45 |
\ifx \blx@startbib\:UnDef |
30 |
\pend:def\blx@shorthands{% |
46 |
\pend:def\blx@shorthands{% |
31 |
\pend:def\blx@bibinit{% |
47 |
\pend:def\blx@bibinit{% |
32 |
\HAssign\shorthands:cnt=0 |
48 |
\HAssign\shorthands:cnt=0 |
33 |
\NewConfigure{printfield-shorthand}{2}% |
49 |
\NewConfigure{printfield-shorthand}{2}% |
34 |
\Configure{printfield-shorthand} |
50 |
\Configure{printfield-shorthand}% |
35 |
{\gHAdvance\shorthands:cnt by 1\relax |
51 |
{\gHAdvance\shorthands:cnt by 1\relax |
36 |
\ifnum \shorthands:cnt=1 \a:printshorthands |
52 |
\ifnum \shorthands:cnt=1 \a:printshorthands |
37 |
\else \c:printshorthands \fi |
53 |
\else \c:printshorthands \fi |
Lines 50-59
Link Here
|
50 |
\@nameuse {blx@rerun}} |
66 |
\@nameuse {blx@rerun}} |
51 |
\pend:def\blx@bibliography{% |
67 |
\pend:def\blx@bibliography{% |
52 |
\pend:def\blx@bibinit{% |
68 |
\pend:def\blx@bibinit{% |
53 |
\ConfigureList{thebibliography} |
69 |
\ConfigureList{thebibliography}% |
54 |
{\a:thebibliography} |
70 |
{\a:thebibliography}% |
55 |
{\b:thebibliography} |
71 |
{\b:thebibliography}% |
56 |
{\c:thebibliography} |
72 |
{\c:thebibliography}% |
57 |
{\d:thebibliography}% |
73 |
{\d:thebibliography}% |
58 |
\csname onthebibliography:list\endcsname |
74 |
\csname onthebibliography:list\endcsname |
59 |
}% |
75 |
}% |
Lines 75-82
Link Here
|
75 |
\NewConfigure{printfield-#2}{2}% |
91 |
\NewConfigure{printfield-#2}{2}% |
76 |
\a:printfield{printfield-#2}% |
92 |
\a:printfield{printfield-#2}% |
77 |
\fi |
93 |
\fi |
78 |
\Configure{blx@unit} |
94 |
\Configure{blx@unit}% |
79 |
{\csname a:printfield-#2\endcsname} |
95 |
{\csname a:printfield-#2\endcsname}% |
80 |
{\csname b:printfield-#2\endcsname}% |
96 |
{\csname b:printfield-#2\endcsname}% |
81 |
\csname o:\string\blx@printfield:\endcsname[#1]{#2}% |
97 |
\csname o:\string\blx@printfield:\endcsname[#1]{#2}% |
82 |
} |
98 |
} |
Lines 92-99
Link Here
|
92 |
\NewConfigure{bibstring-#2}{2}% |
108 |
\NewConfigure{bibstring-#2}{2}% |
93 |
\a:printfield{bibstring-#2}% |
109 |
\a:printfield{bibstring-#2}% |
94 |
\fi |
110 |
\fi |
95 |
\Configure{blx@unit} |
111 |
\Configure{blx@unit}% |
96 |
{\csname a:bibstring-#2\endcsname} |
112 |
{\csname a:bibstring-#2\endcsname}% |
97 |
{\csname b:bibstring-#2\endcsname}% |
113 |
{\csname b:bibstring-#2\endcsname}% |
98 |
\csname o:\string\blx@bibstring:\endcsname[#1]{#2}% |
114 |
\csname o:\string\blx@bibstring:\endcsname[#1]{#2}% |
99 |
} |
115 |
} |
Lines 103-110
Link Here
|
103 |
\NewConfigure{bibcpstring-#2}{2}% |
119 |
\NewConfigure{bibcpstring-#2}{2}% |
104 |
\a:printfield{bibcpstring-#2}% |
120 |
\a:printfield{bibcpstring-#2}% |
105 |
\fi |
121 |
\fi |
106 |
\Configure{blx@unit} |
122 |
\Configure{blx@unit}% |
107 |
{\csname a:bibcpstring-#2\endcsname} |
123 |
{\csname a:bibcpstring-#2\endcsname}% |
108 |
{\csname b:bibcpstring-#2\endcsname}% |
124 |
{\csname b:bibcpstring-#2\endcsname}% |
109 |
\csname o:\string\blx@bibcpstring:\endcsname[#1]{#2}% |
125 |
\csname o:\string\blx@bibcpstring:\endcsname[#1]{#2}% |
110 |
} |
126 |
} |
Lines 114-121
Link Here
|
114 |
\NewConfigure{biblcstring-#2}{2}% |
130 |
\NewConfigure{biblcstring-#2}{2}% |
115 |
\a:printfield{biblcstring-#2}% |
131 |
\a:printfield{biblcstring-#2}% |
116 |
\fi |
132 |
\fi |
117 |
\Configure{blx@unit} |
133 |
\Configure{blx@unit}% |
118 |
{\csname a:biblcstring-#2\endcsname} |
134 |
{\csname a:biblcstring-#2\endcsname}% |
119 |
{\csname b:biblcstring-#2\endcsname}% |
135 |
{\csname b:biblcstring-#2\endcsname}% |
120 |
\csname o:\string\blx@biblcstring:\endcsname[#1]{#2}% |
136 |
\csname o:\string\blx@biblcstring:\endcsname[#1]{#2}% |
121 |
} |
137 |
} |
Lines 125-137
Link Here
|
125 |
\NewConfigure{bibucstring-#2}{2}% |
141 |
\NewConfigure{bibucstring-#2}{2}% |
126 |
\a:printfield{bibucstring-#2}% |
142 |
\a:printfield{bibucstring-#2}% |
127 |
\fi |
143 |
\fi |
128 |
\Configure{blx@unit} |
144 |
\Configure{blx@unit}% |
129 |
{\csname a:bibucstring-#2\endcsname} |
145 |
{\csname a:bibucstring-#2\endcsname}% |
130 |
{\csname b:bibucstring-#2\endcsname}% |
146 |
{\csname b:bibucstring-#2\endcsname}% |
131 |
\csname o:\string\blx@bibucstring:\endcsname[#1]{#2}% |
147 |
\csname o:\string\blx@bibucstring:\endcsname[#1]{#2}% |
132 |
} |
148 |
} |
133 |
\expandafter\HLet\csname\string\blx@bibucstring\endcsname\:tempc |
149 |
\expandafter\HLet\csname\string\blx@bibucstring\endcsname\:tempc |
134 |
\NewConfigure{biblatex-style}[2]{ |
150 |
\NewConfigure{biblatex-style}[2]{% |
135 |
\def\:temp{#1}% |
151 |
\def\:temp{#1}% |
136 |
\ifx \:temp\blx@cbxfile |
152 |
\ifx \:temp\blx@cbxfile |
137 |
#2% |
153 |
#2% |
Lines 149-158
Link Here
|
149 |
\blx:item[#1]% |
165 |
\blx:item[#1]% |
150 |
\ifhmode \spacefactor\blx@sf@par\fi |
166 |
\ifhmode \spacefactor\blx@sf@par\fi |
151 |
} |
167 |
} |
|
|
168 |
\newskip\blx@unitmark |
169 |
\blx@unitmark=10pt plus 1pt minus 1pt |
170 |
\let\abx@aux@page\@gobbletwo |
171 |
\AtEndDocument{% |
172 |
\def\abx@aux@page#1#2{\blx@addpagesum{#1}{#2}}% |
173 |
\def\abx@aux@fnpage#1#2{\blx@addpagesum{#1}{#2}}} |
174 |
% |
175 |
\let\blx@resetpuncthook\@empty |
176 |
\let\blx@csq@ifkernmark\@empty |
152 |
\def\blx@begunit{% |
177 |
\def\blx@begunit{% |
153 |
\toggletrue{blx@tempa}% |
178 |
\toggletrue{blx@tempa}% |
154 |
\iftoggle{blx@insert} |
179 |
\iftoggle{blx@insert}% |
155 |
{\iftoggle{blx@unit} |
180 |
{\iftoggle{blx@unit}% |
156 |
{\begingroup |
181 |
{\begingroup |
157 |
\let\blx@begunit\@empty |
182 |
\let\blx@begunit\@empty |
158 |
\let\blx@endunit\@empty |
183 |
\let\blx@endunit\@empty |
Lines 161-185
Link Here
|
161 |
\global\togglefalse{blx@unit}% |
186 |
\global\togglefalse{blx@unit}% |
162 |
\togglefalse{blx@tempa}} |
187 |
\togglefalse{blx@tempa}} |
163 |
{\blx@postpunct}% |
188 |
{\blx@postpunct}% |
164 |
\iftoggle{blx@block} |
189 |
\iftoggle{blx@block}% |
165 |
{\begingroup |
190 |
{\begingroup |
166 |
\let\blx@begunit\@empty |
191 |
\let\blx@begunit\@empty |
167 |
\let\blx@endunit\@empty |
192 |
\let\blx@endunit\@empty |
168 |
\newblockpunct |
193 |
\newblockpunct |
169 |
\endgroup |
194 |
\endgroup |
170 |
\global\togglefalse{blx@block}% |
195 |
\global\togglefalse{blx@block}% |
171 |
\togglefalse{blx@tempa}} |
196 |
\togglefalse{blx@tempa}}% |
172 |
{}} |
197 |
{}}% |
173 |
{}% |
198 |
{}% |
174 |
\blx@postpunct |
199 |
\blx@postpunct |
175 |
\blx@resetpuncthook |
200 |
\blx@resetpuncthook |
176 |
\iftoggle{blx@tempa} |
201 |
\iftoggle{blx@tempa}% |
177 |
{} |
202 |
{}% |
178 |
{\global\togglefalse{blx@insert}}% |
203 |
{\global\togglefalse{blx@insert}}% |
179 |
\csname a:blx@unit\endcsname |
204 |
\csname a:blx@unit\endcsname |
180 |
\blx@leavevmode |
205 |
\blx@leavevmode |
181 |
\blx@csq@ifkernmark |
206 |
\blx@csq@ifkernmark |
182 |
{} |
207 |
{}% |
183 |
{\penalty\@M |
208 |
{\penalty\@M |
184 |
\hskip-\blx@unitmark\relax |
209 |
\hskip-\blx@unitmark\relax |
185 |
\hskip\blx@unitmark\relax}% |
210 |
\hskip\blx@unitmark\relax}% |
Lines 204-217
Link Here
|
204 |
|
229 |
|
205 |
\fi |
230 |
\fi |
206 |
\NewConfigure{thebibliography}{4} |
231 |
\NewConfigure{thebibliography}{4} |
207 |
\append:def\blx@bibinit{\a:bibinit} |
232 |
\append:def\blx@bibinit{\a:bibinit}% |
208 |
\NewConfigure{bibinit}{1} |
233 |
\NewConfigure{bibinit}{1}% |
209 |
|
234 |
|
210 |
\let\blx@anchors\@empty |
235 |
\let\blx@anchors\@empty |
|
|
236 |
\let\bib@field@entrykey\@empty |
211 |
\protected\def\blx@anchor{% |
237 |
\protected\def\blx@anchor{% |
212 |
\xifinlist{X\the\c@refsection -%@ |
238 |
\xifinlist{X\the\c@refsection -%@ |
213 |
\bib@field@entrykey}{\blx@anchors} |
239 |
\bib@field@entrykey}{\blx@anchors}% |
214 |
{} |
240 |
{}% |
215 |
{\listxadd\blx@anchors{X\the\c@refsection -%@ |
241 |
{\listxadd\blx@anchors{X\the\c@refsection -%@ |
216 |
\bib@field@entrykey}% |
242 |
\bib@field@entrykey}% |
217 |
\hyper:natanchorstart{X\the\c@refsection -%@ |
243 |
\hyper:natanchorstart{X\the\c@refsection -%@ |
Lines 219-240
Link Here
|
219 |
\hyper:natanchorend}} |
245 |
\hyper:natanchorend}} |
220 |
\protected\def\blx@bibhyperref{% |
246 |
\protected\def\blx@bibhyperref{% |
221 |
\@ifnextchar[%] |
247 |
\@ifnextchar[%] |
222 |
{\blx@bibhyperref@i} |
248 |
{\blx@bibhyperref@i}% |
223 |
{\blx@bibhyperref@i[\bib@field@entrykey]}}% |
249 |
{\blx@bibhyperref@i[\bib@field@entrykey]}}% |
224 |
\long\def\blx@bibhyperref@i[#1]#2{% |
250 |
\long\def\blx@bibhyperref@i[#1]#2{% |
225 |
\hyper:natlinkstart{X\the\c@refsection -%@ |
251 |
\hyper:natlinkstart{X\the\c@refsection -%@ |
226 |
#1}% |
252 |
#1}% |
227 |
#2\hyper:natlinkend} |
253 |
#2\hyper:natlinkend}% |
228 |
\protected\long\def\blx@bibhyperlink#1#2{% |
254 |
\protected\long\def\blx@bibhyperlink#1#2{% |
229 |
\hyper:natlinkstart{X\the\c@refsection --%: |
255 |
\hyper:natlinkstart{X\the\c@refsection --%: |
230 |
#1}% |
256 |
#1}% |
231 |
#2\hyper:natlinkend} |
257 |
#2\hyper:natlinkend}% |
232 |
\protected\long\def\blx@bibhypertarget#1#2{% |
258 |
\protected\long\def\blx@bibhypertarget#1#2{% |
233 |
\@bsphack |
259 |
\@bsphack |
234 |
\hyper:natanchorstart{X\the\c@refsection --%: |
260 |
\hyper:natanchorstart{X\the\c@refsection --%: |
235 |
#1}% |
261 |
#1}% |
236 |
\@esphack |
262 |
\@esphack |
237 |
#2\hyper:natanchorend} |
263 |
#2\hyper:natanchorend}% |
238 |
\let\blx@ifhyperref\@firstoftwo |
264 |
\let\blx@ifhyperref\@firstoftwo |
239 |
\def\hyper:natanchorstart#1{\Link{}{#1}\EndLink} |
265 |
\def\hyper:natanchorstart#1{\Link{}{#1}\EndLink} |
240 |
\def\hyper:natanchorend{} |
266 |
\def\hyper:natanchorend{} |
Lines 244-252
Link Here
|
244 |
\let\:temp\do |
270 |
\let\:temp\do |
245 |
\def\do#1{% |
271 |
\def\do#1{% |
246 |
\patchcmd#1% |
272 |
\patchcmd#1% |
247 |
{\color@begingroup} |
273 |
{\color@begingroup}% |
248 |
{\color@begingroup\toggletrue{blx@footnote}} |
274 |
{\color@begingroup\toggletrue{blx@footnote}}% |
249 |
{\togglefalse{blx@tempa}\listbreak} |
275 |
{\togglefalse{blx@tempa}\listbreak}% |
250 |
{}}% |
276 |
{}}% |
251 |
\docsvlist{% |
277 |
\docsvlist{% |
252 |
\@footnotetext,% latex |
278 |
\@footnotetext,% latex |