| 1 |
%% File: `bestpapers.bst' |
| 2 |
%% |
| 3 |
%% Based on unsrtnat.bst |
| 4 |
%% |
| 5 |
%% This file is in the public domain, see |
| 6 |
%% https://creativecommons.org/publicdomain/zero/1.0/legalcode |
| 7 |
%% |
| 8 |
%% UNSRTNAT COPYRIGHT STATEMENT |
| 9 |
%% [Not applicable here since the name is changed but preserved |
| 10 |
%% for completeness] |
| 11 |
%% File: `unsrtnat.bst' |
| 12 |
%% A modification of `unsrt.bst' for use with natbib package |
| 13 |
%% |
| 14 |
%% Copyright 1993-2007 Patrick W Daly |
| 15 |
%% Max-Planck-Institut f\"ur Sonnensystemforschung |
| 16 |
%% Max-Planck-Str. 2 |
| 17 |
%% D-37191 Katlenburg-Lindau |
| 18 |
%% Germany |
| 19 |
%% E-mail: [email protected] |
| 20 |
%% |
| 21 |
%% This program can be redistributed and/or modified under the terms |
| 22 |
%% of the LaTeX Project Public License Distributed from CTAN |
| 23 |
%% archives in directory macros/latex/base/lppl.txt; either |
| 24 |
%% version 1 of the License, or any later version. |
| 25 |
%% |
| 26 |
%% END UNSRTNAT COPYRIGHT STATEMENT |
| 27 |
ENTRY |
| 28 |
{ address |
| 29 |
author |
| 30 |
booktitle |
| 31 |
chapter |
| 32 |
doi |
| 33 |
eid |
| 34 |
edition |
| 35 |
editor |
| 36 |
howpublished |
| 37 |
institution |
| 38 |
isbn |
| 39 |
issn |
| 40 |
journal |
| 41 |
key |
| 42 |
max.best.papers |
| 43 |
month |
| 44 |
note |
| 45 |
number |
| 46 |
organization |
| 47 |
pages |
| 48 |
publisher |
| 49 |
school |
| 50 |
score |
| 51 |
series |
| 52 |
title |
| 53 |
type |
| 54 |
url |
| 55 |
volume |
| 56 |
year |
| 57 |
} |
| 58 |
{} |
| 59 |
{ label extra.label sort.label short.list } |
| 60 |
|
| 61 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 62 |
|
| 63 |
INTEGERS {num.seq printed.all } |
| 64 |
|
| 65 |
FUNCTION {init.state.consts} |
| 66 |
{ #0 'before.all := |
| 67 |
#1 'mid.sentence := |
| 68 |
#2 'after.sentence := |
| 69 |
#3 'after.block := |
| 70 |
#0 'num.seq := |
| 71 |
#0 'printed.all := |
| 72 |
} |
| 73 |
|
| 74 |
STRINGS { s t final.max.best.papers} |
| 75 |
|
| 76 |
FUNCTION {output.nonnull} |
| 77 |
{ 's := |
| 78 |
output.state mid.sentence = |
| 79 |
{ ", " * write$ } |
| 80 |
{ output.state after.block = |
| 81 |
{ add.period$ write$ |
| 82 |
newline$ |
| 83 |
"\newblock " write$ |
| 84 |
} |
| 85 |
{ output.state before.all = |
| 86 |
'write$ |
| 87 |
{ add.period$ " " * write$ } |
| 88 |
if$ |
| 89 |
} |
| 90 |
if$ |
| 91 |
mid.sentence 'output.state := |
| 92 |
} |
| 93 |
if$ |
| 94 |
s |
| 95 |
} |
| 96 |
|
| 97 |
FUNCTION {output} |
| 98 |
{ duplicate$ empty$ |
| 99 |
'pop$ |
| 100 |
'output.nonnull |
| 101 |
if$ |
| 102 |
} |
| 103 |
|
| 104 |
FUNCTION {output.check} |
| 105 |
{ 't := |
| 106 |
duplicate$ empty$ |
| 107 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 108 |
'output.nonnull |
| 109 |
if$ |
| 110 |
} |
| 111 |
|
| 112 |
FUNCTION {fin.entry} |
| 113 |
{ add.period$ |
| 114 |
write$ |
| 115 |
newline$ |
| 116 |
} |
| 117 |
|
| 118 |
FUNCTION {new.block} |
| 119 |
{ output.state before.all = |
| 120 |
'skip$ |
| 121 |
{ after.block 'output.state := } |
| 122 |
if$ |
| 123 |
} |
| 124 |
|
| 125 |
FUNCTION {new.sentence} |
| 126 |
{ output.state after.block = |
| 127 |
'skip$ |
| 128 |
{ output.state before.all = |
| 129 |
'skip$ |
| 130 |
{ after.sentence 'output.state := } |
| 131 |
if$ |
| 132 |
} |
| 133 |
if$ |
| 134 |
} |
| 135 |
|
| 136 |
FUNCTION {not} |
| 137 |
{ { #0 } |
| 138 |
{ #1 } |
| 139 |
if$ |
| 140 |
} |
| 141 |
|
| 142 |
FUNCTION {and} |
| 143 |
{ 'skip$ |
| 144 |
{ pop$ #0 } |
| 145 |
if$ |
| 146 |
} |
| 147 |
|
| 148 |
FUNCTION {or} |
| 149 |
{ { pop$ #1 } |
| 150 |
'skip$ |
| 151 |
if$ |
| 152 |
} |
| 153 |
|
| 154 |
FUNCTION {new.block.checka} |
| 155 |
{ empty$ |
| 156 |
'skip$ |
| 157 |
'new.block |
| 158 |
if$ |
| 159 |
} |
| 160 |
|
| 161 |
FUNCTION {new.block.checkb} |
| 162 |
{ empty$ |
| 163 |
swap$ empty$ |
| 164 |
and |
| 165 |
'skip$ |
| 166 |
'new.block |
| 167 |
if$ |
| 168 |
} |
| 169 |
|
| 170 |
FUNCTION {new.sentence.checka} |
| 171 |
{ empty$ |
| 172 |
'skip$ |
| 173 |
'new.sentence |
| 174 |
if$ |
| 175 |
} |
| 176 |
|
| 177 |
FUNCTION {new.sentence.checkb} |
| 178 |
{ empty$ |
| 179 |
swap$ empty$ |
| 180 |
and |
| 181 |
'skip$ |
| 182 |
'new.sentence |
| 183 |
if$ |
| 184 |
} |
| 185 |
|
| 186 |
FUNCTION {field.or.null} |
| 187 |
{ duplicate$ empty$ |
| 188 |
{ pop$ "" } |
| 189 |
'skip$ |
| 190 |
if$ |
| 191 |
} |
| 192 |
|
| 193 |
FUNCTION {emphasize} |
| 194 |
{ duplicate$ empty$ |
| 195 |
{ pop$ "" } |
| 196 |
{ "\emph{" swap$ * "}" * } |
| 197 |
if$ |
| 198 |
} |
| 199 |
|
| 200 |
INTEGERS { nameptr namesleft numnames } |
| 201 |
|
| 202 |
FUNCTION {format.names} |
| 203 |
{ 's := |
| 204 |
#1 'nameptr := |
| 205 |
s num.names$ 'numnames := |
| 206 |
numnames 'namesleft := |
| 207 |
{ namesleft #0 > } |
| 208 |
{ s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := |
| 209 |
nameptr #1 > |
| 210 |
{ namesleft #1 > |
| 211 |
{ ", " * t * } |
| 212 |
{ numnames #2 > |
| 213 |
{ "," * } |
| 214 |
'skip$ |
| 215 |
if$ |
| 216 |
t "others" = |
| 217 |
{ " et~al." * } |
| 218 |
{ " and " * t * } |
| 219 |
if$ |
| 220 |
} |
| 221 |
if$ |
| 222 |
} |
| 223 |
't |
| 224 |
if$ |
| 225 |
nameptr #1 + 'nameptr := |
| 226 |
namesleft #1 - 'namesleft := |
| 227 |
} |
| 228 |
while$ |
| 229 |
} |
| 230 |
|
| 231 |
FUNCTION {format.key} |
| 232 |
{ empty$ |
| 233 |
{ key field.or.null } |
| 234 |
{ "" } |
| 235 |
if$ |
| 236 |
} |
| 237 |
|
| 238 |
FUNCTION {format.authors} |
| 239 |
{ author empty$ |
| 240 |
{ "" } |
| 241 |
{ author format.names } |
| 242 |
if$ |
| 243 |
} |
| 244 |
|
| 245 |
FUNCTION {format.editors} |
| 246 |
{ editor empty$ |
| 247 |
{ "" } |
| 248 |
{ editor format.names |
| 249 |
editor num.names$ #1 > |
| 250 |
{ ", editors" * } |
| 251 |
{ ", editor" * } |
| 252 |
if$ |
| 253 |
} |
| 254 |
if$ |
| 255 |
} |
| 256 |
|
| 257 |
FUNCTION {format.isbn} |
| 258 |
{ isbn empty$ |
| 259 |
{ "" } |
| 260 |
{ new.block "ISBN " isbn * } |
| 261 |
if$ |
| 262 |
} |
| 263 |
|
| 264 |
FUNCTION {format.issn} |
| 265 |
{ issn empty$ |
| 266 |
{ "" } |
| 267 |
{ new.block "ISSN " issn * } |
| 268 |
if$ |
| 269 |
} |
| 270 |
|
| 271 |
FUNCTION {format.url} |
| 272 |
{ url empty$ |
| 273 |
{ "" } |
| 274 |
{ new.block "URL \url{" url * "}" * } |
| 275 |
if$ |
| 276 |
} |
| 277 |
|
| 278 |
FUNCTION {format.doi} |
| 279 |
{ doi empty$ |
| 280 |
{ "" } |
| 281 |
{ new.block "\doi{" doi * "}" * } |
| 282 |
if$ |
| 283 |
} |
| 284 |
|
| 285 |
FUNCTION {format.title} |
| 286 |
{ title empty$ |
| 287 |
{ "" } |
| 288 |
{ title "t" change.case$ } |
| 289 |
if$ |
| 290 |
} |
| 291 |
|
| 292 |
FUNCTION {format.full.names} |
| 293 |
{'s := |
| 294 |
#1 'nameptr := |
| 295 |
s num.names$ 'numnames := |
| 296 |
numnames 'namesleft := |
| 297 |
{ namesleft #0 > } |
| 298 |
{ s nameptr |
| 299 |
"{vv~}{ll}" format.name$ 't := |
| 300 |
nameptr #1 > |
| 301 |
{ |
| 302 |
namesleft #1 > |
| 303 |
{ ", " * t * } |
| 304 |
{ |
| 305 |
numnames #2 > |
| 306 |
{ "," * } |
| 307 |
'skip$ |
| 308 |
if$ |
| 309 |
t "others" = |
| 310 |
{ " et~al." * } |
| 311 |
{ " and " * t * } |
| 312 |
if$ |
| 313 |
} |
| 314 |
if$ |
| 315 |
} |
| 316 |
't |
| 317 |
if$ |
| 318 |
nameptr #1 + 'nameptr := |
| 319 |
namesleft #1 - 'namesleft := |
| 320 |
} |
| 321 |
while$ |
| 322 |
} |
| 323 |
|
| 324 |
FUNCTION {author.editor.full} |
| 325 |
{ author empty$ |
| 326 |
{ editor empty$ |
| 327 |
{ "" } |
| 328 |
{ editor format.full.names } |
| 329 |
if$ |
| 330 |
} |
| 331 |
{ author format.full.names } |
| 332 |
if$ |
| 333 |
} |
| 334 |
|
| 335 |
FUNCTION {author.full} |
| 336 |
{ author empty$ |
| 337 |
{ "" } |
| 338 |
{ author format.full.names } |
| 339 |
if$ |
| 340 |
} |
| 341 |
|
| 342 |
FUNCTION {editor.full} |
| 343 |
{ editor empty$ |
| 344 |
{ "" } |
| 345 |
{ editor format.full.names } |
| 346 |
if$ |
| 347 |
} |
| 348 |
|
| 349 |
FUNCTION {make.full.names} |
| 350 |
{ type$ "book" = |
| 351 |
type$ "inbook" = |
| 352 |
or |
| 353 |
'author.editor.full |
| 354 |
{ type$ "proceedings" = |
| 355 |
'editor.full |
| 356 |
'author.full |
| 357 |
if$ |
| 358 |
} |
| 359 |
if$ |
| 360 |
} |
| 361 |
|
| 362 |
FUNCTION {output.bibitem} |
| 363 |
{ newline$ |
| 364 |
"\bibitem[" write$ |
| 365 |
label write$ |
| 366 |
")" make.full.names duplicate$ short.list = |
| 367 |
{ pop$ } |
| 368 |
{ * } |
| 369 |
if$ |
| 370 |
"]{" * write$ |
| 371 |
cite$ write$ |
| 372 |
"}" write$ |
| 373 |
newline$ |
| 374 |
"" |
| 375 |
before.all 'output.state := |
| 376 |
} |
| 377 |
|
| 378 |
FUNCTION {n.dashify} |
| 379 |
{ 't := |
| 380 |
"" |
| 381 |
{ t empty$ not } |
| 382 |
{ t #1 #1 substring$ "-" = |
| 383 |
{ t #1 #2 substring$ "--" = not |
| 384 |
{ "--" * |
| 385 |
t #2 global.max$ substring$ 't := |
| 386 |
} |
| 387 |
{ { t #1 #1 substring$ "-" = } |
| 388 |
{ "-" * |
| 389 |
t #2 global.max$ substring$ 't := |
| 390 |
} |
| 391 |
while$ |
| 392 |
} |
| 393 |
if$ |
| 394 |
} |
| 395 |
{ t #1 #1 substring$ * |
| 396 |
t #2 global.max$ substring$ 't := |
| 397 |
} |
| 398 |
if$ |
| 399 |
} |
| 400 |
while$ |
| 401 |
} |
| 402 |
|
| 403 |
FUNCTION {format.date} |
| 404 |
{ year duplicate$ empty$ |
| 405 |
{ "empty year in " cite$ * warning$ |
| 406 |
pop$ "" } |
| 407 |
'skip$ |
| 408 |
if$ |
| 409 |
month empty$ |
| 410 |
'skip$ |
| 411 |
{ month |
| 412 |
" " * swap$ * |
| 413 |
} |
| 414 |
if$ |
| 415 |
extra.label * |
| 416 |
} |
| 417 |
|
| 418 |
FUNCTION {format.btitle} |
| 419 |
{ title emphasize |
| 420 |
} |
| 421 |
|
| 422 |
FUNCTION {tie.or.space.connect} |
| 423 |
{ duplicate$ text.length$ #3 < |
| 424 |
{ "~" } |
| 425 |
{ " " } |
| 426 |
if$ |
| 427 |
swap$ * * |
| 428 |
} |
| 429 |
|
| 430 |
FUNCTION {either.or.check} |
| 431 |
{ empty$ |
| 432 |
'pop$ |
| 433 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 434 |
if$ |
| 435 |
} |
| 436 |
|
| 437 |
FUNCTION {format.bvolume} |
| 438 |
{ volume empty$ |
| 439 |
{ "" } |
| 440 |
{ "volume" volume tie.or.space.connect |
| 441 |
series empty$ |
| 442 |
'skip$ |
| 443 |
{ " of " * series emphasize * } |
| 444 |
if$ |
| 445 |
"volume and number" number either.or.check |
| 446 |
} |
| 447 |
if$ |
| 448 |
} |
| 449 |
|
| 450 |
FUNCTION {format.number.series} |
| 451 |
{ volume empty$ |
| 452 |
{ number empty$ |
| 453 |
{ series field.or.null } |
| 454 |
{ output.state mid.sentence = |
| 455 |
{ "number" } |
| 456 |
{ "Number" } |
| 457 |
if$ |
| 458 |
number tie.or.space.connect |
| 459 |
series empty$ |
| 460 |
{ "there's a number but no series in " cite$ * warning$ } |
| 461 |
{ " in " * series * } |
| 462 |
if$ |
| 463 |
} |
| 464 |
if$ |
| 465 |
} |
| 466 |
{ "" } |
| 467 |
if$ |
| 468 |
} |
| 469 |
|
| 470 |
FUNCTION {format.edition} |
| 471 |
{ edition empty$ |
| 472 |
{ "" } |
| 473 |
{ output.state mid.sentence = |
| 474 |
{ edition "l" change.case$ " edition" * } |
| 475 |
{ edition "t" change.case$ " edition" * } |
| 476 |
if$ |
| 477 |
} |
| 478 |
if$ |
| 479 |
} |
| 480 |
|
| 481 |
INTEGERS { multiresult } |
| 482 |
|
| 483 |
FUNCTION {multi.page.check} |
| 484 |
{ 't := |
| 485 |
#0 'multiresult := |
| 486 |
{ multiresult not |
| 487 |
t empty$ not |
| 488 |
and |
| 489 |
} |
| 490 |
{ t #1 #1 substring$ |
| 491 |
duplicate$ "-" = |
| 492 |
swap$ duplicate$ "," = |
| 493 |
swap$ "+" = |
| 494 |
or or |
| 495 |
{ #1 'multiresult := } |
| 496 |
{ t #2 global.max$ substring$ 't := } |
| 497 |
if$ |
| 498 |
} |
| 499 |
while$ |
| 500 |
multiresult |
| 501 |
} |
| 502 |
|
| 503 |
FUNCTION {format.pages} |
| 504 |
{ pages empty$ |
| 505 |
{ "" } |
| 506 |
{ pages multi.page.check |
| 507 |
{ "pages" pages n.dashify tie.or.space.connect } |
| 508 |
{ "page" pages tie.or.space.connect } |
| 509 |
if$ |
| 510 |
} |
| 511 |
if$ |
| 512 |
} |
| 513 |
|
| 514 |
FUNCTION {format.eid} |
| 515 |
{ eid empty$ |
| 516 |
{ "" } |
| 517 |
{ "art." eid tie.or.space.connect } |
| 518 |
if$ |
| 519 |
} |
| 520 |
|
| 521 |
FUNCTION {format.vol.num.pages} |
| 522 |
{ volume field.or.null |
| 523 |
number empty$ |
| 524 |
'skip$ |
| 525 |
{ "\penalty0 (" number * ")" * * |
| 526 |
volume empty$ |
| 527 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 528 |
'skip$ |
| 529 |
if$ |
| 530 |
} |
| 531 |
if$ |
| 532 |
pages empty$ |
| 533 |
'skip$ |
| 534 |
{ duplicate$ empty$ |
| 535 |
{ pop$ format.pages } |
| 536 |
{ ":\penalty0 " * pages n.dashify * } |
| 537 |
if$ |
| 538 |
} |
| 539 |
if$ |
| 540 |
} |
| 541 |
|
| 542 |
FUNCTION {format.vol.num.eid} |
| 543 |
{ volume field.or.null |
| 544 |
number empty$ |
| 545 |
'skip$ |
| 546 |
{ "\penalty0 (" number * ")" * * |
| 547 |
volume empty$ |
| 548 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 549 |
'skip$ |
| 550 |
if$ |
| 551 |
} |
| 552 |
if$ |
| 553 |
eid empty$ |
| 554 |
'skip$ |
| 555 |
{ duplicate$ empty$ |
| 556 |
{ pop$ format.eid } |
| 557 |
{ ":\penalty0 " * eid * } |
| 558 |
if$ |
| 559 |
} |
| 560 |
if$ |
| 561 |
} |
| 562 |
|
| 563 |
FUNCTION {format.chapter.pages} |
| 564 |
{ chapter empty$ |
| 565 |
'format.pages |
| 566 |
{ type empty$ |
| 567 |
{ "chapter" } |
| 568 |
{ type "l" change.case$ } |
| 569 |
if$ |
| 570 |
chapter tie.or.space.connect |
| 571 |
pages empty$ |
| 572 |
'skip$ |
| 573 |
{ ", " * format.pages * } |
| 574 |
if$ |
| 575 |
} |
| 576 |
if$ |
| 577 |
} |
| 578 |
|
| 579 |
FUNCTION {format.in.ed.booktitle} |
| 580 |
{ booktitle empty$ |
| 581 |
{ "" } |
| 582 |
{ editor empty$ |
| 583 |
{ "In " booktitle emphasize * } |
| 584 |
{ "In " format.editors * ", " * booktitle emphasize * } |
| 585 |
if$ |
| 586 |
} |
| 587 |
if$ |
| 588 |
} |
| 589 |
|
| 590 |
FUNCTION {empty.misc.check} |
| 591 |
{ author empty$ title empty$ howpublished empty$ |
| 592 |
month empty$ year empty$ note empty$ |
| 593 |
and and and and and |
| 594 |
key empty$ not and |
| 595 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 596 |
'skip$ |
| 597 |
if$ |
| 598 |
} |
| 599 |
|
| 600 |
FUNCTION {format.thesis.type} |
| 601 |
{ type empty$ |
| 602 |
'skip$ |
| 603 |
{ pop$ |
| 604 |
type "t" change.case$ |
| 605 |
} |
| 606 |
if$ |
| 607 |
} |
| 608 |
|
| 609 |
FUNCTION {format.tr.number} |
| 610 |
{ type empty$ |
| 611 |
{ "Technical Report" } |
| 612 |
'type |
| 613 |
if$ |
| 614 |
number empty$ |
| 615 |
{ "t" change.case$ } |
| 616 |
{ number tie.or.space.connect } |
| 617 |
if$ |
| 618 |
} |
| 619 |
|
| 620 |
FUNCTION {format.article.crossref} |
| 621 |
{ key empty$ |
| 622 |
{ journal empty$ |
| 623 |
{ "need key or journal for " cite$ * " to crossref " * crossref * |
| 624 |
warning$ |
| 625 |
"" |
| 626 |
} |
| 627 |
{ "In \emph{" journal * "}" * } |
| 628 |
if$ |
| 629 |
} |
| 630 |
{ "In " } |
| 631 |
if$ |
| 632 |
" \citet{" * crossref * "}" * |
| 633 |
} |
| 634 |
|
| 635 |
FUNCTION {format.book.crossref} |
| 636 |
{ volume empty$ |
| 637 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 638 |
"In " |
| 639 |
} |
| 640 |
{ "Volume" volume tie.or.space.connect |
| 641 |
" of " * |
| 642 |
} |
| 643 |
if$ |
| 644 |
editor empty$ |
| 645 |
editor field.or.null author field.or.null = |
| 646 |
or |
| 647 |
{ key empty$ |
| 648 |
{ series empty$ |
| 649 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 650 |
crossref * warning$ |
| 651 |
"" * |
| 652 |
} |
| 653 |
{ "\emph{" * series * "}" * } |
| 654 |
if$ |
| 655 |
} |
| 656 |
'skip$ |
| 657 |
if$ |
| 658 |
} |
| 659 |
'skip$ |
| 660 |
if$ |
| 661 |
" \citet{" * crossref * "}" * |
| 662 |
} |
| 663 |
|
| 664 |
FUNCTION {format.incoll.inproc.crossref} |
| 665 |
{ editor empty$ |
| 666 |
editor field.or.null author field.or.null = |
| 667 |
or |
| 668 |
{ key empty$ |
| 669 |
{ booktitle empty$ |
| 670 |
{ "need editor, key, or booktitle for " cite$ * " to crossref " * |
| 671 |
crossref * warning$ |
| 672 |
"" |
| 673 |
} |
| 674 |
{ "In \emph{" booktitle * "}" * } |
| 675 |
if$ |
| 676 |
} |
| 677 |
{ "In " } |
| 678 |
if$ |
| 679 |
} |
| 680 |
{ "In " } |
| 681 |
if$ |
| 682 |
" \citet{" * crossref * "}" * |
| 683 |
} |
| 684 |
|
| 685 |
FUNCTION {article} |
| 686 |
{ output.bibitem |
| 687 |
format.authors "author" output.check |
| 688 |
author format.key output |
| 689 |
new.block |
| 690 |
format.title "title" output.check |
| 691 |
new.block |
| 692 |
crossref missing$ |
| 693 |
{ journal emphasize "journal" output.check |
| 694 |
eid empty$ |
| 695 |
{ format.vol.num.pages output } |
| 696 |
{ format.vol.num.eid output } |
| 697 |
if$ |
| 698 |
format.date "year" output.check |
| 699 |
} |
| 700 |
{ format.article.crossref output.nonnull |
| 701 |
eid empty$ |
| 702 |
{ format.pages output } |
| 703 |
{ format.eid output } |
| 704 |
if$ |
| 705 |
} |
| 706 |
if$ |
| 707 |
format.issn output |
| 708 |
format.doi output |
| 709 |
format.url output |
| 710 |
new.block |
| 711 |
note output |
| 712 |
fin.entry |
| 713 |
} |
| 714 |
|
| 715 |
FUNCTION {book} |
| 716 |
{ output.bibitem |
| 717 |
author empty$ |
| 718 |
{ format.editors "author and editor" output.check |
| 719 |
editor format.key output |
| 720 |
} |
| 721 |
{ format.authors output.nonnull |
| 722 |
crossref missing$ |
| 723 |
{ "author and editor" editor either.or.check } |
| 724 |
'skip$ |
| 725 |
if$ |
| 726 |
} |
| 727 |
if$ |
| 728 |
new.block |
| 729 |
format.btitle "title" output.check |
| 730 |
crossref missing$ |
| 731 |
{ format.bvolume output |
| 732 |
new.block |
| 733 |
format.number.series output |
| 734 |
new.sentence |
| 735 |
publisher "publisher" output.check |
| 736 |
address output |
| 737 |
} |
| 738 |
{ new.block |
| 739 |
format.book.crossref output.nonnull |
| 740 |
} |
| 741 |
if$ |
| 742 |
format.edition output |
| 743 |
format.date "year" output.check |
| 744 |
format.isbn output |
| 745 |
format.doi output |
| 746 |
format.url output |
| 747 |
new.block |
| 748 |
note output |
| 749 |
fin.entry |
| 750 |
} |
| 751 |
|
| 752 |
FUNCTION {booklet} |
| 753 |
{ output.bibitem |
| 754 |
format.authors output |
| 755 |
author format.key output |
| 756 |
new.block |
| 757 |
format.title "title" output.check |
| 758 |
howpublished address new.block.checkb |
| 759 |
howpublished output |
| 760 |
address output |
| 761 |
format.date output |
| 762 |
format.isbn output |
| 763 |
format.doi output |
| 764 |
format.url output |
| 765 |
new.block |
| 766 |
note output |
| 767 |
fin.entry |
| 768 |
} |
| 769 |
|
| 770 |
FUNCTION {inbook} |
| 771 |
{ output.bibitem |
| 772 |
author empty$ |
| 773 |
{ format.editors "author and editor" output.check |
| 774 |
editor format.key output |
| 775 |
} |
| 776 |
{ format.authors output.nonnull |
| 777 |
crossref missing$ |
| 778 |
{ "author and editor" editor either.or.check } |
| 779 |
'skip$ |
| 780 |
if$ |
| 781 |
} |
| 782 |
if$ |
| 783 |
new.block |
| 784 |
format.btitle "title" output.check |
| 785 |
crossref missing$ |
| 786 |
{ format.bvolume output |
| 787 |
format.chapter.pages "chapter and pages" output.check |
| 788 |
new.block |
| 789 |
format.number.series output |
| 790 |
new.sentence |
| 791 |
publisher "publisher" output.check |
| 792 |
address output |
| 793 |
} |
| 794 |
{ format.chapter.pages "chapter and pages" output.check |
| 795 |
new.block |
| 796 |
format.book.crossref output.nonnull |
| 797 |
} |
| 798 |
if$ |
| 799 |
format.edition output |
| 800 |
format.date "year" output.check |
| 801 |
format.isbn output |
| 802 |
format.doi output |
| 803 |
format.url output |
| 804 |
new.block |
| 805 |
note output |
| 806 |
fin.entry |
| 807 |
} |
| 808 |
|
| 809 |
FUNCTION {incollection} |
| 810 |
{ output.bibitem |
| 811 |
format.authors "author" output.check |
| 812 |
author format.key output |
| 813 |
new.block |
| 814 |
format.title "title" output.check |
| 815 |
new.block |
| 816 |
crossref missing$ |
| 817 |
{ format.in.ed.booktitle "booktitle" output.check |
| 818 |
format.bvolume output |
| 819 |
format.number.series output |
| 820 |
format.chapter.pages output |
| 821 |
new.sentence |
| 822 |
publisher "publisher" output.check |
| 823 |
address output |
| 824 |
format.edition output |
| 825 |
format.date "year" output.check |
| 826 |
} |
| 827 |
{ format.incoll.inproc.crossref output.nonnull |
| 828 |
format.chapter.pages output |
| 829 |
} |
| 830 |
if$ |
| 831 |
format.isbn output |
| 832 |
format.doi output |
| 833 |
format.url output |
| 834 |
new.block |
| 835 |
note output |
| 836 |
fin.entry |
| 837 |
} |
| 838 |
|
| 839 |
FUNCTION {inproceedings} |
| 840 |
{ output.bibitem |
| 841 |
format.authors "author" output.check |
| 842 |
author format.key output |
| 843 |
new.block |
| 844 |
format.title "title" output.check |
| 845 |
new.block |
| 846 |
crossref missing$ |
| 847 |
{ format.in.ed.booktitle "booktitle" output.check |
| 848 |
format.bvolume output |
| 849 |
format.number.series output |
| 850 |
format.pages output |
| 851 |
address empty$ |
| 852 |
{ organization publisher new.sentence.checkb |
| 853 |
organization output |
| 854 |
publisher output |
| 855 |
format.date "year" output.check |
| 856 |
} |
| 857 |
{ address output.nonnull |
| 858 |
format.date "year" output.check |
| 859 |
new.sentence |
| 860 |
organization output |
| 861 |
publisher output |
| 862 |
} |
| 863 |
if$ |
| 864 |
} |
| 865 |
{ format.incoll.inproc.crossref output.nonnull |
| 866 |
format.pages output |
| 867 |
} |
| 868 |
if$ |
| 869 |
format.isbn output |
| 870 |
format.doi output |
| 871 |
format.url output |
| 872 |
new.block |
| 873 |
note output |
| 874 |
fin.entry |
| 875 |
} |
| 876 |
|
| 877 |
FUNCTION {conference} { inproceedings } |
| 878 |
|
| 879 |
FUNCTION {manual} |
| 880 |
{ output.bibitem |
| 881 |
format.authors output |
| 882 |
author format.key output |
| 883 |
new.block |
| 884 |
format.btitle "title" output.check |
| 885 |
organization address new.block.checkb |
| 886 |
organization output |
| 887 |
address output |
| 888 |
format.edition output |
| 889 |
format.date output |
| 890 |
format.url output |
| 891 |
new.block |
| 892 |
note output |
| 893 |
fin.entry |
| 894 |
} |
| 895 |
|
| 896 |
FUNCTION {mastersthesis} |
| 897 |
{ output.bibitem |
| 898 |
format.authors "author" output.check |
| 899 |
author format.key output |
| 900 |
new.block |
| 901 |
format.title "title" output.check |
| 902 |
new.block |
| 903 |
"Master's thesis" format.thesis.type output.nonnull |
| 904 |
school "school" output.check |
| 905 |
address output |
| 906 |
format.date "year" output.check |
| 907 |
format.url output |
| 908 |
new.block |
| 909 |
note output |
| 910 |
fin.entry |
| 911 |
} |
| 912 |
|
| 913 |
FUNCTION {misc} |
| 914 |
{ output.bibitem |
| 915 |
format.authors output |
| 916 |
author format.key output |
| 917 |
title howpublished new.block.checkb |
| 918 |
format.title output |
| 919 |
howpublished new.block.checka |
| 920 |
howpublished output |
| 921 |
format.date output |
| 922 |
format.issn output |
| 923 |
format.url output |
| 924 |
new.block |
| 925 |
note output |
| 926 |
fin.entry |
| 927 |
empty.misc.check |
| 928 |
} |
| 929 |
|
| 930 |
FUNCTION {phdthesis} |
| 931 |
{ output.bibitem |
| 932 |
format.authors "author" output.check |
| 933 |
author format.key output |
| 934 |
new.block |
| 935 |
format.btitle "title" output.check |
| 936 |
new.block |
| 937 |
"PhD thesis" format.thesis.type output.nonnull |
| 938 |
school "school" output.check |
| 939 |
address output |
| 940 |
format.date "year" output.check |
| 941 |
format.url output |
| 942 |
new.block |
| 943 |
note output |
| 944 |
fin.entry |
| 945 |
} |
| 946 |
|
| 947 |
FUNCTION {proceedings} |
| 948 |
{ output.bibitem |
| 949 |
format.editors output |
| 950 |
editor format.key output |
| 951 |
new.block |
| 952 |
format.btitle "title" output.check |
| 953 |
format.bvolume output |
| 954 |
format.number.series output |
| 955 |
address output |
| 956 |
format.date "year" output.check |
| 957 |
new.sentence |
| 958 |
organization output |
| 959 |
publisher output |
| 960 |
format.isbn output |
| 961 |
format.doi output |
| 962 |
format.url output |
| 963 |
new.block |
| 964 |
note output |
| 965 |
fin.entry |
| 966 |
} |
| 967 |
|
| 968 |
FUNCTION {techreport} |
| 969 |
{ output.bibitem |
| 970 |
format.authors "author" output.check |
| 971 |
author format.key output |
| 972 |
new.block |
| 973 |
format.title "title" output.check |
| 974 |
new.block |
| 975 |
format.tr.number output.nonnull |
| 976 |
institution "institution" output.check |
| 977 |
address output |
| 978 |
format.date "year" output.check |
| 979 |
format.url output |
| 980 |
new.block |
| 981 |
note output |
| 982 |
fin.entry |
| 983 |
} |
| 984 |
|
| 985 |
FUNCTION {unpublished} |
| 986 |
{ output.bibitem |
| 987 |
format.authors "author" output.check |
| 988 |
author format.key output |
| 989 |
new.block |
| 990 |
format.title "title" output.check |
| 991 |
new.block |
| 992 |
note "note" output.check |
| 993 |
format.date output |
| 994 |
format.url output |
| 995 |
fin.entry |
| 996 |
} |
| 997 |
|
| 998 |
FUNCTION {default.type} { misc } |
| 999 |
|
| 1000 |
FUNCTION {setup} {} |
| 1001 |
|
| 1002 |
MACRO {jan} {"January"} |
| 1003 |
|
| 1004 |
MACRO {feb} {"February"} |
| 1005 |
|
| 1006 |
MACRO {mar} {"March"} |
| 1007 |
|
| 1008 |
MACRO {apr} {"April"} |
| 1009 |
|
| 1010 |
MACRO {may} {"May"} |
| 1011 |
|
| 1012 |
MACRO {jun} {"June"} |
| 1013 |
|
| 1014 |
MACRO {jul} {"July"} |
| 1015 |
|
| 1016 |
MACRO {aug} {"August"} |
| 1017 |
|
| 1018 |
MACRO {sep} {"September"} |
| 1019 |
|
| 1020 |
MACRO {oct} {"October"} |
| 1021 |
|
| 1022 |
MACRO {nov} {"November"} |
| 1023 |
|
| 1024 |
MACRO {dec} {"December"} |
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 1029 |
|
| 1030 |
MACRO {acta} {"Acta Informatica"} |
| 1031 |
|
| 1032 |
MACRO {cacm} {"Communications of the ACM"} |
| 1033 |
|
| 1034 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 1035 |
|
| 1036 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 1037 |
|
| 1038 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 1039 |
|
| 1040 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 1041 |
|
| 1042 |
MACRO {ieeetcad} |
| 1043 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 1044 |
|
| 1045 |
MACRO {ipl} {"Information Processing Letters"} |
| 1046 |
|
| 1047 |
MACRO {jacm} {"Journal of the ACM"} |
| 1048 |
|
| 1049 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 1050 |
|
| 1051 |
MACRO {scp} {"Science of Computer Programming"} |
| 1052 |
|
| 1053 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 1054 |
|
| 1055 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 1056 |
|
| 1057 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 1058 |
|
| 1059 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 1060 |
|
| 1061 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 1062 |
|
| 1063 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 1064 |
|
| 1065 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 1066 |
|
| 1067 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 1068 |
|
| 1069 |
|
| 1070 |
READ |
| 1071 |
|
| 1072 |
FUNCTION {sortify} |
| 1073 |
{ purify$ |
| 1074 |
"l" change.case$ |
| 1075 |
} |
| 1076 |
|
| 1077 |
INTEGERS { len } |
| 1078 |
|
| 1079 |
FUNCTION {chop.word} |
| 1080 |
{ 's := |
| 1081 |
'len := |
| 1082 |
s #1 len substring$ = |
| 1083 |
{ s len #1 + global.max$ substring$ } |
| 1084 |
's |
| 1085 |
if$ |
| 1086 |
} |
| 1087 |
|
| 1088 |
FUNCTION {format.lab.names} |
| 1089 |
{ 's := |
| 1090 |
s #1 "{vv~}{ll}" format.name$ |
| 1091 |
s num.names$ duplicate$ |
| 1092 |
#2 > |
| 1093 |
{ pop$ " et~al." * } |
| 1094 |
{ #2 < |
| 1095 |
'skip$ |
| 1096 |
{ s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 1097 |
{ " et~al." * } |
| 1098 |
{ " and " * s #2 "{vv~}{ll}" format.name$ * } |
| 1099 |
if$ |
| 1100 |
} |
| 1101 |
if$ |
| 1102 |
} |
| 1103 |
if$ |
| 1104 |
} |
| 1105 |
|
| 1106 |
FUNCTION {author.key.label} |
| 1107 |
{ author empty$ |
| 1108 |
{ key empty$ |
| 1109 |
{ cite$ #1 #3 substring$ } |
| 1110 |
'key |
| 1111 |
if$ |
| 1112 |
} |
| 1113 |
{ author format.lab.names } |
| 1114 |
if$ |
| 1115 |
} |
| 1116 |
|
| 1117 |
FUNCTION {author.editor.key.label} |
| 1118 |
{ author empty$ |
| 1119 |
{ editor empty$ |
| 1120 |
{ key empty$ |
| 1121 |
{ cite$ #1 #3 substring$ } |
| 1122 |
'key |
| 1123 |
if$ |
| 1124 |
} |
| 1125 |
{ editor format.lab.names } |
| 1126 |
if$ |
| 1127 |
} |
| 1128 |
{ author format.lab.names } |
| 1129 |
if$ |
| 1130 |
} |
| 1131 |
|
| 1132 |
FUNCTION {author.key.organization.label} |
| 1133 |
{ author empty$ |
| 1134 |
{ key empty$ |
| 1135 |
{ organization empty$ |
| 1136 |
{ cite$ #1 #3 substring$ } |
| 1137 |
{ "The " #4 organization chop.word #3 text.prefix$ } |
| 1138 |
if$ |
| 1139 |
} |
| 1140 |
'key |
| 1141 |
if$ |
| 1142 |
} |
| 1143 |
{ author format.lab.names } |
| 1144 |
if$ |
| 1145 |
} |
| 1146 |
|
| 1147 |
FUNCTION {editor.key.organization.label} |
| 1148 |
{ editor empty$ |
| 1149 |
{ key empty$ |
| 1150 |
{ organization empty$ |
| 1151 |
{ cite$ #1 #3 substring$ } |
| 1152 |
{ "The " #4 organization chop.word #3 text.prefix$ } |
| 1153 |
if$ |
| 1154 |
} |
| 1155 |
'key |
| 1156 |
if$ |
| 1157 |
} |
| 1158 |
{ editor format.lab.names } |
| 1159 |
if$ |
| 1160 |
} |
| 1161 |
|
| 1162 |
FUNCTION {calc.short.authors} |
| 1163 |
{ type$ "book" = |
| 1164 |
type$ "inbook" = |
| 1165 |
or |
| 1166 |
'author.editor.key.label |
| 1167 |
{ type$ "proceedings" = |
| 1168 |
'editor.key.organization.label |
| 1169 |
{ type$ "manual" = |
| 1170 |
'author.key.organization.label |
| 1171 |
'author.key.label |
| 1172 |
if$ |
| 1173 |
} |
| 1174 |
if$ |
| 1175 |
} |
| 1176 |
if$ |
| 1177 |
'short.list := |
| 1178 |
} |
| 1179 |
|
| 1180 |
FUNCTION {calc.label} |
| 1181 |
{ calc.short.authors |
| 1182 |
short.list |
| 1183 |
"(" |
| 1184 |
* |
| 1185 |
year duplicate$ empty$ |
| 1186 |
short.list key field.or.null = or |
| 1187 |
{ pop$ "" } |
| 1188 |
'skip$ |
| 1189 |
if$ |
| 1190 |
* |
| 1191 |
'label := |
| 1192 |
} |
| 1193 |
|
| 1194 |
INTEGERS { seq.num } |
| 1195 |
|
| 1196 |
FUNCTION {init.seq} |
| 1197 |
{ #0 'seq.num :=} |
| 1198 |
|
| 1199 |
EXECUTE {init.seq} |
| 1200 |
|
| 1201 |
FUNCTION {int.to.fix} |
| 1202 |
{ "000000000" swap$ int.to.str$ * |
| 1203 |
#-1 #10 substring$ |
| 1204 |
} |
| 1205 |
|
| 1206 |
FUNCTION {str.to.fix} |
| 1207 |
{ "000000000" swap$ * |
| 1208 |
#-1 #10 substring$ |
| 1209 |
} |
| 1210 |
|
| 1211 |
|
| 1212 |
FUNCTION {presort} |
| 1213 |
{ calc.label |
| 1214 |
max.best.papers missing$ |
| 1215 |
'skip$ |
| 1216 |
{max.best.papers 'final.max.best.papers :=} |
| 1217 |
if$ |
| 1218 |
score missing$ |
| 1219 |
{"0"} |
| 1220 |
{score} |
| 1221 |
if$ |
| 1222 |
str.to.fix |
| 1223 |
'sort.key$ := |
| 1224 |
} |
| 1225 |
|
| 1226 |
ITERATE {presort} |
| 1227 |
|
| 1228 |
SORT |
| 1229 |
|
| 1230 |
FUNCTION {begin.bib} |
| 1231 |
{ preamble$ empty$ |
| 1232 |
'skip$ |
| 1233 |
{ preamble$ write$ newline$ } |
| 1234 |
if$ |
| 1235 |
final.max.best.papers "" = |
| 1236 |
{"5" 'final.max.best.papers :=} |
| 1237 |
'skip$ |
| 1238 |
if$ |
| 1239 |
"\begin{thebibliography}{" final.max.best.papers * "}" * |
| 1240 |
write$ newline$ |
| 1241 |
"\providecommand{\natexlab}[1]{#1}" |
| 1242 |
write$ newline$ |
| 1243 |
"\providecommand{\url}[1]{\texttt{#1}}" |
| 1244 |
write$ newline$ |
| 1245 |
"\expandafter\ifx\csname urlstyle\endcsname\relax" |
| 1246 |
write$ newline$ |
| 1247 |
" \providecommand{\doi}[1]{doi: #1}\else" |
| 1248 |
write$ newline$ |
| 1249 |
" \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi" |
| 1250 |
write$ newline$ |
| 1251 |
" \providecommand{\PrintScore}[1]{}" |
| 1252 |
write$ newline$ |
| 1253 |
} |
| 1254 |
|
| 1255 |
EXECUTE {begin.bib} |
| 1256 |
|
| 1257 |
EXECUTE {init.state.consts} |
| 1258 |
|
| 1259 |
FUNCTION {print.entry} |
| 1260 |
{ printed.all |
| 1261 |
'skip$ |
| 1262 |
{ num.seq #1 + 'num.seq := |
| 1263 |
num.seq int.to.fix final.max.best.papers str.to.fix = |
| 1264 |
{#1 'printed.all :=} |
| 1265 |
'skip$ |
| 1266 |
if$ |
| 1267 |
call.type$ |
| 1268 |
"\PrintScore{" sort.key$ * "}" * write$ newline$ |
| 1269 |
} |
| 1270 |
if$ |
| 1271 |
} |
| 1272 |
|
| 1273 |
REVERSE {print.entry} |
| 1274 |
|
| 1275 |
FUNCTION {end.bib} |
| 1276 |
{ newline$ |
| 1277 |
"\end{thebibliography}" write$ newline$ |
| 1278 |
} |
| 1279 |
|
| 1280 |
EXECUTE {end.bib} |