| 1 |
% nar.bst was created by Tom Schneider from unsrt.bst |
| 2 |
% version = 3.19 of nar.bst 2011 Dec 23 |
| 3 |
% 2011 Dec 23, 3.19 correct year |
| 4 |
% 2011 Dec 23, 3.18 inproceedings bug, line 555 needs another '*' |
| 5 |
% thanks to David Koes dkoes |
| 6 |
% 2010 Dec 05, 3.17 for incollection bug |
| 7 |
% format bvolume needed a '*' |
| 8 |
% 2010 Mar 11, 3.16 techreport - add commas after author and number |
| 9 |
% 2010 Mar 11, 3.15 make unpublished not have two titles ... & date at start |
| 10 |
% 2010 Mar 07, 3.14 Changes from Wolfgang Langer! |
| 11 |
% 2001 Nov 12, 3.13 volume just before pages for inproceedings |
| 12 |
% 2001 Nov 12, 3.12 editor names reversed again... |
| 13 |
% 2001 Jun 15, 3.11 period after title (was comma) |
| 14 |
% 2000 Sep 13, 3.10 introduction of titles as per new NAR instructions |
| 15 |
% 1994 November 30, 3.09 previous version |
| 16 |
|
| 17 |
% Dr. Thomas D. Schneider, Ph.D. |
| 18 |
% National Institutes of Health |
| 19 |
% [email protected] |
| 20 |
% [email protected] (permanent) |
| 21 |
% http://alum.mit.edu/www/toms (permanent) |
| 22 |
|
| 23 |
% This is the bibliography definition for |
| 24 |
% Nucleic Acids Research |
| 25 |
% http://nar.oupjournals.org/ |
| 26 |
|
| 27 |
% The instructions for authors are at |
| 28 |
% http://www3.oup.co.uk/nar/instauth/ |
| 29 |
|
| 30 |
% about titles: |
| 31 |
|
| 32 |
% http://www3.oup.co.uk/nar/instauth/editorial_28_17.html |
| 33 |
% This first appeared in NAR Volume 28, Issue 17, September 1 2000. |
| 34 |
% |
| 35 |
% Titles in References; Papers Longer than 10 |
| 36 |
% Printed Pages |
| 37 |
% |
| 38 |
% At the recent Editors' Meeting it was decided that in future all |
| 39 |
% papers, not just Surveys and Summaries, will have titles |
| 40 |
% included in their reference lists. Starting immediately, all |
| 41 |
% authors will be encouraged to include titles, and this will |
| 42 |
% become mandatory for all papers published after January 1 st |
| 43 |
% 2001. The suggested page limit of 8 pages will be relaxed to |
| 44 |
% accommodate this. Some papers require extra space, and so in |
| 45 |
% future all papers longer than 10 pages will incur a per excess |
| 46 |
% printed page charge of euro 20/$200 to help offset the increased |
| 47 |
% costs of production. This charge for pages in excess of 10 will |
| 48 |
% be applied to all printed papers published after January 1st |
| 49 |
% 2001. Note that the charge will not apply to papers published |
| 50 |
% solely in NAR Methods Online, nor to data published online as |
| 51 |
% `Supplementary Material'. Also, the journal will continue to |
| 52 |
% offer free colour printing. |
| 53 |
|
| 54 |
% BibTeX standard bibliography style `unsrt' |
| 55 |
% version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09. |
| 56 |
% Copyright (C) 1985, all rights reserved. |
| 57 |
% Copying of this file is authorized only if either |
| 58 |
% (1) you make absolutely no changes to your copy, including name, or |
| 59 |
% (2) if you do make changes, you name it something other than |
| 60 |
% btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst. |
| 61 |
% This restriction helps ensure that all standard styles are identical. |
| 62 |
% The file btxbst.doc has the documentation for this style. |
| 63 |
|
| 64 |
ENTRY |
| 65 |
{ address |
| 66 |
author |
| 67 |
booktitle |
| 68 |
chapter |
| 69 |
edition |
| 70 |
editor |
| 71 |
howpublished |
| 72 |
institution |
| 73 |
journal |
| 74 |
key |
| 75 |
month |
| 76 |
note |
| 77 |
number |
| 78 |
organization |
| 79 |
pages |
| 80 |
publisher |
| 81 |
school |
| 82 |
series |
| 83 |
title |
| 84 |
type |
| 85 |
volume |
| 86 |
year |
| 87 |
url |
| 88 |
} |
| 89 |
{} |
| 90 |
{ label } |
| 91 |
|
| 92 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block |
| 93 |
doblank straightnames} |
| 94 |
|
| 95 |
FUNCTION {init.state.consts} |
| 96 |
{ #0 'before.all := |
| 97 |
#1 'mid.sentence := |
| 98 |
#2 'after.sentence := |
| 99 |
#3 'after.block := |
| 100 |
|
| 101 |
#0 'doblank := % put a blanks in output.nonnul if not zero |
| 102 |
#0 'straightnames := % force names to be J. B. Smith if not zero |
| 103 |
% otherwise they are Smith, J. B. |
| 104 |
% 2001 Nov 12: NAR changed back to the unstraight ... |
| 105 |
} |
| 106 |
|
| 107 |
STRINGS { s t } |
| 108 |
|
| 109 |
FUNCTION {between} |
| 110 |
{ % what to do between output items TDS (AVOID COMMAS) |
| 111 |
doblank #0 = |
| 112 |
{" " * write$} |
| 113 |
{write$} |
| 114 |
if$ |
| 115 |
} |
| 116 |
|
| 117 |
FUNCTION {output.nonnull} |
| 118 |
{ 's := |
| 119 |
output.state mid.sentence = |
| 120 |
% { ", " * write$ } % TDS NO COMMAS!!! |
| 121 |
{ |
| 122 |
between |
| 123 |
} |
| 124 |
|
| 125 |
{ output.state after.block = |
| 126 |
{ |
| 127 |
% new as of 2001 jun 15: |
| 128 |
% zzz |
| 129 |
% add.period$ write$ % TDS PERIODS! |
| 130 |
write$ % TDS PERIODS! |
| 131 |
|
| 132 |
% prior to 2001 jun 15: |
| 133 |
%% add.period$ write$ % TDS NO PERIODS! |
| 134 |
% write$ % TDS NO PERIODS! |
| 135 |
|
| 136 |
newline$ |
| 137 |
% "\newblock " write$ % TDS NO NEWBLOCKS: makes for a cleaner file |
| 138 |
} |
| 139 |
{ output.state before.all = |
| 140 |
'write$ |
| 141 |
% { add.period$ " " * write$ } % TDS NO PERIODS!!! |
| 142 |
% { " " * write$ } % TDS NO PERIODS!!! |
| 143 |
{between} |
| 144 |
if$ |
| 145 |
} |
| 146 |
if$ |
| 147 |
mid.sentence 'output.state := |
| 148 |
} |
| 149 |
if$ |
| 150 |
s |
| 151 |
} |
| 152 |
|
| 153 |
FUNCTION {output} |
| 154 |
{ duplicate$ empty$ |
| 155 |
'pop$ |
| 156 |
'output.nonnull |
| 157 |
if$ |
| 158 |
} |
| 159 |
|
| 160 |
FUNCTION {output.check} |
| 161 |
{ 't := |
| 162 |
duplicate$ empty$ |
| 163 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 164 |
'output.nonnull |
| 165 |
if$ |
| 166 |
} |
| 167 |
|
| 168 |
FUNCTION {output.bibitem} |
| 169 |
{ newline$ |
| 170 |
"\bibitem{" write$ |
| 171 |
cite$ write$ |
| 172 |
"}" write$ |
| 173 |
newline$ |
| 174 |
"" |
| 175 |
before.all 'output.state := |
| 176 |
} |
| 177 |
|
| 178 |
FUNCTION {fin.entry} |
| 179 |
{ add.period$ |
| 180 |
write$ |
| 181 |
newline$ |
| 182 |
} |
| 183 |
|
| 184 |
FUNCTION {new.block} |
| 185 |
{ output.state before.all = |
| 186 |
'skip$ |
| 187 |
{ after.block 'output.state := } |
| 188 |
if$ |
| 189 |
} |
| 190 |
|
| 191 |
FUNCTION {new.sentence} |
| 192 |
{ output.state after.block = |
| 193 |
'skip$ |
| 194 |
{ output.state before.all = |
| 195 |
'skip$ |
| 196 |
{ after.sentence 'output.state := } |
| 197 |
if$ |
| 198 |
} |
| 199 |
if$ |
| 200 |
} |
| 201 |
|
| 202 |
FUNCTION {not} |
| 203 |
{ { #0 } |
| 204 |
{ #1 } |
| 205 |
if$ |
| 206 |
} |
| 207 |
|
| 208 |
FUNCTION {and} |
| 209 |
{ 'skip$ |
| 210 |
{ pop$ #0 } |
| 211 |
if$ |
| 212 |
} |
| 213 |
|
| 214 |
FUNCTION {or} |
| 215 |
{ { pop$ #1 } |
| 216 |
'skip$ |
| 217 |
if$ |
| 218 |
} |
| 219 |
|
| 220 |
FUNCTION {new.block.checka} |
| 221 |
{ empty$ |
| 222 |
'skip$ |
| 223 |
'new.block |
| 224 |
if$ |
| 225 |
} |
| 226 |
|
| 227 |
FUNCTION {new.block.checkb} |
| 228 |
{ empty$ |
| 229 |
swap$ empty$ |
| 230 |
and |
| 231 |
'skip$ |
| 232 |
'new.block |
| 233 |
if$ |
| 234 |
} |
| 235 |
|
| 236 |
FUNCTION {new.sentence.checka} |
| 237 |
{ empty$ |
| 238 |
'skip$ |
| 239 |
'new.sentence |
| 240 |
if$ |
| 241 |
} |
| 242 |
|
| 243 |
FUNCTION {new.sentence.checkb} |
| 244 |
{ empty$ |
| 245 |
swap$ empty$ |
| 246 |
and |
| 247 |
'skip$ |
| 248 |
'new.sentence |
| 249 |
if$ |
| 250 |
} |
| 251 |
|
| 252 |
FUNCTION {field.or.null} |
| 253 |
{ duplicate$ empty$ |
| 254 |
{ pop$ "" } |
| 255 |
'skip$ |
| 256 |
if$ |
| 257 |
} |
| 258 |
|
| 259 |
FUNCTION {emphasize} |
| 260 |
{ duplicate$ empty$ |
| 261 |
{ pop$ "" } |
| 262 |
{ "{\em " swap$ * "}" * } |
| 263 |
if$ |
| 264 |
} |
| 265 |
|
| 266 |
INTEGERS { nameptr namesleft numnames } |
| 267 |
|
| 268 |
FUNCTION {format.names} |
| 269 |
{ 's := |
| 270 |
#1 'nameptr := |
| 271 |
s num.names$ 'numnames := |
| 272 |
numnames 'namesleft := |
| 273 |
{ namesleft #0 > } |
| 274 |
{ |
| 275 |
% the original format line: makes "J. D. Smith". TDS |
| 276 |
% s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := % TDS old formatting |
| 277 |
% the new format line: makes "Smith, J. D.". TDS |
| 278 |
% s nameptr "{vv}{ll}{, jj}{, f.}" format.name$ 't := % TDS new formatting |
| 279 |
% note, no ~ so that the format is straight for NAR. |
| 280 |
|
| 281 |
straightnames #0 = |
| 282 |
{ s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't := }% TDS; Langer |
| 283 |
% added blank after vv. 01.03.2010 Wolfram Langer |
| 284 |
{ s nameptr "{ff{ }}{vv}{ ll}{, jj}" format.name$ 't := }% TDS |
| 285 |
if$ |
| 286 |
|
| 287 |
nameptr #1 > |
| 288 |
{ namesleft #1 > |
| 289 |
{ ", " * t * } |
| 290 |
{ numnames #2 > |
| 291 |
{ "," * } |
| 292 |
'skip$ |
| 293 |
if$ |
| 294 |
t "others" = |
| 295 |
% { " et~al." * } % TDS |
| 296 |
{ " et al." * } % TDS no ~ |
| 297 |
{ " and " * t * } |
| 298 |
if$ |
| 299 |
} |
| 300 |
if$ |
| 301 |
} |
| 302 |
't |
| 303 |
if$ |
| 304 |
nameptr #1 + 'nameptr := |
| 305 |
namesleft #1 - 'namesleft := |
| 306 |
} |
| 307 |
while$ |
| 308 |
} |
| 309 |
|
| 310 |
FUNCTION {format.authors} |
| 311 |
{ author empty$ |
| 312 |
{ "" } |
| 313 |
{ author format.names } |
| 314 |
if$ |
| 315 |
} |
| 316 |
|
| 317 |
FUNCTION {format.editors} |
| 318 |
{ |
| 319 |
% #1 'straightnames := % names go as J. B. Smith for editors |
| 320 |
% NAR Changed back!! 2001 Nov 12 TDS |
| 321 |
editor empty$ |
| 322 |
{ "" } |
| 323 |
{ editor format.names |
| 324 |
editor num.names$ #1 > |
| 325 |
{ ", (eds.)" * } % 2001 Nov 12 TDS |
| 326 |
{ ", (ed.)" * } |
| 327 |
% { ", editors" * } |
| 328 |
% { ", editor" * } |
| 329 |
if$ |
| 330 |
} |
| 331 |
if$ |
| 332 |
% #0 'straightnames := % names go as Smith, J. B. again |
| 333 |
} |
| 334 |
|
| 335 |
FUNCTION {format.title} |
| 336 |
{ title empty$ |
| 337 |
{ "" } |
| 338 |
% { title "t" change.case$ } |
| 339 |
% 2000 Sep 13 TDS put comma after title: |
| 340 |
% { title "," * "t" change.case$ } |
| 341 |
% 2001 Jun 15 TDS put period after title! |
| 342 |
% { title "." * "t" change.case$ } |
| 343 |
% Wolfram Langer, 15.12.2009: No dot after title, no change of the case. |
| 344 |
% TDS: 2010 Mar 07: No, there is a dot after the title, see: |
| 345 |
% http://nar.oxfordjournals.org/cgi/content/full/38/4/1182 |
| 346 |
{ title "." * } |
| 347 |
if$ |
| 348 |
} |
| 349 |
|
| 350 |
FUNCTION {n.dashify} |
| 351 |
{ 't := |
| 352 |
"" |
| 353 |
{ t empty$ not } |
| 354 |
{ t #1 #1 substring$ "-" = |
| 355 |
{ t #1 #2 substring$ "--" = not |
| 356 |
{ "--" * |
| 357 |
t #2 global.max$ substring$ 't := |
| 358 |
} |
| 359 |
{ { t #1 #1 substring$ "-" = } |
| 360 |
{ "-" * |
| 361 |
t #2 global.max$ substring$ 't := |
| 362 |
} |
| 363 |
while$ |
| 364 |
} |
| 365 |
if$ |
| 366 |
} |
| 367 |
{ t #1 #1 substring$ * |
| 368 |
t #2 global.max$ substring$ 't := |
| 369 |
} |
| 370 |
if$ |
| 371 |
} |
| 372 |
while$ |
| 373 |
} |
| 374 |
|
| 375 |
FUNCTION {format.date} |
| 376 |
{ year empty$ |
| 377 |
{ month empty$ |
| 378 |
{ "" } |
| 379 |
{ "there's a month but no year in " cite$ * warning$ |
| 380 |
month |
| 381 |
} |
| 382 |
if$ |
| 383 |
} |
| 384 |
{ month empty$ |
| 385 |
% 'year originally |
| 386 |
{"(" year ")" * * } % TDS |
| 387 |
{"(" month ", " year ")" * * * * } % TDS |
| 388 |
if$ |
| 389 |
} |
| 390 |
if$ |
| 391 |
} |
| 392 |
|
| 393 |
FUNCTION {format.btitle} |
| 394 |
{ title %emphasize not for NAR! TDS |
| 395 |
} |
| 396 |
|
| 397 |
FUNCTION {tie.or.space.connect} |
| 398 |
{ duplicate$ text.length$ #3 < |
| 399 |
{ "~" } |
| 400 |
{ " " } |
| 401 |
if$ |
| 402 |
swap$ * * |
| 403 |
} |
| 404 |
|
| 405 |
FUNCTION {either.or.check} |
| 406 |
{ empty$ |
| 407 |
'pop$ |
| 408 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 409 |
if$ |
| 410 |
} |
| 411 |
|
| 412 |
FUNCTION {format.bvolume} |
| 413 |
{ volume empty$ |
| 414 |
{ "" } |
| 415 |
% { "volume" volume tie.or.space.connect % TDS |
| 416 |
% TDS add a comma and bold |
| 417 |
% { "volume" "{\bf " volume "}, " * * tie.or.space.connect |
| 418 |
% 2001 Nov 12 no longer bold!! |
| 419 |
% { "volume" volume ", " * tie.or.space.connect |
| 420 |
% 2001 nov 12 now "Vol." |
| 421 |
% { "Vol." volume ", " * tie.or.space.connect |
| 422 |
{ "Vol." volume tie.or.space.connect % TDS 2011 Dec 05 No comma yet! |
| 423 |
series empty$ |
| 424 |
% 'skip$ |
| 425 |
% PUT COMMA HERE INSTEAD OF SKIP! REMOVE COMMA ABOVE % TDS 2011 Dec 05 |
| 426 |
{", " *} % TDS |
| 427 |
%{ " of " * series emphasize * } TDS |
| 428 |
{ " of " * series * ", " * } % TDS book titles not emphasized for NAR |
| 429 |
% TDS add comma 2011 Dec 05 |
| 430 |
if$ |
| 431 |
"volume and number" number either.or.check |
| 432 |
} |
| 433 |
if$ |
| 434 |
} |
| 435 |
|
| 436 |
FUNCTION {format.number.series} |
| 437 |
{ volume empty$ |
| 438 |
{ number empty$ |
| 439 |
{ series field.or.null } |
| 440 |
{ output.state mid.sentence = |
| 441 |
{ "number" } |
| 442 |
{ "Number" } |
| 443 |
if$ |
| 444 |
number tie.or.space.connect |
| 445 |
series empty$ |
| 446 |
{ "there's a number but no series in " cite$ * warning$ } |
| 447 |
{ " in " * series * } |
| 448 |
if$ |
| 449 |
} |
| 450 |
if$ |
| 451 |
} |
| 452 |
{ "" } |
| 453 |
if$ |
| 454 |
} |
| 455 |
|
| 456 |
FUNCTION {format.edition} |
| 457 |
{ edition empty$ |
| 458 |
{ "" } |
| 459 |
{ output.state mid.sentence = |
| 460 |
{ " " edition * "l" change.case$ " edition" * } % TDS add space before |
| 461 |
{ " " edition * "t" change.case$ " edition" * } % TDS add space before |
| 462 |
if$ |
| 463 |
} |
| 464 |
if$ |
| 465 |
} |
| 466 |
|
| 467 |
INTEGERS { multiresult } |
| 468 |
|
| 469 |
FUNCTION {multi.page.check} |
| 470 |
{ 't := |
| 471 |
#0 'multiresult := |
| 472 |
{ multiresult not |
| 473 |
t empty$ not |
| 474 |
and |
| 475 |
} |
| 476 |
{ t #1 #1 substring$ |
| 477 |
duplicate$ "-" = |
| 478 |
swap$ duplicate$ "," = |
| 479 |
swap$ "+" = |
| 480 |
or or |
| 481 |
{ #1 'multiresult := } |
| 482 |
{ t #2 global.max$ substring$ 't := } |
| 483 |
if$ |
| 484 |
} |
| 485 |
while$ |
| 486 |
multiresult |
| 487 |
} |
| 488 |
|
| 489 |
FUNCTION {format.pages} |
| 490 |
{ pages empty$ |
| 491 |
{ "" } |
| 492 |
{ pages multi.page.check |
| 493 |
% { "pages" pages n.dashify tie.or.space.connect } % TDS |
| 494 |
% { "page" pages tie.or.space.connect } % TDS |
| 495 |
{ "pp." pages n.dashify tie.or.space.connect } % TDS |
| 496 |
{ "p." pages tie.or.space.connect } % TDS |
| 497 |
if$ |
| 498 |
} |
| 499 |
if$ |
| 500 |
} |
| 501 |
|
| 502 |
|
| 503 |
FUNCTION {format.vol.num.pages} |
| 504 |
%{ volume * field.or.null |
| 505 |
{ |
| 506 |
volume empty$ |
| 507 |
{ "" } |
| 508 |
{"{\bf " volume * field.or.null "}" *} % TDS add boldface |
| 509 |
if$ |
| 510 |
|
| 511 |
number empty$ |
| 512 |
'skip$ |
| 513 |
{ "(" number * ")" * * |
| 514 |
volume empty$ |
| 515 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 516 |
'skip$ |
| 517 |
if$ |
| 518 |
} |
| 519 |
if$ |
| 520 |
pages empty$ |
| 521 |
'skip$ |
| 522 |
{ duplicate$ empty$ |
| 523 |
{ pop$ format.pages } |
| 524 |
% { ":" * pages n.dashify * } % TDS remove colon! |
| 525 |
{ ", " * pages n.dashify * } % TDS replace colon with a comma |
| 526 |
if$ |
| 527 |
} |
| 528 |
if$ |
| 529 |
} |
| 530 |
|
| 531 |
FUNCTION {format.chapter.pages} |
| 532 |
{ chapter empty$ |
| 533 |
'format.pages |
| 534 |
{ type empty$ |
| 535 |
{ "chapter" } |
| 536 |
{ type "l" change.case$ } |
| 537 |
if$ |
| 538 |
chapter tie.or.space.connect |
| 539 |
pages empty$ |
| 540 |
'skip$ |
| 541 |
{ ", " * format.pages * } |
| 542 |
if$ |
| 543 |
} |
| 544 |
if$ |
| 545 |
} |
| 546 |
|
| 547 |
FUNCTION {format.in.ed.booktitle} |
| 548 |
{ booktitle empty$ |
| 549 |
{ "" } |
| 550 |
{ editor empty$ |
| 551 |
% add colon after "In" |
| 552 |
%{ "In " booktitle emphasize * } % TDS |
| 553 |
%{ "In " format.editors * ", " * booktitle emphasize * |
| 554 |
% { "In " booktitle *} % TDS no emphasis in nar! |
| 555 |
% 2001 Nov 12 Now Nar wants emph!! |
| 556 |
{ "In " |
| 557 |
"\emph{" |
| 558 |
booktitle |
| 559 |
"}" * * * % 2011 Dec 23 thanks to dkoes - a * was missing |
| 560 |
} % TDS now emphasis in nar! |
| 561 |
{ "In " format.editors * ", " * |
| 562 |
"\emph{" |
| 563 |
booktitle |
| 564 |
"}" * * |
| 565 |
* % TDS now emphasis in nar! |
| 566 |
", " * } % TDS and tack on a comma |
| 567 |
if$ |
| 568 |
} |
| 569 |
if$ |
| 570 |
} |
| 571 |
|
| 572 |
FUNCTION {empty.misc.check} |
| 573 |
{ author empty$ title empty$ howpublished empty$ |
| 574 |
month empty$ year empty$ note empty$ |
| 575 |
and and and and and |
| 576 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 577 |
'skip$ |
| 578 |
if$ |
| 579 |
} |
| 580 |
|
| 581 |
FUNCTION {format.thesis.type} |
| 582 |
{ type empty$ |
| 583 |
'skip$ |
| 584 |
{ pop$ |
| 585 |
type "t" change.case$ |
| 586 |
} |
| 587 |
if$ |
| 588 |
} |
| 589 |
|
| 590 |
FUNCTION {format.tr.number} |
| 591 |
{ type empty$ |
| 592 |
{ "Technical Report" } |
| 593 |
'type |
| 594 |
if$ |
| 595 |
number empty$ |
| 596 |
{ "t" change.case$ } |
| 597 |
{ number tie.or.space.connect } |
| 598 |
if$ |
| 599 |
} |
| 600 |
|
| 601 |
FUNCTION {format.article.crossref} |
| 602 |
{ key empty$ |
| 603 |
{ journal empty$ |
| 604 |
{ "need key or journal for " cite$ * " to crossref " * crossref * |
| 605 |
warning$ |
| 606 |
"" |
| 607 |
} |
| 608 |
{ "In {\em " journal * "\/}" * } % TDS |
| 609 |
if$ |
| 610 |
} |
| 611 |
{ "In " key * } % TDS |
| 612 |
if$ |
| 613 |
" \cite{" * crossref * "}" * |
| 614 |
} |
| 615 |
|
| 616 |
FUNCTION {format.crossref.editor} |
| 617 |
{ editor #1 "{vv~}{ll}" format.name$ |
| 618 |
editor num.names$ duplicate$ |
| 619 |
#2 > |
| 620 |
{ pop$ " et~al." * } |
| 621 |
{ #2 < |
| 622 |
'skip$ |
| 623 |
{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 624 |
{ " et~al." * } |
| 625 |
{ " and " * editor #2 "{vv~}{ll}" format.name$ * } |
| 626 |
if$ |
| 627 |
} |
| 628 |
if$ |
| 629 |
} |
| 630 |
if$ |
| 631 |
} |
| 632 |
|
| 633 |
FUNCTION {format.book.crossref} |
| 634 |
{ volume empty$ |
| 635 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 636 |
"In " % TDS |
| 637 |
} |
| 638 |
{ "Volume" volume tie.or.space.connect |
| 639 |
" of " * |
| 640 |
} |
| 641 |
if$ |
| 642 |
editor empty$ |
| 643 |
editor field.or.null author field.or.null = |
| 644 |
or |
| 645 |
{ key empty$ |
| 646 |
{ series empty$ |
| 647 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 648 |
crossref * warning$ |
| 649 |
"" * |
| 650 |
} |
| 651 |
{ "{\em " * series * "\/}" * } |
| 652 |
if$ |
| 653 |
} |
| 654 |
{ key * } |
| 655 |
if$ |
| 656 |
} |
| 657 |
{ format.crossref.editor * } |
| 658 |
if$ |
| 659 |
" \cite{" * crossref * "}" * |
| 660 |
} |
| 661 |
|
| 662 |
FUNCTION {format.incoll.inproc.crossref} |
| 663 |
{ editor empty$ |
| 664 |
editor field.or.null author field.or.null = |
| 665 |
or |
| 666 |
{ key empty$ |
| 667 |
{ booktitle empty$ |
| 668 |
{ "need editor, key, or booktitle for " cite$ * " to crossref " * |
| 669 |
crossref * warning$ |
| 670 |
"" |
| 671 |
} |
| 672 |
{ "In " booktitle * } % TDS |
| 673 |
if$ |
| 674 |
} |
| 675 |
{ "In " key * } % TDS |
| 676 |
if$ |
| 677 |
} |
| 678 |
{ "In " format.crossref.editor * } % TDS |
| 679 |
if$ |
| 680 |
" \cite{" * crossref * "}" * |
| 681 |
} |
| 682 |
|
| 683 |
% Wolfram Langer, 15.12.2009 |
| 684 |
FUNCTION {format.url} |
| 685 |
{ url empty$ |
| 686 |
{ "" } |
| 687 |
{"\url{" url * "}" *} |
| 688 |
if$ |
| 689 |
} |
| 690 |
|
| 691 |
FUNCTION {article} |
| 692 |
{ output.bibitem |
| 693 |
format.authors "author" output.check |
| 694 |
format.date "year" output.check % TDS move date to here |
| 695 |
new.block |
| 696 |
% format.title "title" output.check % TDS NO TITLES |
| 697 |
format.title "title" output.check % TDS NO TITLES; titles as of 2000 Sep 13 |
| 698 |
new.block |
| 699 |
% zzz |
| 700 |
crossref missing$ |
| 701 |
{ journal "," * emphasize "journal" output.check %TDS add , |
| 702 |
format.vol.num.pages output |
| 703 |
% format.date "year" output.check % TDS move date |
| 704 |
} |
| 705 |
{ format.article.crossref output.nonnull |
| 706 |
format.pages output |
| 707 |
} |
| 708 |
if$ |
| 709 |
new.block |
| 710 |
note output |
| 711 |
fin.entry |
| 712 |
} |
| 713 |
|
| 714 |
FUNCTION {book} |
| 715 |
{ output.bibitem |
| 716 |
author empty$ |
| 717 |
{ format.editors "author and editor" output.check } |
| 718 |
{ format.authors output.nonnull |
| 719 |
crossref missing$ |
| 720 |
{ "author and editor" editor either.or.check } |
| 721 |
'skip$ |
| 722 |
if$ |
| 723 |
} |
| 724 |
if$ |
| 725 |
|
| 726 |
format.date "year" output.check % TDS new location |
| 727 |
new.block |
| 728 |
#1 'doblank := % remove blanks TDS |
| 729 |
format.btitle "title" output.check |
| 730 |
", " output % give it a comma after the title TDS |
| 731 |
crossref missing$ |
| 732 |
{ format.bvolume output |
| 733 |
new.block |
| 734 |
format.number.series output |
| 735 |
new.sentence |
| 736 |
publisher "publisher" output.check |
| 737 |
", " output % give it a comma after the publisher TDS |
| 738 |
address output |
| 739 |
} |
| 740 |
{ new.block |
| 741 |
format.book.crossref output.nonnull |
| 742 |
} |
| 743 |
if$ |
| 744 |
format.edition output |
| 745 |
% format.date "year" output.check % TDS former location |
| 746 |
new.block |
| 747 |
note output |
| 748 |
fin.entry |
| 749 |
#0 'doblank := % blanks again TDS |
| 750 |
} |
| 751 |
|
| 752 |
FUNCTION {booklet} |
| 753 |
{ output.bibitem |
| 754 |
format.authors output |
| 755 |
new.block |
| 756 |
format.title "title" output.check |
| 757 |
howpublished address new.block.checkb |
| 758 |
howpublished output |
| 759 |
address output |
| 760 |
format.date output |
| 761 |
new.block |
| 762 |
note output |
| 763 |
fin.entry |
| 764 |
} |
| 765 |
|
| 766 |
FUNCTION {inbook} |
| 767 |
{ output.bibitem |
| 768 |
author empty$ |
| 769 |
{ format.editors "author and editor" output.check } |
| 770 |
{ format.authors output.nonnull |
| 771 |
crossref missing$ |
| 772 |
{ "author and editor" editor either.or.check } |
| 773 |
'skip$ |
| 774 |
if$ |
| 775 |
} |
| 776 |
if$ |
| 777 |
new.block |
| 778 |
format.btitle "title" output.check |
| 779 |
crossref missing$ |
| 780 |
{ format.bvolume output |
| 781 |
format.chapter.pages "chapter and pages" output.check |
| 782 |
new.block |
| 783 |
format.number.series output |
| 784 |
new.sentence |
| 785 |
publisher "publisher" output.check |
| 786 |
address output |
| 787 |
} |
| 788 |
{ format.chapter.pages "chapter and pages" output.check |
| 789 |
new.block |
| 790 |
format.book.crossref output.nonnull |
| 791 |
} |
| 792 |
if$ |
| 793 |
format.edition output |
| 794 |
format.date "year" output.check |
| 795 |
new.block |
| 796 |
note output |
| 797 |
fin.entry |
| 798 |
} |
| 799 |
|
| 800 |
FUNCTION {incollection} |
| 801 |
{ output.bibitem |
| 802 |
format.authors "author" output.check |
| 803 |
format.date "year" output.check % TDS |
| 804 |
new.block |
| 805 |
format.title "title" output.check |
| 806 |
new.block |
| 807 |
crossref missing$ |
| 808 |
{ format.in.ed.booktitle "booktitle" output.check |
| 809 |
format.bvolume output |
| 810 |
format.number.series output |
| 811 |
format.chapter.pages output |
| 812 |
new.sentence |
| 813 |
publisher "publisher" output.check |
| 814 |
address output |
| 815 |
format.edition output |
| 816 |
% format.date "year" output.check % TDS |
| 817 |
} |
| 818 |
{ format.incoll.inproc.crossref output.nonnull |
| 819 |
format.chapter.pages output |
| 820 |
} |
| 821 |
if$ |
| 822 |
new.block |
| 823 |
note output |
| 824 |
fin.entry |
| 825 |
} |
| 826 |
|
| 827 |
FUNCTION {inproceedings} |
| 828 |
{ output.bibitem |
| 829 |
format.authors "author" output.check |
| 830 |
format.date "year" output.check % TDS |
| 831 |
new.block |
| 832 |
format.title "title" output.check % TDS NO TITLE, titles 2000 Sep 13 |
| 833 |
% 2001 Nov 12 Now make this title emph!! |
| 834 |
% TDS NO TITLE, titles 2000 Sep 13 |
| 835 |
new.block |
| 836 |
crossref missing$ |
| 837 |
{ |
| 838 |
format.in.ed.booktitle "booktitle" |
| 839 |
%"\emph{" |
| 840 |
% "}" * * |
| 841 |
output.check |
| 842 |
% qqq |
| 843 |
% format.bvolume output |
| 844 |
% format.number.series output |
| 845 |
% format.pages output % TDS pages go at the end |
| 846 |
address empty$ |
| 847 |
{ organization publisher new.sentence.checkb |
| 848 |
organization output |
| 849 |
% 2001 nov 12: no longer colon! TDS |
| 850 |
% ": " output % TDS put a colon |
| 851 |
publisher output |
| 852 |
% format.date "year" output.check |
| 853 |
} |
| 854 |
{ address output.nonnull |
| 855 |
% format.date "year" output.check |
| 856 |
new.sentence |
| 857 |
#1 'doblank := % remove blanks |
| 858 |
organization output |
| 859 |
": " output % TDS put a colon after the location |
| 860 |
publisher output |
| 861 |
% ". " output % TDS put a period after the publisher |
| 862 |
#0 'doblank := % put back blanks |
| 863 |
} |
| 864 |
if$ |
| 865 |
} |
| 866 |
{ format.incoll.inproc.crossref output.nonnull |
| 867 |
% format.pages output % TDS pages go at the end |
| 868 |
} |
| 869 |
if$ |
| 870 |
new.block |
| 871 |
note output |
| 872 |
format.bvolume output % TDS goes at end |
| 873 |
format.number.series output % TDS goes at end |
| 874 |
format.pages output % TDS pages go at the end |
| 875 |
fin.entry |
| 876 |
} |
| 877 |
|
| 878 |
FUNCTION {conference} { inproceedings } |
| 879 |
|
| 880 |
FUNCTION {manual} |
| 881 |
{ output.bibitem |
| 882 |
author empty$ |
| 883 |
{ organization empty$ |
| 884 |
'skip$ |
| 885 |
{ organization output.nonnull |
| 886 |
address output |
| 887 |
} |
| 888 |
if$ |
| 889 |
} |
| 890 |
{ format.authors output.nonnull } |
| 891 |
if$ |
| 892 |
new.block |
| 893 |
format.btitle "title" output.check |
| 894 |
author empty$ |
| 895 |
{ organization empty$ |
| 896 |
{ address new.block.checka |
| 897 |
address output |
| 898 |
} |
| 899 |
'skip$ |
| 900 |
if$ |
| 901 |
} |
| 902 |
{ organization address new.block.checkb |
| 903 |
organization output |
| 904 |
address output |
| 905 |
} |
| 906 |
if$ |
| 907 |
format.edition output |
| 908 |
format.date output |
| 909 |
new.block |
| 910 |
note output |
| 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 |
"Master's thesis" 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 |
fin.entry |
| 927 |
} |
| 928 |
|
| 929 |
FUNCTION {misc} |
| 930 |
{ output.bibitem |
| 931 |
format.authors output |
| 932 |
title howpublished new.block.checkb |
| 933 |
format.title output |
| 934 |
howpublished new.block.checka |
| 935 |
howpublished output |
| 936 |
format.date output |
| 937 |
new.block |
| 938 |
note output |
| 939 |
fin.entry |
| 940 |
empty.misc.check |
| 941 |
} |
| 942 |
|
| 943 |
% Wolfram Langer, 15.12.2009 |
| 944 |
FUNCTION {electronic} |
| 945 |
{ output.bibitem |
| 946 |
format.authors "author" output.check |
| 947 |
note output |
| 948 |
format.date "year" output.check |
| 949 |
new.block |
| 950 |
title ", available: " * format.url * "title" output.check |
| 951 |
fin.entry |
| 952 |
} |
| 953 |
|
| 954 |
FUNCTION {phdthesis} |
| 955 |
{ output.bibitem |
| 956 |
format.authors "author" output.check |
| 957 |
new.block |
| 958 |
format.btitle "title" output.check |
| 959 |
new.block |
| 960 |
"PhD thesis" format.thesis.type output.nonnull |
| 961 |
school "school" output.check |
| 962 |
address output |
| 963 |
format.date "year" output.check |
| 964 |
new.block |
| 965 |
note output |
| 966 |
fin.entry |
| 967 |
} |
| 968 |
|
| 969 |
FUNCTION {proceedings} |
| 970 |
{ output.bibitem |
| 971 |
editor empty$ |
| 972 |
{ organization output } |
| 973 |
{ format.editors output.nonnull } |
| 974 |
if$ |
| 975 |
new.block |
| 976 |
format.btitle "title" output.check |
| 977 |
format.bvolume output |
| 978 |
format.number.series output |
| 979 |
address empty$ |
| 980 |
{ editor empty$ |
| 981 |
{ publisher new.sentence.checka } |
| 982 |
{ organization publisher new.sentence.checkb |
| 983 |
organization output |
| 984 |
} |
| 985 |
if$ |
| 986 |
publisher output |
| 987 |
format.date "year" output.check |
| 988 |
} |
| 989 |
{ address output.nonnull |
| 990 |
format.date "year" output.check |
| 991 |
new.sentence |
| 992 |
editor empty$ |
| 993 |
'skip$ |
| 994 |
{ organization output } |
| 995 |
if$ |
| 996 |
publisher output |
| 997 |
} |
| 998 |
if$ |
| 999 |
new.block |
| 1000 |
note output |
| 1001 |
fin.entry |
| 1002 |
} |
| 1003 |
|
| 1004 |
FUNCTION {techreport} |
| 1005 |
{ output.bibitem |
| 1006 |
format.authors ", " * "author" output.check |
| 1007 |
new.block |
| 1008 |
format.title "title" output.check |
| 1009 |
new.block |
| 1010 |
format.tr.number ", " * output.nonnull |
| 1011 |
institution "institution" output.check |
| 1012 |
address output |
| 1013 |
format.date "year" output.check |
| 1014 |
new.block |
| 1015 |
note output |
| 1016 |
fin.entry |
| 1017 |
} |
| 1018 |
|
| 1019 |
FUNCTION {unpublished} |
| 1020 |
{ output.bibitem |
| 1021 |
format.authors "author" output.check |
| 1022 |
new.block |
| 1023 |
format.date output |
| 1024 |
format.title "title" output.check % titles as of 2000 Sep 13 |
| 1025 |
% format.title ", " * "title" output.check |
| 1026 |
new.block |
| 1027 |
note "note" output.check |
| 1028 |
fin.entry |
| 1029 |
} |
| 1030 |
|
| 1031 |
FUNCTION {default.type} { misc } |
| 1032 |
|
| 1033 |
MACRO {jan} {"January"} |
| 1034 |
|
| 1035 |
MACRO {feb} {"February"} |
| 1036 |
|
| 1037 |
MACRO {mar} {"March"} |
| 1038 |
|
| 1039 |
MACRO {apr} {"April"} |
| 1040 |
|
| 1041 |
MACRO {may} {"May"} |
| 1042 |
|
| 1043 |
MACRO {jun} {"June"} |
| 1044 |
|
| 1045 |
MACRO {jul} {"July"} |
| 1046 |
|
| 1047 |
MACRO {aug} {"August"} |
| 1048 |
|
| 1049 |
MACRO {sep} {"September"} |
| 1050 |
|
| 1051 |
MACRO {oct} {"October"} |
| 1052 |
|
| 1053 |
MACRO {nov} {"November"} |
| 1054 |
|
| 1055 |
MACRO {dec} {"December"} |
| 1056 |
|
| 1057 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 1058 |
|
| 1059 |
MACRO {acta} {"Acta Informatica"} |
| 1060 |
|
| 1061 |
MACRO {cacm} {"Communications of the ACM"} |
| 1062 |
|
| 1063 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 1064 |
|
| 1065 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 1066 |
|
| 1067 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 1068 |
|
| 1069 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 1070 |
|
| 1071 |
MACRO {ieeetcad} |
| 1072 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 1073 |
|
| 1074 |
MACRO {ipl} {"Information Processing Letters"} |
| 1075 |
|
| 1076 |
MACRO {jacm} {"Journal of the ACM"} |
| 1077 |
|
| 1078 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 1079 |
|
| 1080 |
MACRO {scp} {"Science of Computer Programming"} |
| 1081 |
|
| 1082 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 1083 |
|
| 1084 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 1085 |
|
| 1086 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 1087 |
|
| 1088 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 1089 |
|
| 1090 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 1091 |
|
| 1092 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 1093 |
|
| 1094 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 1095 |
|
| 1096 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 1097 |
|
| 1098 |
READ |
| 1099 |
|
| 1100 |
STRINGS { longest.label } |
| 1101 |
|
| 1102 |
INTEGERS { number.label longest.label.width } |
| 1103 |
|
| 1104 |
FUNCTION {initialize.longest.label} |
| 1105 |
{ "" 'longest.label := |
| 1106 |
#1 'number.label := |
| 1107 |
#0 'longest.label.width := |
| 1108 |
} |
| 1109 |
|
| 1110 |
FUNCTION {longest.label.pass} |
| 1111 |
{ number.label int.to.str$ 'label := |
| 1112 |
number.label #1 + 'number.label := |
| 1113 |
label width$ longest.label.width > |
| 1114 |
{ label 'longest.label := |
| 1115 |
label width$ 'longest.label.width := |
| 1116 |
} |
| 1117 |
'skip$ |
| 1118 |
if$ |
| 1119 |
} |
| 1120 |
|
| 1121 |
EXECUTE {initialize.longest.label} |
| 1122 |
|
| 1123 |
ITERATE {longest.label.pass} |
| 1124 |
|
| 1125 |
FUNCTION {begin.bib} |
| 1126 |
{ preamble$ empty$ |
| 1127 |
'skip$ |
| 1128 |
{ preamble$ write$ newline$ } |
| 1129 |
if$ |
| 1130 |
"\begin{thebibliography}{" longest.label * "}" * write$ newline$ |
| 1131 |
} |
| 1132 |
|
| 1133 |
EXECUTE {begin.bib} |
| 1134 |
|
| 1135 |
EXECUTE {init.state.consts} |
| 1136 |
|
| 1137 |
ITERATE {call.type$} |
| 1138 |
|
| 1139 |
FUNCTION {end.bib} |
| 1140 |
{ newline$ |
| 1141 |
"\end{thebibliography}" write$ newline$ |
| 1142 |
} |
| 1143 |
|
| 1144 |
EXECUTE {end.bib} |