| 1 |
%% |
| 2 |
%% This is file `worlddev.bst', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% merlin.mbs (with options: `ay,nat,nm-rev,jnrlst,keyxyr,dt-jnl,note-yr,volp-com,jdt-pc,num-xser,bkpg-par,add-pub,edpar,bkedcap,blk-com,au-col,pp,ed,abr,xedn,amper,and-com,and-com-ed,etal-it,nfss,') |
| 8 |
%% ---------------------------------------- |
| 9 |
%% *** World Development *** |
| 10 |
%% |
| 11 |
%% Copyright 1994-2004 Patrick W Daly |
| 12 |
% =============================================================== |
| 13 |
% IMPORTANT NOTICE: |
| 14 |
% This bibliographic style (bst) file has been generated from one or |
| 15 |
% more master bibliographic style (mbs) files, listed above. |
| 16 |
% |
| 17 |
% This generated file can be redistributed and/or modified under the terms |
| 18 |
% of the LaTeX Project Public License Distributed from CTAN |
| 19 |
% archives in directory macros/latex/base/lppl.txt; either |
| 20 |
% version 1 of the License, or any later version. |
| 21 |
% =============================================================== |
| 22 |
% Name and version information of the main mbs file: |
| 23 |
% \ProvidesFile{merlin.mbs}[2004/02/09 4.13 (PWD, AO, DPC)] |
| 24 |
% For use with BibTeX version 0.99a or later |
| 25 |
%------------------------------------------------------------------- |
| 26 |
% This bibliography style file is intended for texts in ENGLISH |
| 27 |
% This is an author-year citation style bibliography. As such, it is |
| 28 |
% non-standard LaTeX, and requires a special package file to function properly. |
| 29 |
% Such a package is natbib.sty by Patrick W. Daly |
| 30 |
% The form of the \bibitem entries is |
| 31 |
% \bibitem[Jones et al.(1990)]{key}... |
| 32 |
% \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}... |
| 33 |
% The essential feature is that the label (the part in brackets) consists |
| 34 |
% of the author names, as they should appear in the citation, with the year |
| 35 |
% in parentheses following. There must be no space before the opening |
| 36 |
% parenthesis! |
| 37 |
% With natbib v5.3, a full list of authors may also follow the year. |
| 38 |
% In natbib.sty, it is possible to define the type of enclosures that is |
| 39 |
% really wanted (brackets or parentheses), but in either case, there must |
| 40 |
% be parentheses in the label. |
| 41 |
% The \cite command functions as follows: |
| 42 |
% \citet{key} ==>> Jones et al. (1990) |
| 43 |
% \citet*{key} ==>> Jones, Baker, and Smith (1990) |
| 44 |
% \citep{key} ==>> (Jones et al., 1990) |
| 45 |
% \citep*{key} ==>> (Jones, Baker, and Smith, 1990) |
| 46 |
% \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2) |
| 47 |
% \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990) |
| 48 |
% \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32) |
| 49 |
% \citeauthor{key} ==>> Jones et al. |
| 50 |
% \citeauthor*{key} ==>> Jones, Baker, and Smith |
| 51 |
% \citeyear{key} ==>> 1990 |
| 52 |
%--------------------------------------------------------------------- |
| 53 |
|
| 54 |
ENTRY |
| 55 |
{ address |
| 56 |
author |
| 57 |
booktitle |
| 58 |
chapter |
| 59 |
edition |
| 60 |
editor |
| 61 |
eid |
| 62 |
howpublished |
| 63 |
institution |
| 64 |
journal |
| 65 |
key |
| 66 |
month |
| 67 |
note |
| 68 |
number |
| 69 |
organization |
| 70 |
pages |
| 71 |
publisher |
| 72 |
school |
| 73 |
series |
| 74 |
title |
| 75 |
type |
| 76 |
volume |
| 77 |
year |
| 78 |
} |
| 79 |
{} |
| 80 |
{ label extra.label sort.label short.list } |
| 81 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 82 |
FUNCTION {init.state.consts} |
| 83 |
{ #0 'before.all := |
| 84 |
#1 'mid.sentence := |
| 85 |
#2 'after.sentence := |
| 86 |
#3 'after.block := |
| 87 |
} |
| 88 |
STRINGS { s t} |
| 89 |
FUNCTION {output.nonnull} |
| 90 |
{ 's := |
| 91 |
output.state mid.sentence = |
| 92 |
{ ", " * write$ } |
| 93 |
{ output.state after.block = |
| 94 |
{ add.period$ write$ |
| 95 |
newline$ |
| 96 |
"\newblock " write$ |
| 97 |
} |
| 98 |
{ output.state before.all = |
| 99 |
'write$ |
| 100 |
{ add.period$ " " * write$ } |
| 101 |
if$ |
| 102 |
} |
| 103 |
if$ |
| 104 |
mid.sentence 'output.state := |
| 105 |
} |
| 106 |
if$ |
| 107 |
s |
| 108 |
} |
| 109 |
FUNCTION {output} |
| 110 |
{ duplicate$ empty$ |
| 111 |
'pop$ |
| 112 |
'output.nonnull |
| 113 |
if$ |
| 114 |
} |
| 115 |
FUNCTION {output.check} |
| 116 |
{ 't := |
| 117 |
duplicate$ empty$ |
| 118 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 119 |
'output.nonnull |
| 120 |
if$ |
| 121 |
} |
| 122 |
FUNCTION {fin.entry} |
| 123 |
{ add.period$ |
| 124 |
write$ |
| 125 |
newline$ |
| 126 |
} |
| 127 |
|
| 128 |
FUNCTION {new.block} |
| 129 |
{ output.state before.all = |
| 130 |
'skip$ |
| 131 |
{ after.block 'output.state := } |
| 132 |
if$ |
| 133 |
} |
| 134 |
FUNCTION {new.sentence} |
| 135 |
{ output.state after.block = |
| 136 |
'skip$ |
| 137 |
{ output.state before.all = |
| 138 |
'skip$ |
| 139 |
{ after.sentence 'output.state := } |
| 140 |
if$ |
| 141 |
} |
| 142 |
if$ |
| 143 |
} |
| 144 |
FUNCTION {add.blank} |
| 145 |
{ " " * before.all 'output.state := |
| 146 |
} |
| 147 |
|
| 148 |
FUNCTION {add.colon} |
| 149 |
{ duplicate$ empty$ |
| 150 |
'skip$ |
| 151 |
{ ":" * add.blank } |
| 152 |
if$ |
| 153 |
} |
| 154 |
|
| 155 |
FUNCTION {date.block} |
| 156 |
{ |
| 157 |
skip$ |
| 158 |
} |
| 159 |
|
| 160 |
FUNCTION {not} |
| 161 |
{ { #0 } |
| 162 |
{ #1 } |
| 163 |
if$ |
| 164 |
} |
| 165 |
FUNCTION {and} |
| 166 |
{ 'skip$ |
| 167 |
{ pop$ #0 } |
| 168 |
if$ |
| 169 |
} |
| 170 |
FUNCTION {or} |
| 171 |
{ { pop$ #1 } |
| 172 |
'skip$ |
| 173 |
if$ |
| 174 |
} |
| 175 |
FUNCTION {new.block.checkb} |
| 176 |
{ empty$ |
| 177 |
swap$ empty$ |
| 178 |
and |
| 179 |
'skip$ |
| 180 |
'new.block |
| 181 |
if$ |
| 182 |
} |
| 183 |
FUNCTION {field.or.null} |
| 184 |
{ duplicate$ empty$ |
| 185 |
{ pop$ "" } |
| 186 |
'skip$ |
| 187 |
if$ |
| 188 |
} |
| 189 |
FUNCTION {emphasize} |
| 190 |
{ duplicate$ empty$ |
| 191 |
{ pop$ "" } |
| 192 |
{ "\emph{" swap$ * "}" * } |
| 193 |
if$ |
| 194 |
} |
| 195 |
FUNCTION {tie.or.space.prefix} |
| 196 |
{ duplicate$ text.length$ #3 < |
| 197 |
{ "~" } |
| 198 |
{ " " } |
| 199 |
if$ |
| 200 |
swap$ |
| 201 |
} |
| 202 |
|
| 203 |
FUNCTION {capitalize} |
| 204 |
{ "u" change.case$ "t" change.case$ } |
| 205 |
|
| 206 |
FUNCTION {space.word} |
| 207 |
{ " " swap$ * " " * } |
| 208 |
% Here are the language-specific definitions for explicit words. |
| 209 |
% Each function has a name bbl.xxx where xxx is the English word. |
| 210 |
% The language selected here is ENGLISH |
| 211 |
FUNCTION {bbl.and} |
| 212 |
{ "and"} |
| 213 |
|
| 214 |
FUNCTION {bbl.etal} |
| 215 |
{ "et~al." } |
| 216 |
|
| 217 |
FUNCTION {bbl.editors} |
| 218 |
{ "eds." } |
| 219 |
|
| 220 |
FUNCTION {bbl.editor} |
| 221 |
{ "ed." } |
| 222 |
|
| 223 |
FUNCTION {bbl.edby} |
| 224 |
{ "edited by" } |
| 225 |
|
| 226 |
FUNCTION {bbl.edition} |
| 227 |
{ "edn." } |
| 228 |
|
| 229 |
FUNCTION {bbl.volume} |
| 230 |
{ "vol." } |
| 231 |
|
| 232 |
FUNCTION {bbl.of} |
| 233 |
{ "of" } |
| 234 |
|
| 235 |
FUNCTION {bbl.number} |
| 236 |
{ "no." } |
| 237 |
|
| 238 |
FUNCTION {bbl.nr} |
| 239 |
{ "no." } |
| 240 |
|
| 241 |
FUNCTION {bbl.in} |
| 242 |
{ "in" } |
| 243 |
|
| 244 |
FUNCTION {bbl.pages} |
| 245 |
{ "pp." } |
| 246 |
|
| 247 |
FUNCTION {bbl.page} |
| 248 |
{ "p." } |
| 249 |
|
| 250 |
FUNCTION {bbl.chapter} |
| 251 |
{ "chap." } |
| 252 |
|
| 253 |
FUNCTION {bbl.techrep} |
| 254 |
{ "Tech. Rep." } |
| 255 |
|
| 256 |
FUNCTION {bbl.mthesis} |
| 257 |
{ "Master's thesis" } |
| 258 |
|
| 259 |
FUNCTION {bbl.phdthesis} |
| 260 |
{ "Ph.D. thesis" } |
| 261 |
|
| 262 |
MACRO {jan} {"Jan."} |
| 263 |
|
| 264 |
MACRO {feb} {"Feb."} |
| 265 |
|
| 266 |
MACRO {mar} {"Mar."} |
| 267 |
|
| 268 |
MACRO {apr} {"Apr."} |
| 269 |
|
| 270 |
MACRO {may} {"May"} |
| 271 |
|
| 272 |
MACRO {jun} {"Jun."} |
| 273 |
|
| 274 |
MACRO {jul} {"Jul."} |
| 275 |
|
| 276 |
MACRO {aug} {"Aug."} |
| 277 |
|
| 278 |
MACRO {sep} {"Sep."} |
| 279 |
|
| 280 |
MACRO {oct} {"Oct."} |
| 281 |
|
| 282 |
MACRO {nov} {"Nov."} |
| 283 |
|
| 284 |
MACRO {dec} {"Dec."} |
| 285 |
|
| 286 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 287 |
|
| 288 |
MACRO {acta} {"Acta Informatica"} |
| 289 |
|
| 290 |
MACRO {cacm} {"Communications of the ACM"} |
| 291 |
|
| 292 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 293 |
|
| 294 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 295 |
|
| 296 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 297 |
|
| 298 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 299 |
|
| 300 |
MACRO {ieeetcad} |
| 301 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 302 |
|
| 303 |
MACRO {ipl} {"Information Processing Letters"} |
| 304 |
|
| 305 |
MACRO {jacm} {"Journal of the ACM"} |
| 306 |
|
| 307 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 308 |
|
| 309 |
MACRO {scp} {"Science of Computer Programming"} |
| 310 |
|
| 311 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 312 |
|
| 313 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 314 |
|
| 315 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 316 |
|
| 317 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 318 |
|
| 319 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 320 |
|
| 321 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 322 |
|
| 323 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 324 |
|
| 325 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 326 |
FUNCTION {bibinfo.check} |
| 327 |
{ swap$ |
| 328 |
duplicate$ missing$ |
| 329 |
{ |
| 330 |
pop$ pop$ |
| 331 |
"" |
| 332 |
} |
| 333 |
{ duplicate$ empty$ |
| 334 |
{ |
| 335 |
swap$ pop$ |
| 336 |
} |
| 337 |
{ swap$ |
| 338 |
pop$ |
| 339 |
} |
| 340 |
if$ |
| 341 |
} |
| 342 |
if$ |
| 343 |
} |
| 344 |
FUNCTION {bibinfo.warn} |
| 345 |
{ swap$ |
| 346 |
duplicate$ missing$ |
| 347 |
{ |
| 348 |
swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ |
| 349 |
"" |
| 350 |
} |
| 351 |
{ duplicate$ empty$ |
| 352 |
{ |
| 353 |
swap$ "empty " swap$ * " in " * cite$ * warning$ |
| 354 |
} |
| 355 |
{ swap$ |
| 356 |
pop$ |
| 357 |
} |
| 358 |
if$ |
| 359 |
} |
| 360 |
if$ |
| 361 |
} |
| 362 |
STRINGS { bibinfo} |
| 363 |
INTEGERS { nameptr namesleft numnames } |
| 364 |
|
| 365 |
FUNCTION {format.names} |
| 366 |
{ 'bibinfo := |
| 367 |
duplicate$ empty$ 'skip$ { |
| 368 |
's := |
| 369 |
"" 't := |
| 370 |
#1 'nameptr := |
| 371 |
s num.names$ 'numnames := |
| 372 |
numnames 'namesleft := |
| 373 |
{ namesleft #0 > } |
| 374 |
{ s nameptr |
| 375 |
"{vv~}{ll}{, f.}{, jj}" |
| 376 |
format.name$ |
| 377 |
bibinfo bibinfo.check |
| 378 |
't := |
| 379 |
nameptr #1 > |
| 380 |
{ |
| 381 |
namesleft #1 > |
| 382 |
{ ", " * t * } |
| 383 |
{ |
| 384 |
"," * |
| 385 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 386 |
{ 't := } |
| 387 |
{ pop$ } |
| 388 |
if$ |
| 389 |
t "others" = |
| 390 |
{ |
| 391 |
" " * bbl.etal emphasize * |
| 392 |
} |
| 393 |
{ |
| 394 |
"\&" |
| 395 |
space.word * t * |
| 396 |
} |
| 397 |
if$ |
| 398 |
} |
| 399 |
if$ |
| 400 |
} |
| 401 |
't |
| 402 |
if$ |
| 403 |
nameptr #1 + 'nameptr := |
| 404 |
namesleft #1 - 'namesleft := |
| 405 |
} |
| 406 |
while$ |
| 407 |
} if$ |
| 408 |
} |
| 409 |
FUNCTION {format.names.ed} |
| 410 |
{ |
| 411 |
'bibinfo := |
| 412 |
duplicate$ empty$ 'skip$ { |
| 413 |
's := |
| 414 |
"" 't := |
| 415 |
#1 'nameptr := |
| 416 |
s num.names$ 'numnames := |
| 417 |
numnames 'namesleft := |
| 418 |
{ namesleft #0 > } |
| 419 |
{ s nameptr |
| 420 |
"{f.~}{vv~}{ll}{, jj}" |
| 421 |
format.name$ |
| 422 |
bibinfo bibinfo.check |
| 423 |
't := |
| 424 |
nameptr #1 > |
| 425 |
{ |
| 426 |
namesleft #1 > |
| 427 |
{ ", " * t * } |
| 428 |
{ |
| 429 |
"," * |
| 430 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 431 |
{ 't := } |
| 432 |
{ pop$ } |
| 433 |
if$ |
| 434 |
t "others" = |
| 435 |
{ |
| 436 |
|
| 437 |
" " * bbl.etal emphasize * |
| 438 |
} |
| 439 |
{ |
| 440 |
"\&" |
| 441 |
space.word * t * |
| 442 |
} |
| 443 |
if$ |
| 444 |
} |
| 445 |
if$ |
| 446 |
} |
| 447 |
't |
| 448 |
if$ |
| 449 |
nameptr #1 + 'nameptr := |
| 450 |
namesleft #1 - 'namesleft := |
| 451 |
} |
| 452 |
while$ |
| 453 |
} if$ |
| 454 |
} |
| 455 |
FUNCTION {format.key} |
| 456 |
{ empty$ |
| 457 |
{ key field.or.null } |
| 458 |
{ "" } |
| 459 |
if$ |
| 460 |
} |
| 461 |
|
| 462 |
FUNCTION {format.authors} |
| 463 |
{ author "author" format.names |
| 464 |
} |
| 465 |
FUNCTION {get.bbl.editor} |
| 466 |
{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } |
| 467 |
|
| 468 |
FUNCTION {format.editors} |
| 469 |
{ editor "editor" format.names duplicate$ empty$ 'skip$ |
| 470 |
{ |
| 471 |
" " * |
| 472 |
get.bbl.editor |
| 473 |
capitalize |
| 474 |
"(" swap$ * ")" * |
| 475 |
* |
| 476 |
} |
| 477 |
if$ |
| 478 |
} |
| 479 |
FUNCTION {format.note} |
| 480 |
{ |
| 481 |
note empty$ |
| 482 |
{ "" } |
| 483 |
{ note #1 #1 substring$ |
| 484 |
duplicate$ "{" = |
| 485 |
'skip$ |
| 486 |
{ output.state mid.sentence = |
| 487 |
{ "l" } |
| 488 |
{ "u" } |
| 489 |
if$ |
| 490 |
change.case$ |
| 491 |
} |
| 492 |
if$ |
| 493 |
note #2 global.max$ substring$ * "note" bibinfo.check |
| 494 |
} |
| 495 |
if$ |
| 496 |
} |
| 497 |
|
| 498 |
FUNCTION {format.title} |
| 499 |
{ title |
| 500 |
duplicate$ empty$ 'skip$ |
| 501 |
{ "t" change.case$ } |
| 502 |
if$ |
| 503 |
"title" bibinfo.check |
| 504 |
} |
| 505 |
FUNCTION {format.full.names} |
| 506 |
{'s := |
| 507 |
"" 't := |
| 508 |
#1 'nameptr := |
| 509 |
s num.names$ 'numnames := |
| 510 |
numnames 'namesleft := |
| 511 |
{ namesleft #0 > } |
| 512 |
{ s nameptr |
| 513 |
"{vv~}{ll}" format.name$ |
| 514 |
't := |
| 515 |
nameptr #1 > |
| 516 |
{ |
| 517 |
namesleft #1 > |
| 518 |
{ ", " * t * } |
| 519 |
{ |
| 520 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 521 |
{ 't := } |
| 522 |
{ pop$ } |
| 523 |
if$ |
| 524 |
t "others" = |
| 525 |
{ |
| 526 |
" " * bbl.etal emphasize * |
| 527 |
} |
| 528 |
{ |
| 529 |
numnames #2 > |
| 530 |
{ "," * } |
| 531 |
'skip$ |
| 532 |
if$ |
| 533 |
"\&" |
| 534 |
space.word * t * |
| 535 |
} |
| 536 |
if$ |
| 537 |
} |
| 538 |
if$ |
| 539 |
} |
| 540 |
't |
| 541 |
if$ |
| 542 |
nameptr #1 + 'nameptr := |
| 543 |
namesleft #1 - 'namesleft := |
| 544 |
} |
| 545 |
while$ |
| 546 |
} |
| 547 |
|
| 548 |
FUNCTION {author.editor.key.full} |
| 549 |
{ author empty$ |
| 550 |
{ editor empty$ |
| 551 |
{ key empty$ |
| 552 |
{ cite$ #1 #3 substring$ } |
| 553 |
'key |
| 554 |
if$ |
| 555 |
} |
| 556 |
{ editor format.full.names } |
| 557 |
if$ |
| 558 |
} |
| 559 |
{ author format.full.names } |
| 560 |
if$ |
| 561 |
} |
| 562 |
|
| 563 |
FUNCTION {author.key.full} |
| 564 |
{ author empty$ |
| 565 |
{ key empty$ |
| 566 |
{ cite$ #1 #3 substring$ } |
| 567 |
'key |
| 568 |
if$ |
| 569 |
} |
| 570 |
{ author format.full.names } |
| 571 |
if$ |
| 572 |
} |
| 573 |
|
| 574 |
FUNCTION {editor.key.full} |
| 575 |
{ editor empty$ |
| 576 |
{ key empty$ |
| 577 |
{ cite$ #1 #3 substring$ } |
| 578 |
'key |
| 579 |
if$ |
| 580 |
} |
| 581 |
{ editor format.full.names } |
| 582 |
if$ |
| 583 |
} |
| 584 |
|
| 585 |
FUNCTION {make.full.names} |
| 586 |
{ type$ "book" = |
| 587 |
type$ "inbook" = |
| 588 |
or |
| 589 |
'author.editor.key.full |
| 590 |
{ type$ "proceedings" = |
| 591 |
'editor.key.full |
| 592 |
'author.key.full |
| 593 |
if$ |
| 594 |
} |
| 595 |
if$ |
| 596 |
} |
| 597 |
|
| 598 |
FUNCTION {output.bibitem} |
| 599 |
{ newline$ |
| 600 |
"\bibitem[{" write$ |
| 601 |
label write$ |
| 602 |
")" make.full.names duplicate$ short.list = |
| 603 |
{ pop$ } |
| 604 |
{ * } |
| 605 |
if$ |
| 606 |
"}]{" * write$ |
| 607 |
cite$ write$ |
| 608 |
"}" write$ |
| 609 |
newline$ |
| 610 |
"" |
| 611 |
before.all 'output.state := |
| 612 |
} |
| 613 |
|
| 614 |
FUNCTION {n.dashify} |
| 615 |
{ |
| 616 |
't := |
| 617 |
"" |
| 618 |
{ t empty$ not } |
| 619 |
{ t #1 #1 substring$ "-" = |
| 620 |
{ t #1 #2 substring$ "--" = not |
| 621 |
{ "--" * |
| 622 |
t #2 global.max$ substring$ 't := |
| 623 |
} |
| 624 |
{ { t #1 #1 substring$ "-" = } |
| 625 |
{ "-" * |
| 626 |
t #2 global.max$ substring$ 't := |
| 627 |
} |
| 628 |
while$ |
| 629 |
} |
| 630 |
if$ |
| 631 |
} |
| 632 |
{ t #1 #1 substring$ * |
| 633 |
t #2 global.max$ substring$ 't := |
| 634 |
} |
| 635 |
if$ |
| 636 |
} |
| 637 |
while$ |
| 638 |
} |
| 639 |
|
| 640 |
FUNCTION {word.in} |
| 641 |
{ bbl.in |
| 642 |
" " * } |
| 643 |
|
| 644 |
FUNCTION {format.date} |
| 645 |
{ year "year" bibinfo.check duplicate$ empty$ |
| 646 |
{ |
| 647 |
"empty year in " cite$ * "; set to ????" * warning$ |
| 648 |
pop$ "????" |
| 649 |
} |
| 650 |
'skip$ |
| 651 |
if$ |
| 652 |
extra.label * |
| 653 |
} |
| 654 |
FUNCTION{format.year} |
| 655 |
{ year "year" bibinfo.check duplicate$ empty$ |
| 656 |
{ "empty year in " cite$ * |
| 657 |
"; set to ????" * |
| 658 |
warning$ |
| 659 |
pop$ "????" |
| 660 |
} |
| 661 |
{ |
| 662 |
} |
| 663 |
if$ |
| 664 |
extra.label * |
| 665 |
"(" swap$ * ")" * |
| 666 |
} |
| 667 |
FUNCTION {format.btitle} |
| 668 |
{ title "title" bibinfo.check |
| 669 |
duplicate$ empty$ 'skip$ |
| 670 |
{ |
| 671 |
emphasize |
| 672 |
} |
| 673 |
if$ |
| 674 |
} |
| 675 |
FUNCTION {either.or.check} |
| 676 |
{ empty$ |
| 677 |
'pop$ |
| 678 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 679 |
if$ |
| 680 |
} |
| 681 |
FUNCTION {format.bvolume} |
| 682 |
{ volume empty$ |
| 683 |
{ "" } |
| 684 |
{ bbl.volume volume tie.or.space.prefix |
| 685 |
"volume" bibinfo.check * * |
| 686 |
series "series" bibinfo.check |
| 687 |
duplicate$ empty$ 'pop$ |
| 688 |
{ swap$ bbl.of space.word * swap$ |
| 689 |
emphasize * } |
| 690 |
if$ |
| 691 |
"volume and number" number either.or.check |
| 692 |
} |
| 693 |
if$ |
| 694 |
} |
| 695 |
FUNCTION {format.number.series} |
| 696 |
{ volume empty$ |
| 697 |
{ number empty$ |
| 698 |
{ series field.or.null } |
| 699 |
{ series empty$ |
| 700 |
{ number "number" bibinfo.check } |
| 701 |
{ output.state mid.sentence = |
| 702 |
{ bbl.number } |
| 703 |
{ bbl.number capitalize } |
| 704 |
if$ |
| 705 |
number tie.or.space.prefix "number" bibinfo.check * * |
| 706 |
bbl.in space.word * |
| 707 |
series "series" bibinfo.check * |
| 708 |
} |
| 709 |
if$ |
| 710 |
} |
| 711 |
if$ |
| 712 |
} |
| 713 |
{ "" } |
| 714 |
if$ |
| 715 |
} |
| 716 |
|
| 717 |
FUNCTION {format.edition} |
| 718 |
{ edition duplicate$ empty$ 'skip$ |
| 719 |
{ |
| 720 |
output.state mid.sentence = |
| 721 |
{ "l" } |
| 722 |
{ "t" } |
| 723 |
if$ change.case$ |
| 724 |
"edition" bibinfo.check |
| 725 |
" " * bbl.edition * |
| 726 |
} |
| 727 |
if$ |
| 728 |
} |
| 729 |
INTEGERS { multiresult } |
| 730 |
FUNCTION {multi.page.check} |
| 731 |
{ 't := |
| 732 |
#0 'multiresult := |
| 733 |
{ multiresult not |
| 734 |
t empty$ not |
| 735 |
and |
| 736 |
} |
| 737 |
{ t #1 #1 substring$ |
| 738 |
duplicate$ "-" = |
| 739 |
swap$ duplicate$ "," = |
| 740 |
swap$ "+" = |
| 741 |
or or |
| 742 |
{ #1 'multiresult := } |
| 743 |
{ t #2 global.max$ substring$ 't := } |
| 744 |
if$ |
| 745 |
} |
| 746 |
while$ |
| 747 |
multiresult |
| 748 |
} |
| 749 |
FUNCTION {format.pages} |
| 750 |
{ pages duplicate$ empty$ 'skip$ |
| 751 |
{ duplicate$ multi.page.check |
| 752 |
{ |
| 753 |
bbl.pages swap$ |
| 754 |
n.dashify |
| 755 |
} |
| 756 |
{ |
| 757 |
bbl.page swap$ |
| 758 |
} |
| 759 |
if$ |
| 760 |
tie.or.space.prefix |
| 761 |
"pages" bibinfo.check |
| 762 |
* * |
| 763 |
"(" swap$ * ")" * |
| 764 |
} |
| 765 |
if$ |
| 766 |
} |
| 767 |
FUNCTION {format.journal.pages} |
| 768 |
{ pages duplicate$ empty$ 'pop$ |
| 769 |
{ swap$ duplicate$ empty$ |
| 770 |
{ pop$ pop$ format.pages } |
| 771 |
{ |
| 772 |
", " * |
| 773 |
format.year * ", " * |
| 774 |
swap$ |
| 775 |
n.dashify |
| 776 |
"pages" bibinfo.check |
| 777 |
* |
| 778 |
} |
| 779 |
if$ |
| 780 |
} |
| 781 |
if$ |
| 782 |
} |
| 783 |
FUNCTION {format.journal.eid} |
| 784 |
{ eid "eid" bibinfo.check |
| 785 |
duplicate$ empty$ 'pop$ |
| 786 |
{ swap$ duplicate$ empty$ 'skip$ |
| 787 |
{ |
| 788 |
", " * |
| 789 |
} |
| 790 |
if$ |
| 791 |
swap$ * |
| 792 |
} |
| 793 |
if$ |
| 794 |
} |
| 795 |
FUNCTION {format.vol.num.pages} |
| 796 |
{ volume field.or.null |
| 797 |
duplicate$ empty$ 'skip$ |
| 798 |
{ |
| 799 |
"volume" bibinfo.check |
| 800 |
} |
| 801 |
if$ |
| 802 |
number "number" bibinfo.check duplicate$ empty$ 'skip$ |
| 803 |
{ |
| 804 |
swap$ duplicate$ empty$ |
| 805 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 806 |
'skip$ |
| 807 |
if$ |
| 808 |
swap$ |
| 809 |
"(" swap$ * ")" * |
| 810 |
} |
| 811 |
if$ * |
| 812 |
eid empty$ |
| 813 |
{ format.journal.pages } |
| 814 |
{ format.journal.eid } |
| 815 |
if$ |
| 816 |
} |
| 817 |
|
| 818 |
FUNCTION {format.chapter.pages} |
| 819 |
{ chapter empty$ |
| 820 |
'format.pages |
| 821 |
{ type empty$ |
| 822 |
{ bbl.chapter } |
| 823 |
{ type "l" change.case$ |
| 824 |
"type" bibinfo.check |
| 825 |
} |
| 826 |
if$ |
| 827 |
chapter tie.or.space.prefix |
| 828 |
"chapter" bibinfo.check |
| 829 |
* * |
| 830 |
pages empty$ |
| 831 |
'skip$ |
| 832 |
{ ", " * format.pages * } |
| 833 |
if$ |
| 834 |
} |
| 835 |
if$ |
| 836 |
} |
| 837 |
|
| 838 |
FUNCTION {format.booktitle} |
| 839 |
{ |
| 840 |
booktitle "booktitle" bibinfo.check |
| 841 |
emphasize |
| 842 |
} |
| 843 |
FUNCTION {format.in.ed.booktitle} |
| 844 |
{ format.booktitle duplicate$ empty$ 'skip$ |
| 845 |
{ |
| 846 |
editor "editor" format.names.ed duplicate$ empty$ 'pop$ |
| 847 |
{ |
| 848 |
" " * |
| 849 |
get.bbl.editor |
| 850 |
capitalize |
| 851 |
"(" swap$ * "), " * |
| 852 |
* swap$ |
| 853 |
* } |
| 854 |
if$ |
| 855 |
word.in swap$ * |
| 856 |
} |
| 857 |
if$ |
| 858 |
} |
| 859 |
FUNCTION {format.thesis.type} |
| 860 |
{ type duplicate$ empty$ |
| 861 |
'pop$ |
| 862 |
{ swap$ pop$ |
| 863 |
"t" change.case$ "type" bibinfo.check |
| 864 |
} |
| 865 |
if$ |
| 866 |
} |
| 867 |
FUNCTION {format.tr.number} |
| 868 |
{ number "number" bibinfo.check |
| 869 |
type duplicate$ empty$ |
| 870 |
{ pop$ bbl.techrep } |
| 871 |
'skip$ |
| 872 |
if$ |
| 873 |
"type" bibinfo.check |
| 874 |
swap$ duplicate$ empty$ |
| 875 |
{ pop$ "t" change.case$ } |
| 876 |
{ tie.or.space.prefix * * } |
| 877 |
if$ |
| 878 |
} |
| 879 |
FUNCTION {format.article.crossref} |
| 880 |
{ |
| 881 |
word.in |
| 882 |
" \cite{" * crossref * "}" * |
| 883 |
} |
| 884 |
FUNCTION {format.book.crossref} |
| 885 |
{ volume duplicate$ empty$ |
| 886 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 887 |
pop$ word.in |
| 888 |
} |
| 889 |
{ bbl.volume |
| 890 |
swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word * |
| 891 |
} |
| 892 |
if$ |
| 893 |
" \cite{" * crossref * "}" * |
| 894 |
} |
| 895 |
FUNCTION {format.incoll.inproc.crossref} |
| 896 |
{ |
| 897 |
word.in |
| 898 |
" \cite{" * crossref * "}" * |
| 899 |
} |
| 900 |
FUNCTION {format.org.or.pub} |
| 901 |
{ 't := |
| 902 |
"" |
| 903 |
address empty$ t empty$ and |
| 904 |
'skip$ |
| 905 |
{ |
| 906 |
address "address" bibinfo.check * |
| 907 |
t empty$ |
| 908 |
'skip$ |
| 909 |
{ address empty$ |
| 910 |
'skip$ |
| 911 |
{ ": " * } |
| 912 |
if$ |
| 913 |
t * |
| 914 |
} |
| 915 |
if$ |
| 916 |
} |
| 917 |
if$ |
| 918 |
} |
| 919 |
FUNCTION {format.publisher.address} |
| 920 |
{ publisher "publisher" bibinfo.warn format.org.or.pub |
| 921 |
} |
| 922 |
|
| 923 |
FUNCTION {format.organization.address} |
| 924 |
{ organization "organization" bibinfo.check format.org.or.pub |
| 925 |
} |
| 926 |
|
| 927 |
FUNCTION {article} |
| 928 |
{ output.bibitem |
| 929 |
format.authors "author" output.check |
| 930 |
author format.key output |
| 931 |
add.colon |
| 932 |
format.title "title" output.check |
| 933 |
crossref missing$ |
| 934 |
{ |
| 935 |
journal |
| 936 |
"journal" bibinfo.check |
| 937 |
emphasize |
| 938 |
"journal" output.check |
| 939 |
format.vol.num.pages output |
| 940 |
} |
| 941 |
{ format.article.crossref output.nonnull |
| 942 |
format.pages output |
| 943 |
} |
| 944 |
if$ |
| 945 |
format.note output |
| 946 |
fin.entry |
| 947 |
} |
| 948 |
FUNCTION {book} |
| 949 |
{ output.bibitem |
| 950 |
author empty$ |
| 951 |
{ format.editors "author and editor" output.check |
| 952 |
editor format.key output |
| 953 |
add.colon |
| 954 |
} |
| 955 |
{ format.authors output.nonnull |
| 956 |
add.colon |
| 957 |
crossref missing$ |
| 958 |
{ "author and editor" editor either.or.check } |
| 959 |
'skip$ |
| 960 |
if$ |
| 961 |
} |
| 962 |
if$ |
| 963 |
format.btitle "title" output.check |
| 964 |
crossref missing$ |
| 965 |
{ format.bvolume output |
| 966 |
format.number.series output |
| 967 |
format.publisher.address output |
| 968 |
} |
| 969 |
{ |
| 970 |
format.book.crossref output.nonnull |
| 971 |
} |
| 972 |
if$ |
| 973 |
format.edition output |
| 974 |
format.date "year" output.check |
| 975 |
format.note output |
| 976 |
fin.entry |
| 977 |
} |
| 978 |
FUNCTION {booklet} |
| 979 |
{ output.bibitem |
| 980 |
format.authors output |
| 981 |
author format.key output |
| 982 |
add.colon |
| 983 |
format.title "title" output.check |
| 984 |
howpublished "howpublished" bibinfo.check output |
| 985 |
address "address" bibinfo.check output |
| 986 |
format.date "year" output.check |
| 987 |
format.note output |
| 988 |
fin.entry |
| 989 |
} |
| 990 |
|
| 991 |
FUNCTION {inbook} |
| 992 |
{ output.bibitem |
| 993 |
author empty$ |
| 994 |
{ format.editors "author and editor" output.check |
| 995 |
editor format.key output |
| 996 |
add.colon |
| 997 |
} |
| 998 |
{ format.authors output.nonnull |
| 999 |
add.colon |
| 1000 |
crossref missing$ |
| 1001 |
{ "author and editor" editor either.or.check } |
| 1002 |
'skip$ |
| 1003 |
if$ |
| 1004 |
} |
| 1005 |
if$ |
| 1006 |
format.btitle "title" output.check |
| 1007 |
crossref missing$ |
| 1008 |
{ |
| 1009 |
format.bvolume output |
| 1010 |
format.chapter.pages "chapter and pages" output.check |
| 1011 |
format.number.series output |
| 1012 |
format.publisher.address output |
| 1013 |
} |
| 1014 |
{ |
| 1015 |
format.chapter.pages "chapter and pages" output.check |
| 1016 |
format.book.crossref output.nonnull |
| 1017 |
} |
| 1018 |
if$ |
| 1019 |
format.edition output |
| 1020 |
format.date "year" output.check |
| 1021 |
date.block |
| 1022 |
format.note output |
| 1023 |
fin.entry |
| 1024 |
} |
| 1025 |
|
| 1026 |
FUNCTION {incollection} |
| 1027 |
{ output.bibitem |
| 1028 |
format.authors "author" output.check |
| 1029 |
author format.key output |
| 1030 |
add.colon |
| 1031 |
format.title "title" output.check |
| 1032 |
crossref missing$ |
| 1033 |
{ format.in.ed.booktitle "booktitle" output.check |
| 1034 |
format.bvolume output |
| 1035 |
format.number.series output |
| 1036 |
format.chapter.pages output |
| 1037 |
format.publisher.address output |
| 1038 |
format.edition output |
| 1039 |
} |
| 1040 |
{ format.incoll.inproc.crossref output.nonnull |
| 1041 |
format.chapter.pages output |
| 1042 |
} |
| 1043 |
if$ |
| 1044 |
format.date "year" output.check |
| 1045 |
date.block |
| 1046 |
format.note output |
| 1047 |
fin.entry |
| 1048 |
} |
| 1049 |
FUNCTION {inproceedings} |
| 1050 |
{ output.bibitem |
| 1051 |
format.authors "author" output.check |
| 1052 |
author format.key output |
| 1053 |
add.colon |
| 1054 |
format.title "title" output.check |
| 1055 |
crossref missing$ |
| 1056 |
{ format.in.ed.booktitle "booktitle" output.check |
| 1057 |
format.bvolume output |
| 1058 |
format.number.series output |
| 1059 |
publisher empty$ |
| 1060 |
{ format.organization.address output } |
| 1061 |
{ organization "organization" bibinfo.check output |
| 1062 |
format.publisher.address output |
| 1063 |
} |
| 1064 |
if$ |
| 1065 |
} |
| 1066 |
{ format.incoll.inproc.crossref output.nonnull |
| 1067 |
} |
| 1068 |
if$ |
| 1069 |
format.date "year" output.check |
| 1070 |
date.block |
| 1071 |
format.pages "pages" output.check |
| 1072 |
format.note output |
| 1073 |
fin.entry |
| 1074 |
} |
| 1075 |
FUNCTION {conference} { inproceedings } |
| 1076 |
FUNCTION {manual} |
| 1077 |
{ output.bibitem |
| 1078 |
format.authors output |
| 1079 |
author format.key output |
| 1080 |
add.colon |
| 1081 |
format.btitle "title" output.check |
| 1082 |
organization "organization" bibinfo.check output |
| 1083 |
address "address" bibinfo.check output |
| 1084 |
format.edition output |
| 1085 |
format.date "year" output.check |
| 1086 |
format.note output |
| 1087 |
fin.entry |
| 1088 |
} |
| 1089 |
|
| 1090 |
FUNCTION {mastersthesis} |
| 1091 |
{ output.bibitem |
| 1092 |
format.authors "author" output.check |
| 1093 |
author format.key output |
| 1094 |
add.colon |
| 1095 |
format.btitle |
| 1096 |
"title" output.check |
| 1097 |
bbl.mthesis format.thesis.type output.nonnull |
| 1098 |
school "school" bibinfo.warn output |
| 1099 |
address "address" bibinfo.check output |
| 1100 |
format.date "year" output.check |
| 1101 |
format.note output |
| 1102 |
fin.entry |
| 1103 |
} |
| 1104 |
|
| 1105 |
FUNCTION {misc} |
| 1106 |
{ output.bibitem |
| 1107 |
format.authors output |
| 1108 |
author format.key output |
| 1109 |
add.colon |
| 1110 |
format.title output |
| 1111 |
howpublished "howpublished" bibinfo.check output |
| 1112 |
format.date "year" output.check |
| 1113 |
format.note output |
| 1114 |
fin.entry |
| 1115 |
} |
| 1116 |
FUNCTION {phdthesis} |
| 1117 |
{ output.bibitem |
| 1118 |
format.authors "author" output.check |
| 1119 |
author format.key output |
| 1120 |
add.colon |
| 1121 |
format.btitle |
| 1122 |
"title" output.check |
| 1123 |
bbl.phdthesis format.thesis.type output.nonnull |
| 1124 |
school "school" bibinfo.warn output |
| 1125 |
address "address" bibinfo.check output |
| 1126 |
format.date "year" output.check |
| 1127 |
format.note output |
| 1128 |
fin.entry |
| 1129 |
} |
| 1130 |
|
| 1131 |
FUNCTION {proceedings} |
| 1132 |
{ output.bibitem |
| 1133 |
format.editors output |
| 1134 |
editor format.key output |
| 1135 |
add.colon |
| 1136 |
format.btitle "title" output.check |
| 1137 |
format.bvolume output |
| 1138 |
format.number.series output |
| 1139 |
publisher empty$ |
| 1140 |
{ format.organization.address output } |
| 1141 |
{ organization "organization" bibinfo.check output |
| 1142 |
format.publisher.address output |
| 1143 |
} |
| 1144 |
if$ |
| 1145 |
format.date "year" output.check |
| 1146 |
format.note output |
| 1147 |
fin.entry |
| 1148 |
} |
| 1149 |
|
| 1150 |
FUNCTION {techreport} |
| 1151 |
{ output.bibitem |
| 1152 |
format.authors "author" output.check |
| 1153 |
author format.key output |
| 1154 |
add.colon |
| 1155 |
format.title |
| 1156 |
"title" output.check |
| 1157 |
format.tr.number output.nonnull |
| 1158 |
institution "institution" bibinfo.warn output |
| 1159 |
address "address" bibinfo.check output |
| 1160 |
format.date "year" output.check |
| 1161 |
format.note output |
| 1162 |
fin.entry |
| 1163 |
} |
| 1164 |
|
| 1165 |
FUNCTION {unpublished} |
| 1166 |
{ output.bibitem |
| 1167 |
format.authors "author" output.check |
| 1168 |
author format.key output |
| 1169 |
add.colon |
| 1170 |
format.title "title" output.check |
| 1171 |
format.date "year" output.check |
| 1172 |
format.note "note" output.check |
| 1173 |
fin.entry |
| 1174 |
} |
| 1175 |
|
| 1176 |
FUNCTION {default.type} { misc } |
| 1177 |
READ |
| 1178 |
FUNCTION {sortify} |
| 1179 |
{ purify$ |
| 1180 |
"l" change.case$ |
| 1181 |
} |
| 1182 |
INTEGERS { len } |
| 1183 |
FUNCTION {chop.word} |
| 1184 |
{ 's := |
| 1185 |
'len := |
| 1186 |
s #1 len substring$ = |
| 1187 |
{ s len #1 + global.max$ substring$ } |
| 1188 |
's |
| 1189 |
if$ |
| 1190 |
} |
| 1191 |
FUNCTION {format.lab.names} |
| 1192 |
{ 's := |
| 1193 |
"" 't := |
| 1194 |
s #1 "{vv~}{ll}" format.name$ |
| 1195 |
s num.names$ duplicate$ |
| 1196 |
#2 > |
| 1197 |
{ pop$ |
| 1198 |
" " * bbl.etal emphasize * |
| 1199 |
} |
| 1200 |
{ #2 < |
| 1201 |
'skip$ |
| 1202 |
{ s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 1203 |
{ |
| 1204 |
" " * bbl.etal emphasize * |
| 1205 |
} |
| 1206 |
{ " \& " * s #2 "{vv~}{ll}" format.name$ |
| 1207 |
* } |
| 1208 |
if$ |
| 1209 |
} |
| 1210 |
if$ |
| 1211 |
} |
| 1212 |
if$ |
| 1213 |
} |
| 1214 |
|
| 1215 |
FUNCTION {author.key.label} |
| 1216 |
{ author empty$ |
| 1217 |
{ key empty$ |
| 1218 |
{ cite$ #1 #3 substring$ } |
| 1219 |
'key |
| 1220 |
if$ |
| 1221 |
} |
| 1222 |
{ author format.lab.names } |
| 1223 |
if$ |
| 1224 |
} |
| 1225 |
|
| 1226 |
FUNCTION {author.editor.key.label} |
| 1227 |
{ author empty$ |
| 1228 |
{ editor empty$ |
| 1229 |
{ key empty$ |
| 1230 |
{ cite$ #1 #3 substring$ } |
| 1231 |
'key |
| 1232 |
if$ |
| 1233 |
} |
| 1234 |
{ editor format.lab.names } |
| 1235 |
if$ |
| 1236 |
} |
| 1237 |
{ author format.lab.names } |
| 1238 |
if$ |
| 1239 |
} |
| 1240 |
|
| 1241 |
FUNCTION {editor.key.label} |
| 1242 |
{ editor empty$ |
| 1243 |
{ key empty$ |
| 1244 |
{ cite$ #1 #3 substring$ } |
| 1245 |
'key |
| 1246 |
if$ |
| 1247 |
} |
| 1248 |
{ editor format.lab.names } |
| 1249 |
if$ |
| 1250 |
} |
| 1251 |
|
| 1252 |
FUNCTION {calc.short.authors} |
| 1253 |
{ type$ "book" = |
| 1254 |
type$ "inbook" = |
| 1255 |
or |
| 1256 |
'author.editor.key.label |
| 1257 |
{ type$ "proceedings" = |
| 1258 |
'editor.key.label |
| 1259 |
'author.key.label |
| 1260 |
if$ |
| 1261 |
} |
| 1262 |
if$ |
| 1263 |
'short.list := |
| 1264 |
} |
| 1265 |
|
| 1266 |
FUNCTION {calc.label} |
| 1267 |
{ calc.short.authors |
| 1268 |
short.list |
| 1269 |
"(" |
| 1270 |
* |
| 1271 |
year duplicate$ empty$ |
| 1272 |
short.list key field.or.null = or |
| 1273 |
{ pop$ "" } |
| 1274 |
'skip$ |
| 1275 |
if$ |
| 1276 |
* |
| 1277 |
'label := |
| 1278 |
} |
| 1279 |
|
| 1280 |
FUNCTION {sort.format.names} |
| 1281 |
{ 's := |
| 1282 |
#1 'nameptr := |
| 1283 |
"" |
| 1284 |
s num.names$ 'numnames := |
| 1285 |
numnames 'namesleft := |
| 1286 |
{ namesleft #0 > } |
| 1287 |
{ s nameptr |
| 1288 |
"{vv{ } }{ll{ }}{ f{ }}{ jj{ }}" |
| 1289 |
format.name$ 't := |
| 1290 |
nameptr #1 > |
| 1291 |
{ |
| 1292 |
" " * |
| 1293 |
namesleft #1 = t "others" = and |
| 1294 |
{ "zzzzz" * } |
| 1295 |
{ t sortify * } |
| 1296 |
if$ |
| 1297 |
} |
| 1298 |
{ t sortify * } |
| 1299 |
if$ |
| 1300 |
nameptr #1 + 'nameptr := |
| 1301 |
namesleft #1 - 'namesleft := |
| 1302 |
} |
| 1303 |
while$ |
| 1304 |
} |
| 1305 |
|
| 1306 |
FUNCTION {sort.format.title} |
| 1307 |
{ 't := |
| 1308 |
"A " #2 |
| 1309 |
"An " #3 |
| 1310 |
"The " #4 t chop.word |
| 1311 |
chop.word |
| 1312 |
chop.word |
| 1313 |
sortify |
| 1314 |
#1 global.max$ substring$ |
| 1315 |
} |
| 1316 |
FUNCTION {author.sort} |
| 1317 |
{ author empty$ |
| 1318 |
{ key empty$ |
| 1319 |
{ "to sort, need author or key in " cite$ * warning$ |
| 1320 |
"" |
| 1321 |
} |
| 1322 |
{ key sortify } |
| 1323 |
if$ |
| 1324 |
} |
| 1325 |
{ author sort.format.names } |
| 1326 |
if$ |
| 1327 |
} |
| 1328 |
FUNCTION {author.editor.sort} |
| 1329 |
{ author empty$ |
| 1330 |
{ editor empty$ |
| 1331 |
{ key empty$ |
| 1332 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 1333 |
"" |
| 1334 |
} |
| 1335 |
{ key sortify } |
| 1336 |
if$ |
| 1337 |
} |
| 1338 |
{ editor sort.format.names } |
| 1339 |
if$ |
| 1340 |
} |
| 1341 |
{ author sort.format.names } |
| 1342 |
if$ |
| 1343 |
} |
| 1344 |
FUNCTION {editor.sort} |
| 1345 |
{ editor empty$ |
| 1346 |
{ key empty$ |
| 1347 |
{ "to sort, need editor or key in " cite$ * warning$ |
| 1348 |
"" |
| 1349 |
} |
| 1350 |
{ key sortify } |
| 1351 |
if$ |
| 1352 |
} |
| 1353 |
{ editor sort.format.names } |
| 1354 |
if$ |
| 1355 |
} |
| 1356 |
FUNCTION {presort} |
| 1357 |
{ calc.label |
| 1358 |
label sortify |
| 1359 |
" " |
| 1360 |
* |
| 1361 |
type$ "book" = |
| 1362 |
type$ "inbook" = |
| 1363 |
or |
| 1364 |
'author.editor.sort |
| 1365 |
{ type$ "proceedings" = |
| 1366 |
'editor.sort |
| 1367 |
'author.sort |
| 1368 |
if$ |
| 1369 |
} |
| 1370 |
if$ |
| 1371 |
#1 entry.max$ substring$ |
| 1372 |
'sort.label := |
| 1373 |
sort.label |
| 1374 |
* |
| 1375 |
" " |
| 1376 |
* |
| 1377 |
title field.or.null |
| 1378 |
sort.format.title |
| 1379 |
* |
| 1380 |
#1 entry.max$ substring$ |
| 1381 |
'sort.key$ := |
| 1382 |
} |
| 1383 |
|
| 1384 |
ITERATE {presort} |
| 1385 |
SORT |
| 1386 |
STRINGS { last.label next.extra } |
| 1387 |
INTEGERS { last.extra.num number.label } |
| 1388 |
FUNCTION {initialize.extra.label.stuff} |
| 1389 |
{ #0 int.to.chr$ 'last.label := |
| 1390 |
"" 'next.extra := |
| 1391 |
#0 'last.extra.num := |
| 1392 |
#0 'number.label := |
| 1393 |
} |
| 1394 |
FUNCTION {forward.pass} |
| 1395 |
{ last.label label = |
| 1396 |
{ last.extra.num #1 + 'last.extra.num := |
| 1397 |
last.extra.num int.to.chr$ 'extra.label := |
| 1398 |
} |
| 1399 |
{ "a" chr.to.int$ 'last.extra.num := |
| 1400 |
"" 'extra.label := |
| 1401 |
label 'last.label := |
| 1402 |
} |
| 1403 |
if$ |
| 1404 |
number.label #1 + 'number.label := |
| 1405 |
} |
| 1406 |
FUNCTION {reverse.pass} |
| 1407 |
{ next.extra "b" = |
| 1408 |
{ "a" 'extra.label := } |
| 1409 |
'skip$ |
| 1410 |
if$ |
| 1411 |
extra.label 'next.extra := |
| 1412 |
extra.label |
| 1413 |
duplicate$ empty$ |
| 1414 |
'skip$ |
| 1415 |
{ "{\natexlab{" swap$ * "}}" * } |
| 1416 |
if$ |
| 1417 |
'extra.label := |
| 1418 |
label extra.label * 'label := |
| 1419 |
} |
| 1420 |
EXECUTE {initialize.extra.label.stuff} |
| 1421 |
ITERATE {forward.pass} |
| 1422 |
REVERSE {reverse.pass} |
| 1423 |
FUNCTION {bib.sort.order} |
| 1424 |
{ sort.label |
| 1425 |
" " |
| 1426 |
* |
| 1427 |
year field.or.null sortify |
| 1428 |
* |
| 1429 |
" " |
| 1430 |
* |
| 1431 |
title field.or.null |
| 1432 |
sort.format.title |
| 1433 |
* |
| 1434 |
#1 entry.max$ substring$ |
| 1435 |
'sort.key$ := |
| 1436 |
} |
| 1437 |
ITERATE {bib.sort.order} |
| 1438 |
SORT |
| 1439 |
FUNCTION {begin.bib} |
| 1440 |
{ preamble$ empty$ |
| 1441 |
'skip$ |
| 1442 |
{ preamble$ write$ newline$ } |
| 1443 |
if$ |
| 1444 |
"\begin{thebibliography}{" number.label int.to.str$ * "}" * |
| 1445 |
write$ newline$ |
| 1446 |
"\providecommand{\natexlab}[1]{#1}" |
| 1447 |
write$ newline$ |
| 1448 |
} |
| 1449 |
EXECUTE {begin.bib} |
| 1450 |
EXECUTE {init.state.consts} |
| 1451 |
ITERATE {call.type$} |
| 1452 |
FUNCTION {end.bib} |
| 1453 |
{ newline$ |
| 1454 |
"\end{thebibliography}" write$ newline$ |
| 1455 |
} |
| 1456 |
EXECUTE {end.bib} |
| 1457 |
%% End of customized bst file |
| 1458 |
%% |
| 1459 |
%% End of file `worlddev.bst'. |