| 1 |
%% |
| 2 |
%% This is file `jox.bst', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% jurabib.dtx (with options: `joxbst') |
| 8 |
%% ---------------------------------------- |
| 9 |
%% BibTeX style for use with the jurabib package version v0.6 |
| 10 |
%% Copyright (C) 1999-2004 Jens Berger (http://www.jurabib.org) |
| 11 |
%% See jurabib.ins for the copyright details. |
| 12 |
%% |
| 13 |
FUNCTION {version} { " v0.1k" } |
| 14 |
|
| 15 |
ENTRY |
| 16 |
{ address |
| 17 |
author |
| 18 |
booktitle |
| 19 |
chapter |
| 20 |
edition |
| 21 |
editor |
| 22 |
howpublished |
| 23 |
institution |
| 24 |
journal |
| 25 |
key |
| 26 |
month |
| 27 |
note |
| 28 |
number |
| 29 |
organization |
| 30 |
pages |
| 31 |
publisher |
| 32 |
school |
| 33 |
series |
| 34 |
stitle |
| 35 |
title |
| 36 |
type |
| 37 |
volume |
| 38 |
year |
| 39 |
url |
| 40 |
urldate |
| 41 |
volumetitle |
| 42 |
juratitle |
| 43 |
shorttitle |
| 44 |
juraauthor |
| 45 |
shortauthor |
| 46 |
howcited |
| 47 |
ssedition |
| 48 |
language |
| 49 |
titleaddon |
| 50 |
booktitleaddon |
| 51 |
editortype |
| 52 |
sortkey |
| 53 |
annote |
| 54 |
gender |
| 55 |
translator |
| 56 |
flanguage |
| 57 |
oyear |
| 58 |
oaddress |
| 59 |
opublisher |
| 60 |
pseudonym |
| 61 |
volformat |
| 62 |
noed |
| 63 |
} |
| 64 |
{ repeat-authors } |
| 65 |
{ label dummy.label extra.label sort.label short.list current-authors } |
| 66 |
|
| 67 |
INTEGERS { output.state before.all mid.sentence } |
| 68 |
|
| 69 |
FUNCTION {init.state.consts} |
| 70 |
{ #0 'before.all := |
| 71 |
#1 'mid.sentence := |
| 72 |
} |
| 73 |
|
| 74 |
STRINGS { s t u v w x } |
| 75 |
|
| 76 |
FUNCTION {output.nonnull} |
| 77 |
{ 's := |
| 78 |
output.state mid.sentence = |
| 79 |
{ ", " * write$ } |
| 80 |
{ write$ mid.sentence 'output.state := } |
| 81 |
if$ |
| 82 |
s |
| 83 |
} |
| 84 |
|
| 85 |
FUNCTION {output} |
| 86 |
{ duplicate$ empty$ |
| 87 |
'pop$ |
| 88 |
'output.nonnull |
| 89 |
if$ |
| 90 |
} |
| 91 |
|
| 92 |
FUNCTION {output.check} |
| 93 |
{ 't := |
| 94 |
duplicate$ empty$ |
| 95 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 96 |
'output.nonnull |
| 97 |
if$ |
| 98 |
} |
| 99 |
|
| 100 |
FUNCTION {format.endnote} |
| 101 |
{ note empty$ |
| 102 |
{ "" } |
| 103 |
{ " \jbendnote {" note * "}" * } |
| 104 |
if$ |
| 105 |
} |
| 106 |
|
| 107 |
FUNCTION {format.howcited}{ before.all 'output.state := "} {\bibhowcited}" format.endnote * * } |
| 108 |
|
| 109 |
INTEGERS { nameptr namesleft numnames } |
| 110 |
|
| 111 |
FUNCTION {format.name.sig} |
| 112 |
{ 's := |
| 113 |
#1 'nameptr := |
| 114 |
s num.names$ 'numnames := |
| 115 |
numnames 'namesleft := |
| 116 |
{ namesleft #0 > } |
| 117 |
{ s nameptr "{ff}{ vv}{ ll}{ jj}" format.name$ 't := |
| 118 |
nameptr #1 > |
| 119 |
{ namesleft #1 > |
| 120 |
{ "sssss" * t * } |
| 121 |
{ t "others" = |
| 122 |
{ " et al." * } |
| 123 |
{ "" * t * } |
| 124 |
if$ |
| 125 |
} |
| 126 |
if$ |
| 127 |
} |
| 128 |
't |
| 129 |
if$ |
| 130 |
nameptr #1 + 'nameptr := |
| 131 |
namesleft #1 - 'namesleft := |
| 132 |
} |
| 133 |
while$ |
| 134 |
} |
| 135 |
|
| 136 |
FUNCTION {format.snd.editors} |
| 137 |
{ editor empty$ |
| 138 |
{ "" * } |
| 139 |
{ author empty$ |
| 140 |
{ editortype empty$ |
| 141 |
{ editor num.names$ #1 > |
| 142 |
{ "\snded {\sndeditorsname}" * } |
| 143 |
{ "\snded {\sndeditorname}" * } |
| 144 |
if$ |
| 145 |
} |
| 146 |
{ "\snded {(" editortype * ")}" * * } |
| 147 |
if$ |
| 148 |
} |
| 149 |
'skip$ |
| 150 |
if$ |
| 151 |
} |
| 152 |
if$ |
| 153 |
} |
| 154 |
|
| 155 |
FUNCTION {count.authors.or.editors} |
| 156 |
{ 's := |
| 157 |
#1 'nameptr := |
| 158 |
s num.names$ 'numnames := |
| 159 |
numnames 'namesleft := |
| 160 |
{ namesleft #0 > } |
| 161 |
{ "" 't := |
| 162 |
nameptr #1 > |
| 163 |
{ namesleft #1 > |
| 164 |
{ "" * } |
| 165 |
{ "s" * } % more than one author/editor, append `s' |
| 166 |
if$ |
| 167 |
} |
| 168 |
't |
| 169 |
if$ |
| 170 |
nameptr #1 + 'nameptr := |
| 171 |
namesleft #1 - 'namesleft := |
| 172 |
} |
| 173 |
while$ |
| 174 |
} |
| 175 |
|
| 176 |
FUNCTION {set.after.author.sep} |
| 177 |
{ before.all 'output.state := |
| 178 |
author missing$ |
| 179 |
{ editor missing$ |
| 180 |
{ organization missing$ |
| 181 |
{ "} {empty} {} {" } |
| 182 |
{ "} {" organization "} {org} {" * * } |
| 183 |
if$ |
| 184 |
} |
| 185 |
{ "} {" editor format.name.sig * "} {ed" editor count.authors.or.editors "} {" * * * } |
| 186 |
if$ |
| 187 |
} |
| 188 |
{ "} {" author format.name.sig * "} {au" author count.authors.or.editors "} {" * * * } |
| 189 |
if$ |
| 190 |
author empty$ |
| 191 |
{ format.snd.editors } |
| 192 |
'skip$ |
| 193 |
if$ |
| 194 |
"" * |
| 195 |
} |
| 196 |
|
| 197 |
FUNCTION {format.note} |
| 198 |
{ note empty$ |
| 199 |
'skip$ |
| 200 |
{ output.state before.all = |
| 201 |
{ "\jbnote {}{" * note * "}" * } |
| 202 |
{ " \jbnote {1}{" * note * "}" * } |
| 203 |
if$ |
| 204 |
} |
| 205 |
if$ |
| 206 |
} |
| 207 |
|
| 208 |
|
| 209 |
FUNCTION {not} |
| 210 |
{ { #0 } |
| 211 |
{ #1 } |
| 212 |
if$ |
| 213 |
} |
| 214 |
|
| 215 |
FUNCTION {and} |
| 216 |
{ 'skip$ |
| 217 |
{ pop$ #0 } |
| 218 |
if$ |
| 219 |
} |
| 220 |
|
| 221 |
FUNCTION {or} |
| 222 |
{ { pop$ #1 } |
| 223 |
'skip$ |
| 224 |
if$ |
| 225 |
} |
| 226 |
|
| 227 |
FUNCTION {non.stop} |
| 228 |
{ duplicate$ |
| 229 |
"}" * |
| 230 |
#-1 #1 substring$ "." = |
| 231 |
} |
| 232 |
|
| 233 |
FUNCTION {field.or.null} |
| 234 |
{ duplicate$ empty$ |
| 235 |
{ pop$ "" } |
| 236 |
'skip$ |
| 237 |
if$ |
| 238 |
} |
| 239 |
|
| 240 |
FUNCTION {capitalize} |
| 241 |
{ "u" change.case$ "t" change.case$ } |
| 242 |
|
| 243 |
FUNCTION {space.word} |
| 244 |
{ " " swap$ * " " * } |
| 245 |
|
| 246 |
FUNCTION {bbl.edition} |
| 247 |
{ "\editionname {} " } |
| 248 |
|
| 249 |
FUNCTION {bbl.vol} |
| 250 |
{ "\volname {}" } |
| 251 |
|
| 252 |
FUNCTION {bbl.volume} |
| 253 |
{ "\volumename {}" } |
| 254 |
|
| 255 |
FUNCTION {bbl.of} |
| 256 |
{ " \volumeofname {} " } |
| 257 |
|
| 258 |
FUNCTION {bbl.number} |
| 259 |
{ "\numbername" } |
| 260 |
|
| 261 |
FUNCTION {bbl.in} |
| 262 |
{ "\incollinname {} " } |
| 263 |
|
| 264 |
FUNCTION {bbl.in.series} |
| 265 |
{ "\inseriesname {}" } |
| 266 |
|
| 267 |
FUNCTION {bbl.chapter} |
| 268 |
{ "\bibchaptername {}" } |
| 269 |
|
| 270 |
FUNCTION {bbl.techrep} |
| 271 |
{ "\technicalreportname {}" } |
| 272 |
|
| 273 |
FUNCTION {bbl.mthesis} |
| 274 |
{ "\mastersthesisname {}" } |
| 275 |
|
| 276 |
FUNCTION {bbl.phdthesis} |
| 277 |
{ "\phdthesisname {}"} |
| 278 |
|
| 279 |
MACRO {jan} {"\janname"} |
| 280 |
MACRO {feb} {"\febname"} |
| 281 |
MACRO {mar} {"\marname"} |
| 282 |
MACRO {apr} {"\aprname"} |
| 283 |
MACRO {may} {"\mayname"} |
| 284 |
MACRO {jun} {"\junname"} |
| 285 |
MACRO {jul} {"\julname"} |
| 286 |
MACRO {aug} {"\augname"} |
| 287 |
MACRO {sep} {"\sepname"} |
| 288 |
MACRO {oct} {"\octname"} |
| 289 |
MACRO {nov} {"\novname"} |
| 290 |
MACRO {dec} {"\decname"} |
| 291 |
|
| 292 |
FUNCTION {checked.emph.format} |
| 293 |
{ type$ "book" = type$ "inbook" = type$ "proceedings" = type$ "inproceedings" = or or or |
| 294 |
{ "\bibtfont {" } |
| 295 |
{ "\bibapifont {" } |
| 296 |
if$ |
| 297 |
} |
| 298 |
|
| 299 |
FUNCTION {emphasize} |
| 300 |
{ duplicate$ empty$ |
| 301 |
{ pop$ "" } |
| 302 |
{ checked.emph.format swap$ * "}" * } |
| 303 |
if$ |
| 304 |
} |
| 305 |
|
| 306 |
FUNCTION {b.emphasize} |
| 307 |
{ duplicate$ empty$ |
| 308 |
{ pop$ "" } |
| 309 |
{ "\bibbtfont {" swap$ * "}" * } |
| 310 |
if$ |
| 311 |
} |
| 312 |
|
| 313 |
FUNCTION {write.url} |
| 314 |
{ url empty$ |
| 315 |
{ urldate empty$ |
| 316 |
'skip$ |
| 317 |
{ "there's an urldate, but no url in " cite$ * warning$ } |
| 318 |
if$ |
| 319 |
} |
| 320 |
{ type$ "www" = |
| 321 |
'skip$ |
| 322 |
{ ", " * } |
| 323 |
if$ |
| 324 |
title empty$ output.state before.all = and |
| 325 |
{ "" * mid.sentence 'output.state := } |
| 326 |
{ " " * } |
| 327 |
if$ |
| 328 |
urldate empty$ |
| 329 |
{ "\jburluse {" cite$ * "}" * * } |
| 330 |
{ "\jburluse {" cite$ * "}\bibbudcsep {}\urldatecomment " * urldate * * } |
| 331 |
if$ |
| 332 |
} |
| 333 |
if$ |
| 334 |
} |
| 335 |
|
| 336 |
FUNCTION {lastnamemarkup} |
| 337 |
{ duplicate$ empty$ |
| 338 |
{ pop$ "" } |
| 339 |
{ "\bibnf {" swap$ * "}" * } |
| 340 |
if$ |
| 341 |
} |
| 342 |
|
| 343 |
FUNCTION {editorlastnamemarkup} |
| 344 |
{ duplicate$ empty$ |
| 345 |
{ pop$ "" } |
| 346 |
{ author empty$ |
| 347 |
{ "\biblenf {" swap$ * "}" * } |
| 348 |
{ "\bibenf {" swap$ * "}" * } |
| 349 |
if$ |
| 350 |
} |
| 351 |
if$ |
| 352 |
} |
| 353 |
|
| 354 |
FUNCTION {othermarkup} |
| 355 |
{ duplicate$ empty$ |
| 356 |
{ pop$ " {}" } |
| 357 |
{ " {" swap$ * "}" * } |
| 358 |
if$ |
| 359 |
} |
| 360 |
|
| 361 |
FUNCTION {indexmarkup} |
| 362 |
{ duplicate$ empty$ |
| 363 |
{ pop$ "{}" } |
| 364 |
{ "{" swap$ * "}" * } |
| 365 |
if$ |
| 366 |
} |
| 367 |
|
| 368 |
FUNCTION {format.names.for.index} |
| 369 |
{ 's := |
| 370 |
#1 'nameptr := |
| 371 |
s num.names$ 'numnames := |
| 372 |
numnames 'namesleft := |
| 373 |
{ namesleft #0 > } |
| 374 |
{ s nameptr "{ll}" format.name$ 't := t indexmarkup 't := |
| 375 |
s nameptr "{ff}" format.name$ indexmarkup 'u := |
| 376 |
s nameptr "{f.}" format.name$ indexmarkup 'v := |
| 377 |
s nameptr "{vv}" format.name$ indexmarkup 'w := |
| 378 |
s nameptr "{jj}" format.name$ indexmarkup 'x := |
| 379 |
t u * v * w * x * 't := |
| 380 |
t "{others}{}{}{}{}" = |
| 381 |
'skip$ |
| 382 |
{ nameptr #1 > |
| 383 |
{ namesleft #1 > |
| 384 |
{ "; " * t * } |
| 385 |
{ |
| 386 |
t "others" = |
| 387 |
'skip$ |
| 388 |
{ "; " * t * } |
| 389 |
if$ |
| 390 |
} |
| 391 |
if$ |
| 392 |
} |
| 393 |
't |
| 394 |
if$ |
| 395 |
} |
| 396 |
if$ |
| 397 |
nameptr #1 + 'nameptr := |
| 398 |
namesleft #1 - 'namesleft := |
| 399 |
} |
| 400 |
while$ |
| 401 |
} |
| 402 |
|
| 403 |
FUNCTION {format.names} |
| 404 |
{ 's := |
| 405 |
#1 'nameptr := |
| 406 |
s num.names$ 'numnames := |
| 407 |
numnames 'namesleft := |
| 408 |
{ namesleft #0 > } |
| 409 |
{ s nameptr "{ll}" format.name$ 't := t lastnamemarkup 't := |
| 410 |
s nameptr "{ff}" format.name$ othermarkup 'u := |
| 411 |
s nameptr "{f.}" format.name$ othermarkup 'v := |
| 412 |
s nameptr "{vv}" format.name$ othermarkup 'w := |
| 413 |
s nameptr "{jj}" format.name$ othermarkup 'x := |
| 414 |
t u * v * w * x * 't := |
| 415 |
nameptr #1 > |
| 416 |
{ namesleft #1 > |
| 417 |
{ numnames #3 > |
| 418 |
{ "" * } |
| 419 |
{ numnames #3 < |
| 420 |
{ "\Bibbtasep " * t * } |
| 421 |
{ "\Bibbfsasep " * t * } |
| 422 |
if$ |
| 423 |
} |
| 424 |
if$ |
| 425 |
} |
| 426 |
{ t "\bibnf {others} {} {} {} {}" = |
| 427 |
numnames #3 > or |
| 428 |
{ "\bibimfont {\Bibetal}" * } |
| 429 |
{ numnames #3 < |
| 430 |
{ "\Bibbtasep " * t * } |
| 431 |
{ "\Bibbstasep " * t * } |
| 432 |
if$ |
| 433 |
} |
| 434 |
if$ |
| 435 |
} |
| 436 |
if$ |
| 437 |
} |
| 438 |
't |
| 439 |
if$ |
| 440 |
nameptr #1 + 'nameptr := |
| 441 |
namesleft #1 - 'namesleft := |
| 442 |
} |
| 443 |
while$ |
| 444 |
} |
| 445 |
|
| 446 |
FUNCTION {format.editor.names} |
| 447 |
{ 's := |
| 448 |
#1 'nameptr := |
| 449 |
s num.names$ 'numnames := |
| 450 |
numnames 'namesleft := |
| 451 |
{ namesleft #0 > } |
| 452 |
{ s nameptr "{ll}" format.name$ 't := t editorlastnamemarkup 't := |
| 453 |
s nameptr "{ff}" format.name$ othermarkup 'u := |
| 454 |
s nameptr "{f.}" format.name$ othermarkup 'v := |
| 455 |
s nameptr "{vv}" format.name$ othermarkup 'w := |
| 456 |
s nameptr "{jj}" format.name$ othermarkup 'x := |
| 457 |
t u * v * w * x * 't := |
| 458 |
nameptr #1 > |
| 459 |
{ namesleft #1 > |
| 460 |
{ numnames #3 > |
| 461 |
{ "" * } |
| 462 |
{ numnames #3 < |
| 463 |
{ "\Bibbtasep " * t * } |
| 464 |
{ "\Bibbfsasep " * t * } |
| 465 |
if$ |
| 466 |
} |
| 467 |
if$ |
| 468 |
} |
| 469 |
{ t "\bibenf {others} {} {} {} {}" = |
| 470 |
t "\biblenf {others} {} {} {} {}" = or |
| 471 |
t "\bibenf {others} {} {} {} {} \editorsname" = or |
| 472 |
t "\biblenf {others} {} {} {} {} \editorsname" = or |
| 473 |
numnames #3 > or |
| 474 |
{ "\bibimfont {\Bibetal}" * } |
| 475 |
{ numnames #3 < |
| 476 |
{ "\Bibbtasep " * t * } |
| 477 |
{ "\Bibbstasep " * t * } |
| 478 |
if$ |
| 479 |
} |
| 480 |
if$ |
| 481 |
} |
| 482 |
if$ |
| 483 |
} |
| 484 |
't |
| 485 |
if$ |
| 486 |
nameptr #1 + 'nameptr := |
| 487 |
namesleft #1 - 'namesleft := |
| 488 |
} |
| 489 |
while$ |
| 490 |
} |
| 491 |
|
| 492 |
FUNCTION {format.authors} |
| 493 |
{ author empty$ |
| 494 |
{ pseudonym empty$ |
| 495 |
{ "" } |
| 496 |
{ "[" pseudonym format.names * "]" * } |
| 497 |
if$ |
| 498 |
} |
| 499 |
{ author format.names |
| 500 |
pseudonym empty$ |
| 501 |
'skip$ |
| 502 |
{ " [" * pseudonym format.names * "]" * } |
| 503 |
if$ |
| 504 |
} |
| 505 |
if$ |
| 506 |
} |
| 507 |
|
| 508 |
FUNCTION {format.editors} |
| 509 |
{ editor empty$ |
| 510 |
{ pseudonym empty$ |
| 511 |
{ "" } |
| 512 |
{ "[" pseudonym format.editor.names * "]" * } |
| 513 |
if$ |
| 514 |
} |
| 515 |
{ editor format.editor.names |
| 516 |
pseudonym empty$ |
| 517 |
'skip$ |
| 518 |
{ " [" * pseudonym format.editor.names * "]" * } |
| 519 |
if$ |
| 520 |
noed missing$ |
| 521 |
{ editor num.names$ #1 > |
| 522 |
{ editortype empty$ |
| 523 |
{ "\bibedformat {\editorsname}" * } |
| 524 |
{ "\bibedformat {" * editortype * "}" * } |
| 525 |
if$ |
| 526 |
} |
| 527 |
{ editortype empty$ |
| 528 |
{ "\bibedformat {\editorname}" * } |
| 529 |
{ "\bibedformat {" * editortype * "}" * } |
| 530 |
if$ |
| 531 |
} |
| 532 |
if$ |
| 533 |
} |
| 534 |
{ noed 's := |
| 535 |
s "1" = |
| 536 |
'skip$ |
| 537 |
{ editor num.names$ #1 > |
| 538 |
{ editortype empty$ |
| 539 |
{ "\bibedformat {\editorsname}" * } |
| 540 |
{ "\bibedformat {" * editortype * "}" * } |
| 541 |
if$ |
| 542 |
} |
| 543 |
{ editortype empty$ |
| 544 |
{ "\bibedformat {\editorname}" * } |
| 545 |
{ "\bibedformat {" * editortype * "}" * } |
| 546 |
if$ |
| 547 |
} |
| 548 |
if$ |
| 549 |
} |
| 550 |
if$ |
| 551 |
} |
| 552 |
if$ |
| 553 |
} |
| 554 |
if$ |
| 555 |
} |
| 556 |
|
| 557 |
FUNCTION {format.in.editors} |
| 558 |
{ editor empty$ |
| 559 |
{ pseudonym empty$ |
| 560 |
'skip$ |
| 561 |
{ "[" pseudonym format.editor.names * "]" * } |
| 562 |
if$ |
| 563 |
} |
| 564 |
{ editor format.editor.names |
| 565 |
pseudonym empty$ |
| 566 |
'skip$ |
| 567 |
{ " [" * pseudonym format.editor.names * "]" * } |
| 568 |
if$ |
| 569 |
noed missing$ |
| 570 |
{ editor num.names$ #1 > |
| 571 |
{ editortype empty$ |
| 572 |
{ " \bibedinformat {\editorsname}" * } |
| 573 |
{ " \bibedinformat {" * editortype * "}" * } |
| 574 |
if$ |
| 575 |
} |
| 576 |
{ editortype empty$ |
| 577 |
{ " \bibedinformat {\editorname}" * } |
| 578 |
{ " \bibedinformat {" * editortype * "}" * } |
| 579 |
if$ |
| 580 |
} |
| 581 |
if$ |
| 582 |
} |
| 583 |
{ noed 's := |
| 584 |
s "1" = |
| 585 |
'skip$ |
| 586 |
{ editor num.names$ #1 > |
| 587 |
{ editortype empty$ |
| 588 |
{ " \bibedinformat {\editorsname}" * } |
| 589 |
{ " \bibedinformat {" * editortype * "}" * } |
| 590 |
if$ |
| 591 |
} |
| 592 |
{ editortype empty$ |
| 593 |
{ " \bibedinformat {\editorname}" * } |
| 594 |
{ " \bibedinformat {" * editortype * "}" * } |
| 595 |
if$ |
| 596 |
} |
| 597 |
if$ |
| 598 |
} |
| 599 |
if$ |
| 600 |
} |
| 601 |
if$ |
| 602 |
} |
| 603 |
if$ |
| 604 |
} |
| 605 |
|
| 606 |
FUNCTION {fin.entry} |
| 607 |
{ format.howcited |
| 608 |
" \jbdoitem {" * |
| 609 |
author empty$ |
| 610 |
'skip$ |
| 611 |
{ author format.names.for.index * } |
| 612 |
if$ |
| 613 |
"} {" |
| 614 |
editor empty$ |
| 615 |
'skip$ |
| 616 |
{ editor format.names.for.index * } |
| 617 |
if$ |
| 618 |
"} {" * |
| 619 |
organization empty$ |
| 620 |
'skip$ |
| 621 |
{ "{" organization * "}{}{}{}{}" * * } |
| 622 |
if$ |
| 623 |
"}" * * write$ |
| 624 |
annote missing$ |
| 625 |
{ " \bibAnnoteFile {" cite$ * "}" * write$ newline$ } |
| 626 |
{ " \bibAnnote {" annote * "}" * write$ newline$ } |
| 627 |
if$ |
| 628 |
} |
| 629 |
|
| 630 |
FUNCTION {format.titleaddon} |
| 631 |
{ title empty$ |
| 632 |
'skip$ |
| 633 |
{ titleaddon empty$ |
| 634 |
'skip$ |
| 635 |
{ ", " * titleaddon * } |
| 636 |
if$ |
| 637 |
} |
| 638 |
if$ |
| 639 |
} |
| 640 |
|
| 641 |
FUNCTION {format.booktitleaddon} |
| 642 |
{ booktitle empty$ |
| 643 |
'skip$ |
| 644 |
{ booktitleaddon empty$ |
| 645 |
'skip$ |
| 646 |
{ ", " * booktitleaddon * } |
| 647 |
if$ |
| 648 |
} |
| 649 |
if$ |
| 650 |
} |
| 651 |
|
| 652 |
FUNCTION {format.title} |
| 653 |
{ before.all 'output.state := |
| 654 |
title empty$ |
| 655 |
{ "" } |
| 656 |
{ title checked.emph.format swap$ * non.stop |
| 657 |
{ before.all 'output.state := "}" * } |
| 658 |
{ before.all 'output.state := "}" * } |
| 659 |
if$ |
| 660 |
} |
| 661 |
if$ |
| 662 |
} |
| 663 |
|
| 664 |
FUNCTION {journalnamemarkup} |
| 665 |
{ duplicate$ empty$ |
| 666 |
{ pop$ "" } |
| 667 |
{ "\bibJTsep \bibjtfont {" swap$ * "}" * } |
| 668 |
if$ |
| 669 |
} |
| 670 |
|
| 671 |
FUNCTION {seriesformat} |
| 672 |
{ duplicate$ empty$ |
| 673 |
{ pop$ "" } |
| 674 |
{ "\bibsnfont {" swap$ * "}" * } |
| 675 |
if$ |
| 676 |
} |
| 677 |
|
| 678 |
FUNCTION {is.num} |
| 679 |
{ chr.to.int$ |
| 680 |
duplicate$ "0" chr.to.int$ < not |
| 681 |
swap$ "9" chr.to.int$ > not and |
| 682 |
} |
| 683 |
|
| 684 |
FUNCTION {extract.num} |
| 685 |
{ duplicate$ 't := |
| 686 |
"" 's := |
| 687 |
{ t empty$ not } |
| 688 |
{ t #1 #1 substring$ |
| 689 |
t #2 global.max$ substring$ 't := |
| 690 |
duplicate$ is.num |
| 691 |
{ s swap$ * 's := } |
| 692 |
{ pop$ "" 't := } |
| 693 |
if$ |
| 694 |
} |
| 695 |
while$ |
| 696 |
s empty$ |
| 697 |
'skip$ |
| 698 |
{ pop$ s } |
| 699 |
if$ |
| 700 |
} |
| 701 |
|
| 702 |
FUNCTION {convert.edition.superscript} |
| 703 |
{ edition extract.num "l" change.case$ 's := |
| 704 |
s "first" = s "1" = or s "erste" = or |
| 705 |
{ "1" 't := } |
| 706 |
{ s "second" = s "2" = or s "zweite" = or |
| 707 |
{ "2" 't := } |
| 708 |
{ s "third" = s "3" = or s "dritte" = or |
| 709 |
{ "3" 't := } |
| 710 |
{ s "fourth" = s "4" = or s "vierte" = or |
| 711 |
{ "4" 't := } |
| 712 |
{ s "fifth" = s "5" = or s "fuenfte" = or |
| 713 |
{ "5" 't := } |
| 714 |
{ s "sixth" = s "6" = or s "sechste" = or |
| 715 |
{ "6" 't := } |
| 716 |
{ s "seventh" = s "7" = or s "siebte" = or s "siebente" = or |
| 717 |
{ "7" 't := } |
| 718 |
{ s "eighth" = s "8" = or s "achte" = or |
| 719 |
{ "8" 't := } |
| 720 |
{ s "nineth" = s "9" = or s "neunte" = or |
| 721 |
{ "9" 't := } |
| 722 |
{ s #1 #1 substring$ is.num |
| 723 |
{ s "" * 't := } |
| 724 |
{ edition 't := } |
| 725 |
if$ |
| 726 |
} |
| 727 |
if$ |
| 728 |
} |
| 729 |
if$ |
| 730 |
} |
| 731 |
if$ |
| 732 |
} |
| 733 |
if$ |
| 734 |
} |
| 735 |
if$ |
| 736 |
} |
| 737 |
if$ |
| 738 |
} |
| 739 |
if$ |
| 740 |
} |
| 741 |
if$ |
| 742 |
} |
| 743 |
if$ |
| 744 |
t |
| 745 |
} |
| 746 |
|
| 747 |
FUNCTION {n.dashify} |
| 748 |
{ 't := |
| 749 |
"" |
| 750 |
{ t empty$ not } |
| 751 |
{ t #1 #1 substring$ "-" = |
| 752 |
{ t #1 #2 substring$ "--" = not |
| 753 |
{ "--" * |
| 754 |
t #2 global.max$ substring$ 't := |
| 755 |
} |
| 756 |
{ { t #1 #1 substring$ "-" = } |
| 757 |
{ "-" * |
| 758 |
t #2 global.max$ substring$ 't := |
| 759 |
} |
| 760 |
while$ |
| 761 |
} |
| 762 |
if$ |
| 763 |
} |
| 764 |
{ t #1 #1 substring$ * |
| 765 |
t #2 global.max$ substring$ 't := |
| 766 |
} |
| 767 |
if$ |
| 768 |
} |
| 769 |
while$ |
| 770 |
} |
| 771 |
|
| 772 |
FUNCTION {output.bibitem.fst} |
| 773 |
{ newline$ |
| 774 |
"\bibitem[{" write$ |
| 775 |
shortauthor empty$ |
| 776 |
{ juraauthor empty$ |
| 777 |
{ author empty$ |
| 778 |
{ editor empty$ |
| 779 |
{ organization empty$ |
| 780 |
{ "empty" write$ } |
| 781 |
{ organization write$ } |
| 782 |
if$ |
| 783 |
} |
| 784 |
{ label write$ } |
| 785 |
if$ |
| 786 |
} |
| 787 |
{ label write$ } |
| 788 |
if$ |
| 789 |
} |
| 790 |
{ juraauthor write$ } |
| 791 |
if$ |
| 792 |
} |
| 793 |
{ shortauthor write$ } |
| 794 |
if$ |
| 795 |
"}%" write$ |
| 796 |
sortkey empty$ |
| 797 |
'skip$ |
| 798 |
{ newline$ "% SORTKEY: [" sortkey * "]" * write$ } |
| 799 |
if$ |
| 800 |
newline$ |
| 801 |
shorttitle empty$ |
| 802 |
{ juratitle empty$ |
| 803 |
{ journal empty$ |
| 804 |
{ " {}%" write$ } |
| 805 |
{ title empty$ |
| 806 |
{ key empty$ |
| 807 |
{ " {}%" write$ } |
| 808 |
{ " {" key * "}%" * write$ } |
| 809 |
if$ |
| 810 |
} |
| 811 |
{ " {" title * "}%" * write$ } |
| 812 |
if$ |
| 813 |
} |
| 814 |
if$ |
| 815 |
} |
| 816 |
{ " {" juratitle * "}%" * write$ } |
| 817 |
if$ |
| 818 |
} |
| 819 |
{ " {" shorttitle * "}%" * write$ } |
| 820 |
if$ |
| 821 |
newline$ |
| 822 |
repeat-authors |
| 823 |
{ " {{1}" write$ } |
| 824 |
{ " {{0}" write$ } |
| 825 |
if$ |
| 826 |
howcited empty$ |
| 827 |
{ "{}" write$ } |
| 828 |
{ "{" howcited * "}" * write$ } |
| 829 |
if$ |
| 830 |
type$ empty$ |
| 831 |
{ "{}" write$ } |
| 832 |
{ "{" type$ * "}" * write$ } |
| 833 |
if$ |
| 834 |
year empty$ |
| 835 |
{ "{}" write$ } |
| 836 |
{ "{" year * write$ |
| 837 |
extra.label "" = |
| 838 |
'skip$ |
| 839 |
{ "\el {" write$ extra.label write$ "}" write$ } |
| 840 |
if$ |
| 841 |
"}" write$ |
| 842 |
} |
| 843 |
if$ |
| 844 |
edition empty$ |
| 845 |
{ "{}" write$ } |
| 846 |
{ "{" convert.edition.superscript extract.num * "}" * write$ } |
| 847 |
if$ |
| 848 |
ssedition empty$ |
| 849 |
{ "{}" write$ } |
| 850 |
{ "{" ssedition * "}" * write$ } |
| 851 |
if$ |
| 852 |
language empty$ |
| 853 |
{ "{}" write$ } |
| 854 |
{ "{" language * "}" * write$ } |
| 855 |
if$ |
| 856 |
pages empty$ |
| 857 |
{ "{}%" write$ } |
| 858 |
{ "{" write$ pages n.dashify write$ "}%" write$ } |
| 859 |
if$ |
| 860 |
newline$ |
| 861 |
} |
| 862 |
|
| 863 |
FUNCTION {output.bibitem.snd} |
| 864 |
{ publisher empty$ |
| 865 |
{ address empty$ |
| 866 |
{ year empty$ |
| 867 |
{ " {" write$ } |
| 868 |
{ " {" write$ |
| 869 |
year write$ |
| 870 |
extra.label "" = |
| 871 |
'skip$ |
| 872 |
{ "\el {" write$ extra.label write$ "}" write$ } |
| 873 |
if$ |
| 874 |
} |
| 875 |
if$ |
| 876 |
} |
| 877 |
{ year empty$ |
| 878 |
{ " {" write$ address write$ } |
| 879 |
{ " {" write$ address write$ "\bibbdsep {} " write$ |
| 880 |
year write$ |
| 881 |
extra.label "" = |
| 882 |
'skip$ |
| 883 |
{ "\el {" write$ extra.label write$ "}" write$ } |
| 884 |
if$ |
| 885 |
} |
| 886 |
if$ |
| 887 |
} |
| 888 |
if$ |
| 889 |
} |
| 890 |
{ address empty$ |
| 891 |
{ year empty$ |
| 892 |
{ " {" write$ publisher write$ } |
| 893 |
{ " {" write$ publisher write$ "\bibbdsep {} " write$ |
| 894 |
year write$ |
| 895 |
extra.label "" = |
| 896 |
'skip$ |
| 897 |
{ "\el {" write$ extra.label write$ "}" write$ } |
| 898 |
if$ |
| 899 |
} |
| 900 |
if$ |
| 901 |
} |
| 902 |
{ year empty$ |
| 903 |
{ " {" write$ address write$ "\bpubaddr {} " write$ publisher write$ } |
| 904 |
{ " {" write$ address write$ "\bpubaddr {} " write$ publisher write$ "\bibbdsep {} " write$ |
| 905 |
year write$ |
| 906 |
extra.label "" = |
| 907 |
'skip$ |
| 908 |
{ "\el {" write$ extra.label write$ "}" write$ } |
| 909 |
if$ |
| 910 |
} |
| 911 |
if$ |
| 912 |
} |
| 913 |
if$ |
| 914 |
} |
| 915 |
if$ |
| 916 |
"}}%" write$ newline$ |
| 917 |
" {" write$ |
| 918 |
title empty$ |
| 919 |
{ "{}%" write$ newline$ } |
| 920 |
{ "{" title * "}%" * write$ newline$ } |
| 921 |
if$ |
| 922 |
gender empty$ |
| 923 |
{ " {}" write$ } |
| 924 |
{ " {" gender * "}" * write$ } |
| 925 |
if$ |
| 926 |
oyear empty$ |
| 927 |
{ "{}" write$ } |
| 928 |
{ "{" oyear * "}" * write$ } |
| 929 |
if$ |
| 930 |
author empty$ |
| 931 |
{ editor empty$ |
| 932 |
{ "{4}" write$ }% author and editor empty |
| 933 |
{ "{3}" write$ }% author empty, editor not |
| 934 |
if$ |
| 935 |
} |
| 936 |
{ editor empty$ |
| 937 |
{ "{2}" write$ }% editor empty, author not |
| 938 |
{ "{1}" write$ }% both author and editor given |
| 939 |
if$ |
| 940 |
} |
| 941 |
if$ |
| 942 |
"{}{}{}{}{}}%" write$ newline$ |
| 943 |
" ]{" write$ |
| 944 |
cite$ write$ |
| 945 |
"}" write$ |
| 946 |
url empty$ |
| 947 |
'skip$ |
| 948 |
{ newline$ " \jburldef {" write$ cite$ write$ "}{" write$ url write$ "}%" write$ } |
| 949 |
if$ |
| 950 |
newline$ |
| 951 |
" \jbbibargs {" write$ |
| 952 |
"" |
| 953 |
before.all 'output.state := |
| 954 |
} |
| 955 |
|
| 956 |
FUNCTION {output.bibitem}{ output.bibitem.fst output.bibitem.snd } |
| 957 |
|
| 958 |
FUNCTION {word.in} |
| 959 |
{ bbl.in |
| 960 |
" " * } |
| 961 |
|
| 962 |
FUNCTION {add.extra.label} |
| 963 |
{extra.label "" = |
| 964 |
'skip$ |
| 965 |
{ "\bibel {" extra.label * "}" * * } |
| 966 |
if$ |
| 967 |
} |
| 968 |
|
| 969 |
FUNCTION {format.date} |
| 970 |
{ year empty$ |
| 971 |
'skip$ |
| 972 |
{ output.state before.all = |
| 973 |
{ "" * mid.sentence 'output.state := } |
| 974 |
{ " " * } |
| 975 |
if$ |
| 976 |
"\dateldelim {}" * |
| 977 |
month empty$ |
| 978 |
'skip$ |
| 979 |
{ month "{} " * * } |
| 980 |
if$ |
| 981 |
year * add.extra.label "\daterdelim {}" * |
| 982 |
} |
| 983 |
if$ |
| 984 |
} |
| 985 |
|
| 986 |
FUNCTION {format.btitle} |
| 987 |
{ before.all 'output.state := |
| 988 |
title emphasize |
| 989 |
} |
| 990 |
|
| 991 |
FUNCTION {format.booktitle} |
| 992 |
{ before.all 'output.state := |
| 993 |
booktitle b.emphasize |
| 994 |
} |
| 995 |
|
| 996 |
FUNCTION {format.booklet.title} |
| 997 |
{ before.all 'output.state := |
| 998 |
title emphasize |
| 999 |
} |
| 1000 |
|
| 1001 |
FUNCTION {tie.or.space.connect} |
| 1002 |
{ duplicate$ text.length$ #3 < |
| 1003 |
{ "~" } |
| 1004 |
{ " " } |
| 1005 |
if$ |
| 1006 |
swap$ * * |
| 1007 |
} |
| 1008 |
|
| 1009 |
FUNCTION {either.or.check} |
| 1010 |
{ empty$ |
| 1011 |
'pop$ |
| 1012 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 1013 |
if$ |
| 1014 |
} |
| 1015 |
|
| 1016 |
FUNCTION {format.bvolume} |
| 1017 |
{ volume empty$ |
| 1018 |
{ " " } |
| 1019 |
{ |
| 1020 |
volumetitle empty$ |
| 1021 |
{ crossref missing$ |
| 1022 |
{ bbl.volume volume tie.or.space.connect } |
| 1023 |
{ bbl.vol volume tie.or.space.connect } |
| 1024 |
if$ |
| 1025 |
} |
| 1026 |
{ |
| 1027 |
crossref missing$ |
| 1028 |
{ bbl.volume volume tie.or.space.connect } |
| 1029 |
{ bbl.vol volume tie.or.space.connect } |
| 1030 |
if$ |
| 1031 |
": \bibvtfont {" * volumetitle "}" * * |
| 1032 |
} |
| 1033 |
if$ |
| 1034 |
} |
| 1035 |
if$ |
| 1036 |
} |
| 1037 |
|
| 1038 |
FUNCTION {format.bvolume.btitle.reversed} |
| 1039 |
{ volume empty$ |
| 1040 |
{ title empty$ |
| 1041 |
'skip$ |
| 1042 |
{ |
| 1043 |
before.all 'output.state := |
| 1044 |
title emphasize |
| 1045 |
} |
| 1046 |
if$ |
| 1047 |
} |
| 1048 |
{ volumetitle empty$ |
| 1049 |
{ title empty$ |
| 1050 |
'skip$ |
| 1051 |
{ |
| 1052 |
before.all 'output.state := |
| 1053 |
title emphasize |
| 1054 |
} |
| 1055 |
if$ |
| 1056 |
} |
| 1057 |
{ "\bibvtfont {" volumetitle * "}" * * |
| 1058 |
bbl.volume volume tie.or.space.connect |
| 1059 |
title empty$ |
| 1060 |
'skip$ |
| 1061 |
{ bbl.of title emphasize * * } |
| 1062 |
if$ |
| 1063 |
} |
| 1064 |
if$ |
| 1065 |
} |
| 1066 |
if$ |
| 1067 |
} |
| 1068 |
|
| 1069 |
FUNCTION {format.bvolume.btitle} |
| 1070 |
{ volformat missing$ |
| 1071 |
{ |
| 1072 |
format.btitle "title" output.check format.bvolume output |
| 1073 |
} |
| 1074 |
{ volformat 's := |
| 1075 |
s "reversed" = |
| 1076 |
{ volumetitle empty$ |
| 1077 |
{ |
| 1078 |
"volformat given but no volumetitle in " cite$ * warning$ |
| 1079 |
format.bvolume.btitle.reversed output |
| 1080 |
} |
| 1081 |
{ |
| 1082 |
volume empty$ |
| 1083 |
{ "there's a volumetitle but no volume in " cite$ * warning$ * } |
| 1084 |
'skip$ |
| 1085 |
if$ |
| 1086 |
title empty$ |
| 1087 |
{ |
| 1088 |
"volformat given but no title in " cite$ * warning$ |
| 1089 |
} |
| 1090 |
{ |
| 1091 |
format.bvolume.btitle.reversed output |
| 1092 |
} |
| 1093 |
if$ |
| 1094 |
} |
| 1095 |
if$ |
| 1096 |
} |
| 1097 |
{ |
| 1098 |
format.btitle "title" output.check format.bvolume output |
| 1099 |
} |
| 1100 |
if$ |
| 1101 |
} |
| 1102 |
if$ |
| 1103 |
} |
| 1104 |
|
| 1105 |
FUNCTION {format.bvolume.booktitle.reversed} |
| 1106 |
{ volume empty$ |
| 1107 |
{ booktitle empty$ |
| 1108 |
'skip$ |
| 1109 |
{ |
| 1110 |
before.all 'output.state := |
| 1111 |
booktitle b.emphasize |
| 1112 |
} |
| 1113 |
if$ |
| 1114 |
} |
| 1115 |
{ volumetitle empty$ |
| 1116 |
{ booktitle empty$ |
| 1117 |
'skip$ |
| 1118 |
{ |
| 1119 |
before.all 'output.state := |
| 1120 |
bbl.volume volume tie.or.space.connect |
| 1121 |
booktitle empty$ |
| 1122 |
'skip$ |
| 1123 |
{ bbl.of booktitle b.emphasize * * } |
| 1124 |
if$ |
| 1125 |
} |
| 1126 |
if$ |
| 1127 |
} |
| 1128 |
{ "\bibvtfont {" volumetitle * "}" * * |
| 1129 |
bbl.volume volume tie.or.space.connect |
| 1130 |
booktitle empty$ |
| 1131 |
'skip$ |
| 1132 |
{ bbl.of booktitle b.emphasize * * } |
| 1133 |
if$ |
| 1134 |
} |
| 1135 |
if$ |
| 1136 |
} |
| 1137 |
if$ |
| 1138 |
} |
| 1139 |
|
| 1140 |
FUNCTION {format.in.editor.booktitle.volume.voltitle} |
| 1141 |
{ editor empty$ |
| 1142 |
{ chapter empty$ |
| 1143 |
{ ", " * } |
| 1144 |
{ " " * } |
| 1145 |
if$ |
| 1146 |
word.in * |
| 1147 |
} |
| 1148 |
{ chapter empty$ |
| 1149 |
{ ", " * } |
| 1150 |
{ " " * } |
| 1151 |
if$ |
| 1152 |
word.in format.in.editors * ", " * * |
| 1153 |
} |
| 1154 |
if$ |
| 1155 |
volformat missing$ |
| 1156 |
{ |
| 1157 |
format.booktitle "booktitle" output.check |
| 1158 |
format.bvolume output |
| 1159 |
format.booktitleaddon |
| 1160 |
} |
| 1161 |
{ volformat 's := |
| 1162 |
s "reversed" = |
| 1163 |
{ volumetitle empty$ |
| 1164 |
{ |
| 1165 |
"volformat given but no volumetitle in " cite$ * warning$ |
| 1166 |
format.bvolume.booktitle.reversed output |
| 1167 |
format.booktitleaddon |
| 1168 |
} |
| 1169 |
{ |
| 1170 |
volume empty$ |
| 1171 |
{ "there's a volumetitle but no volume in " cite$ * warning$ * } |
| 1172 |
'skip$ |
| 1173 |
if$ |
| 1174 |
booktitle empty$ |
| 1175 |
{ |
| 1176 |
"volformat given but no booktitle in " cite$ * warning$ |
| 1177 |
} |
| 1178 |
{ |
| 1179 |
format.bvolume.booktitle.reversed output |
| 1180 |
format.booktitleaddon |
| 1181 |
} |
| 1182 |
if$ |
| 1183 |
} |
| 1184 |
if$ |
| 1185 |
} |
| 1186 |
{ format.booktitle "booktitle" output.check |
| 1187 |
format.bvolume output |
| 1188 |
format.booktitleaddon |
| 1189 |
} |
| 1190 |
if$ |
| 1191 |
} |
| 1192 |
if$ |
| 1193 |
} |
| 1194 |
|
| 1195 |
FUNCTION {format.number.series.book.old} |
| 1196 |
{ number empty$ |
| 1197 |
{ series seriesformat field.or.null } |
| 1198 |
{ series empty$ |
| 1199 |
{ "there's a number but no series in " cite$ * warning$ number } |
| 1200 |
{ series seriesformat number tie.or.space.connect } |
| 1201 |
if$ |
| 1202 |
} |
| 1203 |
if$ |
| 1204 |
} |
| 1205 |
|
| 1206 |
FUNCTION {format.number.series.book} |
| 1207 |
{ volume empty$ |
| 1208 |
{ number empty$ |
| 1209 |
{ series empty$ |
| 1210 |
{ "" } |
| 1211 |
{ " \numberandseries {}{" series * "}" * } |
| 1212 |
if$ |
| 1213 |
} |
| 1214 |
{ series empty$ |
| 1215 |
{ " \numberandseries {" number * "}{}" * "There's a number but no series in " cite$ * warning$ } |
| 1216 |
{ " \numberandseries {" number * "}{" * series "}" * * } |
| 1217 |
if$ |
| 1218 |
} |
| 1219 |
if$ |
| 1220 |
} |
| 1221 |
{ series empty$ |
| 1222 |
{ "" } |
| 1223 |
{ type$ "proceedings" = |
| 1224 |
{ " \numberandseries {}{" series * "}" * } % { " (" series * ")" * } |
| 1225 |
{ "" } |
| 1226 |
if$ |
| 1227 |
} |
| 1228 |
if$ |
| 1229 |
} |
| 1230 |
if$ |
| 1231 |
} |
| 1232 |
|
| 1233 |
FUNCTION {format.number.series} |
| 1234 |
{ volume empty$ |
| 1235 |
{ number empty$ |
| 1236 |
{ series seriesformat field.or.null } |
| 1237 |
{ output.state mid.sentence = |
| 1238 |
{ bbl.number } |
| 1239 |
{ bbl.number capitalize } |
| 1240 |
if$ |
| 1241 |
number tie.or.space.connect |
| 1242 |
series empty$ |
| 1243 |
{ "there's a number but no series in " cite$ * warning$ } |
| 1244 |
{ bbl.in.series space.word * series seriesformat * } |
| 1245 |
if$ |
| 1246 |
} |
| 1247 |
if$ |
| 1248 |
} |
| 1249 |
{ type$ "incollection" = crossref missing$ and |
| 1250 |
{ format.number.series.book } |
| 1251 |
{ "" } |
| 1252 |
if$ |
| 1253 |
} |
| 1254 |
if$ |
| 1255 |
} |
| 1256 |
|
| 1257 |
FUNCTION {first.ed} { "\firstedname" } |
| 1258 |
FUNCTION {second.ed}{ "\secondedname" } |
| 1259 |
FUNCTION {third.ed} { "\thirdedname" } |
| 1260 |
FUNCTION {fourth.ed}{ "\fourthedname" } |
| 1261 |
FUNCTION {fifth.ed} { "\fifthedname" } |
| 1262 |
FUNCTION {th.ed} { "\thedname" } |
| 1263 |
|
| 1264 |
FUNCTION {convert.edition} |
| 1265 |
{ edition extract.num "l" change.case$ 's := |
| 1266 |
s "first" = s "1" = or |
| 1267 |
{ first.ed 't := } |
| 1268 |
{ s "second" = s "2" = or |
| 1269 |
{ second.ed 't := } |
| 1270 |
{ s "third" = s "3" = or |
| 1271 |
{ third.ed 't := } |
| 1272 |
{ s "fourth" = s "4" = or |
| 1273 |
{ fourth.ed 't := } |
| 1274 |
{ s "fifth" = s "5" = or |
| 1275 |
{ fifth.ed 't := } |
| 1276 |
{ s #1 #1 substring$ is.num |
| 1277 |
{ s th.ed * 't := } |
| 1278 |
{ edition 't := } |
| 1279 |
if$ |
| 1280 |
} |
| 1281 |
if$ |
| 1282 |
} |
| 1283 |
if$ |
| 1284 |
} |
| 1285 |
if$ |
| 1286 |
} |
| 1287 |
if$ |
| 1288 |
} |
| 1289 |
if$ |
| 1290 |
t |
| 1291 |
} |
| 1292 |
|
| 1293 |
FUNCTION {format.edition} |
| 1294 |
{ edition empty$ |
| 1295 |
{ "" } |
| 1296 |
{ convert.edition "~\editionname {}" * } |
| 1297 |
if$ |
| 1298 |
} |
| 1299 |
|
| 1300 |
INTEGERS { multiresult } |
| 1301 |
|
| 1302 |
FUNCTION {multi.page.check} |
| 1303 |
{ 't := |
| 1304 |
#0 'multiresult := |
| 1305 |
{ multiresult not |
| 1306 |
t empty$ not |
| 1307 |
and |
| 1308 |
} |
| 1309 |
{ t #1 #1 substring$ |
| 1310 |
duplicate$ "-" = |
| 1311 |
swap$ duplicate$ "," = |
| 1312 |
swap$ "+" = |
| 1313 |
or or |
| 1314 |
{ #1 'multiresult := } |
| 1315 |
{ t #2 global.max$ substring$ 't := } |
| 1316 |
if$ |
| 1317 |
} |
| 1318 |
while$ |
| 1319 |
multiresult |
| 1320 |
} |
| 1321 |
|
| 1322 |
FUNCTION {format.pages} |
| 1323 |
{ pages empty$ |
| 1324 |
{ "" } |
| 1325 |
{ before.all 'output.state := |
| 1326 |
"\jbPages {" pages n.dashify * "}" * |
| 1327 |
} |
| 1328 |
if$ |
| 1329 |
} |
| 1330 |
|
| 1331 |
FUNCTION {format.journal.pages} |
| 1332 |
{ pages empty$ |
| 1333 |
'skip$ |
| 1334 |
{ duplicate$ empty$ |
| 1335 |
{ pop$ format.pages } |
| 1336 |
{ " \jbartPages {" pages n.dashify * "}" * * } |
| 1337 |
if$ |
| 1338 |
} |
| 1339 |
if$ |
| 1340 |
} |
| 1341 |
|
| 1342 |
FUNCTION {format.vol.num.pages} |
| 1343 |
{ before.all 'output.state := |
| 1344 |
volume empty$ |
| 1345 |
{ year empty$ not |
| 1346 |
{ "there's a year but no volume in " cite$ * warning$ } |
| 1347 |
'skip$ |
| 1348 |
if$ |
| 1349 |
number empty$ |
| 1350 |
{ "" } |
| 1351 |
{ "there's a number but no volume in " cite$ * warning$ |
| 1352 |
type$ "periodical" = |
| 1353 |
{ "~\per" * } |
| 1354 |
{ "~\art" * } |
| 1355 |
if$ |
| 1356 |
"volnumformat {}{" number * "}" * |
| 1357 |
} |
| 1358 |
if$ |
| 1359 |
} |
| 1360 |
{ type$ "periodical" = |
| 1361 |
{ "~\per" * } |
| 1362 |
{ "~\art" * } |
| 1363 |
if$ |
| 1364 |
number empty$ |
| 1365 |
{ "volnumformat {" volume * "}{}" * } |
| 1366 |
{ "volnumformat {" volume * "}{" number * "}" * * } |
| 1367 |
if$ |
| 1368 |
} |
| 1369 |
if$ |
| 1370 |
year empty$ |
| 1371 |
{ month empty$ not |
| 1372 |
{ "there's a month but no year in " cite$ * warning$ } |
| 1373 |
'skip$ |
| 1374 |
if$ |
| 1375 |
} |
| 1376 |
{ type$ "periodical" = |
| 1377 |
{ " \per" * } |
| 1378 |
{ " \art" * } |
| 1379 |
if$ |
| 1380 |
month empty$ |
| 1381 |
{ "yearformat {" year * add.extra.label "}" * * } |
| 1382 |
{ "yearformat {" month * "{} " * year * add.extra.label "}" * * } |
| 1383 |
if$ |
| 1384 |
} |
| 1385 |
if$ |
| 1386 |
} |
| 1387 |
|
| 1388 |
FUNCTION {format.chapter.inbook.incoll} |
| 1389 |
{ chapter empty$ |
| 1390 |
{ "" } |
| 1391 |
{ before.all 'output.state := |
| 1392 |
type empty$ |
| 1393 |
{ ", " bbl.chapter * } |
| 1394 |
{ ", " type * "l" change.case$ } |
| 1395 |
if$ |
| 1396 |
chapter tie.or.space.connect |
| 1397 |
} |
| 1398 |
if$ |
| 1399 |
} |
| 1400 |
|
| 1401 |
FUNCTION {format.chapter.pages} |
| 1402 |
{ chapter empty$ |
| 1403 |
'format.pages |
| 1404 |
{ type empty$ |
| 1405 |
{ before.all 'output.state := ", " bbl.chapter * } |
| 1406 |
{ ", " type * "l" change.case$ } |
| 1407 |
if$ |
| 1408 |
chapter tie.or.space.connect |
| 1409 |
pages empty$ |
| 1410 |
'skip$ |
| 1411 |
{ format.pages * } |
| 1412 |
if$ |
| 1413 |
} |
| 1414 |
if$ |
| 1415 |
} |
| 1416 |
|
| 1417 |
FUNCTION {format.in.ed.booktitle} |
| 1418 |
{ booktitle empty$ |
| 1419 |
{ "" } |
| 1420 |
{ editor empty$ |
| 1421 |
{ word.in booktitle b.emphasize format.booktitleaddon * } |
| 1422 |
{ word.in format.in.editors * ", " * booktitle b.emphasize format.booktitleaddon * } |
| 1423 |
if$ |
| 1424 |
} |
| 1425 |
if$ |
| 1426 |
} |
| 1427 |
|
| 1428 |
FUNCTION {format.thesis.type} |
| 1429 |
{ type empty$ |
| 1430 |
'skip$ |
| 1431 |
{ pop$ |
| 1432 |
type "t" change.case$ |
| 1433 |
} |
| 1434 |
if$ |
| 1435 |
} |
| 1436 |
|
| 1437 |
FUNCTION {format.tr.number} |
| 1438 |
{ type empty$ |
| 1439 |
{ bbl.techrep } |
| 1440 |
'type |
| 1441 |
if$ |
| 1442 |
number empty$ |
| 1443 |
{ "t" change.case$ } |
| 1444 |
{ number tie.or.space.connect } |
| 1445 |
if$ |
| 1446 |
} |
| 1447 |
|
| 1448 |
FUNCTION {format.article.crossref} |
| 1449 |
{ " \protect\jbartcrossrefchecked {" crossref * "}" * } |
| 1450 |
|
| 1451 |
FUNCTION {format.book.crossref} |
| 1452 |
{ type$ "book" = |
| 1453 |
{ volume empty$ |
| 1454 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 1455 |
"\protect\jbcrossrefchecked {" crossref * "}" * } |
| 1456 |
{ "\protect\jbcrossrefchecked[" volume * "]{" * crossref "}" * * } |
| 1457 |
if$ |
| 1458 |
} |
| 1459 |
{ "\protect\jbcrossrefchecked {" crossref * "}" * } |
| 1460 |
if$ |
| 1461 |
} |
| 1462 |
|
| 1463 |
FUNCTION {format.incoll.inproc.crossref} |
| 1464 |
{ " \protect\jbincollcrossref {" crossref * "}" * |
| 1465 |
editor empty$ |
| 1466 |
{ "{}" * } |
| 1467 |
{ "{1}" * } |
| 1468 |
if$ |
| 1469 |
} |
| 1470 |
|
| 1471 |
FUNCTION {oaddress.opublisher.oyear.format} |
| 1472 |
{ type$ "book" = |
| 1473 |
{ oyear empty$ |
| 1474 |
{ opublisher empty$ |
| 1475 |
{ oaddress empty$ |
| 1476 |
'skip$ |
| 1477 |
{ oaddress "\osep {} " * * } |
| 1478 |
if$ |
| 1479 |
} |
| 1480 |
{ oaddress empty$ |
| 1481 |
{ opublisher "\osep {} " * * } |
| 1482 |
{ oaddress "\bpubaddr {} " * opublisher "\osep {} " * * * } |
| 1483 |
if$ |
| 1484 |
} |
| 1485 |
if$ |
| 1486 |
} |
| 1487 |
{ year empty$ |
| 1488 |
{ "oyear without year in " cite$ * warning$ } |
| 1489 |
'skip$ |
| 1490 |
if$ |
| 1491 |
opublisher empty$ |
| 1492 |
{ oaddress empty$ |
| 1493 |
{ oyear * "\osep {} \reprintname {}, " * } |
| 1494 |
{ oaddress "\bibbdsep {} " * oyear "\osep {} " * * * } |
| 1495 |
if$ |
| 1496 |
} |
| 1497 |
{ oaddress empty$ |
| 1498 |
{ opublisher * "\bibbdsep {} " * oyear "\osep {} " * * } |
| 1499 |
{ oaddress "\bpubaddr {} " * opublisher "\bibbdsep {} " * * oyear "\osep {} " * * * } |
| 1500 |
if$ |
| 1501 |
} |
| 1502 |
if$ |
| 1503 |
} |
| 1504 |
if$ |
| 1505 |
} |
| 1506 |
'skip$ |
| 1507 |
if$ |
| 1508 |
} |
| 1509 |
|
| 1510 |
FUNCTION {format.publisher} |
| 1511 |
{ year empty$ month empty$ not and |
| 1512 |
{ "there's a month but no year in " cite$ * warning$ } |
| 1513 |
'skip$ |
| 1514 |
if$ |
| 1515 |
address empty$ publisher empty$ year empty$ and and |
| 1516 |
'skip$ |
| 1517 |
{ " \apyformat {" * } |
| 1518 |
if$ |
| 1519 |
oaddress.opublisher.oyear.format |
| 1520 |
address empty$ |
| 1521 |
{ |
| 1522 |
publisher empty$ |
| 1523 |
{ |
| 1524 |
year empty$ |
| 1525 |
'skip$ |
| 1526 |
{ month empty$ |
| 1527 |
{ year * add.extra.label } |
| 1528 |
{ month "{} " * year * * add.extra.label } |
| 1529 |
if$ |
| 1530 |
} |
| 1531 |
if$ |
| 1532 |
} |
| 1533 |
{ |
| 1534 |
year empty$ |
| 1535 |
{ month empty$ |
| 1536 |
{ publisher * } |
| 1537 |
'skip$ |
| 1538 |
if$ |
| 1539 |
} |
| 1540 |
{ month empty$ |
| 1541 |
{ publisher "\bibbdsep {} " * year * * add.extra.label } |
| 1542 |
{ publisher "\bibbdsep {} " * month "{} " * year * * * add.extra.label } |
| 1543 |
if$ |
| 1544 |
} |
| 1545 |
if$ |
| 1546 |
} |
| 1547 |
if$ |
| 1548 |
} |
| 1549 |
{ |
| 1550 |
publisher empty$ |
| 1551 |
{ |
| 1552 |
year empty$ |
| 1553 |
{ address * } |
| 1554 |
{ month empty$ |
| 1555 |
{ address "\bibbdsep {} " * year * * add.extra.label } |
| 1556 |
{ address "\bibbdsep {} " * month "{} " * year * * * add.extra.label } |
| 1557 |
if$ |
| 1558 |
} |
| 1559 |
if$ |
| 1560 |
} |
| 1561 |
{ |
| 1562 |
year empty$ |
| 1563 |
{ month empty$ |
| 1564 |
{ address "\bpubaddr {} " * publisher * * } |
| 1565 |
'skip$ |
| 1566 |
if$ |
| 1567 |
} |
| 1568 |
{ month empty$ |
| 1569 |
{ address "\bpubaddr {} " * publisher "\bibbdsep {} " * year * * * add.extra.label } |
| 1570 |
{ address "\bpubaddr {} " * publisher "\bibbdsep {} " * month "{} " * year * * * * add.extra.label } |
| 1571 |
if$ |
| 1572 |
} |
| 1573 |
if$ |
| 1574 |
} |
| 1575 |
if$ |
| 1576 |
} |
| 1577 |
if$ |
| 1578 |
address empty$ publisher empty$ year empty$ and and |
| 1579 |
'skip$ |
| 1580 |
{ "}" * } |
| 1581 |
if$ |
| 1582 |
} |
| 1583 |
|
| 1584 |
FUNCTION {format.publisher.manual} |
| 1585 |
{ year empty$ month empty$ not and |
| 1586 |
{ "there's a month but no year in " cite$ * warning$ } |
| 1587 |
'skip$ |
| 1588 |
if$ |
| 1589 |
address empty$ organization empty$ year empty$ and and |
| 1590 |
'skip$ |
| 1591 |
{ " \apyformat {" * } |
| 1592 |
if$ |
| 1593 |
address empty$ |
| 1594 |
{ |
| 1595 |
organization empty$ |
| 1596 |
{ |
| 1597 |
year empty$ |
| 1598 |
'skip$ |
| 1599 |
{ month empty$ |
| 1600 |
{ year * add.extra.label } |
| 1601 |
{ month "{} " * year * * add.extra.label } |
| 1602 |
if$ |
| 1603 |
} |
| 1604 |
if$ |
| 1605 |
} |
| 1606 |
{ |
| 1607 |
year empty$ |
| 1608 |
{ month empty$ |
| 1609 |
{ organization * } |
| 1610 |
'skip$ |
| 1611 |
if$ |
| 1612 |
} |
| 1613 |
{ month empty$ |
| 1614 |
{ organization "\bibbdsep {} " * year * * add.extra.label } |
| 1615 |
{ organization "\bibbdsep {} " * month "{} " * year * * * add.extra.label } |
| 1616 |
if$ |
| 1617 |
} |
| 1618 |
if$ |
| 1619 |
} |
| 1620 |
if$ |
| 1621 |
} |
| 1622 |
{ organization empty$ |
| 1623 |
{ year empty$ |
| 1624 |
{ address * } |
| 1625 |
{ month empty$ |
| 1626 |
{ address "\bibbdsep {} " * year * * add.extra.label } |
| 1627 |
{ address "\bpubaddr {} " * month "{} " * year * * * add.extra.label } |
| 1628 |
if$ |
| 1629 |
} |
| 1630 |
if$ |
| 1631 |
} |
| 1632 |
{ year empty$ |
| 1633 |
{ month empty$ |
| 1634 |
{ address "\bpubaddr {} " * organization * * } |
| 1635 |
'skip$ |
| 1636 |
if$ |
| 1637 |
} |
| 1638 |
{ month empty$ |
| 1639 |
{ address "\bpubaddr {} " * organization "\bibbdsep {} " * year * * * add.extra.label } |
| 1640 |
{ address "\bpubaddr {} " * organization "\bibbdsep {} " * month "{} " * year * * * * add.extra.label } |
| 1641 |
if$ |
| 1642 |
} |
| 1643 |
if$ |
| 1644 |
} |
| 1645 |
if$ |
| 1646 |
} |
| 1647 |
if$ |
| 1648 |
address empty$ organization empty$ year empty$ and and |
| 1649 |
'skip$ |
| 1650 |
{ "}" * } |
| 1651 |
if$ |
| 1652 |
} |
| 1653 |
|
| 1654 |
FUNCTION {format.publisher.techreport} |
| 1655 |
{ year empty$ month empty$ not and |
| 1656 |
{ "there's a month but no year in " cite$ * warning$ } |
| 1657 |
'skip$ |
| 1658 |
if$ |
| 1659 |
address empty$ institution empty$ year empty$ and and |
| 1660 |
'skip$ |
| 1661 |
{ " \apyformat {" * } |
| 1662 |
if$ |
| 1663 |
address empty$ |
| 1664 |
{ |
| 1665 |
institution empty$ |
| 1666 |
{ |
| 1667 |
year empty$ |
| 1668 |
'skip$ |
| 1669 |
{ month empty$ |
| 1670 |
{ year * add.extra.label } |
| 1671 |
{ month "{} " * year * * add.extra.label } |
| 1672 |
if$ |
| 1673 |
} |
| 1674 |
if$ |
| 1675 |
} |
| 1676 |
{ |
| 1677 |
year empty$ |
| 1678 |
{ month empty$ |
| 1679 |
{ institution * } |
| 1680 |
'skip$ |
| 1681 |
if$ |
| 1682 |
} |
| 1683 |
{ month empty$ |
| 1684 |
{ institution "\bibbdsep {} " * year * * add.extra.label } |
| 1685 |
{ institution "\bibbdsep {} " * month "{} " * year * * * add.extra.label } |
| 1686 |
if$ |
| 1687 |
} |
| 1688 |
if$ |
| 1689 |
} |
| 1690 |
if$ |
| 1691 |
} |
| 1692 |
{ institution empty$ |
| 1693 |
{ year empty$ |
| 1694 |
{ address * } |
| 1695 |
{ month empty$ |
| 1696 |
{ address "\bibbdsep {} " * year * * add.extra.label } |
| 1697 |
{ address "\bpubaddr {} " * month "{} " * year * * * add.extra.label } |
| 1698 |
if$ |
| 1699 |
} |
| 1700 |
if$ |
| 1701 |
} |
| 1702 |
{ year empty$ |
| 1703 |
{ month empty$ |
| 1704 |
{ address "\bpubaddr {} " * institution * * } |
| 1705 |
'skip$ |
| 1706 |
if$ |
| 1707 |
} |
| 1708 |
{ month empty$ |
| 1709 |
{ address "\bpubaddr {} " * institution "\bibbdsep {} " * year * * * add.extra.label } |
| 1710 |
{ address "\bpubaddr {} " * institution "\bibbdsep {} " * month "{} " * year * * * * add.extra.label } |
| 1711 |
if$ |
| 1712 |
} |
| 1713 |
if$ |
| 1714 |
} |
| 1715 |
if$ |
| 1716 |
} |
| 1717 |
if$ |
| 1718 |
address empty$ institution empty$ year empty$ and and |
| 1719 |
'skip$ |
| 1720 |
{ "}" * } |
| 1721 |
if$ |
| 1722 |
} |
| 1723 |
|
| 1724 |
FUNCTION {format.edby.editors} |
| 1725 |
{ author empty$ |
| 1726 |
'skip$ |
| 1727 |
{ editor empty$ |
| 1728 |
'skip$ |
| 1729 |
{ "\edbyname {} " editor format.editor.names * output } |
| 1730 |
if$ |
| 1731 |
} |
| 1732 |
if$ |
| 1733 |
} |
| 1734 |
|
| 1735 |
FUNCTION {make.translators} |
| 1736 |
{ translator empty$ |
| 1737 |
{ flanguage empty$ |
| 1738 |
{ "" } |
| 1739 |
{ "\translator {}{" flanguage "l" change.case$ * "}{1}" * } |
| 1740 |
if$ |
| 1741 |
} |
| 1742 |
{ "\translator {" translator * "}" * |
| 1743 |
flanguage empty$ |
| 1744 |
{ "{}{1}" * } |
| 1745 |
{ "{" * flanguage "l" change.case$ * "}{1}" * } |
| 1746 |
if$ |
| 1747 |
} |
| 1748 |
if$ |
| 1749 |
} |
| 1750 |
|
| 1751 |
FUNCTION {article} |
| 1752 |
{ output.bibitem |
| 1753 |
format.authors "author" output.check |
| 1754 |
set.after.author.sep output |
| 1755 |
format.title "title" output.check |
| 1756 |
format.titleaddon |
| 1757 |
crossref missing$ |
| 1758 |
{ journal journalnamemarkup |
| 1759 |
"journal" output.check |
| 1760 |
format.vol.num.pages output |
| 1761 |
write.url |
| 1762 |
format.journal.pages |
| 1763 |
} |
| 1764 |
{ format.article.crossref output.nonnull |
| 1765 |
format.pages output |
| 1766 |
} |
| 1767 |
if$ |
| 1768 |
format.note |
| 1769 |
fin.entry |
| 1770 |
} |
| 1771 |
|
| 1772 |
FUNCTION {periodical} {article} |
| 1773 |
|
| 1774 |
FUNCTION {review} |
| 1775 |
{ output.bibitem |
| 1776 |
format.authors "author" output.check |
| 1777 |
set.after.author.sep output |
| 1778 |
format.title "title" output.check |
| 1779 |
format.titleaddon |
| 1780 |
crossref missing$ |
| 1781 |
{ journal journalnamemarkup |
| 1782 |
"journal" output.check |
| 1783 |
format.vol.num.pages output |
| 1784 |
write.url |
| 1785 |
format.journal.pages |
| 1786 |
} |
| 1787 |
{ format.article.crossref output.nonnull |
| 1788 |
format.pages output |
| 1789 |
} |
| 1790 |
if$ |
| 1791 |
format.note |
| 1792 |
fin.entry |
| 1793 |
} |
| 1794 |
|
| 1795 |
FUNCTION {format.editors.last} |
| 1796 |
{ editor empty$ |
| 1797 |
{ "" before.all 'output.state := } |
| 1798 |
{ author empty$ not |
| 1799 |
{ " \edbyname{} " editor format.editor.names * } |
| 1800 |
{ "" before.all 'output.state := } |
| 1801 |
if$ |
| 1802 |
} |
| 1803 |
if$ |
| 1804 |
} |
| 1805 |
|
| 1806 |
FUNCTION {book} |
| 1807 |
{ output.bibitem |
| 1808 |
author empty$ |
| 1809 |
{ editor empty$ not |
| 1810 |
{ format.editors output.nonnull } |
| 1811 |
{ "neither author nor editor in " cite$ * warning$ } |
| 1812 |
if$ |
| 1813 |
} |
| 1814 |
{ format.authors output.nonnull } |
| 1815 |
if$ |
| 1816 |
set.after.author.sep output |
| 1817 |
crossref missing$ |
| 1818 |
{ format.bvolume.btitle |
| 1819 |
format.editors.last output.nonnull |
| 1820 |
make.translators output |
| 1821 |
format.titleaddon |
| 1822 |
format.number.series.book output |
| 1823 |
format.edition output |
| 1824 |
format.pages output |
| 1825 |
format.publisher |
| 1826 |
write.url |
| 1827 |
format.note |
| 1828 |
} |
| 1829 |
{ format.btitle "title" output.check |
| 1830 |
format.book.crossref output.nonnull |
| 1831 |
} |
| 1832 |
if$ |
| 1833 |
fin.entry |
| 1834 |
} |
| 1835 |
|
| 1836 |
FUNCTION {booklet} |
| 1837 |
{ output.bibitem |
| 1838 |
format.authors output |
| 1839 |
set.after.author.sep output |
| 1840 |
format.btitle "title" output.check |
| 1841 |
format.titleaddon |
| 1842 |
howpublished output |
| 1843 |
format.publisher |
| 1844 |
format.pages output |
| 1845 |
write.url |
| 1846 |
format.note |
| 1847 |
fin.entry |
| 1848 |
} |
| 1849 |
|
| 1850 |
FUNCTION {inbook} |
| 1851 |
{ output.bibitem |
| 1852 |
format.authors "author" output.check |
| 1853 |
set.after.author.sep output |
| 1854 |
crossref missing$ |
| 1855 |
{ format.bvolume.btitle |
| 1856 |
format.titleaddon |
| 1857 |
make.translators output |
| 1858 |
format.number.series output |
| 1859 |
format.edition output |
| 1860 |
format.publisher |
| 1861 |
write.url |
| 1862 |
format.chapter.inbook.incoll output |
| 1863 |
format.pages output |
| 1864 |
format.note |
| 1865 |
} |
| 1866 |
{ format.btitle "title" output.check |
| 1867 |
format.chapter.inbook.incoll output |
| 1868 |
format.incoll.inproc.crossref output.nonnull |
| 1869 |
format.bvolume output |
| 1870 |
format.pages output |
| 1871 |
} |
| 1872 |
if$ |
| 1873 |
fin.entry |
| 1874 |
} |
| 1875 |
|
| 1876 |
FUNCTION {incollection} |
| 1877 |
{ output.bibitem |
| 1878 |
format.authors "author" output.check |
| 1879 |
set.after.author.sep output |
| 1880 |
crossref missing$ |
| 1881 |
{ format.btitle "title" output.check |
| 1882 |
format.titleaddon |
| 1883 |
format.chapter.inbook.incoll output |
| 1884 |
format.in.editor.booktitle.volume.voltitle |
| 1885 |
make.translators output |
| 1886 |
format.number.series.book output |
| 1887 |
format.edition output |
| 1888 |
format.publisher |
| 1889 |
write.url |
| 1890 |
format.note |
| 1891 |
format.pages output |
| 1892 |
} |
| 1893 |
{ format.title "title" output.check |
| 1894 |
format.chapter.inbook.incoll output |
| 1895 |
format.incoll.inproc.crossref output.nonnull |
| 1896 |
format.bvolume output |
| 1897 |
format.pages output |
| 1898 |
} |
| 1899 |
if$ |
| 1900 |
fin.entry |
| 1901 |
} |
| 1902 |
|
| 1903 |
FUNCTION {inproceedings} |
| 1904 |
{ output.bibitem |
| 1905 |
format.authors "author" output.check |
| 1906 |
set.after.author.sep output |
| 1907 |
format.title "title" output.check |
| 1908 |
format.titleaddon |
| 1909 |
crossref missing$ |
| 1910 |
{ format.in.ed.booktitle "booktitle" output.check |
| 1911 |
format.bvolume output |
| 1912 |
format.number.series output |
| 1913 |
publisher empty$ |
| 1914 |
{ organization output |
| 1915 |
format.publisher |
| 1916 |
} |
| 1917 |
{ organization output |
| 1918 |
format.publisher |
| 1919 |
} |
| 1920 |
if$ |
| 1921 |
write.url |
| 1922 |
format.note |
| 1923 |
format.pages output |
| 1924 |
} |
| 1925 |
{ format.incoll.inproc.crossref output.nonnull |
| 1926 |
format.pages output |
| 1927 |
} |
| 1928 |
if$ |
| 1929 |
fin.entry |
| 1930 |
} |
| 1931 |
|
| 1932 |
FUNCTION {conference} { inproceedings } |
| 1933 |
|
| 1934 |
FUNCTION {manual} |
| 1935 |
{ output.bibitem |
| 1936 |
format.authors output |
| 1937 |
set.after.author.sep output |
| 1938 |
format.btitle "title" output.check |
| 1939 |
format.titleaddon |
| 1940 |
format.edition output |
| 1941 |
format.publisher.manual |
| 1942 |
write.url |
| 1943 |
format.note |
| 1944 |
fin.entry |
| 1945 |
} |
| 1946 |
|
| 1947 |
FUNCTION {mastersthesis} |
| 1948 |
{ output.bibitem |
| 1949 |
format.authors "author" output.check |
| 1950 |
set.after.author.sep output |
| 1951 |
format.btitle "title" output.check |
| 1952 |
format.titleaddon |
| 1953 |
bbl.mthesis format.thesis.type output.nonnull |
| 1954 |
school "school" output.check |
| 1955 |
format.publisher |
| 1956 |
write.url |
| 1957 |
format.note |
| 1958 |
fin.entry |
| 1959 |
} |
| 1960 |
|
| 1961 |
FUNCTION {misc} |
| 1962 |
{ output.bibitem |
| 1963 |
format.authors output |
| 1964 |
set.after.author.sep output |
| 1965 |
format.btitle output |
| 1966 |
format.titleaddon |
| 1967 |
howpublished output |
| 1968 |
format.date |
| 1969 |
write.url |
| 1970 |
format.note |
| 1971 |
fin.entry |
| 1972 |
} |
| 1973 |
|
| 1974 |
FUNCTION {phdthesis} |
| 1975 |
{ output.bibitem |
| 1976 |
format.authors "author" output.check |
| 1977 |
set.after.author.sep output |
| 1978 |
format.btitle "title" output.check |
| 1979 |
format.titleaddon |
| 1980 |
bbl.phdthesis format.thesis.type output.nonnull |
| 1981 |
school "school" output.check |
| 1982 |
format.publisher |
| 1983 |
write.url |
| 1984 |
format.note |
| 1985 |
fin.entry |
| 1986 |
} |
| 1987 |
|
| 1988 |
FUNCTION {proceedings} |
| 1989 |
{ output.bibitem |
| 1990 |
format.editors output |
| 1991 |
set.after.author.sep output |
| 1992 |
format.btitle "title" output.check |
| 1993 |
format.titleaddon |
| 1994 |
format.number.series.book output |
| 1995 |
organization output |
| 1996 |
format.publisher |
| 1997 |
write.url |
| 1998 |
format.note |
| 1999 |
fin.entry |
| 2000 |
} |
| 2001 |
|
| 2002 |
FUNCTION {techreport} |
| 2003 |
{ output.bibitem |
| 2004 |
format.authors "author" output.check |
| 2005 |
set.after.author.sep output |
| 2006 |
format.title "title" output.check |
| 2007 |
format.tr.number output.nonnull |
| 2008 |
format.publisher.techreport |
| 2009 |
write.url |
| 2010 |
format.note |
| 2011 |
fin.entry |
| 2012 |
} |
| 2013 |
|
| 2014 |
FUNCTION {unpublished} |
| 2015 |
{ output.bibitem |
| 2016 |
format.authors "author" output.check |
| 2017 |
set.after.author.sep output |
| 2018 |
format.title "title" output.check |
| 2019 |
format.titleaddon |
| 2020 |
format.date |
| 2021 |
write.url |
| 2022 |
format.note |
| 2023 |
fin.entry |
| 2024 |
} |
| 2025 |
|
| 2026 |
FUNCTION {www} |
| 2027 |
{ output.bibitem |
| 2028 |
format.authors output.nonnull |
| 2029 |
set.after.author.sep output |
| 2030 |
format.title output.nonnull |
| 2031 |
write.url |
| 2032 |
format.note |
| 2033 |
fin.entry |
| 2034 |
} |
| 2035 |
|
| 2036 |
FUNCTION {default.type} { misc } |
| 2037 |
|
| 2038 |
READ |
| 2039 |
|
| 2040 |
FUNCTION {sortify} |
| 2041 |
{ purify$ |
| 2042 |
"l" change.case$ |
| 2043 |
} |
| 2044 |
|
| 2045 |
INTEGERS { len } |
| 2046 |
|
| 2047 |
FUNCTION {chop.word} |
| 2048 |
{ 's := |
| 2049 |
'len := |
| 2050 |
s #1 len substring$ = |
| 2051 |
{ s len #1 + global.max$ substring$ } |
| 2052 |
's |
| 2053 |
if$ |
| 2054 |
} |
| 2055 |
|
| 2056 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2057 |
INTEGERS { nextchar-ptr } % points just past 1st "text" char |
| 2058 |
|
| 2059 |
FUNCTION {get.nextchar.ptr} % set nextchar-ptr to be just past |
| 2060 |
{ #1 'nextchar-ptr := % the first "text" char---this will |
| 2061 |
{ duplicate$ % be not quite trivial if |
| 2062 |
nextchar-ptr #1 substring$ % the first "text" char is a |
| 2063 |
"" = not % special characters like {\'E} |
| 2064 |
} |
| 2065 |
{ nextchar-ptr #1 + 'nextchar-ptr := } |
| 2066 |
while$ |
| 2067 |
pop$ |
| 2068 |
nextchar-ptr |
| 2069 |
} |
| 2070 |
|
| 2071 |
STRINGS { first-char } % the to-be-capitalized character |
| 2072 |
|
| 2073 |
FUNCTION {capitalize.von.part} % capitalize 1st character of string |
| 2074 |
{ duplicate$ #1 text.prefix$ % get 1st character |
| 2075 |
duplicate$ get.nextchar.ptr |
| 2076 |
swap$ "u" change.case$ % capitalize it |
| 2077 |
'first-char := |
| 2078 |
global.max$ substring$ % get rest of string |
| 2079 |
first-char swap$ * % append the two |
| 2080 |
} |
| 2081 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2082 |
|
| 2083 |
FUNCTION {format.lab.names} |
| 2084 |
{ 's := % for two: (Jones/de~Bruijn) |
| 2085 |
s #1 "{vv~}{ll}" format.name$ capitalize.von.part % for three: (Jones/de~Bruijn/Smith) |
| 2086 |
s num.names$ duplicate$ % for more: (Jones et~al.) |
| 2087 |
#2 < |
| 2088 |
'pop$ % for just one person |
| 2089 |
{ duplicate$ duplicate$ |
| 2090 |
#2 > |
| 2091 |
swap$ s swap$ "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 2092 |
or |
| 2093 |
{ pop$ "\Bibetal" * } % for 4 or more, or last is `others' |
| 2094 |
{ #2 = |
| 2095 |
{ "\jbbtasep " * s #2 "{vv~}{ll}" format.name$ capitalize.von.part * } % for (exactly) two |
| 2096 |
{ "\jbbfsasep " * s #2 "{vv~}{ll}" format.name$ capitalize.von.part * % for three |
| 2097 |
"\jbbstasep " * s #3 "{vv~}{ll}" format.name$ capitalize.von.part * |
| 2098 |
} |
| 2099 |
if$ |
| 2100 |
} |
| 2101 |
if$ |
| 2102 |
} |
| 2103 |
if$ |
| 2104 |
year missing$ |
| 2105 |
'skip$ |
| 2106 |
{ "\jbdy {" year * "}" * * }% dummy year to prevent from `1993a' and `2001b' for works by the same author |
| 2107 |
if$ |
| 2108 |
} |
| 2109 |
|
| 2110 |
FUNCTION {author.key.label} |
| 2111 |
{ author empty$ |
| 2112 |
{ key empty$ |
| 2113 |
{ cite$ #1 #3 substring$ } |
| 2114 |
'key |
| 2115 |
if$ |
| 2116 |
} |
| 2117 |
{ author format.lab.names } |
| 2118 |
if$ |
| 2119 |
} |
| 2120 |
|
| 2121 |
FUNCTION {author.editor.key.label} |
| 2122 |
{ author empty$ |
| 2123 |
{ editor empty$ |
| 2124 |
{ key empty$ |
| 2125 |
{ cite$ #1 #3 substring$ } |
| 2126 |
'key |
| 2127 |
if$ |
| 2128 |
} |
| 2129 |
{ editor format.lab.names } |
| 2130 |
if$ |
| 2131 |
} |
| 2132 |
{ author format.lab.names } |
| 2133 |
if$ |
| 2134 |
} |
| 2135 |
|
| 2136 |
FUNCTION {editor.key.label} |
| 2137 |
{ editor empty$ |
| 2138 |
{ key empty$ |
| 2139 |
{ cite$ #1 #3 substring$ } |
| 2140 |
'key |
| 2141 |
if$ |
| 2142 |
} |
| 2143 |
{ editor format.lab.names } |
| 2144 |
if$ |
| 2145 |
} |
| 2146 |
|
| 2147 |
FUNCTION {calc.label} |
| 2148 |
{ type$ "book" = type$ "inbook" = or type$ "incollection" = or |
| 2149 |
'author.editor.key.label |
| 2150 |
{ type$ "proceedings" = |
| 2151 |
'editor.key.label |
| 2152 |
'author.key.label |
| 2153 |
if$ |
| 2154 |
} |
| 2155 |
if$ |
| 2156 |
'label := |
| 2157 |
} |
| 2158 |
|
| 2159 |
FUNCTION {calc.dummy.label} |
| 2160 |
{ type$ "book" = type$ "inbook" = or type$ "incollection" = or type$ "commented" = or |
| 2161 |
'author.editor.key.label |
| 2162 |
{ type$ "proceedings" = |
| 2163 |
'editor.key.label |
| 2164 |
'author.key.label |
| 2165 |
if$ |
| 2166 |
} |
| 2167 |
if$ |
| 2168 |
'dummy.label := |
| 2169 |
} |
| 2170 |
|
| 2171 |
FUNCTION {sort.format.names} |
| 2172 |
{ 's := |
| 2173 |
#1 'nameptr := |
| 2174 |
"" |
| 2175 |
s num.names$ 'numnames := |
| 2176 |
numnames 'namesleft := |
| 2177 |
{ namesleft #0 > } |
| 2178 |
{ nameptr #1 > |
| 2179 |
{ " " * } |
| 2180 |
'skip$ |
| 2181 |
if$ |
| 2182 |
s nameptr "{ll{ }}{ ff{ }}{ vv{ }}{ jj{ }}" format.name$ 't := |
| 2183 |
nameptr numnames = t "\bibnf {others} {} {} {} {}" = and |
| 2184 |
{ "\Bibetal" * } |
| 2185 |
{ t sortify * } |
| 2186 |
if$ |
| 2187 |
nameptr #1 + 'nameptr := |
| 2188 |
namesleft #1 - 'namesleft := |
| 2189 |
} |
| 2190 |
while$ |
| 2191 |
} |
| 2192 |
|
| 2193 |
FUNCTION {sort.format.title} |
| 2194 |
{ 't := |
| 2195 |
"A " #2 |
| 2196 |
"An " #3 |
| 2197 |
"The " #4 t chop.word |
| 2198 |
chop.word |
| 2199 |
chop.word |
| 2200 |
sortify |
| 2201 |
#1 global.max$ substring$ |
| 2202 |
} |
| 2203 |
|
| 2204 |
FUNCTION {author.sort} |
| 2205 |
{ author empty$ |
| 2206 |
{ pseudonym empty$ |
| 2207 |
{ key empty$ |
| 2208 |
{ "to sort, need author, pseudonym or key in " cite$ * warning$ "" } |
| 2209 |
{ key sortify } |
| 2210 |
if$ |
| 2211 |
} |
| 2212 |
{ pseudonym sort.format.names } |
| 2213 |
if$ |
| 2214 |
} |
| 2215 |
{ author sort.format.names } |
| 2216 |
if$ |
| 2217 |
} |
| 2218 |
|
| 2219 |
FUNCTION {author.editor.sort} |
| 2220 |
{ author empty$ |
| 2221 |
{ editor empty$ |
| 2222 |
{ pseudonym empty$ |
| 2223 |
{ key empty$ |
| 2224 |
{ "to sort, need author, editor, pseudonym or key in " cite$ * warning$ "" } |
| 2225 |
{ key sortify } |
| 2226 |
if$ |
| 2227 |
} |
| 2228 |
{ pseudonym sort.format.names } |
| 2229 |
if$ |
| 2230 |
} |
| 2231 |
{ editor sort.format.names } |
| 2232 |
if$ |
| 2233 |
} |
| 2234 |
{ author sort.format.names } |
| 2235 |
if$ |
| 2236 |
} |
| 2237 |
|
| 2238 |
FUNCTION {editor.sort} |
| 2239 |
{ editor empty$ |
| 2240 |
{ pseudonym empty$ |
| 2241 |
{ key empty$ |
| 2242 |
{ "to sort, need author, editor, pseudonym or key in " cite$ * warning$ "" } |
| 2243 |
{ key sortify } |
| 2244 |
if$ |
| 2245 |
} |
| 2246 |
{ pseudonym sort.format.names } |
| 2247 |
if$ |
| 2248 |
} |
| 2249 |
{ editor sort.format.names } |
| 2250 |
if$ |
| 2251 |
} |
| 2252 |
|
| 2253 |
FUNCTION {presort} |
| 2254 |
{ calc.label |
| 2255 |
calc.dummy.label |
| 2256 |
dummy.label sortify " " * |
| 2257 |
sortkey empty$ |
| 2258 |
{ type$ "book" = |
| 2259 |
type$ "incollection" = or |
| 2260 |
type$ "inbook" = or |
| 2261 |
'author.editor.sort |
| 2262 |
{ type$ "proceedings" = |
| 2263 |
'editor.sort |
| 2264 |
'author.sort |
| 2265 |
if$ |
| 2266 |
} |
| 2267 |
if$ |
| 2268 |
} |
| 2269 |
{ sortkey sort.format.names } |
| 2270 |
if$ |
| 2271 |
" " |
| 2272 |
* |
| 2273 |
year field.or.null sortify |
| 2274 |
* |
| 2275 |
" " |
| 2276 |
* |
| 2277 |
title field.or.null |
| 2278 |
sort.format.title |
| 2279 |
* |
| 2280 |
#1 entry.max$ substring$ |
| 2281 |
'sort.label := |
| 2282 |
sort.label * |
| 2283 |
#1 entry.max$ substring$ |
| 2284 |
'sort.key$ := |
| 2285 |
} |
| 2286 |
|
| 2287 |
ITERATE {presort} |
| 2288 |
|
| 2289 |
|
| 2290 |
SORT |
| 2291 |
|
| 2292 |
|
| 2293 |
STRINGS { last.dummy.label next.extra } |
| 2294 |
|
| 2295 |
INTEGERS { last.extra.num number.label } |
| 2296 |
|
| 2297 |
FUNCTION {forward.pass} |
| 2298 |
{ last.dummy.label dummy.label = |
| 2299 |
{ last.extra.num #1 + 'last.extra.num := |
| 2300 |
last.extra.num int.to.chr$ 'extra.label := |
| 2301 |
} |
| 2302 |
{ "a" chr.to.int$ 'last.extra.num := |
| 2303 |
"" 'extra.label := |
| 2304 |
dummy.label 'last.dummy.label := |
| 2305 |
} |
| 2306 |
if$ |
| 2307 |
number.label #1 + 'number.label := |
| 2308 |
} |
| 2309 |
|
| 2310 |
FUNCTION {reverse.pass} |
| 2311 |
{ next.extra "b" = |
| 2312 |
{ "a" 'extra.label := } |
| 2313 |
'skip$ |
| 2314 |
if$ |
| 2315 |
extra.label 'next.extra := |
| 2316 |
extra.label |
| 2317 |
duplicate$ empty$ |
| 2318 |
'skip$ |
| 2319 |
{ "" swap$ * } |
| 2320 |
if$ |
| 2321 |
'extra.label := |
| 2322 |
dummy.label extra.label * 'dummy.label := |
| 2323 |
} |
| 2324 |
|
| 2325 |
ITERATE {forward.pass} |
| 2326 |
|
| 2327 |
REVERSE {reverse.pass} |
| 2328 |
|
| 2329 |
FUNCTION {bib.sort.order} { sort.label 'sort.key$ := } |
| 2330 |
|
| 2331 |
ITERATE {bib.sort.order} |
| 2332 |
|
| 2333 |
SORT |
| 2334 |
|
| 2335 |
FUNCTION {set.current.authors} |
| 2336 |
{ author empty$ |
| 2337 |
{ editor empty$ |
| 2338 |
{ organization empty$ |
| 2339 |
{ cite$ 'current-authors := } |
| 2340 |
{ organization 'current-authors := } |
| 2341 |
if$ |
| 2342 |
} |
| 2343 |
{ editor format.names #1 entry.max$ substring$ 'current-authors := } |
| 2344 |
if$ |
| 2345 |
} |
| 2346 |
{ author format.names #1 entry.max$ substring$ 'current-authors := } |
| 2347 |
if$ |
| 2348 |
} |
| 2349 |
|
| 2350 |
STRINGS { previous-authors } |
| 2351 |
|
| 2352 |
FUNCTION {initialize.previous.authors} { "" 'previous-authors := } |
| 2353 |
|
| 2354 |
FUNCTION {mark.repeat.authors} |
| 2355 |
{ current-authors previous-authors = |
| 2356 |
{ #1 'repeat-authors := } |
| 2357 |
'skip$ |
| 2358 |
if$ |
| 2359 |
current-authors 'previous-authors := |
| 2360 |
} |
| 2361 |
|
| 2362 |
ITERATE {set.current.authors} |
| 2363 |
|
| 2364 |
EXECUTE {initialize.previous.authors} |
| 2365 |
|
| 2366 |
ITERATE {mark.repeat.authors} |
| 2367 |
|
| 2368 |
EXECUTE {initialize.previous.authors} |
| 2369 |
|
| 2370 |
REVERSE {mark.repeat.authors} |
| 2371 |
|
| 2372 |
FUNCTION {begin.bib} |
| 2373 |
{ preamble$ empty$ |
| 2374 |
'skip$ |
| 2375 |
{ preamble$ write$ newline$ } |
| 2376 |
if$ |
| 2377 |
"%" write$ newline$ |
| 2378 |
"% This bibliography was produced by using jox.bst" write$ version write$ newline$ |
| 2379 |
"%" write$ newline$ |
| 2380 |
"\begin{thebibliography}{}" write$ newline$ |
| 2381 |
} |
| 2382 |
|
| 2383 |
EXECUTE {begin.bib} |
| 2384 |
|
| 2385 |
EXECUTE {init.state.consts} |
| 2386 |
|
| 2387 |
ITERATE {call.type$} |
| 2388 |
|
| 2389 |
FUNCTION {end.bib} |
| 2390 |
{ newline$ |
| 2391 |
"\end{thebibliography}" write$ newline$ |
| 2392 |
} |
| 2393 |
|
| 2394 |
EXECUTE {end.bib} |
| 2395 |
%% |
| 2396 |
%% |
| 2397 |
%% End of file `jox.bst'. |