| 1 |
%% This `vancouver.bst' bibliographic style file (for LaTeX/BibTeX) is |
| 2 |
%% generated with the docstrip utility and modified manually to meet the |
| 3 |
%% ``Uniform Requirements for Manuscripts Submitted to Biomedical Journals'' |
| 4 |
%% as published in N Engl J Med 1997;336:309-315. |
| 5 |
%% (also known as the Vancouver style) |
| 6 |
%% The standards are summarized in: |
| 7 |
%% https://www.nlm.nih.gov/bsd/uniform_requirements.html |
| 8 |
%% and detailed in: |
| 9 |
%% https://www.ncbi.nlm.nih.gov/books/NBK7256/ |
| 10 |
%% |
| 11 |
%%------------------------------------------------------------------- |
| 12 |
%% |
| 13 |
%% Author: Folkert van der Beek <[email protected]> |
| 14 |
%% Version: 1.0 |
| 15 |
%% URL: https://gitlab.com/fvdbeek/vancouver.bst |
| 16 |
%% |
| 17 |
%% This work may be distributed and/or modified under the |
| 18 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 19 |
%% of this license or (at your option) any later version. |
| 20 |
%% The latest version of this license is in |
| 21 |
%% http://www.latex-project.org/lppl.txt |
| 22 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 23 |
%% version 2005/12/01 or later. |
| 24 |
%% |
| 25 |
%%------------------------------------------------------------------- |
| 26 |
%% |
| 27 |
%% This bibliography style file is intended for texts in ENGLISH |
| 28 |
%% This is a numerical citation style, and as such is standard LaTeX. |
| 29 |
%% It requires no extra package to interface to the main text. |
| 30 |
%% The form of the \bibitem entries is |
| 31 |
%% \bibitem{key}... |
| 32 |
%% Usage of \cite is as follows: |
| 33 |
%% \cite{key} ==>> [#] |
| 34 |
%% \cite[chap. 2]{key} ==>> [#, chap. 2] |
| 35 |
%% where # is a number determined by the ordering in the reference list. |
| 36 |
%% The order in the reference list is that by which the works were originally |
| 37 |
%% cited in the text, or that in the database. |
| 38 |
% |
| 39 |
%% To change the reference numbering system from [1] to 1, |
| 40 |
%% put the following code in the preamble: |
| 41 |
%% \makeatletter % Reference list option change |
| 42 |
%% \renewcommand\@biblabel[1]{#1} % from [1] to 1 |
| 43 |
%% \makeatother % |
| 44 |
%% |
| 45 |
%%--------------------------------------------------------------------- |
| 46 |
|
| 47 |
%% List of all possible fields |
| 48 |
ENTRY |
| 49 |
{ address |
| 50 |
assignee % for patents |
| 51 |
author |
| 52 |
booktitle % for articles in books |
| 53 |
chapter % for incollection, esp. internet documents |
| 54 |
cartographer % for maps |
| 55 |
day |
| 56 |
edition |
| 57 |
editor |
| 58 |
howpublished |
| 59 |
institution % for technical reports |
| 60 |
inventor % for patents |
| 61 |
journal |
| 62 |
key |
| 63 |
month |
| 64 |
note |
| 65 |
number |
| 66 |
organization |
| 67 |
pages |
| 68 |
part |
| 69 |
publisher |
| 70 |
school |
| 71 |
series |
| 72 |
title |
| 73 |
type |
| 74 |
volume |
| 75 |
word |
| 76 |
year |
| 77 |
eprint % urlbst |
| 78 |
doi % urlbst |
| 79 |
url % urlbst |
| 80 |
lastchecked % urlbst |
| 81 |
updated % urlbst |
| 82 |
} |
| 83 |
{} |
| 84 |
{ label } |
| 85 |
%% Declaration of integer variables |
| 86 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 87 |
STRINGS { urlintro eprinturl eprintprefix doiprefix doiurl } % urlbst... |
| 88 |
INTEGERS { hrefform addeprints adddoiresolver } |
| 89 |
% Following constants may be adjusted by hand, if desired |
| 90 |
FUNCTION {init.config.constants} |
| 91 |
{ |
| 92 |
"Available from: " 'urlintro := % prefix before URL |
| 93 |
"http://arxiv.org/abs/" 'eprinturl := % prefix to make URL from eprint ref |
| 94 |
"arXiv:" 'eprintprefix := % text prefix printed before eprint ref |
| 95 |
"http://dx.doi.org/" 'doiurl := % prefix to make URL from DOI |
| 96 |
"doi:" 'doiprefix := % text prefix printed before DOI ref |
| 97 |
#0 'addeprints := % 0=no eprints; 1=include eprints |
| 98 |
#0 'adddoiresolver := % 0=no DOI resolver; 1=include it |
| 99 |
#0 'hrefform := % 0=no crossrefs; 1=hypertex xrefs; 2=hyperref refs |
| 100 |
} |
| 101 |
INTEGERS { |
| 102 |
bracket.state |
| 103 |
outside.brackets |
| 104 |
open.brackets |
| 105 |
within.brackets |
| 106 |
close.brackets |
| 107 |
} |
| 108 |
% ...urlbst to here |
| 109 |
FUNCTION {init.state.consts} |
| 110 |
{ #0 'outside.brackets := % urlbst |
| 111 |
#1 'open.brackets := |
| 112 |
#2 'within.brackets := |
| 113 |
#3 'close.brackets := |
| 114 |
|
| 115 |
#0 'before.all := |
| 116 |
#1 'mid.sentence := |
| 117 |
#2 'after.sentence := |
| 118 |
#3 'after.block := |
| 119 |
} |
| 120 |
%% Declaration of string variables |
| 121 |
STRINGS { s t} |
| 122 |
|
| 123 |
% urlbst |
| 124 |
FUNCTION {output.nonnull.original} |
| 125 |
{ 's := |
| 126 |
output.state mid.sentence = |
| 127 |
{ ". " * write$ } |
| 128 |
{ output.state after.block = |
| 129 |
{ add.period$ write$ |
| 130 |
newline$ |
| 131 |
"\newblock " write$ |
| 132 |
} |
| 133 |
{ output.state before.all = |
| 134 |
'write$ |
| 135 |
{ add.period$ " " * write$ } |
| 136 |
if$ |
| 137 |
} |
| 138 |
if$ |
| 139 |
mid.sentence 'output.state := |
| 140 |
} |
| 141 |
if$ |
| 142 |
s |
| 143 |
} |
| 144 |
|
| 145 |
% urlbst... |
| 146 |
FUNCTION {output.nonnull} |
| 147 |
{ % Save the thing we've been asked to output |
| 148 |
's := |
| 149 |
% If the bracket-state is close.brackets, then add a close-bracket to |
| 150 |
% what is currently at the top of the stack, and set bracket.state |
| 151 |
% to outside.brackets |
| 152 |
bracket.state close.brackets = |
| 153 |
{ "]" * |
| 154 |
outside.brackets 'bracket.state := |
| 155 |
} |
| 156 |
'skip$ |
| 157 |
if$ |
| 158 |
bracket.state outside.brackets = |
| 159 |
{ % We're outside all brackets -- this is the normal situation. |
| 160 |
% Write out what's currently at the top of the stack, using the |
| 161 |
% original output.nonnull function. |
| 162 |
s |
| 163 |
output.nonnull.original |
| 164 |
} |
| 165 |
{ % Still in brackets. Add open-bracket or (continuation) comma, add the |
| 166 |
% new text (in s) to the top of the stack, and move to the close-brackets |
| 167 |
% state, ready for next time (unless inbrackets resets it). If we come |
| 168 |
% into this branch, then output.state is carefully undisturbed. |
| 169 |
bracket.state open.brackets = |
| 170 |
{ " [" * } |
| 171 |
{ ", " * } % bracket.state will be within.brackets |
| 172 |
if$ |
| 173 |
s * |
| 174 |
close.brackets 'bracket.state := |
| 175 |
} |
| 176 |
if$ |
| 177 |
} |
| 178 |
|
| 179 |
% Call this function just before adding something which should be presented in |
| 180 |
% brackets. bracket.state is handled specially within output.nonnull. |
| 181 |
FUNCTION {inbrackets} |
| 182 |
{ bracket.state close.brackets = |
| 183 |
{ within.brackets 'bracket.state := } % reset the state: not open nor closed |
| 184 |
{ open.brackets 'bracket.state := } |
| 185 |
if$ |
| 186 |
} |
| 187 |
|
| 188 |
FUNCTION {format.lastchecked} |
| 189 |
{ lastchecked empty$ |
| 190 |
{ "" } |
| 191 |
{ updated empty$ |
| 192 |
{ inbrackets "cited " lastchecked * } |
| 193 |
{ inbrackets "updated " updated * "; cited " * lastchecked * } |
| 194 |
if$ |
| 195 |
} |
| 196 |
if$ |
| 197 |
} |
| 198 |
% ...urlbst to here |
| 199 |
|
| 200 |
FUNCTION {output} |
| 201 |
{ duplicate$ empty$ |
| 202 |
'pop$ |
| 203 |
'output.nonnull |
| 204 |
if$ |
| 205 |
} |
| 206 |
|
| 207 |
FUNCTION {output.check} |
| 208 |
{ 't := |
| 209 |
duplicate$ empty$ |
| 210 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 211 |
'output.nonnull |
| 212 |
if$ |
| 213 |
} |
| 214 |
|
| 215 |
FUNCTION {fin.entry} |
| 216 |
{ |
| 217 |
bracket.state close.brackets = % urlbst |
| 218 |
{ "]" * } |
| 219 |
'skip$ |
| 220 |
if$ |
| 221 |
add.period$ |
| 222 |
write$ |
| 223 |
newline$ |
| 224 |
} |
| 225 |
|
| 226 |
FUNCTION {new.block} |
| 227 |
{ output.state before.all = |
| 228 |
'skip$ |
| 229 |
{ after.block 'output.state := } |
| 230 |
if$ |
| 231 |
} |
| 232 |
|
| 233 |
FUNCTION {new.sentence} |
| 234 |
{ output.state after.block = |
| 235 |
'skip$ |
| 236 |
{ output.state before.all = |
| 237 |
'skip$ |
| 238 |
{ after.sentence 'output.state := } |
| 239 |
if$ |
| 240 |
} |
| 241 |
if$ |
| 242 |
} |
| 243 |
|
| 244 |
FUNCTION {add.blank} |
| 245 |
{ " " * before.all 'output.state := |
| 246 |
} |
| 247 |
|
| 248 |
FUNCTION {no.blank.or.punct} |
| 249 |
{ "" * before.all 'output.state := |
| 250 |
} |
| 251 |
|
| 252 |
FUNCTION {add.semicolon} |
| 253 |
{ |
| 254 |
";" * |
| 255 |
no.blank.or.punct |
| 256 |
} |
| 257 |
|
| 258 |
FUNCTION {add.colon} |
| 259 |
{ |
| 260 |
":" * |
| 261 |
no.blank.or.punct |
| 262 |
} |
| 263 |
|
| 264 |
FUNCTION {date.block} |
| 265 |
{ |
| 266 |
"." * |
| 267 |
no.blank.or.punct |
| 268 |
} |
| 269 |
|
| 270 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 271 |
% LOGICAL `NOT', `AND', AND `OR' % |
| 272 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 273 |
|
| 274 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 275 |
% Logical 'not': |
| 276 |
% If the first element on the stack is A then this function |
| 277 |
% does the following: |
| 278 |
% push { #0 } |
| 279 |
% push { #1 } |
| 280 |
% So now the first 3 elements of the stack are |
| 281 |
% { #1 } { #0 } A |
| 282 |
% The first 3 are popped and subjected to 'if': |
| 283 |
% If A > 0 then { #0 } is executed, else { #1 } is executed: |
| 284 |
% if A > 0 |
| 285 |
% then 0 |
| 286 |
% else 1 |
| 287 |
% So consider integers as logicals, where 1 = true and 0 = false, |
| 288 |
% then this does |
| 289 |
% (if A then false else true) |
| 290 |
% which is a logical 'not'. |
| 291 |
|
| 292 |
FUNCTION {not} |
| 293 |
{ { #0 } |
| 294 |
{ #1 } |
| 295 |
if$ |
| 296 |
} |
| 297 |
|
| 298 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 299 |
% Logical 'and': |
| 300 |
% If the first 2 elements on the stack are A B |
| 301 |
% then this function does the following: |
| 302 |
% push 'skip$ |
| 303 |
% push { pop$ #0 } |
| 304 |
% So now first 4 elements are |
| 305 |
% { pop$ #0 } 'skip$ A B |
| 306 |
% The first 3 are popped and subjected to 'if' (B is on top of |
| 307 |
% the stack): |
| 308 |
% If A > 0 then 'skip$ is executed, else { pop$ #0 } is executed: |
| 309 |
% if A > 0 |
| 310 |
% then (B stays on top of stack) |
| 311 |
% else (B is popped and #0 is pushed) |
| 312 |
% So consider integers as logicals, where 1 = true and 0 = false, |
| 313 |
% then this does |
| 314 |
% (if A then B else false) |
| 315 |
% which is a logical 'and'. |
| 316 |
|
| 317 |
FUNCTION {and} |
| 318 |
{ 'skip$ |
| 319 |
{ pop$ #0 } |
| 320 |
if$ |
| 321 |
} |
| 322 |
|
| 323 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 324 |
% Logical 'or': |
| 325 |
% If the first 2 elements on the stack are A B |
| 326 |
% then this function does the following: |
| 327 |
% push { pop$ #1 } |
| 328 |
% push 'skip$ |
| 329 |
% So now first 4 elements are |
| 330 |
% 'skip$ { pop$ #1 } A B |
| 331 |
% The first 3 are popped and subjected to 'if' (B is on top of |
| 332 |
% the stack): |
| 333 |
% If A > 0 then { pop$ #1 } is executed, else 'skip$ is executed: |
| 334 |
% if A > 0 |
| 335 |
% then (B is popped and #1 is pushed) |
| 336 |
% else (B stays on top of stack) |
| 337 |
% So consider integers as logicals, where 1 = true and 0 = false, |
| 338 |
% then this does |
| 339 |
% (if A then true else B) |
| 340 |
% which is a logical 'or'. |
| 341 |
|
| 342 |
FUNCTION {or} |
| 343 |
{ { pop$ #1 } |
| 344 |
'skip$ |
| 345 |
if$ |
| 346 |
} |
| 347 |
|
| 348 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 349 |
% GENERAL PURPOSE FUNCTIONS FOR FORMATTING % |
| 350 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 351 |
|
| 352 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 353 |
% issues warning if field is empty |
| 354 |
% call with |
| 355 |
% "field" field warning.if.empty |
| 356 |
% Note that the first field must be between quotes |
| 357 |
% because it is the fieldname for use in the warning message. |
| 358 |
% |
| 359 |
|
| 360 |
FUNCTION {warning.if.empty} |
| 361 |
{ empty$ |
| 362 |
{ "No " swap$ * " in " * cite$ * warning$ } |
| 363 |
{ pop$ } |
| 364 |
if$ |
| 365 |
} |
| 366 |
|
| 367 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 368 |
% |
| 369 |
% encloses string in pre- and postfix string |
| 370 |
% call with |
| 371 |
% prefix postfix S enclose.check |
| 372 |
% delivers empty string if S empty |
| 373 |
% |
| 374 |
FUNCTION {enclose.check} |
| 375 |
{ duplicate$ empty$ |
| 376 |
{ pop$ pop$ pop$ |
| 377 |
"" |
| 378 |
} |
| 379 |
{ swap$ * * } |
| 380 |
if$ |
| 381 |
} |
| 382 |
|
| 383 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 384 |
% |
| 385 |
% emphasizes top of stack |
| 386 |
% call with |
| 387 |
% string" emphasize.check |
| 388 |
% |
| 389 |
|
| 390 |
FUNCTION {emphasize.check} |
| 391 |
{ "\Bem{" swap$ |
| 392 |
"}" swap$ |
| 393 |
enclose.check |
| 394 |
} |
| 395 |
|
| 396 |
|
| 397 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 398 |
% |
| 399 |
% brackets top of stack |
| 400 |
% call with |
| 401 |
% "string" bracket.check |
| 402 |
% |
| 403 |
FUNCTION {bracket.check} |
| 404 |
{ "[" swap$ |
| 405 |
"]" swap$ |
| 406 |
enclose.check |
| 407 |
} |
| 408 |
|
| 409 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 410 |
% |
| 411 |
% parenthesizes top of stack |
| 412 |
% call with |
| 413 |
% "string" parenthesize |
| 414 |
% |
| 415 |
FUNCTION {parenthesize.check} |
| 416 |
{ "(" swap$ |
| 417 |
")" swap$ |
| 418 |
enclose.check |
| 419 |
} |
| 420 |
|
| 421 |
STRINGS {z} |
| 422 |
|
| 423 |
FUNCTION {remove.dots} |
| 424 |
{ 'z := % expects string on top of the stack, pops the string and assigns it to variable z |
| 425 |
"" % push empty string |
| 426 |
{ z empty$ not } % returns 0 if variable z is empty |
| 427 |
{ z #1 #1 substring$ % push the first character of variable z |
| 428 |
z #2 global.max$ substring$ 'z := % assigns the 2nd to last character of variable z to variable z |
| 429 |
duplicate$ "\" = % pushes 1 if the last character is "\", otherwise 0 |
| 430 |
{ * % concatenates the last 2 literals |
| 431 |
z #1 #1 substring$ % push the first character of variable z |
| 432 |
z #2 global.max$ substring$ 'z := % assigns the 2nd to last character of variable z to variable z |
| 433 |
* % concatenates the last 2 literals, i.e. every character, even a dot, following a "\" will be printed |
| 434 |
} |
| 435 |
{ duplicate$ "." = % pushes 1 if the last character is ".", otherwise 0 |
| 436 |
'pop$ % pushes the pop$ function |
| 437 |
{ * } % concatenates the last 2 literals |
| 438 |
if$ % pops the last character if it is a dot, otherwise concatenates it with the string on top of the stack |
| 439 |
} |
| 440 |
if$ |
| 441 |
} |
| 442 |
while$ |
| 443 |
} |
| 444 |
|
| 445 |
INTEGERS {l} |
| 446 |
FUNCTION{string.length} |
| 447 |
{ |
| 448 |
#1 'l := |
| 449 |
{ duplicate$ duplicate$ #1 l substring$ = not } |
| 450 |
{ l #1 + 'l := } |
| 451 |
while$ |
| 452 |
pop$ l |
| 453 |
} |
| 454 |
|
| 455 |
STRINGS {replace find text} |
| 456 |
INTEGERS {find_length} |
| 457 |
FUNCTION {find.replace} |
| 458 |
{ |
| 459 |
'replace := |
| 460 |
'find := |
| 461 |
'text := |
| 462 |
find string.length 'find_length := |
| 463 |
"" |
| 464 |
{ text empty$ not } |
| 465 |
{ text #1 find_length substring$ find = |
| 466 |
{ |
| 467 |
replace * |
| 468 |
text #1 find_length + global.max$ substring$ 'text := |
| 469 |
} |
| 470 |
{ text #1 #1 substring$ * |
| 471 |
text #2 global.max$ substring$ 'text := |
| 472 |
} |
| 473 |
if$ |
| 474 |
} |
| 475 |
while$ |
| 476 |
} |
| 477 |
|
| 478 |
FUNCTION {new.block.checka} |
| 479 |
{ empty$ |
| 480 |
'skip$ |
| 481 |
'new.block |
| 482 |
if$ |
| 483 |
} |
| 484 |
|
| 485 |
FUNCTION {new.block.checkb} |
| 486 |
{ empty$ |
| 487 |
swap$ empty$ |
| 488 |
and |
| 489 |
'skip$ |
| 490 |
'new.block |
| 491 |
if$ |
| 492 |
} |
| 493 |
|
| 494 |
FUNCTION {new.sentence.checka} |
| 495 |
{ empty$ |
| 496 |
'skip$ |
| 497 |
'new.sentence |
| 498 |
if$ |
| 499 |
} |
| 500 |
|
| 501 |
FUNCTION {new.sentence.checkb} |
| 502 |
{ empty$ |
| 503 |
swap$ empty$ |
| 504 |
and |
| 505 |
'skip$ |
| 506 |
'new.sentence |
| 507 |
if$ |
| 508 |
} |
| 509 |
|
| 510 |
FUNCTION {field.or.null} |
| 511 |
{ duplicate$ empty$ |
| 512 |
{ pop$ "" } |
| 513 |
'skip$ |
| 514 |
if$ |
| 515 |
} |
| 516 |
|
| 517 |
FUNCTION {emphasize} |
| 518 |
{ skip$ } |
| 519 |
|
| 520 |
FUNCTION {tie.or.space.prefix} |
| 521 |
{ duplicate$ text.length$ #3 < |
| 522 |
{ "~" } |
| 523 |
{ " " } |
| 524 |
if$ |
| 525 |
swap$ |
| 526 |
} |
| 527 |
|
| 528 |
FUNCTION {capitalize} |
| 529 |
{ "u" change.case$ "t" change.case$ } |
| 530 |
|
| 531 |
FUNCTION {space.word} |
| 532 |
{ " " swap$ * " " * } |
| 533 |
|
| 534 |
% Here are the language-specific definitions for explicit words. |
| 535 |
% Each function has a name bbl.xxx where xxx is the English word. |
| 536 |
% The language selected here is ENGLISH |
| 537 |
|
| 538 |
FUNCTION {bbl.and} |
| 539 |
{ "and"} |
| 540 |
|
| 541 |
FUNCTION {bbl.etal} |
| 542 |
{ "et~al." } |
| 543 |
|
| 544 |
FUNCTION {bbl.editors} |
| 545 |
{ "editors" } |
| 546 |
|
| 547 |
FUNCTION {bbl.editor} |
| 548 |
{ "editor" } |
| 549 |
|
| 550 |
FUNCTION {bbl.cartographers} |
| 551 |
{ "cartographers" } |
| 552 |
|
| 553 |
FUNCTION {bbl.cartographer} |
| 554 |
{ "cartographer" } |
| 555 |
|
| 556 |
FUNCTION {bbl.inventors} |
| 557 |
{ "inventors" } |
| 558 |
|
| 559 |
FUNCTION {bbl.inventor} |
| 560 |
{ "inventor" } |
| 561 |
|
| 562 |
FUNCTION {bbl.assignees} |
| 563 |
{ "assignees" } |
| 564 |
|
| 565 |
FUNCTION {bbl.assignee} |
| 566 |
{ "assignee" } |
| 567 |
|
| 568 |
FUNCTION {bbl.edby} |
| 569 |
{ "edited by" } |
| 570 |
|
| 571 |
FUNCTION {bbl.edition} |
| 572 |
{ "ed." } |
| 573 |
|
| 574 |
FUNCTION {bbl.volume} |
| 575 |
{ "vol." } |
| 576 |
|
| 577 |
FUNCTION {bbl.of} |
| 578 |
{ "of" } |
| 579 |
|
| 580 |
FUNCTION {bbl.number} |
| 581 |
{ "no." } |
| 582 |
|
| 583 |
FUNCTION {bbl.nr} |
| 584 |
{ "no." } |
| 585 |
|
| 586 |
FUNCTION {bbl.in} |
| 587 |
{ "in" } |
| 588 |
|
| 589 |
FUNCTION {bbl.pages} |
| 590 |
{ "p." } |
| 591 |
|
| 592 |
FUNCTION {bbl.page} |
| 593 |
{ "p." } |
| 594 |
|
| 595 |
FUNCTION {bbl.chapter} |
| 596 |
{ "chap." } |
| 597 |
|
| 598 |
FUNCTION {bbl.techrep} |
| 599 |
{ "Tech. Rep." } |
| 600 |
|
| 601 |
FUNCTION {bbl.mthesis} |
| 602 |
{ "Master's thesis" } |
| 603 |
|
| 604 |
FUNCTION {bbl.phdthesis} |
| 605 |
{ "Ph.D. thesis" } |
| 606 |
|
| 607 |
FUNCTION {bbl.first} |
| 608 |
{ "1st" } |
| 609 |
|
| 610 |
FUNCTION {bbl.second} |
| 611 |
{ "2nd" } |
| 612 |
|
| 613 |
FUNCTION {bbl.third} |
| 614 |
{ "3rd" } |
| 615 |
|
| 616 |
FUNCTION {bbl.fourth} |
| 617 |
{ "4th" } |
| 618 |
|
| 619 |
FUNCTION {bbl.fifth} |
| 620 |
{ "5th" } |
| 621 |
|
| 622 |
FUNCTION {bbl.st} |
| 623 |
{ "st" } |
| 624 |
|
| 625 |
FUNCTION {bbl.nd} |
| 626 |
{ "nd" } |
| 627 |
|
| 628 |
FUNCTION {bbl.rd} |
| 629 |
{ "rd" } |
| 630 |
|
| 631 |
FUNCTION {bbl.th} |
| 632 |
{ "th" } |
| 633 |
|
| 634 |
MACRO {jan} {"Jan."} |
| 635 |
|
| 636 |
MACRO {feb} {"Feb."} |
| 637 |
|
| 638 |
MACRO {mar} {"Mar."} |
| 639 |
|
| 640 |
MACRO {apr} {"Apr."} |
| 641 |
|
| 642 |
MACRO {may} {"May"} |
| 643 |
|
| 644 |
MACRO {jun} {"Jun."} |
| 645 |
|
| 646 |
MACRO {jul} {"Jul."} |
| 647 |
|
| 648 |
MACRO {aug} {"Aug."} |
| 649 |
|
| 650 |
MACRO {sep} {"Sep."} |
| 651 |
|
| 652 |
MACRO {oct} {"Oct."} |
| 653 |
|
| 654 |
MACRO {nov} {"Nov."} |
| 655 |
|
| 656 |
MACRO {dec} {"Dec."} |
| 657 |
|
| 658 |
FUNCTION {eng.ord} |
| 659 |
{ duplicate$ "1" swap$ * |
| 660 |
#-2 #1 substring$ "1" = |
| 661 |
{ bbl.th * } |
| 662 |
{ duplicate$ #-1 #1 substring$ |
| 663 |
duplicate$ "1" = |
| 664 |
{ pop$ bbl.st * } |
| 665 |
{ duplicate$ "2" = |
| 666 |
{ pop$ bbl.nd * } |
| 667 |
{ "3" = |
| 668 |
{ bbl.rd * } |
| 669 |
{ bbl.th * } |
| 670 |
if$ |
| 671 |
} |
| 672 |
if$ |
| 673 |
} |
| 674 |
if$ |
| 675 |
} |
| 676 |
if$ |
| 677 |
} |
| 678 |
|
| 679 |
FUNCTION {bibinfo.check} |
| 680 |
{ swap$ |
| 681 |
duplicate$ missing$ |
| 682 |
{ |
| 683 |
pop$ pop$ |
| 684 |
"" |
| 685 |
} |
| 686 |
{ duplicate$ empty$ |
| 687 |
{ |
| 688 |
swap$ pop$ |
| 689 |
} |
| 690 |
{ swap$ |
| 691 |
pop$ |
| 692 |
} |
| 693 |
if$ |
| 694 |
} |
| 695 |
if$ |
| 696 |
} |
| 697 |
|
| 698 |
FUNCTION {bibinfo.warn} |
| 699 |
{ swap$ |
| 700 |
duplicate$ missing$ |
| 701 |
{ |
| 702 |
swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ |
| 703 |
"" |
| 704 |
} |
| 705 |
{ duplicate$ empty$ |
| 706 |
{ |
| 707 |
swap$ "empty " swap$ * " in " * cite$ * warning$ |
| 708 |
} |
| 709 |
{ swap$ |
| 710 |
pop$ |
| 711 |
} |
| 712 |
if$ |
| 713 |
} |
| 714 |
if$ |
| 715 |
} |
| 716 |
|
| 717 |
STRINGS { bibinfo} |
| 718 |
INTEGERS { nameptr namesleft numnames } |
| 719 |
|
| 720 |
FUNCTION {format.names} |
| 721 |
{ 'bibinfo := |
| 722 |
duplicate$ empty$ 'skip$ { |
| 723 |
"." ". " find.replace 's := |
| 724 |
"" 't := |
| 725 |
#1 'nameptr := |
| 726 |
s num.names$ 'numnames := |
| 727 |
numnames 'namesleft := |
| 728 |
{ namesleft #0 > } |
| 729 |
{ s nameptr |
| 730 |
"{vv~}{ll}{ f{}}{ jj}" |
| 731 |
format.name$ |
| 732 |
remove.dots |
| 733 |
bibinfo bibinfo.check |
| 734 |
't := |
| 735 |
nameptr #1 > |
| 736 |
{ |
| 737 |
nameptr #6 |
| 738 |
#1 + = |
| 739 |
numnames #6 |
| 740 |
> and |
| 741 |
{ "others" 't := |
| 742 |
#1 'namesleft := } |
| 743 |
'skip$ |
| 744 |
if$ |
| 745 |
namesleft #1 > |
| 746 |
{ ", " * t * } |
| 747 |
{ |
| 748 |
"," * |
| 749 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 750 |
{ 't := } |
| 751 |
{ pop$ } |
| 752 |
if$ |
| 753 |
t "others" = |
| 754 |
{ |
| 755 |
" " * bbl.etal * |
| 756 |
} |
| 757 |
{ " " * t * } |
| 758 |
if$ |
| 759 |
} |
| 760 |
if$ |
| 761 |
} |
| 762 |
't |
| 763 |
if$ |
| 764 |
nameptr #1 + 'nameptr := |
| 765 |
namesleft #1 - 'namesleft := |
| 766 |
} |
| 767 |
while$ |
| 768 |
} if$ |
| 769 |
} |
| 770 |
|
| 771 |
FUNCTION {format.names.org} |
| 772 |
{ 'bibinfo := |
| 773 |
duplicate$ empty$ 'skip$ { |
| 774 |
's := |
| 775 |
"" 't := |
| 776 |
#1 'nameptr := |
| 777 |
s num.names$ 'numnames := |
| 778 |
numnames 'namesleft := |
| 779 |
{ namesleft #0 > } |
| 780 |
{ s nameptr |
| 781 |
"{ff~}{vv~}{ll}" |
| 782 |
format.name$ |
| 783 |
bibinfo bibinfo.check |
| 784 |
't := |
| 785 |
nameptr #1 > |
| 786 |
{ |
| 787 |
namesleft #1 > |
| 788 |
{ "; " * t * } |
| 789 |
{ |
| 790 |
";" * |
| 791 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 792 |
{ 't := } |
| 793 |
{ pop$ } |
| 794 |
if$ |
| 795 |
t "others" = |
| 796 |
{ |
| 797 |
" " * bbl.etal * |
| 798 |
} |
| 799 |
{ " " * t * } |
| 800 |
if$ |
| 801 |
} |
| 802 |
if$ |
| 803 |
} |
| 804 |
't |
| 805 |
if$ |
| 806 |
nameptr #1 + 'nameptr := |
| 807 |
namesleft #1 - 'namesleft := |
| 808 |
} |
| 809 |
while$ |
| 810 |
} if$ |
| 811 |
} |
| 812 |
|
| 813 |
FUNCTION {format.names.ed} |
| 814 |
{ |
| 815 |
format.names |
| 816 |
} |
| 817 |
|
| 818 |
FUNCTION {format.authors} |
| 819 |
{ |
| 820 |
author "author" format.names |
| 821 |
%%"." " " "author" find.replace format.names |
| 822 |
} |
| 823 |
|
| 824 |
FUNCTION {format.organizations} |
| 825 |
{ organization "organization" format.names.org |
| 826 |
} |
| 827 |
|
| 828 |
FUNCTION {get.bbl.editor} |
| 829 |
{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } |
| 830 |
|
| 831 |
FUNCTION {get.bbl.cartographer} |
| 832 |
{ cartographer num.names$ #1 > 'bbl.cartographers 'bbl.cartographer if$ } |
| 833 |
|
| 834 |
FUNCTION {get.bbl.inventor} |
| 835 |
{ inventor num.names$ #1 > 'bbl.inventors 'bbl.inventor if$ } |
| 836 |
|
| 837 |
FUNCTION {get.bbl.assignee} |
| 838 |
{ assignee num.names$ #1 > 'bbl.assignees 'bbl.assignee if$ } |
| 839 |
|
| 840 |
FUNCTION {format.editors} |
| 841 |
{ editor "editor" format.names duplicate$ empty$ 'skip$ |
| 842 |
{ |
| 843 |
"," * |
| 844 |
" " * |
| 845 |
get.bbl.editor |
| 846 |
* |
| 847 |
} |
| 848 |
if$ |
| 849 |
} |
| 850 |
|
| 851 |
FUNCTION {format.assignees} |
| 852 |
{ assignee "assignee" format.names.org duplicate$ empty$ 'skip$ |
| 853 |
{ |
| 854 |
"," * |
| 855 |
" " * |
| 856 |
get.bbl.assignee |
| 857 |
* |
| 858 |
} |
| 859 |
if$ |
| 860 |
} |
| 861 |
|
| 862 |
FUNCTION {format.cartographers} |
| 863 |
{ cartographer "cartographer" format.names duplicate$ empty$ 'skip$ |
| 864 |
{ |
| 865 |
"," * |
| 866 |
" " * |
| 867 |
get.bbl.cartographer |
| 868 |
* |
| 869 |
} |
| 870 |
if$ |
| 871 |
} |
| 872 |
|
| 873 |
FUNCTION {format.inventors} |
| 874 |
{ inventor "inventor" format.names duplicate$ empty$ 'skip$ |
| 875 |
{ |
| 876 |
"," * |
| 877 |
" " * |
| 878 |
get.bbl.inventor |
| 879 |
* |
| 880 |
} |
| 881 |
if$ |
| 882 |
} |
| 883 |
|
| 884 |
FUNCTION {format.note} |
| 885 |
{ |
| 886 |
note empty$ |
| 887 |
{ "" } |
| 888 |
{ note #1 #1 substring$ |
| 889 |
duplicate$ "{" = |
| 890 |
'skip$ |
| 891 |
{ output.state mid.sentence = |
| 892 |
{ "l" } |
| 893 |
{ "u" } |
| 894 |
if$ |
| 895 |
change.case$ |
| 896 |
} |
| 897 |
if$ |
| 898 |
note #2 global.max$ substring$ * "note" bibinfo.check |
| 899 |
} |
| 900 |
if$ |
| 901 |
} |
| 902 |
|
| 903 |
FUNCTION {format.title} |
| 904 |
{ title |
| 905 |
%%duplicate$ empty$ 'skip$ |
| 906 |
%% { "t" change.case$ } |
| 907 |
%%if$ |
| 908 |
"title" bibinfo.check |
| 909 |
} |
| 910 |
|
| 911 |
FUNCTION {format.type} |
| 912 |
{ type empty$ |
| 913 |
'skip$ |
| 914 |
{ inbrackets type } |
| 915 |
%%{ add.blank "[" type * "]" * } |
| 916 |
if$ |
| 917 |
} |
| 918 |
|
| 919 |
FUNCTION {output.bibitem} |
| 920 |
{ outside.brackets 'bracket.state := % urlbst |
| 921 |
newline$ |
| 922 |
"\bibitem{" write$ |
| 923 |
cite$ write$ |
| 924 |
"}" write$ |
| 925 |
newline$ |
| 926 |
"" |
| 927 |
before.all 'output.state := |
| 928 |
} |
| 929 |
|
| 930 |
FUNCTION {hyphenate} |
| 931 |
{ 't := |
| 932 |
"" |
| 933 |
{ t empty$ not } |
| 934 |
{ t #1 #1 substring$ "-" = |
| 935 |
{ "-" * |
| 936 |
{ t #1 #1 substring$ "-" = } |
| 937 |
{ t #2 global.max$ substring$ 't := } |
| 938 |
while$ |
| 939 |
} |
| 940 |
{ t #1 #1 substring$ * |
| 941 |
t #2 global.max$ substring$ 't := |
| 942 |
} |
| 943 |
if$ |
| 944 |
} |
| 945 |
while$ |
| 946 |
} |
| 947 |
|
| 948 |
FUNCTION {word.in} |
| 949 |
{ bbl.in capitalize |
| 950 |
":" * |
| 951 |
" " * } |
| 952 |
|
| 953 |
FUNCTION {format.journal.date} |
| 954 |
{ |
| 955 |
month "month" bibinfo.check |
| 956 |
duplicate$ empty$ |
| 957 |
year "year" bibinfo.check duplicate$ empty$ |
| 958 |
{ |
| 959 |
swap$ 'skip$ |
| 960 |
{ "there's a month but no year in " cite$ * warning$ } |
| 961 |
if$ |
| 962 |
* |
| 963 |
} |
| 964 |
{ swap$ 'skip$ |
| 965 |
{ |
| 966 |
" " * swap$ |
| 967 |
} |
| 968 |
if$ |
| 969 |
* |
| 970 |
remove.dots |
| 971 |
} |
| 972 |
if$ |
| 973 |
duplicate$ empty$ |
| 974 |
'skip$ |
| 975 |
{ |
| 976 |
before.all 'output.state := |
| 977 |
after.sentence 'output.state := |
| 978 |
} |
| 979 |
if$ |
| 980 |
} |
| 981 |
|
| 982 |
FUNCTION {format.date} |
| 983 |
{ |
| 984 |
no.blank.or.punct |
| 985 |
";" |
| 986 |
duplicate$ empty$ |
| 987 |
year "year" bibinfo.check duplicate$ empty$ |
| 988 |
{ swap$ 'skip$ |
| 989 |
{ "there's a month but no year in " cite$ * warning$ } |
| 990 |
if$ |
| 991 |
* |
| 992 |
} |
| 993 |
{ swap$ 'skip$ |
| 994 |
{ |
| 995 |
swap$ |
| 996 |
" " * swap$ |
| 997 |
} |
| 998 |
if$ |
| 999 |
* |
| 1000 |
} |
| 1001 |
if$ |
| 1002 |
} |
| 1003 |
|
| 1004 |
FUNCTION {format.btitle} |
| 1005 |
{ title "title" bibinfo.check |
| 1006 |
duplicate$ empty$ 'skip$ |
| 1007 |
{ |
| 1008 |
} |
| 1009 |
if$ |
| 1010 |
} |
| 1011 |
|
| 1012 |
FUNCTION {either.or.check} |
| 1013 |
{ empty$ |
| 1014 |
'pop$ |
| 1015 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 1016 |
if$ |
| 1017 |
} |
| 1018 |
|
| 1019 |
FUNCTION {format.bvolume} |
| 1020 |
{ volume empty$ |
| 1021 |
{ "" } |
| 1022 |
{ bbl.volume volume tie.or.space.prefix |
| 1023 |
"volume" bibinfo.check * * |
| 1024 |
series "series" bibinfo.check |
| 1025 |
duplicate$ empty$ 'pop$ |
| 1026 |
{ swap$ bbl.of space.word * swap$ |
| 1027 |
emphasize * } |
| 1028 |
if$ |
| 1029 |
"volume and number" number either.or.check |
| 1030 |
} |
| 1031 |
if$ |
| 1032 |
} |
| 1033 |
|
| 1034 |
FUNCTION {format.number.series} |
| 1035 |
{ volume empty$ |
| 1036 |
{ number empty$ |
| 1037 |
{ series field.or.null } |
| 1038 |
{ series empty$ |
| 1039 |
{ number "number" bibinfo.check } |
| 1040 |
{ output.state mid.sentence = |
| 1041 |
{ bbl.number } |
| 1042 |
{ bbl.number capitalize } |
| 1043 |
if$ |
| 1044 |
number tie.or.space.prefix "number" bibinfo.check * * |
| 1045 |
bbl.in space.word * |
| 1046 |
series "series" bibinfo.check * |
| 1047 |
} |
| 1048 |
if$ |
| 1049 |
} |
| 1050 |
if$ |
| 1051 |
} |
| 1052 |
{ "" } |
| 1053 |
if$ |
| 1054 |
} |
| 1055 |
|
| 1056 |
FUNCTION {is.num} |
| 1057 |
{ chr.to.int$ |
| 1058 |
duplicate$ "0" chr.to.int$ < not |
| 1059 |
swap$ "9" chr.to.int$ > not and |
| 1060 |
} |
| 1061 |
|
| 1062 |
FUNCTION {extract.num} |
| 1063 |
{ duplicate$ 't := |
| 1064 |
"" 's := |
| 1065 |
{ t empty$ not } |
| 1066 |
{ t #1 #1 substring$ |
| 1067 |
t #2 global.max$ substring$ 't := |
| 1068 |
duplicate$ is.num |
| 1069 |
{ s swap$ * 's := } |
| 1070 |
{ pop$ "" 't := } |
| 1071 |
if$ |
| 1072 |
} |
| 1073 |
while$ |
| 1074 |
s empty$ |
| 1075 |
'skip$ |
| 1076 |
{ pop$ s } |
| 1077 |
if$ |
| 1078 |
} |
| 1079 |
|
| 1080 |
FUNCTION {convert.edition} |
| 1081 |
{ extract.num "l" change.case$ 's := |
| 1082 |
s "first" = s "1" = or |
| 1083 |
{ bbl.first 't := } |
| 1084 |
{ s "second" = s "2" = or |
| 1085 |
{ bbl.second 't := } |
| 1086 |
{ s "third" = s "3" = or |
| 1087 |
{ bbl.third 't := } |
| 1088 |
{ s "fourth" = s "4" = or |
| 1089 |
{ bbl.fourth 't := } |
| 1090 |
{ s "fifth" = s "5" = or |
| 1091 |
{ bbl.fifth 't := } |
| 1092 |
{ s #1 #1 substring$ is.num |
| 1093 |
{ s eng.ord 't := } |
| 1094 |
{ edition 't := } |
| 1095 |
if$ |
| 1096 |
} |
| 1097 |
if$ |
| 1098 |
} |
| 1099 |
if$ |
| 1100 |
} |
| 1101 |
if$ |
| 1102 |
} |
| 1103 |
if$ |
| 1104 |
} |
| 1105 |
if$ |
| 1106 |
t |
| 1107 |
} |
| 1108 |
|
| 1109 |
FUNCTION {format.edition} |
| 1110 |
{ edition duplicate$ empty$ 'skip$ |
| 1111 |
{ |
| 1112 |
convert.edition |
| 1113 |
output.state mid.sentence = |
| 1114 |
{ "l" } |
| 1115 |
{ "t" } |
| 1116 |
if$ change.case$ |
| 1117 |
"edition" bibinfo.check |
| 1118 |
" " * bbl.edition * |
| 1119 |
} |
| 1120 |
if$ |
| 1121 |
} |
| 1122 |
INTEGERS { multiresult } |
| 1123 |
FUNCTION {multi.page.check} |
| 1124 |
{ 't := |
| 1125 |
#0 'multiresult := |
| 1126 |
{ multiresult not |
| 1127 |
t empty$ not |
| 1128 |
and |
| 1129 |
} |
| 1130 |
{ t #1 #1 substring$ |
| 1131 |
duplicate$ "-" = |
| 1132 |
swap$ duplicate$ "," = |
| 1133 |
swap$ "+" = |
| 1134 |
or or |
| 1135 |
{ #1 'multiresult := } |
| 1136 |
{ t #2 global.max$ substring$ 't := } |
| 1137 |
if$ |
| 1138 |
} |
| 1139 |
while$ |
| 1140 |
multiresult |
| 1141 |
} |
| 1142 |
|
| 1143 |
FUNCTION {is.letter} |
| 1144 |
{ duplicate$ empty$ |
| 1145 |
{ pop$ #0 } |
| 1146 |
{ chr.to.int$ |
| 1147 |
duplicate$ "A" chr.to.int$ < |
| 1148 |
{ pop$ #0 } |
| 1149 |
{ duplicate$ "Z" chr.to.int$ > |
| 1150 |
{ duplicate$ "a" chr.to.int$ < |
| 1151 |
{ pop$ #0 } |
| 1152 |
{ duplicate$ "z" chr.to.int$ > |
| 1153 |
{ pop$ #0 } |
| 1154 |
{ pop$ #1 } |
| 1155 |
if$ |
| 1156 |
} |
| 1157 |
if$ |
| 1158 |
} |
| 1159 |
{ pop$ #1 } |
| 1160 |
if$ |
| 1161 |
} |
| 1162 |
if$ |
| 1163 |
} |
| 1164 |
if$ |
| 1165 |
} |
| 1166 |
|
| 1167 |
FUNCTION {is.digit} |
| 1168 |
{ duplicate$ empty$ |
| 1169 |
{ pop$ #0 } |
| 1170 |
{ chr.to.int$ |
| 1171 |
duplicate$ "0" chr.to.int$ < |
| 1172 |
{ pop$ #0 } |
| 1173 |
{ "9" chr.to.int$ > |
| 1174 |
{ #0 } |
| 1175 |
{ #1 } |
| 1176 |
if$ |
| 1177 |
} |
| 1178 |
if$ |
| 1179 |
} |
| 1180 |
if$ |
| 1181 |
} |
| 1182 |
|
| 1183 |
FUNCTION {is.letter.digit} |
| 1184 |
{ duplicate$ is.letter |
| 1185 |
swap$ is.digit or |
| 1186 |
} |
| 1187 |
|
| 1188 |
INTEGERS { charptr len } |
| 1189 |
|
| 1190 |
STRINGS { start.number end.number range.separator } |
| 1191 |
|
| 1192 |
FUNCTION {abbreviate.range.numbers} |
| 1193 |
{ end.number end.number text.length$ #1 substring$ is.letter |
| 1194 |
{ start.number range.separator * end.number * } |
| 1195 |
{ end.number text.length$ 'len := |
| 1196 |
start.number text.length$ len < |
| 1197 |
'skip$ |
| 1198 |
{ start.number text.length$ len - #1 + 'charptr := |
| 1199 |
{ end.number text.length$ #1 > |
| 1200 |
start.number charptr #1 substring$ |
| 1201 |
end.number #1 #1 substring$ = and |
| 1202 |
} |
| 1203 |
{ charptr #1 + 'charptr := |
| 1204 |
end.number #2 global.max$ substring$ 'end.number := |
| 1205 |
} |
| 1206 |
while$ |
| 1207 |
} |
| 1208 |
if$ |
| 1209 |
start.number range.separator * end.number * |
| 1210 |
} |
| 1211 |
if$ |
| 1212 |
} |
| 1213 |
|
| 1214 |
% This a helper function for use in format.page.numbers |
| 1215 |
FUNCTION {append.pages.part} |
| 1216 |
{ duplicate$ duplicate$ text.length$ #1 substring$ "," = |
| 1217 |
{ " " * } |
| 1218 |
'skip$ |
| 1219 |
if$ |
| 1220 |
end.number empty$ |
| 1221 |
{ start.number empty$ |
| 1222 |
'skip$ |
| 1223 |
{ start.number * } |
| 1224 |
if$ |
| 1225 |
} |
| 1226 |
{ abbreviate.range.numbers * } |
| 1227 |
if$ |
| 1228 |
"" 'start.number := |
| 1229 |
"" 'end.number := |
| 1230 |
"" 'range.separator := |
| 1231 |
} |
| 1232 |
|
| 1233 |
FUNCTION {format.page.numbers} |
| 1234 |
{ 's := |
| 1235 |
"" 't := |
| 1236 |
"" 'start.number := |
| 1237 |
"" 'end.number := |
| 1238 |
"" 'range.separator := |
| 1239 |
"" |
| 1240 |
{ s empty$ not } |
| 1241 |
{ s #1 #1 substring$ 't := |
| 1242 |
t is.letter.digit |
| 1243 |
{ range.separator empty$ |
| 1244 |
{ start.number t * 'start.number := } |
| 1245 |
{ end.number t * 'end.number := } |
| 1246 |
if$ |
| 1247 |
} |
| 1248 |
{ s #1 #2 substring$ "--" = |
| 1249 |
{ "--" 'range.separator := } |
| 1250 |
{ t "-" = |
| 1251 |
{ "-" 'range.separator := } |
| 1252 |
{ append.pages.part |
| 1253 |
t * |
| 1254 |
} |
| 1255 |
if$ |
| 1256 |
} |
| 1257 |
if$ |
| 1258 |
} |
| 1259 |
if$ |
| 1260 |
s #2 global.max$ substring$ 's := |
| 1261 |
} |
| 1262 |
while$ |
| 1263 |
append.pages.part |
| 1264 |
} |
| 1265 |
|
| 1266 |
FUNCTION {format.pages} |
| 1267 |
{ pages duplicate$ empty$ 'skip$ |
| 1268 |
{ duplicate$ multi.page.check |
| 1269 |
{ |
| 1270 |
format.page.numbers |
| 1271 |
bbl.pages swap$ |
| 1272 |
hyphenate |
| 1273 |
} |
| 1274 |
{ |
| 1275 |
bbl.page swap$ |
| 1276 |
} |
| 1277 |
if$ |
| 1278 |
tie.or.space.prefix |
| 1279 |
"pages" bibinfo.check |
| 1280 |
* * |
| 1281 |
} |
| 1282 |
if$ |
| 1283 |
} |
| 1284 |
|
| 1285 |
FUNCTION {format.journal.pages} |
| 1286 |
{ pages empty$ 'skip$ |
| 1287 |
{ add.colon } |
| 1288 |
if$ |
| 1289 |
pages duplicate$ empty$ 'pop$ |
| 1290 |
{ |
| 1291 |
format.page.numbers |
| 1292 |
hyphenate |
| 1293 |
"pages" bibinfo.check |
| 1294 |
* |
| 1295 |
} |
| 1296 |
if$ |
| 1297 |
} |
| 1298 |
|
| 1299 |
FUNCTION {format.vol.num} |
| 1300 |
{ volume field.or.null |
| 1301 |
duplicate$ empty$ 'skip$ |
| 1302 |
{ |
| 1303 |
"volume" bibinfo.check |
| 1304 |
} |
| 1305 |
if$ |
| 1306 |
number "number" bibinfo.check duplicate$ empty$ 'skip$ |
| 1307 |
{ |
| 1308 |
swap$ duplicate$ empty$ |
| 1309 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 1310 |
'skip$ |
| 1311 |
if$ |
| 1312 |
swap$ |
| 1313 |
"(" swap$ * ")" * |
| 1314 |
} |
| 1315 |
if$ * |
| 1316 |
} |
| 1317 |
|
| 1318 |
FUNCTION {format.vol.num.pages} |
| 1319 |
{ volume empty$ number empty$ and |
| 1320 |
'skip$ |
| 1321 |
{ add.semicolon } |
| 1322 |
if$ |
| 1323 |
volume field.or.null |
| 1324 |
duplicate$ empty$ 'skip$ |
| 1325 |
{ |
| 1326 |
"volume" bibinfo.check |
| 1327 |
} |
| 1328 |
if$ |
| 1329 |
number "number" bibinfo.check duplicate$ empty$ 'skip$ |
| 1330 |
{ |
| 1331 |
swap$ duplicate$ empty$ |
| 1332 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 1333 |
'skip$ |
| 1334 |
if$ |
| 1335 |
swap$ |
| 1336 |
"(" swap$ * ")" * |
| 1337 |
} |
| 1338 |
if$ * |
| 1339 |
format.journal.pages |
| 1340 |
} |
| 1341 |
|
| 1342 |
FUNCTION {format.chapter.pages} |
| 1343 |
{ chapter empty$ |
| 1344 |
'format.pages |
| 1345 |
{ type empty$ |
| 1346 |
{ bbl.chapter } |
| 1347 |
{ type "l" change.case$ |
| 1348 |
"type" bibinfo.check |
| 1349 |
} |
| 1350 |
if$ |
| 1351 |
chapter tie.or.space.prefix |
| 1352 |
"chapter" bibinfo.check |
| 1353 |
* * |
| 1354 |
pages empty$ |
| 1355 |
'skip$ |
| 1356 |
{ ", " * format.pages * } |
| 1357 |
if$ |
| 1358 |
} |
| 1359 |
if$ |
| 1360 |
} |
| 1361 |
|
| 1362 |
FUNCTION {format.booktitle} |
| 1363 |
{ |
| 1364 |
booktitle "booktitle" bibinfo.check |
| 1365 |
} |
| 1366 |
|
| 1367 |
FUNCTION {format.in.ed.booktitle} |
| 1368 |
{ format.booktitle duplicate$ empty$ 'skip$ |
| 1369 |
{ |
| 1370 |
editor "editor" format.names.ed duplicate$ empty$ 'pop$ |
| 1371 |
{ |
| 1372 |
"," * |
| 1373 |
" " * |
| 1374 |
get.bbl.editor |
| 1375 |
". " * |
| 1376 |
* swap$ |
| 1377 |
* } |
| 1378 |
if$ |
| 1379 |
word.in swap$ * |
| 1380 |
} |
| 1381 |
if$ |
| 1382 |
} |
| 1383 |
|
| 1384 |
FUNCTION {format.in.ed.title} |
| 1385 |
{ format.title duplicate$ empty$ 'skip$ |
| 1386 |
{ |
| 1387 |
editor "editor" format.names.ed duplicate$ empty$ 'pop$ |
| 1388 |
{ |
| 1389 |
"," * |
| 1390 |
" " * |
| 1391 |
get.bbl.editor |
| 1392 |
". " * |
| 1393 |
* swap$ |
| 1394 |
* } |
| 1395 |
if$ |
| 1396 |
word.in swap$ * |
| 1397 |
} |
| 1398 |
if$ |
| 1399 |
} |
| 1400 |
|
| 1401 |
FUNCTION {empty.misc.check} |
| 1402 |
{ author empty$ title empty$ howpublished empty$ |
| 1403 |
month empty$ year empty$ note empty$ |
| 1404 |
and and and and and |
| 1405 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 1406 |
'skip$ |
| 1407 |
if$ |
| 1408 |
} |
| 1409 |
FUNCTION {format.thesis.type} |
| 1410 |
{ type duplicate$ empty$ |
| 1411 |
'pop$ |
| 1412 |
{ swap$ pop$ |
| 1413 |
"t" change.case$ "type" bibinfo.check |
| 1414 |
} |
| 1415 |
if$ |
| 1416 |
} |
| 1417 |
FUNCTION {format.tr.number} |
| 1418 |
{ |
| 1419 |
number "number" bibinfo.check |
| 1420 |
%%type duplicate$ empty$ |
| 1421 |
%%{ pop$ bbl.techrep } |
| 1422 |
%%'skip$ |
| 1423 |
%%if$ |
| 1424 |
%%"type" bibinfo.check |
| 1425 |
%%swap$ duplicate$ empty$ |
| 1426 |
%%{ pop$ "t" change.case$ } |
| 1427 |
%%{ tie.or.space.prefix * * } |
| 1428 |
%%if$ |
| 1429 |
} |
| 1430 |
|
| 1431 |
FUNCTION {format.org.or.pub} |
| 1432 |
{ 't := |
| 1433 |
"" |
| 1434 |
address empty$ t empty$ and |
| 1435 |
'skip$ |
| 1436 |
{ |
| 1437 |
address "address" bibinfo.check * |
| 1438 |
t empty$ |
| 1439 |
'skip$ |
| 1440 |
{ address empty$ |
| 1441 |
'skip$ |
| 1442 |
{ ": " * } |
| 1443 |
if$ |
| 1444 |
t * |
| 1445 |
} |
| 1446 |
if$ |
| 1447 |
} |
| 1448 |
if$ |
| 1449 |
} |
| 1450 |
|
| 1451 |
FUNCTION {format.publisher.address} |
| 1452 |
{ publisher "publisher" bibinfo.warn format.org.or.pub |
| 1453 |
} |
| 1454 |
|
| 1455 |
FUNCTION {format.organization.address} |
| 1456 |
{ organization "organization" bibinfo.check format.org.or.pub |
| 1457 |
} |
| 1458 |
|
| 1459 |
FUNCTION {format.institution.address} |
| 1460 |
{ institution "institution" bibinfo.check format.org.or.pub |
| 1461 |
} |
| 1462 |
|
| 1463 |
FUNCTION {format.school.address} |
| 1464 |
{ school "school" bibinfo.check format.org.or.pub |
| 1465 |
} |
| 1466 |
|
| 1467 |
|
| 1468 |
% urlbst... |
| 1469 |
% Functions for making hypertext links. |
| 1470 |
% In all cases, the stack has (link-text href-url) |
| 1471 |
% |
| 1472 |
% make 'null' specials |
| 1473 |
FUNCTION {make.href.null} |
| 1474 |
{ |
| 1475 |
pop$ |
| 1476 |
} |
| 1477 |
% make hypertex specials |
| 1478 |
FUNCTION {make.href.hypertex} |
| 1479 |
{ |
| 1480 |
"\special {html:<a href=" quote$ * |
| 1481 |
swap$ * quote$ * "> }" * swap$ * |
| 1482 |
"\special {html:</a>}" * |
| 1483 |
} |
| 1484 |
% make hyperref specials |
| 1485 |
FUNCTION {make.href.hyperref} |
| 1486 |
{ |
| 1487 |
"\href {" swap$ * "} {" * swap$ * "}" * |
| 1488 |
} |
| 1489 |
FUNCTION {make.href} |
| 1490 |
{ hrefform #2 = |
| 1491 |
'make.href.hyperref % hrefform = 2 |
| 1492 |
{ hrefform #1 = |
| 1493 |
'make.href.hypertex % hrefform = 1 |
| 1494 |
'make.href.null % hrefform = 0 (or anything else) |
| 1495 |
if$ |
| 1496 |
} |
| 1497 |
if$ |
| 1498 |
} |
| 1499 |
|
| 1500 |
FUNCTION {format.url} |
| 1501 |
{ url empty$ |
| 1502 |
{ "" } |
| 1503 |
{ hrefform #1 = |
| 1504 |
{ % special case -- add HyperTeX specials |
| 1505 |
urlintro "\url{" url * "}" * url make.href.hypertex * } |
| 1506 |
{ urlintro "\url{" * url * "}" * } |
| 1507 |
if$ |
| 1508 |
} |
| 1509 |
if$ |
| 1510 |
} |
| 1511 |
|
| 1512 |
FUNCTION {format.eprint} |
| 1513 |
{ eprint empty$ |
| 1514 |
{ "" } |
| 1515 |
{ eprintprefix eprint * eprinturl eprint * make.href } |
| 1516 |
if$ |
| 1517 |
} |
| 1518 |
|
| 1519 |
FUNCTION {format.doi} |
| 1520 |
{ doi empty$ |
| 1521 |
{ "" } |
| 1522 |
{ doiprefix doi * doiurl doi * make.href } |
| 1523 |
if$ |
| 1524 |
} |
| 1525 |
|
| 1526 |
% Output a URL. We can't use the more normal idiom (something like |
| 1527 |
% `format.url output'), because the `inbrackets' within |
| 1528 |
% format.lastchecked applies to everything between calls to `output', |
| 1529 |
% so that `format.url format.lastchecked * output' ends up with both |
| 1530 |
% the URL and the lastchecked in brackets. |
| 1531 |
FUNCTION {output.url} |
| 1532 |
{ url empty$ |
| 1533 |
'skip$ |
| 1534 |
{ new.block |
| 1535 |
format.url output |
| 1536 |
format.lastchecked output |
| 1537 |
} |
| 1538 |
if$ |
| 1539 |
} |
| 1540 |
|
| 1541 |
FUNCTION {output.web.refs} |
| 1542 |
{ |
| 1543 |
new.block |
| 1544 |
output.url |
| 1545 |
addeprints eprint empty$ not and |
| 1546 |
{ format.eprint output.nonnull } |
| 1547 |
'skip$ |
| 1548 |
if$ |
| 1549 |
adddoiresolver doi empty$ not and |
| 1550 |
{ format.doi output.nonnull } |
| 1551 |
'skip$ |
| 1552 |
if$ |
| 1553 |
% addeprints |
| 1554 |
% { eprint empty$ |
| 1555 |
% 'skip$ |
| 1556 |
% { format.eprint output.nonnull } |
| 1557 |
% if$ |
| 1558 |
% } |
| 1559 |
% 'skip$ |
| 1560 |
% if$ |
| 1561 |
} |
| 1562 |
|
| 1563 |
% Webpage entry type. |
| 1564 |
% Title and url fields required; |
| 1565 |
% author, note, year, month, and lastchecked fields optional |
| 1566 |
STRINGS {database} |
| 1567 |
FUNCTION {webpage} |
| 1568 |
{ output.bibitem |
| 1569 |
author empty$ |
| 1570 |
{ editor empty$ |
| 1571 |
'skip$ % author and editor both optional |
| 1572 |
{ format.editors output.nonnull } |
| 1573 |
if$ |
| 1574 |
} |
| 1575 |
{ editor empty$ |
| 1576 |
{ format.authors output.nonnull } |
| 1577 |
{ "can't use both author and editor fields in " cite$ * warning$ } |
| 1578 |
if$ |
| 1579 |
} |
| 1580 |
if$ |
| 1581 |
% author empty$ |
| 1582 |
% 'skip$ |
| 1583 |
% { format.authors output.nonnull } |
| 1584 |
% if$ |
| 1585 |
new.block |
| 1586 |
format.title "title" output.check |
| 1587 |
journal empty$ |
| 1588 |
{ |
| 1589 |
format.type "type" output.check |
| 1590 |
publisher empty$ |
| 1591 |
'skip$ |
| 1592 |
{ format.publisher.address output } |
| 1593 |
if$ |
| 1594 |
"database on the Internet" 'database := |
| 1595 |
type database = |
| 1596 |
{ format.journal.date "year" output.check } |
| 1597 |
{ format.date "year" output.check } |
| 1598 |
if$ |
| 1599 |
lastchecked empty$ |
| 1600 |
'skip$ |
| 1601 |
{ format.lastchecked output } |
| 1602 |
if$ |
| 1603 |
new.block |
| 1604 |
part empty$ |
| 1605 |
'skip$ |
| 1606 |
{ part output } |
| 1607 |
if$ |
| 1608 |
pages empty$ |
| 1609 |
'skip$ |
| 1610 |
{ pages bracket.check output } |
| 1611 |
if$ |
| 1612 |
} |
| 1613 |
{ journal |
| 1614 |
remove.dots |
| 1615 |
"journal" bibinfo.check |
| 1616 |
"journal" output.check |
| 1617 |
format.type "type" output.check |
| 1618 |
format.journal.date "year" output.check |
| 1619 |
lastchecked empty$ |
| 1620 |
'skip$ |
| 1621 |
{ format.lastchecked output |
| 1622 |
";" no.blank.or.punct output |
| 1623 |
} |
| 1624 |
if$ |
| 1625 |
no.blank.or.punct format.vol.num output |
| 1626 |
pages empty$ |
| 1627 |
'skip$ |
| 1628 |
{ ":" no.blank.or.punct output |
| 1629 |
no.blank.or.punct pages bracket.check output |
| 1630 |
} |
| 1631 |
if$ |
| 1632 |
new.block |
| 1633 |
} |
| 1634 |
if$ |
| 1635 |
format.url "url" output.check |
| 1636 |
new.block |
| 1637 |
note output |
| 1638 |
fin.entry |
| 1639 |
} |
| 1640 |
% ...urlbst to here |
| 1641 |
|
| 1642 |
FUNCTION {misc} |
| 1643 |
{ output.bibitem |
| 1644 |
format.authors "author" output.check |
| 1645 |
format.editors "author and editor" output.check |
| 1646 |
format.title "title" output.check |
| 1647 |
type missing$ |
| 1648 |
{ skip$ } |
| 1649 |
{ format.type "type" output.check } |
| 1650 |
%%{ inbrackets type output } |
| 1651 |
if$ |
| 1652 |
format.publisher.address output |
| 1653 |
format.date "year" output.check |
| 1654 |
new.block |
| 1655 |
format.note output |
| 1656 |
new.block |
| 1657 |
howpublished new.block.checka |
| 1658 |
howpublished "howpublished" bibinfo.check output |
| 1659 |
output.web.refs % urlbst |
| 1660 |
fin.entry |
| 1661 |
empty.misc.check |
| 1662 |
} |
| 1663 |
|
| 1664 |
FUNCTION {article} |
| 1665 |
{ output.bibitem |
| 1666 |
format.authors "author" output.check |
| 1667 |
organization empty$ |
| 1668 |
'skip$ |
| 1669 |
{ author empty$ |
| 1670 |
{ |
| 1671 |
format.organizations "organization" output.check |
| 1672 |
} |
| 1673 |
{ |
| 1674 |
"; " * |
| 1675 |
no.blank.or.punct |
| 1676 |
format.organizations "organization" output.check |
| 1677 |
} |
| 1678 |
if$ |
| 1679 |
} |
| 1680 |
if$ |
| 1681 |
new.block |
| 1682 |
format.title "title" output.check |
| 1683 |
type missing$ |
| 1684 |
{ skip$ } |
| 1685 |
{ format.type "type" output.check } |
| 1686 |
if$ |
| 1687 |
new.block |
| 1688 |
journal |
| 1689 |
remove.dots |
| 1690 |
"journal" bibinfo.check |
| 1691 |
"journal" output.check |
| 1692 |
format.journal.date "year" output.check |
| 1693 |
format.vol.num.pages output |
| 1694 |
new.block |
| 1695 |
format.note output |
| 1696 |
output.web.refs % urlbst |
| 1697 |
fin.entry |
| 1698 |
} |
| 1699 |
|
| 1700 |
FUNCTION {book} |
| 1701 |
{ output.bibitem |
| 1702 |
author empty$ |
| 1703 |
{ editor empty$ |
| 1704 |
{ format.organizations "organization" output.check } |
| 1705 |
{ format.editors "author and editor" output.check } |
| 1706 |
if$ |
| 1707 |
} |
| 1708 |
{ format.authors output.nonnull |
| 1709 |
"author and editor" editor either.or.check |
| 1710 |
} |
| 1711 |
if$ |
| 1712 |
new.block |
| 1713 |
format.btitle "title" output.check |
| 1714 |
format.bvolume output |
| 1715 |
new.block |
| 1716 |
format.edition output |
| 1717 |
new.sentence |
| 1718 |
author empty$ not |
| 1719 |
editor empty$ not |
| 1720 |
and |
| 1721 |
{ format.editors "author and editor" output.check } |
| 1722 |
'skip$ |
| 1723 |
if$ |
| 1724 |
format.number.series output |
| 1725 |
format.publisher.address output |
| 1726 |
format.date "year" output.check |
| 1727 |
new.block |
| 1728 |
format.note output |
| 1729 |
output.web.refs % urlbst |
| 1730 |
fin.entry |
| 1731 |
} |
| 1732 |
|
| 1733 |
FUNCTION {booklet} |
| 1734 |
{ misc } |
| 1735 |
|
| 1736 |
FUNCTION {dictionary} |
| 1737 |
{ output.bibitem |
| 1738 |
format.booktitle "booktitle" output.check |
| 1739 |
format.bvolume output |
| 1740 |
new.block |
| 1741 |
format.edition output |
| 1742 |
new.sentence |
| 1743 |
format.publisher.address output |
| 1744 |
format.date "year" output.check |
| 1745 |
format.btitle "title" output.check |
| 1746 |
add.semicolon |
| 1747 |
add.blank |
| 1748 |
format.pages "pages" output.check |
| 1749 |
new.block |
| 1750 |
format.note output |
| 1751 |
output.web.refs % urlbst |
| 1752 |
fin.entry |
| 1753 |
} |
| 1754 |
|
| 1755 |
FUNCTION {inbook} |
| 1756 |
{ output.bibitem |
| 1757 |
format.authors "author" output.check |
| 1758 |
new.block |
| 1759 |
chapter "chapter" output.check |
| 1760 |
new.block |
| 1761 |
format.in.ed.title "title" output.check |
| 1762 |
format.bvolume output |
| 1763 |
format.edition output |
| 1764 |
new.sentence |
| 1765 |
format.number.series output |
| 1766 |
format.publisher.address output |
| 1767 |
format.date "year" output.check |
| 1768 |
date.block |
| 1769 |
add.blank |
| 1770 |
format.pages "pages" output.check |
| 1771 |
new.block |
| 1772 |
format.note output |
| 1773 |
output.web.refs % urlbst |
| 1774 |
fin.entry |
| 1775 |
} |
| 1776 |
|
| 1777 |
FUNCTION {incollection} |
| 1778 |
{ output.bibitem |
| 1779 |
format.authors "author" output.check |
| 1780 |
new.block |
| 1781 |
format.title "title" output.check |
| 1782 |
new.block |
| 1783 |
format.in.ed.booktitle "booktitle" output.check |
| 1784 |
format.bvolume output |
| 1785 |
format.edition output |
| 1786 |
new.sentence |
| 1787 |
format.number.series output |
| 1788 |
format.publisher.address output |
| 1789 |
format.date "year" output.check |
| 1790 |
date.block |
| 1791 |
add.blank |
| 1792 |
format.pages "pages" output.check |
| 1793 |
new.block |
| 1794 |
format.note output |
| 1795 |
output.web.refs % urlbst |
| 1796 |
fin.entry |
| 1797 |
} |
| 1798 |
|
| 1799 |
FUNCTION {inproceedings} |
| 1800 |
{ output.bibitem |
| 1801 |
format.authors "author" output.check |
| 1802 |
new.block |
| 1803 |
format.title "title" output.check |
| 1804 |
new.block |
| 1805 |
format.in.ed.booktitle "booktitle" output.check |
| 1806 |
format.bvolume output |
| 1807 |
new.sentence |
| 1808 |
format.number.series output |
| 1809 |
publisher empty$ |
| 1810 |
{ format.organization.address output } |
| 1811 |
{ organization "organization" bibinfo.check output |
| 1812 |
format.publisher.address output |
| 1813 |
} |
| 1814 |
if$ |
| 1815 |
format.date "year" output.check |
| 1816 |
date.block |
| 1817 |
add.blank |
| 1818 |
format.pages "pages" output.check |
| 1819 |
new.block |
| 1820 |
format.note output |
| 1821 |
output.web.refs % urlbst |
| 1822 |
fin.entry |
| 1823 |
} |
| 1824 |
|
| 1825 |
FUNCTION {conference} |
| 1826 |
{inproceedings} |
| 1827 |
|
| 1828 |
FUNCTION {manual} |
| 1829 |
{misc} |
| 1830 |
|
| 1831 |
FUNCTION {phdthesis} |
| 1832 |
{ output.bibitem |
| 1833 |
format.authors "author" output.check |
| 1834 |
new.block |
| 1835 |
format.btitle |
| 1836 |
"title" output.check |
| 1837 |
format.type "type" output.check |
| 1838 |
new.block |
| 1839 |
format.school.address output |
| 1840 |
format.date "year" output.check |
| 1841 |
new.block |
| 1842 |
format.note output |
| 1843 |
output.web.refs % urlbst |
| 1844 |
fin.entry |
| 1845 |
} |
| 1846 |
|
| 1847 |
FUNCTION {mastersthesis} |
| 1848 |
{phdthesis} |
| 1849 |
|
| 1850 |
FUNCTION {proceedings} |
| 1851 |
{ output.bibitem |
| 1852 |
editor empty$ |
| 1853 |
{ organization "organization" bibinfo.check output |
| 1854 |
} |
| 1855 |
{ format.editors output.nonnull } |
| 1856 |
if$ |
| 1857 |
new.block |
| 1858 |
format.btitle "title" output.check |
| 1859 |
format.bvolume output |
| 1860 |
editor empty$ |
| 1861 |
{ publisher empty$ |
| 1862 |
'skip$ |
| 1863 |
{ |
| 1864 |
new.sentence |
| 1865 |
format.number.series output |
| 1866 |
format.publisher.address output |
| 1867 |
} |
| 1868 |
if$ |
| 1869 |
} |
| 1870 |
{ publisher empty$ |
| 1871 |
{ |
| 1872 |
new.sentence |
| 1873 |
format.organization.address output } |
| 1874 |
{ |
| 1875 |
new.sentence |
| 1876 |
organization "organization" bibinfo.check output |
| 1877 |
format.publisher.address output |
| 1878 |
} |
| 1879 |
if$ |
| 1880 |
} |
| 1881 |
if$ |
| 1882 |
format.date "year" output.check |
| 1883 |
new.block |
| 1884 |
format.note output |
| 1885 |
output.web.refs % urlbst |
| 1886 |
fin.entry |
| 1887 |
} |
| 1888 |
|
| 1889 |
FUNCTION {techreport} |
| 1890 |
{ output.bibitem |
| 1891 |
format.authors "author" output.check |
| 1892 |
new.block |
| 1893 |
format.title |
| 1894 |
"title" output.check |
| 1895 |
new.block |
| 1896 |
format.institution.address output |
| 1897 |
format.date "year" output.check |
| 1898 |
format.tr.number output.nonnull |
| 1899 |
new.block |
| 1900 |
format.note output |
| 1901 |
output.web.refs % urlbst |
| 1902 |
fin.entry |
| 1903 |
} |
| 1904 |
|
| 1905 |
FUNCTION {map} |
| 1906 |
{ output.bibitem |
| 1907 |
format.cartographers "cartographer" output.check |
| 1908 |
new.block |
| 1909 |
format.title |
| 1910 |
"title" output.check |
| 1911 |
format.type "type" output.check |
| 1912 |
new.block |
| 1913 |
format.publisher.address output |
| 1914 |
format.date "year" output.check |
| 1915 |
new.block |
| 1916 |
format.note output |
| 1917 |
output.web.refs % urlbst |
| 1918 |
fin.entry |
| 1919 |
} |
| 1920 |
|
| 1921 |
FUNCTION {patent} |
| 1922 |
{ output.bibitem |
| 1923 |
format.inventors "inventor" output.check |
| 1924 |
"; " * |
| 1925 |
no.blank.or.punct |
| 1926 |
format.assignees "assignee" output.check |
| 1927 |
new.block |
| 1928 |
format.title |
| 1929 |
"title" output.check |
| 1930 |
new.block |
| 1931 |
format.tr.number output.nonnull |
| 1932 |
format.date "year" output.check |
| 1933 |
new.block |
| 1934 |
format.note output |
| 1935 |
output.web.refs % urlbst |
| 1936 |
fin.entry |
| 1937 |
} |
| 1938 |
|
| 1939 |
FUNCTION {unpublished} |
| 1940 |
{ output.bibitem |
| 1941 |
format.authors "author" output.check |
| 1942 |
new.block |
| 1943 |
format.title "title" output.check |
| 1944 |
format.date output |
| 1945 |
new.block |
| 1946 |
format.note "note" output.check |
| 1947 |
output.web.refs % urlbst |
| 1948 |
fin.entry |
| 1949 |
} |
| 1950 |
|
| 1951 |
FUNCTION {default.type} { misc } |
| 1952 |
READ |
| 1953 |
STRINGS { longest.label } |
| 1954 |
INTEGERS { number.label longest.label.width } |
| 1955 |
FUNCTION {initialize.longest.label} |
| 1956 |
{ "" 'longest.label := |
| 1957 |
#1 'number.label := |
| 1958 |
#0 'longest.label.width := |
| 1959 |
} |
| 1960 |
FUNCTION {longest.label.pass} |
| 1961 |
{ number.label int.to.str$ 'label := |
| 1962 |
number.label #1 + 'number.label := |
| 1963 |
label width$ longest.label.width > |
| 1964 |
{ label 'longest.label := |
| 1965 |
label width$ 'longest.label.width := |
| 1966 |
} |
| 1967 |
'skip$ |
| 1968 |
if$ |
| 1969 |
} |
| 1970 |
EXECUTE {initialize.longest.label} |
| 1971 |
ITERATE {longest.label.pass} |
| 1972 |
FUNCTION {begin.bib} |
| 1973 |
{ preamble$ empty$ |
| 1974 |
'skip$ |
| 1975 |
{ preamble$ write$ newline$ } |
| 1976 |
if$ |
| 1977 |
"\begin{thebibliography}{" longest.label * "}" * |
| 1978 |
write$ newline$ |
| 1979 |
} |
| 1980 |
EXECUTE {begin.bib} |
| 1981 |
EXECUTE {init.config.constants} |
| 1982 |
EXECUTE {init.state.consts} |
| 1983 |
ITERATE {call.type$} |
| 1984 |
FUNCTION {end.bib} |
| 1985 |
{ newline$ |
| 1986 |
"\end{thebibliography}" write$ newline$ |
| 1987 |
} |
| 1988 |
EXECUTE {end.bib} |
| 1989 |
%% End of customized bst file |
| 1990 |
%% |
| 1991 |
%% End of file `vancouver.bst'. |