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