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