| 1 |
% BibTeX standard bibliography style `abbrv' |
| 2 |
% version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09. |
| 3 |
% Copyright (C) 1985, all rights reserved. |
| 4 |
% Copying of this file is authorized only if either |
| 5 |
% (1) you make absolutely no changes to your copy, including name, or |
| 6 |
% (2) if you do make changes, you name it something other than |
| 7 |
% btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst. |
| 8 |
% This restriction helps ensure that all standard styles are identical. |
| 9 |
% The file btxbst.doc has the documentation for this style. |
| 10 |
|
| 11 |
% "Translated" into Norwegian by [email protected], July 1997. |
| 12 |
% Now called `norabbrv'. |
| 13 |
% Added field "isbn" and "issn". [email protected], April 2001. |
| 14 |
% Translated into Danish by [email protected], June 2001. |
| 15 |
% Now called `dk-abbrv'. |
| 16 |
% This is dk-bib, Version 0.6 ($Id: dk-abbrv.bst 92 2006-05-21 21:18:10Z arne $) |
| 17 |
|
| 18 |
ENTRY |
| 19 |
{ address |
| 20 |
author |
| 21 |
booktitle |
| 22 |
chapter |
| 23 |
edition |
| 24 |
printing |
| 25 |
editor |
| 26 |
howpublished |
| 27 |
institution |
| 28 |
isbn |
| 29 |
issn |
| 30 |
url |
| 31 |
annote |
| 32 |
journal |
| 33 |
key |
| 34 |
month |
| 35 |
note |
| 36 |
number |
| 37 |
organization |
| 38 |
pages |
| 39 |
publisher |
| 40 |
school |
| 41 |
series |
| 42 |
title |
| 43 |
type |
| 44 |
volume |
| 45 |
year |
| 46 |
} |
| 47 |
{} |
| 48 |
{ label } |
| 49 |
|
| 50 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 51 |
|
| 52 |
FUNCTION {init.state.consts} |
| 53 |
{ #0 'before.all := |
| 54 |
#1 'mid.sentence := |
| 55 |
#2 'after.sentence := |
| 56 |
#3 'after.block := |
| 57 |
} |
| 58 |
|
| 59 |
STRINGS { s t } |
| 60 |
|
| 61 |
FUNCTION {output.nonnull} |
| 62 |
{ 's := |
| 63 |
output.state mid.sentence = |
| 64 |
{ ", " * write$ } |
| 65 |
{ output.state after.block = |
| 66 |
{ add.period$ write$ |
| 67 |
newline$ |
| 68 |
"\newblock " write$ |
| 69 |
} |
| 70 |
{ output.state before.all = |
| 71 |
'write$ |
| 72 |
{ add.period$ " " * write$ } |
| 73 |
if$ |
| 74 |
} |
| 75 |
if$ |
| 76 |
mid.sentence 'output.state := |
| 77 |
} |
| 78 |
if$ |
| 79 |
s |
| 80 |
} |
| 81 |
|
| 82 |
FUNCTION {output} |
| 83 |
{ duplicate$ empty$ |
| 84 |
'pop$ |
| 85 |
'output.nonnull |
| 86 |
if$ |
| 87 |
} |
| 88 |
|
| 89 |
FUNCTION {output.check} |
| 90 |
{ 't := |
| 91 |
duplicate$ empty$ |
| 92 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 93 |
'output.nonnull |
| 94 |
if$ |
| 95 |
} |
| 96 |
|
| 97 |
FUNCTION {output.bibitem} |
| 98 |
{ newline$ |
| 99 |
"\bibitem{" write$ |
| 100 |
cite$ write$ |
| 101 |
"}" write$ |
| 102 |
newline$ |
| 103 |
"" |
| 104 |
before.all 'output.state := |
| 105 |
} |
| 106 |
|
| 107 |
FUNCTION {output.annote} |
| 108 |
{ annote empty$ |
| 109 |
'skip$ |
| 110 |
{ "\dkbibannote{" cite$ * "}{" * annote add.period$ * "}" * |
| 111 |
write$ newline$ } |
| 112 |
if$ |
| 113 |
} |
| 114 |
|
| 115 |
FUNCTION {fin.entry} |
| 116 |
{ add.period$ |
| 117 |
write$ |
| 118 |
newline$ |
| 119 |
output.annote |
| 120 |
} |
| 121 |
|
| 122 |
FUNCTION {new.block} |
| 123 |
{ output.state before.all = |
| 124 |
'skip$ |
| 125 |
{ after.block 'output.state := } |
| 126 |
if$ |
| 127 |
} |
| 128 |
|
| 129 |
FUNCTION {output.isbn.issn} |
| 130 |
{ isbn empty$ |
| 131 |
'skip$ |
| 132 |
{ new.block "\dkbibisbn{" isbn * "}" * output } |
| 133 |
if$ |
| 134 |
issn empty$ |
| 135 |
'skip$ |
| 136 |
{ new.block "\dkbibissn{" issn * "}" * output } |
| 137 |
if$ |
| 138 |
} |
| 139 |
|
| 140 |
FUNCTION {output.url} |
| 141 |
{ url empty$ |
| 142 |
'skip$ |
| 143 |
{ new.block "\dkbiburl{" url * "}" * output } |
| 144 |
if$ |
| 145 |
} |
| 146 |
|
| 147 |
FUNCTION {new.sentence} |
| 148 |
{ output.state after.block = |
| 149 |
'skip$ |
| 150 |
{ output.state before.all = |
| 151 |
'skip$ |
| 152 |
{ after.sentence 'output.state := } |
| 153 |
if$ |
| 154 |
} |
| 155 |
if$ |
| 156 |
} |
| 157 |
|
| 158 |
FUNCTION {not} |
| 159 |
{ { #0 } |
| 160 |
{ #1 } |
| 161 |
if$ |
| 162 |
} |
| 163 |
|
| 164 |
FUNCTION {and} |
| 165 |
{ 'skip$ |
| 166 |
{ pop$ #0 } |
| 167 |
if$ |
| 168 |
} |
| 169 |
|
| 170 |
FUNCTION {or} |
| 171 |
{ { pop$ #1 } |
| 172 |
'skip$ |
| 173 |
if$ |
| 174 |
} |
| 175 |
|
| 176 |
FUNCTION {new.block.checka} |
| 177 |
{ empty$ |
| 178 |
'skip$ |
| 179 |
'new.block |
| 180 |
if$ |
| 181 |
} |
| 182 |
|
| 183 |
FUNCTION {new.block.checkb} |
| 184 |
{ empty$ |
| 185 |
swap$ empty$ |
| 186 |
and |
| 187 |
'skip$ |
| 188 |
'new.block |
| 189 |
if$ |
| 190 |
} |
| 191 |
|
| 192 |
FUNCTION {new.sentence.checka} |
| 193 |
{ empty$ |
| 194 |
'skip$ |
| 195 |
'new.sentence |
| 196 |
if$ |
| 197 |
} |
| 198 |
|
| 199 |
FUNCTION {new.sentence.checkb} |
| 200 |
{ empty$ |
| 201 |
swap$ empty$ |
| 202 |
and |
| 203 |
'skip$ |
| 204 |
'new.sentence |
| 205 |
if$ |
| 206 |
} |
| 207 |
|
| 208 |
FUNCTION {field.or.null} |
| 209 |
{ duplicate$ empty$ |
| 210 |
{ pop$ "" } |
| 211 |
'skip$ |
| 212 |
if$ |
| 213 |
} |
| 214 |
|
| 215 |
FUNCTION {emphasize} |
| 216 |
{ duplicate$ empty$ |
| 217 |
{ pop$ "" } |
| 218 |
{ "\emph{" swap$ * "}" * } |
| 219 |
if$ |
| 220 |
} |
| 221 |
|
| 222 |
INTEGERS { nameptr namesleft numnames } |
| 223 |
|
| 224 |
FUNCTION {format.names} |
| 225 |
{ 's := |
| 226 |
#1 'nameptr := |
| 227 |
s num.names$ 'numnames := |
| 228 |
numnames 'namesleft := |
| 229 |
{ namesleft #0 > } |
| 230 |
{ s nameptr "{f.~}{vv }{ll}{~jj}" format.name$ 't := |
| 231 |
nameptr #1 > |
| 232 |
{ namesleft #1 > |
| 233 |
{ ", " * t * } |
| 234 |
{ t "others" = |
| 235 |
{ " et~al." * } |
| 236 |
{ " og " * t * } |
| 237 |
if$ |
| 238 |
} |
| 239 |
if$ |
| 240 |
} |
| 241 |
't |
| 242 |
if$ |
| 243 |
nameptr #1 + 'nameptr := |
| 244 |
namesleft #1 - 'namesleft := |
| 245 |
} |
| 246 |
while$ |
| 247 |
} |
| 248 |
|
| 249 |
FUNCTION {format.authors} |
| 250 |
{ author empty$ |
| 251 |
{ "" } |
| 252 |
{ author format.names } |
| 253 |
if$ |
| 254 |
} |
| 255 |
|
| 256 |
FUNCTION {format.editors} |
| 257 |
{ editor empty$ |
| 258 |
{ "" } |
| 259 |
{ editor format.names |
| 260 |
editor num.names$ #1 > |
| 261 |
{ ", redakt\o rer" * } |
| 262 |
{ ", redakt\o r" * } |
| 263 |
if$ |
| 264 |
} |
| 265 |
if$ |
| 266 |
} |
| 267 |
|
| 268 |
FUNCTION {format.title} |
| 269 |
{ title empty$ |
| 270 |
{ "" } |
| 271 |
{ title "t" change.case$ } |
| 272 |
if$ |
| 273 |
} |
| 274 |
|
| 275 |
FUNCTION {n.dashify} |
| 276 |
{ 't := |
| 277 |
"" |
| 278 |
{ t empty$ not } |
| 279 |
{ t #1 #1 substring$ "-" = |
| 280 |
{ "\dkbibdash" * |
| 281 |
t #2 global.max$ substring$ 't := |
| 282 |
{ t #1 #1 substring$ "-" = } |
| 283 |
{ t #2 global.max$ substring$ 't := } |
| 284 |
while$ |
| 285 |
t #1 #1 substring$ " " = |
| 286 |
{ "{}" * } |
| 287 |
{ " " * } |
| 288 |
if$ |
| 289 |
} |
| 290 |
{ t #1 #1 substring$ * |
| 291 |
t #2 global.max$ substring$ 't := |
| 292 |
} |
| 293 |
if$ |
| 294 |
} |
| 295 |
while$ |
| 296 |
} |
| 297 |
|
| 298 |
FUNCTION {format.date} |
| 299 |
{ year empty$ |
| 300 |
{ month empty$ |
| 301 |
{ "" } |
| 302 |
{ "there's a month but no year in " cite$ * warning$ |
| 303 |
month |
| 304 |
} |
| 305 |
if$ |
| 306 |
} |
| 307 |
{ month empty$ |
| 308 |
'year |
| 309 |
{ month " " * year * } |
| 310 |
if$ |
| 311 |
} |
| 312 |
if$ |
| 313 |
} |
| 314 |
|
| 315 |
FUNCTION {format.btitle} |
| 316 |
{ title emphasize |
| 317 |
} |
| 318 |
|
| 319 |
FUNCTION {tie.or.space.connect} |
| 320 |
{ duplicate$ text.length$ #3 < |
| 321 |
{ "~" } |
| 322 |
{ " " } |
| 323 |
if$ |
| 324 |
swap$ * * |
| 325 |
} |
| 326 |
|
| 327 |
FUNCTION {either.or.check} |
| 328 |
{ empty$ |
| 329 |
'pop$ |
| 330 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 331 |
if$ |
| 332 |
} |
| 333 |
|
| 334 |
FUNCTION {format.bvolume} |
| 335 |
{ volume empty$ |
| 336 |
{ "" } |
| 337 |
{ "bind" volume tie.or.space.connect |
| 338 |
series empty$ |
| 339 |
'skip$ |
| 340 |
{ " af " * series emphasize * } |
| 341 |
if$ |
| 342 |
"volume and number" number either.or.check |
| 343 |
} |
| 344 |
if$ |
| 345 |
} |
| 346 |
|
| 347 |
FUNCTION {format.number.series} |
| 348 |
{ volume empty$ |
| 349 |
{ number empty$ |
| 350 |
{ series field.or.null } |
| 351 |
{ output.state mid.sentence = |
| 352 |
{ "nr." } |
| 353 |
{ "Nr." } |
| 354 |
if$ |
| 355 |
number tie.or.space.connect |
| 356 |
series empty$ |
| 357 |
{ "there's a number but no series in " cite$ * warning$ } |
| 358 |
{ " i " * series * } |
| 359 |
if$ |
| 360 |
} |
| 361 |
if$ |
| 362 |
} |
| 363 |
{ "" } |
| 364 |
if$ |
| 365 |
} |
| 366 |
|
| 367 |
FUNCTION {ordinal.translate.i} |
| 368 |
{ duplicate$ "l" change.case$ "first" = |
| 369 |
{pop$ "1"} |
| 370 |
{skip$} |
| 371 |
if$ |
| 372 |
duplicate$ "l" change.case$ "second" = |
| 373 |
{pop$ "2"} |
| 374 |
{skip$} |
| 375 |
if$ |
| 376 |
duplicate$ "l" change.case$ "third" = |
| 377 |
{pop$ "3"} |
| 378 |
{skip$} |
| 379 |
if$ |
| 380 |
duplicate$ "l" change.case$ "fourth" = |
| 381 |
{pop$ "4"} |
| 382 |
{skip$} |
| 383 |
if$ |
| 384 |
duplicate$ "l" change.case$ "fifth" = |
| 385 |
{pop$ "5"} |
| 386 |
{skip$} |
| 387 |
if$ |
| 388 |
} |
| 389 |
|
| 390 |
FUNCTION {ordinal.translate.ii} |
| 391 |
{ duplicate$ "l" change.case$ "sixth" = |
| 392 |
{pop$ "6"} |
| 393 |
{skip$} |
| 394 |
if$ |
| 395 |
duplicate$ "l" change.case$ "seventh" = |
| 396 |
{pop$ "7"} |
| 397 |
{skip$} |
| 398 |
if$ |
| 399 |
duplicate$ "l" change.case$ "eighth" = |
| 400 |
{pop$ "8"} |
| 401 |
{skip$} |
| 402 |
if$ |
| 403 |
duplicate$ "l" change.case$ "ninth" = |
| 404 |
{pop$ "9"} |
| 405 |
{skip$} |
| 406 |
if$ |
| 407 |
duplicate$ "l" change.case$ "tenth" = |
| 408 |
{pop$ "10"} |
| 409 |
{skip$} |
| 410 |
if$ |
| 411 |
} |
| 412 |
|
| 413 |
FUNCTION {ordinal.translate.iii} |
| 414 |
{ duplicate$ "l" change.case$ "eleventh" = |
| 415 |
{pop$ "11"} |
| 416 |
{skip$} |
| 417 |
if$ |
| 418 |
duplicate$ "l" change.case$ "twelfth" = |
| 419 |
{pop$ "12"} |
| 420 |
{skip$} |
| 421 |
if$ |
| 422 |
duplicate$ "l" change.case$ "thirteenth" = |
| 423 |
{pop$ "13"} |
| 424 |
{skip$} |
| 425 |
if$ |
| 426 |
duplicate$ "l" change.case$ "fourteenth" = |
| 427 |
{pop$ "14"} |
| 428 |
{skip$} |
| 429 |
if$ |
| 430 |
duplicate$ "l" change.case$ "fifteenth" = |
| 431 |
{pop$ "15"} |
| 432 |
{skip$} |
| 433 |
if$ |
| 434 |
} |
| 435 |
|
| 436 |
FUNCTION {ordinal.translate.iv} |
| 437 |
{ duplicate$ "l" change.case$ "sixteenth" = |
| 438 |
{pop$ "16"} |
| 439 |
{skip$} |
| 440 |
if$ |
| 441 |
duplicate$ "l" change.case$ "seventeenth" = |
| 442 |
{pop$ "17"} |
| 443 |
{skip$} |
| 444 |
if$ |
| 445 |
duplicate$ "l" change.case$ "eighteenth" = |
| 446 |
{pop$ "18"} |
| 447 |
{skip$} |
| 448 |
if$ |
| 449 |
duplicate$ "l" change.case$ "nineteenth" = |
| 450 |
{pop$ "19"} |
| 451 |
{skip$} |
| 452 |
if$ |
| 453 |
duplicate$ "l" change.case$ "twentieth" = |
| 454 |
{pop$ "20"} |
| 455 |
{skip$} |
| 456 |
if$ |
| 457 |
} |
| 458 |
|
| 459 |
FUNCTION {ordinal.translate} |
| 460 |
{ ordinal.translate.i |
| 461 |
ordinal.translate.ii |
| 462 |
ordinal.translate.iii |
| 463 |
ordinal.translate.iv |
| 464 |
} |
| 465 |
|
| 466 |
FUNCTION {format.edition} |
| 467 |
{ edition empty$ |
| 468 |
printing empty$ |
| 469 |
+ |
| 470 |
#2 |
| 471 |
= |
| 472 |
{ "" } |
| 473 |
{ output.state mid.sentence = |
| 474 |
{ "\dkbibedition{" } |
| 475 |
{ "\dkbibEdition{" } |
| 476 |
if$ |
| 477 |
edition empty$ |
| 478 |
{ "" } |
| 479 |
{ edition ordinal.translate |
| 480 |
duplicate$ "l" change.case$ |
| 481 |
duplicate$ "u" change.case$ |
| 482 |
= |
| 483 |
{ purify$ } |
| 484 |
{ output.state mid.sentence = |
| 485 |
{ skip$ } |
| 486 |
{ "u" change.case$ |
| 487 |
"t" change.case$ |
| 488 |
} |
| 489 |
if$ |
| 490 |
} |
| 491 |
if$ |
| 492 |
} |
| 493 |
if$ |
| 494 |
* "}{" * |
| 495 |
printing empty$ |
| 496 |
{ "" } |
| 497 |
{ printing ordinal.translate |
| 498 |
duplicate$ "l" change.case$ |
| 499 |
duplicate$ "u" change.case$ |
| 500 |
= |
| 501 |
{ purify$ } |
| 502 |
{ skip$ } |
| 503 |
if$ |
| 504 |
} |
| 505 |
if$ |
| 506 |
* "}" * |
| 507 |
} |
| 508 |
if$ |
| 509 |
} |
| 510 |
|
| 511 |
INTEGERS { multiresult } |
| 512 |
|
| 513 |
FUNCTION {multi.page.check} |
| 514 |
{ 't := |
| 515 |
#0 'multiresult := |
| 516 |
{ multiresult not |
| 517 |
t empty$ not |
| 518 |
and |
| 519 |
} |
| 520 |
{ t #1 #1 substring$ |
| 521 |
duplicate$ "-" = |
| 522 |
swap$ duplicate$ "," = |
| 523 |
swap$ "+" = |
| 524 |
or or |
| 525 |
{ #1 'multiresult := } |
| 526 |
{ t #2 global.max$ substring$ 't := } |
| 527 |
if$ |
| 528 |
} |
| 529 |
while$ |
| 530 |
multiresult |
| 531 |
} |
| 532 |
|
| 533 |
FUNCTION {format.pages} |
| 534 |
{ pages empty$ |
| 535 |
{ "" } |
| 536 |
{ pages multi.page.check |
| 537 |
{ "side" pages n.dashify tie.or.space.connect } |
| 538 |
{ "side" pages tie.or.space.connect } |
| 539 |
if$ |
| 540 |
} |
| 541 |
if$ |
| 542 |
} |
| 543 |
|
| 544 |
FUNCTION {format.vol.num.pages} |
| 545 |
{ volume field.or.null |
| 546 |
number empty$ |
| 547 |
'skip$ |
| 548 |
{ "(" number * ")" * * |
| 549 |
volume empty$ |
| 550 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 551 |
'skip$ |
| 552 |
if$ |
| 553 |
} |
| 554 |
if$ |
| 555 |
pages empty$ |
| 556 |
'skip$ |
| 557 |
{ duplicate$ empty$ |
| 558 |
{ pop$ format.pages } |
| 559 |
{ ":" * pages n.dashify * } |
| 560 |
if$ |
| 561 |
} |
| 562 |
if$ |
| 563 |
} |
| 564 |
|
| 565 |
FUNCTION {format.chapter.pages} |
| 566 |
{ chapter empty$ |
| 567 |
'format.pages |
| 568 |
{ type empty$ |
| 569 |
{ "kapitel" } |
| 570 |
{ type "l" change.case$ } |
| 571 |
if$ |
| 572 |
chapter tie.or.space.connect |
| 573 |
pages empty$ |
| 574 |
'skip$ |
| 575 |
{ ", " * format.pages * } |
| 576 |
if$ |
| 577 |
} |
| 578 |
if$ |
| 579 |
} |
| 580 |
|
| 581 |
FUNCTION {format.in.ed.booktitle} |
| 582 |
{ booktitle empty$ |
| 583 |
{ "" } |
| 584 |
{ editor empty$ |
| 585 |
{ "I " booktitle emphasize * } |
| 586 |
{ "I " format.editors * ", " * booktitle emphasize * } |
| 587 |
if$ |
| 588 |
} |
| 589 |
if$ |
| 590 |
} |
| 591 |
|
| 592 |
FUNCTION {empty.misc.check} |
| 593 |
{ author empty$ title empty$ howpublished empty$ |
| 594 |
month empty$ year empty$ note empty$ isbn empty$ issn empty$ |
| 595 |
and and and and and and and |
| 596 |
key empty$ not and |
| 597 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 598 |
'skip$ |
| 599 |
if$ |
| 600 |
} |
| 601 |
|
| 602 |
FUNCTION {format.thesis.type} |
| 603 |
{ type empty$ |
| 604 |
'skip$ |
| 605 |
{ pop$ |
| 606 |
type "t" change.case$ |
| 607 |
} |
| 608 |
if$ |
| 609 |
} |
| 610 |
|
| 611 |
FUNCTION {format.tr.number} |
| 612 |
{ type empty$ |
| 613 |
{ "Rapport" } |
| 614 |
'type |
| 615 |
if$ |
| 616 |
number empty$ |
| 617 |
{ "t" change.case$ } |
| 618 |
{ number tie.or.space.connect } |
| 619 |
if$ |
| 620 |
} |
| 621 |
|
| 622 |
FUNCTION {format.article.crossref} |
| 623 |
{ key empty$ |
| 624 |
{ journal empty$ |
| 625 |
{ "need key or journal for " cite$ * " to crossref " * crossref * |
| 626 |
warning$ |
| 627 |
"" |
| 628 |
} |
| 629 |
{ "I \emph{" journal * "}" * } |
| 630 |
if$ |
| 631 |
} |
| 632 |
{ "I " key * } |
| 633 |
if$ |
| 634 |
" \cite{" * crossref * "}" * |
| 635 |
} |
| 636 |
|
| 637 |
FUNCTION {format.crossref.editor} |
| 638 |
{ editor #1 "{vv }{ll}" format.name$ |
| 639 |
editor num.names$ duplicate$ |
| 640 |
#2 > |
| 641 |
{ pop$ " et~al." * } |
| 642 |
{ #2 < |
| 643 |
'skip$ |
| 644 |
{ editor #2 "{ff~}{vv }{ll}{~jj}" format.name$ "others" = |
| 645 |
{ " et~al." * } |
| 646 |
{ " og " * editor #2 "{vv }{ll}" format.name$ * } |
| 647 |
if$ |
| 648 |
} |
| 649 |
if$ |
| 650 |
} |
| 651 |
if$ |
| 652 |
} |
| 653 |
|
| 654 |
FUNCTION {format.book.crossref} |
| 655 |
{ volume empty$ |
| 656 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 657 |
"In " |
| 658 |
} |
| 659 |
{ "Bind" volume tie.or.space.connect |
| 660 |
" af " * |
| 661 |
} |
| 662 |
if$ |
| 663 |
editor empty$ |
| 664 |
editor field.or.null author field.or.null = |
| 665 |
or |
| 666 |
{ key empty$ |
| 667 |
{ series empty$ |
| 668 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 669 |
crossref * warning$ |
| 670 |
"" * |
| 671 |
} |
| 672 |
{ "\emph{" * series * "}" * } |
| 673 |
if$ |
| 674 |
} |
| 675 |
{ key * } |
| 676 |
if$ |
| 677 |
} |
| 678 |
{ format.crossref.editor * } |
| 679 |
if$ |
| 680 |
" \cite{" * crossref * "}" * |
| 681 |
} |
| 682 |
|
| 683 |
FUNCTION {format.incoll.inproc.crossref} |
| 684 |
{ editor empty$ |
| 685 |
editor field.or.null author field.or.null = |
| 686 |
or |
| 687 |
{ key empty$ |
| 688 |
{ booktitle empty$ |
| 689 |
{ "need editor, key, or booktitle for " cite$ * " to crossref " * |
| 690 |
crossref * warning$ |
| 691 |
"" |
| 692 |
} |
| 693 |
{ "I \emph{" booktitle * "}" * } |
| 694 |
if$ |
| 695 |
} |
| 696 |
{ "I " key * } |
| 697 |
if$ |
| 698 |
} |
| 699 |
{ "I " format.crossref.editor * } |
| 700 |
if$ |
| 701 |
" \cite{" * crossref * "}" * |
| 702 |
} |
| 703 |
|
| 704 |
FUNCTION {article} |
| 705 |
{ output.bibitem |
| 706 |
format.authors "author" output.check |
| 707 |
new.block |
| 708 |
format.title "title" output.check |
| 709 |
new.block |
| 710 |
crossref missing$ |
| 711 |
{ journal emphasize "journal" output.check |
| 712 |
format.vol.num.pages output |
| 713 |
format.date "year" output.check |
| 714 |
} |
| 715 |
{ format.article.crossref output.nonnull |
| 716 |
format.pages output |
| 717 |
} |
| 718 |
if$ |
| 719 |
new.block |
| 720 |
note output |
| 721 |
output.isbn.issn |
| 722 |
output.url |
| 723 |
fin.entry |
| 724 |
} |
| 725 |
|
| 726 |
FUNCTION {book} |
| 727 |
{ output.bibitem |
| 728 |
author empty$ |
| 729 |
{ format.editors "author and editor" output.check } |
| 730 |
{ format.authors output.nonnull |
| 731 |
crossref missing$ |
| 732 |
{ "author and editor" editor either.or.check } |
| 733 |
'skip$ |
| 734 |
if$ |
| 735 |
} |
| 736 |
if$ |
| 737 |
new.block |
| 738 |
format.btitle "title" output.check |
| 739 |
crossref missing$ |
| 740 |
{ format.bvolume output |
| 741 |
new.block |
| 742 |
format.number.series output |
| 743 |
new.sentence |
| 744 |
publisher "publisher" output.check |
| 745 |
address output |
| 746 |
} |
| 747 |
{ new.block |
| 748 |
format.book.crossref output.nonnull |
| 749 |
} |
| 750 |
if$ |
| 751 |
format.edition output |
| 752 |
format.date "year" output.check |
| 753 |
new.block |
| 754 |
note output |
| 755 |
output.isbn.issn |
| 756 |
output.url |
| 757 |
fin.entry |
| 758 |
} |
| 759 |
|
| 760 |
FUNCTION {booklet} |
| 761 |
{ output.bibitem |
| 762 |
format.authors output |
| 763 |
new.block |
| 764 |
format.title "title" output.check |
| 765 |
howpublished address new.block.checkb |
| 766 |
howpublished output |
| 767 |
address output |
| 768 |
format.date output |
| 769 |
new.block |
| 770 |
note output |
| 771 |
output.isbn.issn |
| 772 |
output.url |
| 773 |
fin.entry |
| 774 |
} |
| 775 |
|
| 776 |
FUNCTION {inbook} |
| 777 |
{ output.bibitem |
| 778 |
author empty$ |
| 779 |
{ format.editors "author and editor" output.check } |
| 780 |
{ format.authors output.nonnull |
| 781 |
crossref missing$ |
| 782 |
{ "author and editor" editor either.or.check } |
| 783 |
'skip$ |
| 784 |
if$ |
| 785 |
} |
| 786 |
if$ |
| 787 |
new.block |
| 788 |
format.btitle "title" output.check |
| 789 |
crossref missing$ |
| 790 |
{ format.bvolume output |
| 791 |
format.chapter.pages "chapter and pages" output.check |
| 792 |
new.block |
| 793 |
format.number.series output |
| 794 |
new.sentence |
| 795 |
publisher "publisher" output.check |
| 796 |
address output |
| 797 |
} |
| 798 |
{ format.chapter.pages "chapter and pages" output.check |
| 799 |
new.block |
| 800 |
format.book.crossref output.nonnull |
| 801 |
} |
| 802 |
if$ |
| 803 |
format.edition output |
| 804 |
format.date "year" output.check |
| 805 |
new.block |
| 806 |
note output |
| 807 |
output.isbn.issn |
| 808 |
output.url |
| 809 |
fin.entry |
| 810 |
} |
| 811 |
|
| 812 |
FUNCTION {incollection} |
| 813 |
{ output.bibitem |
| 814 |
format.authors "author" output.check |
| 815 |
new.block |
| 816 |
format.title "title" output.check |
| 817 |
new.block |
| 818 |
crossref missing$ |
| 819 |
{ format.in.ed.booktitle "booktitle" output.check |
| 820 |
format.bvolume output |
| 821 |
format.number.series output |
| 822 |
format.chapter.pages output |
| 823 |
new.sentence |
| 824 |
publisher "publisher" output.check |
| 825 |
address output |
| 826 |
format.edition output |
| 827 |
format.date "year" output.check |
| 828 |
} |
| 829 |
{ format.incoll.inproc.crossref output.nonnull |
| 830 |
format.chapter.pages output |
| 831 |
} |
| 832 |
if$ |
| 833 |
new.block |
| 834 |
note output |
| 835 |
output.isbn.issn |
| 836 |
output.url |
| 837 |
fin.entry |
| 838 |
} |
| 839 |
|
| 840 |
FUNCTION {inproceedings} |
| 841 |
{ output.bibitem |
| 842 |
format.authors "author" output.check |
| 843 |
new.block |
| 844 |
format.title "title" output.check |
| 845 |
new.block |
| 846 |
crossref missing$ |
| 847 |
{ format.in.ed.booktitle "booktitle" output.check |
| 848 |
format.bvolume output |
| 849 |
format.number.series output |
| 850 |
format.pages output |
| 851 |
address empty$ |
| 852 |
{ organization publisher new.sentence.checkb |
| 853 |
organization output |
| 854 |
publisher output |
| 855 |
format.date "year" output.check |
| 856 |
} |
| 857 |
{ address output.nonnull |
| 858 |
format.date "year" output.check |
| 859 |
new.sentence |
| 860 |
organization output |
| 861 |
publisher output |
| 862 |
} |
| 863 |
if$ |
| 864 |
} |
| 865 |
{ format.incoll.inproc.crossref output.nonnull |
| 866 |
format.pages output |
| 867 |
} |
| 868 |
if$ |
| 869 |
new.block |
| 870 |
note output |
| 871 |
output.isbn.issn |
| 872 |
output.url |
| 873 |
fin.entry |
| 874 |
} |
| 875 |
|
| 876 |
FUNCTION {conference} { inproceedings } |
| 877 |
|
| 878 |
FUNCTION {manual} |
| 879 |
{ output.bibitem |
| 880 |
author empty$ |
| 881 |
{ organization empty$ |
| 882 |
'skip$ |
| 883 |
{ organization output.nonnull |
| 884 |
address output |
| 885 |
} |
| 886 |
if$ |
| 887 |
} |
| 888 |
{ format.authors output.nonnull } |
| 889 |
if$ |
| 890 |
new.block |
| 891 |
format.btitle "title" output.check |
| 892 |
author empty$ |
| 893 |
{ organization empty$ |
| 894 |
{ address new.block.checka |
| 895 |
address output |
| 896 |
} |
| 897 |
'skip$ |
| 898 |
if$ |
| 899 |
} |
| 900 |
{ organization address new.block.checkb |
| 901 |
organization output |
| 902 |
address output |
| 903 |
} |
| 904 |
if$ |
| 905 |
format.edition output |
| 906 |
format.date output |
| 907 |
new.block |
| 908 |
note output |
| 909 |
output.isbn.issn |
| 910 |
output.url |
| 911 |
fin.entry |
| 912 |
} |
| 913 |
|
| 914 |
FUNCTION {mastersthesis} |
| 915 |
{ output.bibitem |
| 916 |
format.authors "author" output.check |
| 917 |
new.block |
| 918 |
format.title "title" output.check |
| 919 |
new.block |
| 920 |
"Specialeafhandling" format.thesis.type output.nonnull |
| 921 |
school "school" output.check |
| 922 |
address output |
| 923 |
format.date "year" output.check |
| 924 |
new.block |
| 925 |
note output |
| 926 |
output.isbn.issn |
| 927 |
output.url |
| 928 |
fin.entry |
| 929 |
} |
| 930 |
|
| 931 |
FUNCTION {misc} |
| 932 |
{ output.bibitem |
| 933 |
format.authors output |
| 934 |
title howpublished new.block.checkb |
| 935 |
format.title output |
| 936 |
howpublished new.block.checka |
| 937 |
howpublished output |
| 938 |
format.date output |
| 939 |
new.block |
| 940 |
note output |
| 941 |
output.isbn.issn |
| 942 |
output.url |
| 943 |
fin.entry |
| 944 |
empty.misc.check |
| 945 |
} |
| 946 |
|
| 947 |
FUNCTION {phdthesis} |
| 948 |
{ output.bibitem |
| 949 |
format.authors "author" output.check |
| 950 |
new.block |
| 951 |
format.btitle "title" output.check |
| 952 |
new.block |
| 953 |
"Ph.d.-afhandling" format.thesis.type output.nonnull |
| 954 |
school "school" output.check |
| 955 |
address output |
| 956 |
format.date "year" output.check |
| 957 |
new.block |
| 958 |
note output |
| 959 |
output.isbn.issn |
| 960 |
output.url |
| 961 |
fin.entry |
| 962 |
} |
| 963 |
|
| 964 |
FUNCTION {proceedings} |
| 965 |
{ output.bibitem |
| 966 |
editor empty$ |
| 967 |
{ organization output } |
| 968 |
{ format.editors output.nonnull } |
| 969 |
if$ |
| 970 |
new.block |
| 971 |
format.btitle "title" output.check |
| 972 |
format.bvolume output |
| 973 |
format.number.series output |
| 974 |
address empty$ |
| 975 |
{ editor empty$ |
| 976 |
{ publisher new.sentence.checka } |
| 977 |
{ organization publisher new.sentence.checkb |
| 978 |
organization output |
| 979 |
} |
| 980 |
if$ |
| 981 |
publisher output |
| 982 |
format.date "year" output.check |
| 983 |
} |
| 984 |
{ address output.nonnull |
| 985 |
format.date "year" output.check |
| 986 |
new.sentence |
| 987 |
editor empty$ |
| 988 |
'skip$ |
| 989 |
{ organization output } |
| 990 |
if$ |
| 991 |
publisher output |
| 992 |
} |
| 993 |
if$ |
| 994 |
new.block |
| 995 |
note output |
| 996 |
output.isbn.issn |
| 997 |
output.url |
| 998 |
fin.entry |
| 999 |
} |
| 1000 |
|
| 1001 |
FUNCTION {techreport} |
| 1002 |
{ output.bibitem |
| 1003 |
format.authors "author" output.check |
| 1004 |
new.block |
| 1005 |
format.title "title" output.check |
| 1006 |
new.block |
| 1007 |
format.tr.number output.nonnull |
| 1008 |
institution "institution" output.check |
| 1009 |
address output |
| 1010 |
format.date "year" output.check |
| 1011 |
new.block |
| 1012 |
note output |
| 1013 |
output.isbn.issn |
| 1014 |
output.url |
| 1015 |
fin.entry |
| 1016 |
} |
| 1017 |
|
| 1018 |
FUNCTION {unpublished} |
| 1019 |
{ output.bibitem |
| 1020 |
format.authors "author" output.check |
| 1021 |
new.block |
| 1022 |
format.title "title" output.check |
| 1023 |
new.block |
| 1024 |
note "note" output.check |
| 1025 |
format.date output |
| 1026 |
output.isbn.issn |
| 1027 |
output.url |
| 1028 |
fin.entry |
| 1029 |
} |
| 1030 |
|
| 1031 |
FUNCTION {default.type} { misc } |
| 1032 |
|
| 1033 |
MACRO {jan} {"jan."} |
| 1034 |
|
| 1035 |
MACRO {feb} {"feb."} |
| 1036 |
|
| 1037 |
MACRO {mar} {"mar."} |
| 1038 |
|
| 1039 |
MACRO {apr} {"apr."} |
| 1040 |
|
| 1041 |
MACRO {may} {"maj"} |
| 1042 |
|
| 1043 |
MACRO {jun} {"jun."} |
| 1044 |
|
| 1045 |
MACRO {jul} {"jul."} |
| 1046 |
|
| 1047 |
MACRO {aug} {"aug."} |
| 1048 |
|
| 1049 |
MACRO {sep} {"sep."} |
| 1050 |
|
| 1051 |
MACRO {oct} {"okt."} |
| 1052 |
|
| 1053 |
MACRO {nov} {"nov."} |
| 1054 |
|
| 1055 |
MACRO {dec} {"dec."} |
| 1056 |
|
| 1057 |
MACRO {acmcs} {"ACM Comput. Surv."} |
| 1058 |
|
| 1059 |
MACRO {acta} {"Acta Inf."} |
| 1060 |
|
| 1061 |
MACRO {cacm} {"Commun. ACM"} |
| 1062 |
|
| 1063 |
MACRO {ibmjrd} {"IBM J. Res. Dev."} |
| 1064 |
|
| 1065 |
MACRO {ibmsj} {"IBM Syst.~J."} |
| 1066 |
|
| 1067 |
MACRO {ieeese} {"IEEE Trans. Softw. Eng."} |
| 1068 |
|
| 1069 |
MACRO {ieeetc} {"IEEE Trans. Comput."} |
| 1070 |
|
| 1071 |
MACRO {ieeetcad} |
| 1072 |
{"IEEE Trans. Comput.-Aided Design Integrated Circuits"} |
| 1073 |
|
| 1074 |
MACRO {ipl} {"Inf. Process. Lett."} |
| 1075 |
|
| 1076 |
MACRO {jacm} {"J.~ACM"} |
| 1077 |
|
| 1078 |
MACRO {jcss} {"J.~Comput. Syst. Sci."} |
| 1079 |
|
| 1080 |
MACRO {scp} {"Sci. Comput. Programming"} |
| 1081 |
|
| 1082 |
MACRO {sicomp} {"SIAM J. Comput."} |
| 1083 |
|
| 1084 |
MACRO {tocs} {"ACM Trans. Comput. Syst."} |
| 1085 |
|
| 1086 |
MACRO {tods} {"ACM Trans. Database Syst."} |
| 1087 |
|
| 1088 |
MACRO {tog} {"ACM Trans. Gr."} |
| 1089 |
|
| 1090 |
MACRO {toms} {"ACM Trans. Math. Softw."} |
| 1091 |
|
| 1092 |
MACRO {toois} {"ACM Trans. Office Inf. Syst."} |
| 1093 |
|
| 1094 |
MACRO {toplas} {"ACM Trans. Prog. Lang. Syst."} |
| 1095 |
|
| 1096 |
MACRO {tcs} {"Theoretical Comput. Sci."} |
| 1097 |
|
| 1098 |
READ |
| 1099 |
|
| 1100 |
FUNCTION {sortify} |
| 1101 |
{ purify$ |
| 1102 |
"l" change.case$ |
| 1103 |
} |
| 1104 |
|
| 1105 |
INTEGERS { len } |
| 1106 |
|
| 1107 |
FUNCTION {chop.word} |
| 1108 |
{ 's := |
| 1109 |
'len := |
| 1110 |
s #1 len substring$ = |
| 1111 |
{ s len #1 + global.max$ substring$ } |
| 1112 |
's |
| 1113 |
if$ |
| 1114 |
} |
| 1115 |
|
| 1116 |
FUNCTION {sort.format.names} |
| 1117 |
{ 's := |
| 1118 |
#1 'nameptr := |
| 1119 |
"" |
| 1120 |
s num.names$ 'numnames := |
| 1121 |
numnames 'namesleft := |
| 1122 |
{ namesleft #0 > } |
| 1123 |
{ nameptr #1 > |
| 1124 |
{ " " * } |
| 1125 |
'skip$ |
| 1126 |
if$ |
| 1127 |
s nameptr "{ll{ }}{ f{ }}{ vv{ }}{ jj{ }}" format.name$ 't := |
| 1128 |
nameptr numnames = t "others" = and |
| 1129 |
{ "et al" * } |
| 1130 |
{ t sortify * } |
| 1131 |
if$ |
| 1132 |
nameptr #1 + 'nameptr := |
| 1133 |
namesleft #1 - 'namesleft := |
| 1134 |
} |
| 1135 |
while$ |
| 1136 |
} |
| 1137 |
|
| 1138 |
FUNCTION {sort.format.title} |
| 1139 |
{ 't := |
| 1140 |
"A " #2 |
| 1141 |
"An " #3 |
| 1142 |
"The " #4 t chop.word |
| 1143 |
chop.word |
| 1144 |
chop.word |
| 1145 |
sortify |
| 1146 |
#1 global.max$ substring$ |
| 1147 |
} |
| 1148 |
|
| 1149 |
FUNCTION {author.sort} |
| 1150 |
{ author empty$ |
| 1151 |
{ key empty$ |
| 1152 |
{ "to sort, need author or key in " cite$ * warning$ |
| 1153 |
"" |
| 1154 |
} |
| 1155 |
{ key sortify } |
| 1156 |
if$ |
| 1157 |
} |
| 1158 |
{ author sort.format.names } |
| 1159 |
if$ |
| 1160 |
} |
| 1161 |
|
| 1162 |
FUNCTION {author.editor.sort} |
| 1163 |
{ author empty$ |
| 1164 |
{ editor empty$ |
| 1165 |
{ key empty$ |
| 1166 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 1167 |
"" |
| 1168 |
} |
| 1169 |
{ key sortify } |
| 1170 |
if$ |
| 1171 |
} |
| 1172 |
{ editor sort.format.names } |
| 1173 |
if$ |
| 1174 |
} |
| 1175 |
{ author sort.format.names } |
| 1176 |
if$ |
| 1177 |
} |
| 1178 |
|
| 1179 |
FUNCTION {author.organization.sort} |
| 1180 |
{ author empty$ |
| 1181 |
{ organization empty$ |
| 1182 |
{ key empty$ |
| 1183 |
{ "to sort, need author, organization, or key in " cite$ * warning$ |
| 1184 |
"" |
| 1185 |
} |
| 1186 |
{ key sortify } |
| 1187 |
if$ |
| 1188 |
} |
| 1189 |
{ "The " #4 organization chop.word sortify } |
| 1190 |
if$ |
| 1191 |
} |
| 1192 |
{ author sort.format.names } |
| 1193 |
if$ |
| 1194 |
} |
| 1195 |
|
| 1196 |
FUNCTION {editor.organization.sort} |
| 1197 |
{ editor empty$ |
| 1198 |
{ organization empty$ |
| 1199 |
{ key empty$ |
| 1200 |
{ "to sort, need editor, organization, or key in " cite$ * warning$ |
| 1201 |
"" |
| 1202 |
} |
| 1203 |
{ key sortify } |
| 1204 |
if$ |
| 1205 |
} |
| 1206 |
{ organization sortify } |
| 1207 |
if$ |
| 1208 |
} |
| 1209 |
{ editor sort.format.names } |
| 1210 |
if$ |
| 1211 |
} |
| 1212 |
|
| 1213 |
FUNCTION {presort} |
| 1214 |
{ type$ "book" = |
| 1215 |
type$ "inbook" = |
| 1216 |
or |
| 1217 |
'author.editor.sort |
| 1218 |
{ type$ "proceedings" = |
| 1219 |
'editor.organization.sort |
| 1220 |
{ type$ "manual" = |
| 1221 |
'author.organization.sort |
| 1222 |
'author.sort |
| 1223 |
if$ |
| 1224 |
} |
| 1225 |
if$ |
| 1226 |
} |
| 1227 |
if$ |
| 1228 |
" " |
| 1229 |
* |
| 1230 |
year field.or.null sortify |
| 1231 |
* |
| 1232 |
" " |
| 1233 |
* |
| 1234 |
title field.or.null |
| 1235 |
sort.format.title |
| 1236 |
* |
| 1237 |
#1 entry.max$ substring$ |
| 1238 |
'sort.key$ := |
| 1239 |
} |
| 1240 |
|
| 1241 |
ITERATE {presort} |
| 1242 |
|
| 1243 |
SORT |
| 1244 |
|
| 1245 |
STRINGS { longest.label } |
| 1246 |
|
| 1247 |
INTEGERS { number.label longest.label.width } |
| 1248 |
|
| 1249 |
FUNCTION {initialize.longest.label} |
| 1250 |
{ "" 'longest.label := |
| 1251 |
#1 'number.label := |
| 1252 |
#0 'longest.label.width := |
| 1253 |
} |
| 1254 |
|
| 1255 |
FUNCTION {longest.label.pass} |
| 1256 |
{ number.label int.to.str$ 'label := |
| 1257 |
number.label #1 + 'number.label := |
| 1258 |
label width$ longest.label.width > |
| 1259 |
{ label 'longest.label := |
| 1260 |
label width$ 'longest.label.width := |
| 1261 |
} |
| 1262 |
'skip$ |
| 1263 |
if$ |
| 1264 |
} |
| 1265 |
|
| 1266 |
EXECUTE {initialize.longest.label} |
| 1267 |
|
| 1268 |
ITERATE {longest.label.pass} |
| 1269 |
|
| 1270 |
FUNCTION {begin.bib} |
| 1271 |
{ preamble$ empty$ |
| 1272 |
'skip$ |
| 1273 |
{ preamble$ write$ newline$ } |
| 1274 |
if$ |
| 1275 |
"\begin{thebibliography}{" longest.label * "}" * write$ newline$ |
| 1276 |
"\makeatletter" write$ newline$ |
| 1277 |
"\@tfor\dkbib@reserved@a:=0123456789\do{%" write$ newline$ |
| 1278 |
" \expandafter\sfcode\expandafter`\dkbib@reserved@a=1007}" write$ newline$ |
| 1279 |
"\providecommand{\dkbib@addperiod}{\ifnum\spacefactor=1007.\fi}" write$ newline$ |
| 1280 |
"\providecommand{\dkbibedition}[2]{#1\dkbib@addperiod~udgave}" write$ newline$ |
| 1281 |
"\providecommand{\dkbibEdition}[2]{#1\dkbib@addperiod~udgave}" write$ newline$ |
| 1282 |
"\providecommand{\dkbibisbn}[1]{\unskip\@gobble}" write$ newline$ |
| 1283 |
"\providecommand{\dkbibissn}[1]{\unskip\@gobble}" write$ newline$ |
| 1284 |
"\providecommand{\dkbiburl}[1]{\unskip\@gobble}" write$ newline$ |
| 1285 |
"\providecommand{\dkbibannote}[2]{\unskip}" write$ newline$ |
| 1286 |
"\providecommand{\dkbibdash}{\hbox{-}\penalty\@m}" write$ newline$ |
| 1287 |
"\makeatother" write$ newline$ |
| 1288 |
} |
| 1289 |
|
| 1290 |
EXECUTE {begin.bib} |
| 1291 |
|
| 1292 |
EXECUTE {init.state.consts} |
| 1293 |
|
| 1294 |
ITERATE {call.type$} |
| 1295 |
|
| 1296 |
FUNCTION {end.bib} |
| 1297 |
{ newline$ |
| 1298 |
"\end{thebibliography}" write$ newline$ |
| 1299 |
} |
| 1300 |
|
| 1301 |
EXECUTE {end.bib} |