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