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