| 1 |
%% |
| 2 |
%% This is file `bgteuabbr2.bst', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% bgteucls.dtx (with options: `bibstyle,short,names2') |
| 8 |
%% |
| 9 |
%% bgteubner class bundle |
| 10 |
%% |
| 11 |
%% Copyright 2003--2015 Harald Harders |
| 12 |
%% |
| 13 |
%% This program may be distributed and/or modified under the |
| 14 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 15 |
%% of this license or (at your opinion) any later version. |
| 16 |
%% The latest version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 19 |
%% version 1999/12/01 or later. |
| 20 |
%% |
| 21 |
%% This program consists of all files listed in manifest.txt. |
| 22 |
%% |
| 23 |
%% This BibTeX style is intended to be used with the bgteubner |
| 24 |
%% document class and the babelbib package. It may work together with |
| 25 |
%% other document classes but is unlikely to work without the |
| 26 |
%% babelbib package. |
| 27 |
%% |
| 28 |
%% [email protected] |
| 29 |
%% |
| 30 |
ENTRY |
| 31 |
{ address |
| 32 |
author |
| 33 |
booktitle |
| 34 |
chapter |
| 35 |
edition |
| 36 |
editor |
| 37 |
howpublished |
| 38 |
institution |
| 39 |
isbn |
| 40 |
issn |
| 41 |
journal |
| 42 |
key |
| 43 |
language |
| 44 |
month |
| 45 |
note |
| 46 |
number |
| 47 |
organization |
| 48 |
pages |
| 49 |
publisher |
| 50 |
school |
| 51 |
series |
| 52 |
title |
| 53 |
type |
| 54 |
url |
| 55 |
volume |
| 56 |
year |
| 57 |
} |
| 58 |
{} |
| 59 |
{ label } |
| 60 |
|
| 61 |
INTEGERS |
| 62 |
{ output.state |
| 63 |
before.all |
| 64 |
mid.sentence |
| 65 |
after.sentence |
| 66 |
after.block |
| 67 |
before.title |
| 68 |
} |
| 69 |
STRINGS |
| 70 |
{ s |
| 71 |
t |
| 72 |
language.state |
| 73 |
change.temp |
| 74 |
} |
| 75 |
FUNCTION {init.state.consts} |
| 76 |
{ #0 'before.all := |
| 77 |
#1 'mid.sentence := |
| 78 |
#2 'after.sentence := |
| 79 |
#3 'after.block := |
| 80 |
#4 'before.title := |
| 81 |
"nostate" 'language.state := |
| 82 |
} |
| 83 |
FUNCTION {not} |
| 84 |
{ { #0 } |
| 85 |
{ #1 } |
| 86 |
if$ |
| 87 |
} |
| 88 |
FUNCTION {and} |
| 89 |
{ 'skip$ |
| 90 |
{ pop$ #0 } |
| 91 |
if$ |
| 92 |
} |
| 93 |
FUNCTION {or} |
| 94 |
{ { pop$ #1 } |
| 95 |
'skip$ |
| 96 |
if$ |
| 97 |
} |
| 98 |
FUNCTION {language.change.case} |
| 99 |
{ |
| 100 |
'change.temp := |
| 101 |
't := |
| 102 |
"\btxifchangecase {" |
| 103 |
t change.temp change.case$ * |
| 104 |
"}{" * |
| 105 |
t * |
| 106 |
"}" * |
| 107 |
} |
| 108 |
FUNCTION {output.nonnull} |
| 109 |
{ 's := |
| 110 |
output.state mid.sentence = |
| 111 |
{ ", " * write$ } |
| 112 |
{ output.state after.block = |
| 113 |
{ add.period$ write$ |
| 114 |
newline$ |
| 115 |
"\newblock " write$ |
| 116 |
} |
| 117 |
{ output.state before.all = |
| 118 |
'write$ |
| 119 |
{ |
| 120 |
output.state before.title = |
| 121 |
{ "\btxauthorcolon\ " * write$ } |
| 122 |
{ add.period$ " " * write$ } |
| 123 |
if$ |
| 124 |
} |
| 125 |
if$ |
| 126 |
} |
| 127 |
if$ |
| 128 |
mid.sentence 'output.state := |
| 129 |
} |
| 130 |
if$ |
| 131 |
s |
| 132 |
} |
| 133 |
FUNCTION {output} |
| 134 |
{ duplicate$ empty$ |
| 135 |
'pop$ |
| 136 |
'output.nonnull |
| 137 |
if$ |
| 138 |
} |
| 139 |
FUNCTION {output.check} |
| 140 |
{ 't := |
| 141 |
duplicate$ empty$ |
| 142 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 143 |
'output.nonnull |
| 144 |
if$ |
| 145 |
} |
| 146 |
FUNCTION {output.bibitem} |
| 147 |
{ newline$ |
| 148 |
language empty$ |
| 149 |
{ "empty language in " cite$ * warning$ } |
| 150 |
{ language.state language = |
| 151 |
'skip$ |
| 152 |
{ "\btxselectlanguage {" language * "}" * write$ |
| 153 |
newline$ |
| 154 |
} |
| 155 |
if$ |
| 156 |
language 'language.state := |
| 157 |
} |
| 158 |
if$ |
| 159 |
"\bibitem{" write$ |
| 160 |
cite$ write$ |
| 161 |
"}" write$ |
| 162 |
newline$ |
| 163 |
"" |
| 164 |
before.all 'output.state := |
| 165 |
} |
| 166 |
FUNCTION {fin.entry} |
| 167 |
{ add.period$ |
| 168 |
write$ |
| 169 |
newline$ |
| 170 |
} |
| 171 |
FUNCTION {new.block} |
| 172 |
{ output.state before.all = |
| 173 |
'skip$ |
| 174 |
{ after.block 'output.state := } |
| 175 |
if$ |
| 176 |
} |
| 177 |
FUNCTION {new.sentence} |
| 178 |
{ output.state after.block = |
| 179 |
'skip$ |
| 180 |
{ output.state before.all = |
| 181 |
'skip$ |
| 182 |
{ after.sentence 'output.state := } |
| 183 |
if$ |
| 184 |
} |
| 185 |
if$ |
| 186 |
} |
| 187 |
FUNCTION {after.authors} |
| 188 |
{ output.state before.all = |
| 189 |
'skip$ |
| 190 |
{ before.title 'output.state := } |
| 191 |
if$ |
| 192 |
} |
| 193 |
FUNCTION {new.block.checka} |
| 194 |
{ empty$ |
| 195 |
'skip$ |
| 196 |
'new.block |
| 197 |
if$ |
| 198 |
} |
| 199 |
FUNCTION {new.block.checkb} |
| 200 |
{ empty$ |
| 201 |
swap$ empty$ |
| 202 |
and |
| 203 |
'skip$ |
| 204 |
'new.block |
| 205 |
if$ |
| 206 |
} |
| 207 |
FUNCTION {new.block.checkc} |
| 208 |
{ empty$ |
| 209 |
swap$ empty$ |
| 210 |
and |
| 211 |
'skip$ |
| 212 |
'after.authors |
| 213 |
if$ |
| 214 |
} |
| 215 |
FUNCTION {new.sentence.checka} |
| 216 |
{ empty$ |
| 217 |
'skip$ |
| 218 |
'new.sentence |
| 219 |
if$ |
| 220 |
} |
| 221 |
FUNCTION {new.sentence.checkb} |
| 222 |
{ empty$ |
| 223 |
swap$ empty$ |
| 224 |
and |
| 225 |
'skip$ |
| 226 |
'new.sentence |
| 227 |
if$ |
| 228 |
} |
| 229 |
FUNCTION {field.or.null} |
| 230 |
{ duplicate$ empty$ |
| 231 |
{ pop$ "" } |
| 232 |
'skip$ |
| 233 |
if$ |
| 234 |
} |
| 235 |
FUNCTION {namefont} |
| 236 |
{ duplicate$ empty$ |
| 237 |
{ pop$ "" } |
| 238 |
{ "\btxnamefont {" swap$ * "}" * } |
| 239 |
if$ |
| 240 |
} |
| 241 |
FUNCTION {lastnamefont} |
| 242 |
{ duplicate$ empty$ |
| 243 |
{ pop$ "" } |
| 244 |
{ "\btxlastnamefont {" swap$ * "}" * } |
| 245 |
if$ |
| 246 |
} |
| 247 |
FUNCTION {titlefont} |
| 248 |
{ duplicate$ empty$ |
| 249 |
{ pop$ "" } |
| 250 |
{ "\btxtitlefont {" swap$ * "}" * } |
| 251 |
if$ |
| 252 |
} |
| 253 |
FUNCTION {journalfont} |
| 254 |
{ duplicate$ empty$ |
| 255 |
{ pop$ "" } |
| 256 |
{ "\btxjournalfont {" swap$ * "}" * } |
| 257 |
if$ |
| 258 |
} |
| 259 |
FUNCTION {volumefont} |
| 260 |
{ duplicate$ empty$ |
| 261 |
{ pop$ "" } |
| 262 |
{ "\btxvolumefont {" swap$ * "}" * } |
| 263 |
if$ |
| 264 |
} |
| 265 |
FUNCTION {etalfont} |
| 266 |
{ duplicate$ empty$ |
| 267 |
{ pop$ "" } |
| 268 |
{ "\btxetalfont {" swap$ * "}" * } |
| 269 |
if$ |
| 270 |
} |
| 271 |
INTEGERS { nameptr namesleft numnames } |
| 272 |
FUNCTION {format.names} |
| 273 |
{ 's := |
| 274 |
#1 'nameptr := |
| 275 |
s num.names$ 'numnames := |
| 276 |
numnames 'namesleft := |
| 277 |
{ namesleft #0 > } |
| 278 |
{ nameptr #1 > |
| 279 |
{ |
| 280 |
s nameptr "{ll}" format.name$ lastnamefont |
| 281 |
s nameptr "{,~jj}{,~f{.\,}.}{~vv}" format.name$ * 't := |
| 282 |
namesleft #1 > |
| 283 |
{ ", " * t namefont * } |
| 284 |
{ numnames #2 > |
| 285 |
{ "\btxandcomma {}" * } |
| 286 |
'skip$ |
| 287 |
if$ |
| 288 |
s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ "others" = |
| 289 |
{ " " "\btxetalshort {.}" etalfont * * } |
| 290 |
{ " \btxandlong {}\ " * t namefont * } |
| 291 |
if$ |
| 292 |
} |
| 293 |
if$ |
| 294 |
} |
| 295 |
{ |
| 296 |
s nameptr "{ll}" format.name$ lastnamefont |
| 297 |
s nameptr "{,~jj}{,~f{.\,}.}{~vv}" format.name$ * namefont |
| 298 |
} |
| 299 |
if$ |
| 300 |
nameptr #1 + 'nameptr := |
| 301 |
namesleft #1 - 'namesleft := |
| 302 |
} |
| 303 |
while$ |
| 304 |
} |
| 305 |
FUNCTION {format.authors} |
| 306 |
{ author empty$ |
| 307 |
{ "" } |
| 308 |
{ author format.names } |
| 309 |
if$ |
| 310 |
} |
| 311 |
FUNCTION {format.editors} |
| 312 |
{ editor empty$ |
| 313 |
{ "" } |
| 314 |
{ editor format.names |
| 315 |
editor num.names$ #1 > |
| 316 |
{ "\ (\btxeditorsshort {.})" * } |
| 317 |
{ "\ (\btxeditorshort {.})" * } |
| 318 |
if$ |
| 319 |
} |
| 320 |
if$ |
| 321 |
} |
| 322 |
FUNCTION {format.title} |
| 323 |
{ title empty$ |
| 324 |
{ "" } |
| 325 |
{ title "t" language.change.case titlefont } |
| 326 |
if$ |
| 327 |
} |
| 328 |
FUNCTION {n.dashify} |
| 329 |
{ 't := |
| 330 |
"" |
| 331 |
{ t empty$ not } |
| 332 |
{ t #1 #1 substring$ "-" = |
| 333 |
{ t #1 #2 substring$ "--" = not |
| 334 |
{ "--" * |
| 335 |
t #2 global.max$ substring$ 't := |
| 336 |
} |
| 337 |
{ { t #1 #1 substring$ "-" = } |
| 338 |
{ "-" * |
| 339 |
t #2 global.max$ substring$ 't := |
| 340 |
} |
| 341 |
while$ |
| 342 |
} |
| 343 |
if$ |
| 344 |
} |
| 345 |
{ t #1 #1 substring$ * |
| 346 |
t #2 global.max$ substring$ 't := |
| 347 |
} |
| 348 |
if$ |
| 349 |
} |
| 350 |
while$ |
| 351 |
} |
| 352 |
FUNCTION {format.date} |
| 353 |
{ year empty$ |
| 354 |
{ month empty$ |
| 355 |
{ "" } |
| 356 |
{ "there's a month but no year in " cite$ * warning$ |
| 357 |
month |
| 358 |
} |
| 359 |
if$ |
| 360 |
} |
| 361 |
{ month empty$ |
| 362 |
'year |
| 363 |
{ month "\ " * year * } |
| 364 |
if$ |
| 365 |
} |
| 366 |
if$ |
| 367 |
} |
| 368 |
FUNCTION {format.btitle} |
| 369 |
{ title titlefont |
| 370 |
} |
| 371 |
FUNCTION {tie.or.space.connect} |
| 372 |
{ duplicate$ text.length$ #3 < |
| 373 |
{ "~" } |
| 374 |
{ "\ " } |
| 375 |
if$ |
| 376 |
swap$ * * |
| 377 |
} |
| 378 |
FUNCTION {volume.tie.or.space.connect} |
| 379 |
{ duplicate$ text.length$ #3 < |
| 380 |
{ "~" } |
| 381 |
{ "\ " } |
| 382 |
if$ |
| 383 |
swap$ volumefont * * |
| 384 |
} |
| 385 |
FUNCTION {either.or.check} |
| 386 |
{ empty$ |
| 387 |
'pop$ |
| 388 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 389 |
if$ |
| 390 |
} |
| 391 |
FUNCTION {format.bvolume} |
| 392 |
{ volume empty$ |
| 393 |
{ "" } |
| 394 |
{ output.state after.block = |
| 395 |
{ "\Btxvolumeshort {.}" } |
| 396 |
{ "\btxvolumeshort {.}" } |
| 397 |
if$ |
| 398 |
volume volume.tie.or.space.connect |
| 399 |
series empty$ |
| 400 |
'skip$ |
| 401 |
{ " \btxofseriesshort {.}\ " * series titlefont * } |
| 402 |
if$ |
| 403 |
"volume and number" number either.or.check |
| 404 |
} |
| 405 |
if$ |
| 406 |
} |
| 407 |
FUNCTION {format.number.series} |
| 408 |
{ volume empty$ |
| 409 |
{ number empty$ |
| 410 |
{ series field.or.null } |
| 411 |
{ output.state mid.sentence = |
| 412 |
{ "\btxnumbershort {.}" } |
| 413 |
{ "\Btxnumbershort {.}" } |
| 414 |
if$ |
| 415 |
number tie.or.space.connect |
| 416 |
series empty$ |
| 417 |
{ "there's a number but no series in " cite$ * warning$ } |
| 418 |
{ " \btxinseriesshort {.}\ " * series titlefont * } |
| 419 |
if$ |
| 420 |
} |
| 421 |
if$ |
| 422 |
} |
| 423 |
{ "" } |
| 424 |
if$ |
| 425 |
} |
| 426 |
FUNCTION {format.edition} |
| 427 |
{ edition empty$ |
| 428 |
{ "" } |
| 429 |
{ |
| 430 |
output.state mid.sentence = |
| 431 |
{ edition "l" language.change.case "~\btxeditionshort {.}" * } |
| 432 |
{ edition "t" language.change.case "~\btxeditionshort {.}" * } |
| 433 |
if$ |
| 434 |
} |
| 435 |
if$ |
| 436 |
} |
| 437 |
FUNCTION {format.isbn} |
| 438 |
{ isbn empty$ |
| 439 |
{ "" } |
| 440 |
{ "\btxISBN~\btxISBNfont {" isbn * "}" * } |
| 441 |
if$ |
| 442 |
} |
| 443 |
FUNCTION {format.issn} |
| 444 |
{ issn empty$ |
| 445 |
{ "" } |
| 446 |
{ "\btxISSN~\btxISSNfont {" issn * "}" * } |
| 447 |
if$ |
| 448 |
} |
| 449 |
FUNCTION {format.url} |
| 450 |
{ url empty$ |
| 451 |
{ "" } |
| 452 |
{ "\btxurlfont {" url * "}" * } |
| 453 |
if$ |
| 454 |
} |
| 455 |
INTEGERS { multiresult } |
| 456 |
FUNCTION {multi.page.check} |
| 457 |
{ 't := |
| 458 |
#0 'multiresult := |
| 459 |
{ multiresult not |
| 460 |
t empty$ not |
| 461 |
and |
| 462 |
} |
| 463 |
{ t #1 #1 substring$ |
| 464 |
duplicate$ "-" = |
| 465 |
swap$ duplicate$ "," = |
| 466 |
swap$ "+" = |
| 467 |
or or |
| 468 |
{ #1 'multiresult := } |
| 469 |
{ t #2 global.max$ substring$ 't := } |
| 470 |
if$ |
| 471 |
} |
| 472 |
while$ |
| 473 |
multiresult |
| 474 |
} |
| 475 |
FUNCTION {format.pages} |
| 476 |
{ pages empty$ |
| 477 |
{ "" } |
| 478 |
{ pages multi.page.check |
| 479 |
{ "\btxpagesshort {.}" pages n.dashify tie.or.space.connect } |
| 480 |
{ "\btxpageshort {.}" pages tie.or.space.connect } |
| 481 |
if$ |
| 482 |
} |
| 483 |
if$ |
| 484 |
} |
| 485 |
|
| 486 |
FUNCTION {format.vol.num.pages} |
| 487 |
{ volume field.or.null |
| 488 |
number empty$ |
| 489 |
'skip$ |
| 490 |
{ "(" number * ")" * * |
| 491 |
volume empty$ |
| 492 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 493 |
'skip$ |
| 494 |
if$ |
| 495 |
} |
| 496 |
if$ |
| 497 |
pages empty$ |
| 498 |
'skip$ |
| 499 |
{ duplicate$ empty$ |
| 500 |
{ pop$ format.pages } |
| 501 |
{ ":" * pages n.dashify * } |
| 502 |
if$ |
| 503 |
} |
| 504 |
if$ |
| 505 |
} |
| 506 |
|
| 507 |
FUNCTION {format.chapter.pages} |
| 508 |
{ chapter empty$ |
| 509 |
'format.pages |
| 510 |
{ type empty$ |
| 511 |
{ "\btxchaptershort {.}" } |
| 512 |
{ type "l" language.change.case } |
| 513 |
if$ |
| 514 |
chapter tie.or.space.connect |
| 515 |
pages empty$ |
| 516 |
'skip$ |
| 517 |
{ ", " * format.pages * } |
| 518 |
if$ |
| 519 |
} |
| 520 |
if$ |
| 521 |
} |
| 522 |
|
| 523 |
FUNCTION {format.in.ed.booktitle} |
| 524 |
{ booktitle empty$ |
| 525 |
{ "" } |
| 526 |
{ editor empty$ |
| 527 |
{ "\Btxinshort {.}\ " booktitle titlefont * } |
| 528 |
{ "\Btxinshort {.}\ " format.editors * ": " * booktitle titlefont * } |
| 529 |
if$ |
| 530 |
} |
| 531 |
if$ |
| 532 |
} |
| 533 |
|
| 534 |
FUNCTION {empty.misc.check} |
| 535 |
{ author empty$ title empty$ howpublished empty$ |
| 536 |
month empty$ year empty$ note empty$ |
| 537 |
and and and and and |
| 538 |
key empty$ not and |
| 539 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 540 |
'skip$ |
| 541 |
if$ |
| 542 |
} |
| 543 |
|
| 544 |
FUNCTION {format.thesis.type} |
| 545 |
{ type empty$ |
| 546 |
'skip$ |
| 547 |
{ pop$ |
| 548 |
type "t" language.change.case |
| 549 |
} |
| 550 |
if$ |
| 551 |
} |
| 552 |
|
| 553 |
FUNCTION {format.tr.number} |
| 554 |
{ |
| 555 |
number empty$ |
| 556 |
{ |
| 557 |
type empty$ |
| 558 |
{ "\btxtechrepshort {.}" } |
| 559 |
{ type "t" language.change.case } |
| 560 |
if$ |
| 561 |
} |
| 562 |
{ |
| 563 |
type empty$ |
| 564 |
{ "\Btxtechrepshort {.}" } |
| 565 |
{ type "t" language.change.case } |
| 566 |
if$ |
| 567 |
number tie.or.space.connect |
| 568 |
} |
| 569 |
if$ |
| 570 |
} |
| 571 |
|
| 572 |
FUNCTION {format.article.crossref} |
| 573 |
{ key empty$ |
| 574 |
{ journal empty$ |
| 575 |
{ "need key or journal for " cite$ * " to crossref " * crossref * |
| 576 |
warning$ |
| 577 |
"" |
| 578 |
} |
| 579 |
{ "\Btxinshort {.}\ " journal titlefont * } |
| 580 |
if$ |
| 581 |
} |
| 582 |
{ "\Btxinshort {.}\ " key titlefont * } |
| 583 |
if$ |
| 584 |
" \cite{" * crossref * "}" * |
| 585 |
} |
| 586 |
|
| 587 |
FUNCTION {format.crossref.editor} |
| 588 |
{ editor #1 "{ll}{, jj}{, f.}{~vv}" format.name$ namefont |
| 589 |
editor num.names$ duplicate$ |
| 590 |
#2 > |
| 591 |
{ pop$ " " "\btxetalshort {.}" etalfont * * } |
| 592 |
{ #2 < |
| 593 |
'skip$ |
| 594 |
{ editor #2 "{ff }{vv~}{ll}{ jj}" format.name$ "others" = |
| 595 |
{ " " "\btxetalshort {.}" etalfont * * } |
| 596 |
{ " \btxandlong {}\ " * editor #2 |
| 597 |
"{ll}{, jj}{, f.}{~vv}" format.name$ |
| 598 |
namefont * } |
| 599 |
if$ |
| 600 |
} |
| 601 |
if$ |
| 602 |
} |
| 603 |
if$ |
| 604 |
} |
| 605 |
|
| 606 |
FUNCTION {format.book.crossref} |
| 607 |
{ volume empty$ |
| 608 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 609 |
"\Btxinshort {.}\ " |
| 610 |
} |
| 611 |
{ "\Btxvolumeshort {.}" volume volume.tie.or.space.connect |
| 612 |
" \btxofseriesshort {.}\ " * |
| 613 |
} |
| 614 |
if$ |
| 615 |
editor empty$ |
| 616 |
editor field.or.null author field.or.null = |
| 617 |
or |
| 618 |
{ key empty$ |
| 619 |
{ series empty$ |
| 620 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 621 |
crossref * warning$ |
| 622 |
"" * |
| 623 |
} |
| 624 |
{ series titlefont * } |
| 625 |
if$ |
| 626 |
} |
| 627 |
{ key titlefont * } |
| 628 |
if$ |
| 629 |
} |
| 630 |
{ format.crossref.editor * } |
| 631 |
if$ |
| 632 |
" \cite{" * crossref * "}" * |
| 633 |
} |
| 634 |
|
| 635 |
FUNCTION {format.incoll.inproc.crossref} |
| 636 |
{ editor empty$ |
| 637 |
editor field.or.null author field.or.null = |
| 638 |
or |
| 639 |
{ key empty$ |
| 640 |
{ booktitle empty$ |
| 641 |
{ "need editor, key, or booktitle for " cite$ * " to crossref " * |
| 642 |
crossref * warning$ |
| 643 |
"" |
| 644 |
} |
| 645 |
{ "\Btxinshort {.}\ " booktitle titlefont * } |
| 646 |
if$ |
| 647 |
} |
| 648 |
{ "\Btxinshort {.}\ " key titlefont * } |
| 649 |
if$ |
| 650 |
} |
| 651 |
{ "\Btxinshort {.}\ " format.crossref.editor * } |
| 652 |
if$ |
| 653 |
" \cite{" * crossref * "}" * |
| 654 |
} |
| 655 |
|
| 656 |
FUNCTION {article} |
| 657 |
{ output.bibitem |
| 658 |
format.authors "author" output.check |
| 659 |
after.authors |
| 660 |
format.title "title" output.check |
| 661 |
new.block |
| 662 |
crossref missing$ |
| 663 |
{ journal |
| 664 |
title missing$ |
| 665 |
{ titlefont } |
| 666 |
{ journalfont } |
| 667 |
if$ |
| 668 |
"journal" output.check |
| 669 |
format.vol.num.pages output |
| 670 |
format.date "year" output.check |
| 671 |
} |
| 672 |
{ format.article.crossref output.nonnull |
| 673 |
format.pages output |
| 674 |
} |
| 675 |
if$ |
| 676 |
format.issn output |
| 677 |
new.block |
| 678 |
format.url output |
| 679 |
note output |
| 680 |
fin.entry |
| 681 |
} |
| 682 |
|
| 683 |
FUNCTION {book} |
| 684 |
{ output.bibitem |
| 685 |
author empty$ |
| 686 |
{ format.editors "author and editor" output.check } |
| 687 |
{ format.authors output.nonnull |
| 688 |
crossref missing$ |
| 689 |
{ "author and editor" editor either.or.check } |
| 690 |
'skip$ |
| 691 |
if$ |
| 692 |
} |
| 693 |
if$ |
| 694 |
after.authors |
| 695 |
format.btitle "title" output.check |
| 696 |
crossref missing$ |
| 697 |
{ format.bvolume output |
| 698 |
new.block |
| 699 |
format.number.series output |
| 700 |
new.sentence |
| 701 |
publisher "publisher" output.check |
| 702 |
address output |
| 703 |
} |
| 704 |
{ new.block |
| 705 |
format.book.crossref output.nonnull |
| 706 |
} |
| 707 |
if$ |
| 708 |
format.edition output |
| 709 |
format.date "year" output.check |
| 710 |
format.isbn output |
| 711 |
new.block |
| 712 |
format.url output |
| 713 |
note output |
| 714 |
fin.entry |
| 715 |
} |
| 716 |
|
| 717 |
FUNCTION {booklet} |
| 718 |
{ output.bibitem |
| 719 |
format.authors output |
| 720 |
after.authors |
| 721 |
format.title "title" output.check |
| 722 |
howpublished address new.block.checkb |
| 723 |
howpublished output |
| 724 |
address output |
| 725 |
format.date output |
| 726 |
new.block |
| 727 |
format.url output |
| 728 |
note output |
| 729 |
fin.entry |
| 730 |
} |
| 731 |
|
| 732 |
FUNCTION {inbook} |
| 733 |
{ output.bibitem |
| 734 |
author empty$ |
| 735 |
{ format.editors "author and editor" output.check } |
| 736 |
{ format.authors output.nonnull |
| 737 |
crossref missing$ |
| 738 |
{ "author and editor" editor either.or.check } |
| 739 |
'skip$ |
| 740 |
if$ |
| 741 |
} |
| 742 |
if$ |
| 743 |
after.authors |
| 744 |
format.btitle "title" output.check |
| 745 |
crossref missing$ |
| 746 |
{ format.bvolume output |
| 747 |
format.chapter.pages "chapter and pages" output.check |
| 748 |
new.block |
| 749 |
format.number.series output |
| 750 |
new.sentence |
| 751 |
publisher "publisher" output.check |
| 752 |
address output |
| 753 |
} |
| 754 |
{ format.chapter.pages "chapter and pages" output.check |
| 755 |
new.block |
| 756 |
format.book.crossref output.nonnull |
| 757 |
} |
| 758 |
if$ |
| 759 |
format.edition output |
| 760 |
format.date "year" output.check |
| 761 |
format.isbn output |
| 762 |
new.block |
| 763 |
format.url output |
| 764 |
note output |
| 765 |
fin.entry |
| 766 |
} |
| 767 |
|
| 768 |
FUNCTION {incollection} |
| 769 |
{ output.bibitem |
| 770 |
format.authors "author" output.check |
| 771 |
after.authors |
| 772 |
format.title "title" output.check |
| 773 |
new.block |
| 774 |
crossref missing$ |
| 775 |
{ format.in.ed.booktitle "booktitle" output.check |
| 776 |
format.bvolume output |
| 777 |
format.number.series output |
| 778 |
format.chapter.pages output |
| 779 |
new.sentence |
| 780 |
publisher "publisher" output.check |
| 781 |
address output |
| 782 |
format.edition output |
| 783 |
format.date "year" output.check |
| 784 |
} |
| 785 |
{ format.incoll.inproc.crossref output.nonnull |
| 786 |
format.chapter.pages output |
| 787 |
} |
| 788 |
if$ |
| 789 |
format.isbn output |
| 790 |
new.block |
| 791 |
format.url output |
| 792 |
note output |
| 793 |
fin.entry |
| 794 |
} |
| 795 |
|
| 796 |
FUNCTION {inproceedings} |
| 797 |
{ output.bibitem |
| 798 |
format.authors "author" output.check |
| 799 |
after.authors |
| 800 |
format.title "title" output.check |
| 801 |
new.block |
| 802 |
crossref missing$ |
| 803 |
{ format.in.ed.booktitle "booktitle" output.check |
| 804 |
format.bvolume output |
| 805 |
format.number.series output |
| 806 |
format.pages output |
| 807 |
address empty$ |
| 808 |
{ organization publisher new.sentence.checkb |
| 809 |
organization output |
| 810 |
publisher output |
| 811 |
format.date "year" output.check |
| 812 |
} |
| 813 |
{ address output.nonnull |
| 814 |
format.date "year" output.check |
| 815 |
new.sentence |
| 816 |
organization output |
| 817 |
publisher output |
| 818 |
} |
| 819 |
if$ |
| 820 |
} |
| 821 |
{ format.incoll.inproc.crossref output.nonnull |
| 822 |
format.pages output |
| 823 |
} |
| 824 |
if$ |
| 825 |
format.isbn output |
| 826 |
new.block |
| 827 |
format.url output |
| 828 |
note output |
| 829 |
fin.entry |
| 830 |
} |
| 831 |
|
| 832 |
FUNCTION {conference} { inproceedings } |
| 833 |
|
| 834 |
FUNCTION {manual} |
| 835 |
{ output.bibitem |
| 836 |
author empty$ |
| 837 |
{ organization empty$ |
| 838 |
'skip$ |
| 839 |
{ organization output.nonnull |
| 840 |
address output |
| 841 |
} |
| 842 |
if$ |
| 843 |
} |
| 844 |
{ format.authors output.nonnull } |
| 845 |
if$ |
| 846 |
after.authors |
| 847 |
format.btitle "title" output.check |
| 848 |
author empty$ |
| 849 |
{ organization empty$ |
| 850 |
{ address new.block.checka |
| 851 |
address output |
| 852 |
} |
| 853 |
'skip$ |
| 854 |
if$ |
| 855 |
} |
| 856 |
{ organization address new.block.checkb |
| 857 |
organization output |
| 858 |
address output |
| 859 |
} |
| 860 |
if$ |
| 861 |
format.edition output |
| 862 |
format.date output |
| 863 |
format.isbn output |
| 864 |
new.block |
| 865 |
format.url output |
| 866 |
note output |
| 867 |
fin.entry |
| 868 |
} |
| 869 |
|
| 870 |
FUNCTION {mastersthesis} |
| 871 |
{ output.bibitem |
| 872 |
format.authors "author" output.check |
| 873 |
after.authors |
| 874 |
format.title "title" output.check |
| 875 |
new.block |
| 876 |
"\btxmastthesis {}" format.thesis.type output.nonnull |
| 877 |
school "school" output.check |
| 878 |
address output |
| 879 |
format.date "year" output.check |
| 880 |
new.block |
| 881 |
format.url output |
| 882 |
note output |
| 883 |
fin.entry |
| 884 |
} |
| 885 |
|
| 886 |
FUNCTION {misc} |
| 887 |
{ output.bibitem |
| 888 |
format.authors output |
| 889 |
title howpublished new.block.checkc |
| 890 |
format.title output |
| 891 |
howpublished new.block.checka |
| 892 |
howpublished output |
| 893 |
format.date output |
| 894 |
format.isbn output |
| 895 |
format.issn output |
| 896 |
new.block |
| 897 |
format.url output |
| 898 |
note output |
| 899 |
fin.entry |
| 900 |
empty.misc.check |
| 901 |
} |
| 902 |
|
| 903 |
FUNCTION {phdthesis} |
| 904 |
{ output.bibitem |
| 905 |
format.authors "author" output.check |
| 906 |
after.authors |
| 907 |
format.btitle "title" output.check |
| 908 |
new.block |
| 909 |
"\btxphdthesis {}" format.thesis.type output.nonnull |
| 910 |
school "school" output.check |
| 911 |
address output |
| 912 |
format.date "year" output.check |
| 913 |
format.isbn output |
| 914 |
new.block |
| 915 |
format.url output |
| 916 |
note output |
| 917 |
fin.entry |
| 918 |
} |
| 919 |
|
| 920 |
FUNCTION {proceedings} |
| 921 |
{ output.bibitem |
| 922 |
editor empty$ |
| 923 |
{ organization output } |
| 924 |
{ format.editors output.nonnull } |
| 925 |
if$ |
| 926 |
after.authors |
| 927 |
format.btitle "title" output.check |
| 928 |
format.bvolume output |
| 929 |
format.number.series output |
| 930 |
address empty$ |
| 931 |
{ editor empty$ |
| 932 |
{ publisher new.sentence.checka } |
| 933 |
{ organization publisher new.sentence.checkb |
| 934 |
organization output |
| 935 |
} |
| 936 |
if$ |
| 937 |
publisher output |
| 938 |
format.date "year" output.check |
| 939 |
} |
| 940 |
{ address output.nonnull |
| 941 |
format.date "year" output.check |
| 942 |
new.sentence |
| 943 |
editor empty$ |
| 944 |
'skip$ |
| 945 |
{ organization output } |
| 946 |
if$ |
| 947 |
publisher output |
| 948 |
} |
| 949 |
if$ |
| 950 |
format.isbn output |
| 951 |
new.block |
| 952 |
format.url output |
| 953 |
note output |
| 954 |
fin.entry |
| 955 |
} |
| 956 |
|
| 957 |
FUNCTION {techreport} |
| 958 |
{ output.bibitem |
| 959 |
format.authors "author" output.check |
| 960 |
after.authors |
| 961 |
format.title "title" output.check |
| 962 |
new.block |
| 963 |
format.tr.number output.nonnull |
| 964 |
institution "institution" output.check |
| 965 |
address output |
| 966 |
format.date "year" output.check |
| 967 |
format.isbn output |
| 968 |
new.block |
| 969 |
format.url output |
| 970 |
note output |
| 971 |
fin.entry |
| 972 |
} |
| 973 |
|
| 974 |
FUNCTION {unpublished} |
| 975 |
{ output.bibitem |
| 976 |
format.authors "author" output.check |
| 977 |
after.authors |
| 978 |
format.title "title" output.check |
| 979 |
new.block |
| 980 |
format.url output |
| 981 |
note "note" output.check |
| 982 |
format.date output |
| 983 |
fin.entry |
| 984 |
} |
| 985 |
|
| 986 |
FUNCTION {default.type} { misc } |
| 987 |
|
| 988 |
MACRO {jan} {"\btxmonjanshort {.}"} |
| 989 |
MACRO {feb} {"\btxmonfebshort {.}"} |
| 990 |
MACRO {mar} {"\btxmonmarshort {.}"} |
| 991 |
MACRO {apr} {"\btxmonaprshort {.}"} |
| 992 |
MACRO {may} {"\btxmonmayshort {.}"} |
| 993 |
MACRO {jun} {"\btxmonjunshort {.}"} |
| 994 |
MACRO {jul} {"\btxmonjulshort {.}"} |
| 995 |
MACRO {aug} {"\btxmonaugshort {.}"} |
| 996 |
MACRO {sep} {"\btxmonsepshort {.}"} |
| 997 |
MACRO {oct} {"\btxmonoctshort {.}"} |
| 998 |
MACRO {nov} {"\btxmonnovshort {.}"} |
| 999 |
MACRO {dec} {"\btxmondecshort {.}"} |
| 1000 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 1001 |
MACRO {acta} {"Acta Informatica"} |
| 1002 |
MACRO {cacm} {"Communications of the ACM"} |
| 1003 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 1004 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 1005 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 1006 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 1007 |
MACRO {ieeetcad} |
| 1008 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 1009 |
MACRO {ipl} {"Information Processing Letters"} |
| 1010 |
MACRO {jacm} {"Journal of the ACM"} |
| 1011 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 1012 |
MACRO {scp} {"Science of Computer Programming"} |
| 1013 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 1014 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 1015 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 1016 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 1017 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 1018 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 1019 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 1020 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 1021 |
|
| 1022 |
READ |
| 1023 |
|
| 1024 |
FUNCTION {sortify} |
| 1025 |
{ purify$ |
| 1026 |
"l" change.case$ |
| 1027 |
} |
| 1028 |
|
| 1029 |
INTEGERS { len } |
| 1030 |
|
| 1031 |
FUNCTION {chop.word} |
| 1032 |
{ 's := |
| 1033 |
'len := |
| 1034 |
s #1 len substring$ = |
| 1035 |
{ s len #1 + global.max$ substring$ } |
| 1036 |
's |
| 1037 |
if$ |
| 1038 |
} |
| 1039 |
|
| 1040 |
FUNCTION {sort.format.names} |
| 1041 |
{ 's := |
| 1042 |
#1 'nameptr := |
| 1043 |
"" |
| 1044 |
s num.names$ 'numnames := |
| 1045 |
numnames 'namesleft := |
| 1046 |
{ namesleft #0 > } |
| 1047 |
{ nameptr #1 > |
| 1048 |
{ " " * } |
| 1049 |
'skip$ |
| 1050 |
if$ |
| 1051 |
s nameptr "{ll{ }}{ f{ }}{vv{ } }{ jj{ }}" format.name$ 't := |
| 1052 |
nameptr numnames = t "others" = and |
| 1053 |
{ "et al" * } |
| 1054 |
{ t sortify * } |
| 1055 |
if$ |
| 1056 |
nameptr #1 + 'nameptr := |
| 1057 |
namesleft #1 - 'namesleft := |
| 1058 |
} |
| 1059 |
while$ |
| 1060 |
} |
| 1061 |
|
| 1062 |
FUNCTION {sort.format.title} |
| 1063 |
{ 't := |
| 1064 |
"A " #2 |
| 1065 |
"An " #3 |
| 1066 |
"The " #4 t chop.word |
| 1067 |
chop.word |
| 1068 |
chop.word |
| 1069 |
sortify |
| 1070 |
#1 global.max$ substring$ |
| 1071 |
} |
| 1072 |
|
| 1073 |
FUNCTION {author.sort} |
| 1074 |
{ author empty$ |
| 1075 |
{ key empty$ |
| 1076 |
{ "to sort, need author or key in " cite$ * warning$ |
| 1077 |
"" |
| 1078 |
} |
| 1079 |
{ key sortify } |
| 1080 |
if$ |
| 1081 |
} |
| 1082 |
{ author sort.format.names } |
| 1083 |
if$ |
| 1084 |
} |
| 1085 |
|
| 1086 |
FUNCTION {author.editor.sort} |
| 1087 |
{ author empty$ |
| 1088 |
{ editor empty$ |
| 1089 |
{ key empty$ |
| 1090 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 1091 |
"" |
| 1092 |
} |
| 1093 |
{ key sortify } |
| 1094 |
if$ |
| 1095 |
} |
| 1096 |
{ editor sort.format.names } |
| 1097 |
if$ |
| 1098 |
} |
| 1099 |
{ author sort.format.names } |
| 1100 |
if$ |
| 1101 |
} |
| 1102 |
|
| 1103 |
FUNCTION {author.organization.sort} |
| 1104 |
{ author empty$ |
| 1105 |
{ organization empty$ |
| 1106 |
{ key empty$ |
| 1107 |
{ "to sort, need author, organization, or key in " cite$ * warning$ |
| 1108 |
"" |
| 1109 |
} |
| 1110 |
{ key sortify } |
| 1111 |
if$ |
| 1112 |
} |
| 1113 |
{ "The " #4 organization chop.word sortify } |
| 1114 |
if$ |
| 1115 |
} |
| 1116 |
{ author sort.format.names } |
| 1117 |
if$ |
| 1118 |
} |
| 1119 |
|
| 1120 |
FUNCTION {editor.organization.sort} |
| 1121 |
{ editor empty$ |
| 1122 |
{ organization empty$ |
| 1123 |
{ key empty$ |
| 1124 |
{ "to sort, need editor, organization, or key in " cite$ * warning$ |
| 1125 |
"" |
| 1126 |
} |
| 1127 |
{ key sortify } |
| 1128 |
if$ |
| 1129 |
} |
| 1130 |
{ "The " #4 organization chop.word sortify } |
| 1131 |
if$ |
| 1132 |
} |
| 1133 |
{ editor sort.format.names } |
| 1134 |
if$ |
| 1135 |
} |
| 1136 |
|
| 1137 |
FUNCTION {presort} |
| 1138 |
{ type$ "book" = |
| 1139 |
type$ "inbook" = |
| 1140 |
or |
| 1141 |
'author.editor.sort |
| 1142 |
{ type$ "proceedings" = |
| 1143 |
'editor.organization.sort |
| 1144 |
{ type$ "manual" = |
| 1145 |
'author.organization.sort |
| 1146 |
'author.sort |
| 1147 |
if$ |
| 1148 |
} |
| 1149 |
if$ |
| 1150 |
} |
| 1151 |
if$ |
| 1152 |
" " |
| 1153 |
* |
| 1154 |
year field.or.null sortify |
| 1155 |
* |
| 1156 |
" " |
| 1157 |
* |
| 1158 |
title field.or.null |
| 1159 |
sort.format.title |
| 1160 |
* |
| 1161 |
#1 entry.max$ substring$ |
| 1162 |
'sort.key$ := |
| 1163 |
} |
| 1164 |
|
| 1165 |
ITERATE {presort} |
| 1166 |
|
| 1167 |
SORT |
| 1168 |
|
| 1169 |
STRINGS { longest.label } |
| 1170 |
|
| 1171 |
INTEGERS { number.label longest.label.width } |
| 1172 |
|
| 1173 |
FUNCTION {initialize.longest.label} |
| 1174 |
{ "" 'longest.label := |
| 1175 |
#1 'number.label := |
| 1176 |
#0 'longest.label.width := |
| 1177 |
} |
| 1178 |
|
| 1179 |
FUNCTION {longest.label.pass} |
| 1180 |
{ number.label int.to.str$ 'label := |
| 1181 |
number.label #1 + 'number.label := |
| 1182 |
label width$ longest.label.width > |
| 1183 |
{ label 'longest.label := |
| 1184 |
label width$ 'longest.label.width := |
| 1185 |
} |
| 1186 |
'skip$ |
| 1187 |
if$ |
| 1188 |
} |
| 1189 |
|
| 1190 |
EXECUTE {initialize.longest.label} |
| 1191 |
|
| 1192 |
ITERATE {longest.label.pass} |
| 1193 |
|
| 1194 |
FUNCTION {begin.bib} |
| 1195 |
{ preamble$ empty$ |
| 1196 |
'skip$ |
| 1197 |
{ preamble$ write$ newline$ } |
| 1198 |
if$ |
| 1199 |
"\begin{thebibliography}{" longest.label * "}" * write$ newline$ |
| 1200 |
" \providebibliographyfont{name}{}%" write$ newline$ |
| 1201 |
" \providebibliographyfont{lastname}{}%" write$ newline$ |
| 1202 |
" \providebibliographyfont{title}{\emph}%" write$ newline$ |
| 1203 |
" \providebibliographyfont{etal}{\emph}%" write$ newline$ |
| 1204 |
" \providebibliographyfont{journal}{}%" write$ newline$ |
| 1205 |
" \providebibliographyfont{volume}{}%" write$ newline$ |
| 1206 |
" \providebibliographyfont{ISBN}{\MakeUppercase}%" write$ newline$ |
| 1207 |
" \providebibliographyfont{ISSN}{\MakeUppercase}%" write$ newline$ |
| 1208 |
" \providebibliographyfont{url}{\url}%" write$ newline$ |
| 1209 |
} |
| 1210 |
|
| 1211 |
EXECUTE {begin.bib} |
| 1212 |
|
| 1213 |
EXECUTE {init.state.consts} |
| 1214 |
|
| 1215 |
ITERATE {call.type$} |
| 1216 |
|
| 1217 |
FUNCTION {end.bib} |
| 1218 |
{ newline$ |
| 1219 |
"\end{thebibliography}" write$ newline$ |
| 1220 |
} |
| 1221 |
|
| 1222 |
EXECUTE {end.bib} |