| 1 |
%% |
| 2 |
%% This is file `newcastle.bst', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% merlin.mbs (with options: `ay,nat,vonx,nm-rvvc,keyxyr,dt-beg,yr-par,yrp-x,note-yr,tit-qq,qt-s,qx,volp-com,jwdpg,pp-last,num-xser,ser-vol,ser-ed,add-pub,pre-edn,doi,edparc,pp,ed,abr,xedn,and-xcom,etal-xc,etal-it,url,url-blk,nfss,') |
| 8 |
%% ---------------------------------------- |
| 9 |
%% *** For Newcastle University students *** |
| 10 |
%% |
| 11 |
%% Copyright 1994-2011 Patrick W Daly |
| 12 |
%% 2021 Luke Briggs |
| 13 |
% =============================================================== |
| 14 |
% IMPORTANT NOTICE: |
| 15 |
% This bibliographic style (bst) file has been generated from one or |
| 16 |
% more master bibliographic style (mbs) files, listed above. |
| 17 |
% |
| 18 |
% This generated file can be redistributed and/or modified under the terms |
| 19 |
% of the LaTeX Project Public License Distributed from CTAN |
| 20 |
% archives in directory macros/latex/base/lppl.txt; either |
| 21 |
% version 1 of the License, or any later version. |
| 22 |
% =============================================================== |
| 23 |
% Name and version information of the main mbs file: |
| 24 |
% \ProvidesFile{merlin.mbs}[2011/11/18 4.33 (PWD, AO, DPC)] |
| 25 |
% For use with BibTeX version 0.99a or later |
| 26 |
%------------------------------------------------------------------- |
| 27 |
% This bibliography style file is intended for texts in ENGLISH |
| 28 |
% This is an author-year citation style bibliography. As such, it is |
| 29 |
% non-standard LaTeX, and requires a special package file to function properly. |
| 30 |
% Such a package is natbib.sty by Patrick W. Daly |
| 31 |
% The form of the \bibitem entries is |
| 32 |
% \bibitem[Jones et al.(1990)]{key}... |
| 33 |
% \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}... |
| 34 |
% The essential feature is that the label (the part in brackets) consists |
| 35 |
% of the author names, as they should appear in the citation, with the year |
| 36 |
% in parentheses following. There must be no space before the opening |
| 37 |
% parenthesis! |
| 38 |
% With natbib v5.3, a full list of authors may also follow the year. |
| 39 |
% In natbib.sty, it is possible to define the type of enclosures that is |
| 40 |
% really wanted (brackets or parentheses), but in either case, there must |
| 41 |
% be parentheses in the label. |
| 42 |
% The \cite command functions as follows: |
| 43 |
% \citet{key} ==>> Jones et al. (1990) |
| 44 |
% \citet*{key} ==>> Jones, Baker, and Smith (1990) |
| 45 |
% \citep{key} ==>> (Jones et al., 1990) |
| 46 |
% \citep*{key} ==>> (Jones, Baker, and Smith, 1990) |
| 47 |
% \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2) |
| 48 |
% \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990) |
| 49 |
% \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., 1990, p. 32) |
| 50 |
% \citeauthor{key} ==>> Jones et al. |
| 51 |
% \citeauthor*{key} ==>> Jones, Baker, and Smith |
| 52 |
% \citeyear{key} ==>> 1990 |
| 53 |
%--------------------------------------------------------------------- |
| 54 |
% OTHER REQUIREMENTS: |
| 55 |
% - isodate |
| 56 |
|
| 57 |
ENTRY |
| 58 |
{ address |
| 59 |
author |
| 60 |
booktitle |
| 61 |
chapter |
| 62 |
doi |
| 63 |
edition |
| 64 |
editor |
| 65 |
eid |
| 66 |
howpublished |
| 67 |
institution |
| 68 |
journal |
| 69 |
key |
| 70 |
month |
| 71 |
note |
| 72 |
number |
| 73 |
organization |
| 74 |
pages |
| 75 |
publisher |
| 76 |
school |
| 77 |
series |
| 78 |
title |
| 79 |
type |
| 80 |
url |
| 81 |
urldate |
| 82 |
titleaddon |
| 83 |
volume |
| 84 |
year |
| 85 |
} |
| 86 |
{} |
| 87 |
{ label extra.label sort.label short.list } |
| 88 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 89 |
FUNCTION {init.state.consts} |
| 90 |
{ #0 'before.all := |
| 91 |
#1 'mid.sentence := |
| 92 |
#2 'after.sentence := |
| 93 |
#3 'after.block := |
| 94 |
} |
| 95 |
STRINGS { s t} |
| 96 |
FUNCTION {output.nonnull} |
| 97 |
{ 's := |
| 98 |
output.state mid.sentence = |
| 99 |
{ ", " * write$ } |
| 100 |
{ output.state after.block = |
| 101 |
{ add.period$ write$ |
| 102 |
newline$ |
| 103 |
"\newblock " write$ |
| 104 |
} |
| 105 |
{ output.state before.all = |
| 106 |
'write$ |
| 107 |
{ add.period$ " " * write$ } |
| 108 |
if$ |
| 109 |
} |
| 110 |
if$ |
| 111 |
mid.sentence 'output.state := |
| 112 |
} |
| 113 |
if$ |
| 114 |
s |
| 115 |
} |
| 116 |
FUNCTION {output} |
| 117 |
{ duplicate$ empty$ |
| 118 |
'pop$ |
| 119 |
'output.nonnull |
| 120 |
if$ |
| 121 |
} |
| 122 |
FUNCTION {output.check} |
| 123 |
{ 't := |
| 124 |
duplicate$ empty$ |
| 125 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 126 |
'output.nonnull |
| 127 |
if$ |
| 128 |
} |
| 129 |
FUNCTION {fin.entry} |
| 130 |
{ add.period$ |
| 131 |
write$ |
| 132 |
newline$ |
| 133 |
} |
| 134 |
|
| 135 |
FUNCTION {new.block} |
| 136 |
{ output.state before.all = |
| 137 |
'skip$ |
| 138 |
{ after.block 'output.state := } |
| 139 |
if$ |
| 140 |
} |
| 141 |
FUNCTION {new.sentence} |
| 142 |
{ output.state after.block = |
| 143 |
'skip$ |
| 144 |
{ output.state before.all = |
| 145 |
'skip$ |
| 146 |
{ after.sentence 'output.state := } |
| 147 |
if$ |
| 148 |
} |
| 149 |
if$ |
| 150 |
} |
| 151 |
FUNCTION {add.blank} |
| 152 |
{ " " * before.all 'output.state := |
| 153 |
} |
| 154 |
|
| 155 |
FUNCTION {date.block} |
| 156 |
{ |
| 157 |
add.blank |
| 158 |
} |
| 159 |
|
| 160 |
FUNCTION {not} |
| 161 |
{ { #0 } |
| 162 |
{ #1 } |
| 163 |
if$ |
| 164 |
} |
| 165 |
FUNCTION {and} |
| 166 |
{ 'skip$ |
| 167 |
{ pop$ #0 } |
| 168 |
if$ |
| 169 |
} |
| 170 |
FUNCTION {or} |
| 171 |
{ { pop$ #1 } |
| 172 |
'skip$ |
| 173 |
if$ |
| 174 |
} |
| 175 |
FUNCTION {non.stop} |
| 176 |
{ duplicate$ |
| 177 |
"}" * add.period$ |
| 178 |
#-1 #1 substring$ "." = |
| 179 |
} |
| 180 |
|
| 181 |
FUNCTION {new.block.checkb} |
| 182 |
{ empty$ |
| 183 |
swap$ empty$ |
| 184 |
and |
| 185 |
'skip$ |
| 186 |
'new.block |
| 187 |
if$ |
| 188 |
} |
| 189 |
FUNCTION {field.or.null} |
| 190 |
{ duplicate$ empty$ |
| 191 |
{ pop$ "" } |
| 192 |
'skip$ |
| 193 |
if$ |
| 194 |
} |
| 195 |
FUNCTION {emphasize} |
| 196 |
{ duplicate$ empty$ |
| 197 |
{ pop$ "" } |
| 198 |
{ "\emph{" swap$ * "}" * } |
| 199 |
if$ |
| 200 |
} |
| 201 |
FUNCTION {tie.or.space.prefix} |
| 202 |
{ duplicate$ text.length$ #3 < |
| 203 |
{ "~" } |
| 204 |
{ " " } |
| 205 |
if$ |
| 206 |
swap$ |
| 207 |
} |
| 208 |
|
| 209 |
FUNCTION {capitalize} |
| 210 |
{ "u" change.case$ "t" change.case$ } |
| 211 |
|
| 212 |
FUNCTION {space.word} |
| 213 |
{ " " swap$ * " " * } |
| 214 |
% Here are the language-specific definitions for explicit words. |
| 215 |
% Each function has a name bbl.xxx where xxx is the English word. |
| 216 |
% The language selected here is ENGLISH |
| 217 |
FUNCTION {bbl.and} |
| 218 |
{ "and"} |
| 219 |
|
| 220 |
FUNCTION {bbl.etal} |
| 221 |
{ "et~al." } |
| 222 |
|
| 223 |
FUNCTION {bbl.editors} |
| 224 |
{ "eds." } |
| 225 |
|
| 226 |
FUNCTION {bbl.editor} |
| 227 |
{ "ed." } |
| 228 |
|
| 229 |
FUNCTION {bbl.edby} |
| 230 |
{ "edited by" } |
| 231 |
|
| 232 |
FUNCTION {bbl.edition} |
| 233 |
{ "edn." } |
| 234 |
|
| 235 |
FUNCTION {bbl.volume} |
| 236 |
{ "vol." } |
| 237 |
|
| 238 |
FUNCTION {bbl.of} |
| 239 |
{ "of" } |
| 240 |
|
| 241 |
FUNCTION {bbl.number} |
| 242 |
{ "no." } |
| 243 |
|
| 244 |
FUNCTION {bbl.nr} |
| 245 |
{ "no." } |
| 246 |
|
| 247 |
FUNCTION {bbl.in} |
| 248 |
{ "in" } |
| 249 |
|
| 250 |
FUNCTION {bbl.pages} |
| 251 |
{ "pp." } |
| 252 |
|
| 253 |
FUNCTION {bbl.page} |
| 254 |
{ "p." } |
| 255 |
|
| 256 |
FUNCTION {bbl.chapter} |
| 257 |
{ "chap." } |
| 258 |
|
| 259 |
FUNCTION {bbl.techrep} |
| 260 |
{ "Tech. Rep." } |
| 261 |
|
| 262 |
FUNCTION {bbl.mthesis} |
| 263 |
{ "Master's thesis" } |
| 264 |
|
| 265 |
FUNCTION {bbl.phdthesis} |
| 266 |
{ "Ph.D. thesis" } |
| 267 |
|
| 268 |
MACRO {jan} {"Jan."} |
| 269 |
|
| 270 |
MACRO {feb} {"Feb."} |
| 271 |
|
| 272 |
MACRO {mar} {"Mar."} |
| 273 |
|
| 274 |
MACRO {apr} {"Apr."} |
| 275 |
|
| 276 |
MACRO {may} {"May"} |
| 277 |
|
| 278 |
MACRO {jun} {"Jun."} |
| 279 |
|
| 280 |
MACRO {jul} {"Jul."} |
| 281 |
|
| 282 |
MACRO {aug} {"Aug."} |
| 283 |
|
| 284 |
MACRO {sep} {"Sep."} |
| 285 |
|
| 286 |
MACRO {oct} {"Oct."} |
| 287 |
|
| 288 |
MACRO {nov} {"Nov."} |
| 289 |
|
| 290 |
MACRO {dec} {"Dec."} |
| 291 |
|
| 292 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 293 |
|
| 294 |
MACRO {acta} {"Acta Informatica"} |
| 295 |
|
| 296 |
MACRO {cacm} {"Communications of the ACM"} |
| 297 |
|
| 298 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 299 |
|
| 300 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 301 |
|
| 302 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 303 |
|
| 304 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 305 |
|
| 306 |
MACRO {ieeetcad} |
| 307 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 308 |
|
| 309 |
MACRO {ipl} {"Information Processing Letters"} |
| 310 |
|
| 311 |
MACRO {jacm} {"Journal of the ACM"} |
| 312 |
|
| 313 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 314 |
|
| 315 |
MACRO {scp} {"Science of Computer Programming"} |
| 316 |
|
| 317 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 318 |
|
| 319 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 320 |
|
| 321 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 322 |
|
| 323 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 324 |
|
| 325 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 326 |
|
| 327 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 328 |
|
| 329 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 330 |
|
| 331 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 332 |
FUNCTION {bibinfo.check} |
| 333 |
{ swap$ |
| 334 |
duplicate$ missing$ |
| 335 |
{ |
| 336 |
pop$ pop$ |
| 337 |
"" |
| 338 |
} |
| 339 |
{ duplicate$ empty$ |
| 340 |
{ |
| 341 |
swap$ pop$ |
| 342 |
} |
| 343 |
{ swap$ |
| 344 |
pop$ |
| 345 |
} |
| 346 |
if$ |
| 347 |
} |
| 348 |
if$ |
| 349 |
} |
| 350 |
FUNCTION {bibinfo.warn} |
| 351 |
{ swap$ |
| 352 |
duplicate$ missing$ |
| 353 |
{ |
| 354 |
swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ |
| 355 |
"" |
| 356 |
} |
| 357 |
{ duplicate$ empty$ |
| 358 |
{ |
| 359 |
swap$ "empty " swap$ * " in " * cite$ * warning$ |
| 360 |
} |
| 361 |
{ swap$ |
| 362 |
pop$ |
| 363 |
} |
| 364 |
if$ |
| 365 |
} |
| 366 |
if$ |
| 367 |
} |
| 368 |
FUNCTION {format.url} |
| 369 |
{ |
| 370 |
url |
| 371 |
duplicate$ empty$ |
| 372 |
{ pop$ "" } |
| 373 |
{ "Available at: \url{" swap$ * "}" * } |
| 374 |
if$ |
| 375 |
} |
| 376 |
|
| 377 |
FUNCTION {format.urldate} |
| 378 |
{ |
| 379 |
urldate |
| 380 |
duplicate$ empty$ |
| 381 |
{ pop$ "" } |
| 382 |
{ "(Accessed: \printdate{" swap$ * "})" *} |
| 383 |
if$ |
| 384 |
} |
| 385 |
|
| 386 |
INTEGERS { nameptr namesleft numnames } |
| 387 |
|
| 388 |
|
| 389 |
STRINGS { bibinfo} |
| 390 |
|
| 391 |
FUNCTION {format.names} |
| 392 |
{ 'bibinfo := |
| 393 |
duplicate$ empty$ 'skip$ { |
| 394 |
's := |
| 395 |
"" 't := |
| 396 |
#1 'nameptr := |
| 397 |
s num.names$ 'numnames := |
| 398 |
numnames 'namesleft := |
| 399 |
{ namesleft #0 > } |
| 400 |
{ s nameptr |
| 401 |
"{vv~}{ll}{, jj}{, f{.}.}" |
| 402 |
format.name$ |
| 403 |
bibinfo bibinfo.check |
| 404 |
't := |
| 405 |
nameptr #1 > |
| 406 |
{ |
| 407 |
namesleft #1 > |
| 408 |
{ ", " * t * } |
| 409 |
{ |
| 410 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 411 |
{ 't := } |
| 412 |
{ pop$ } |
| 413 |
if$ |
| 414 |
t "others" = |
| 415 |
{ |
| 416 |
" " * bbl.etal emphasize * |
| 417 |
} |
| 418 |
{ |
| 419 |
bbl.and |
| 420 |
space.word * t * |
| 421 |
} |
| 422 |
if$ |
| 423 |
} |
| 424 |
if$ |
| 425 |
} |
| 426 |
't |
| 427 |
if$ |
| 428 |
nameptr #1 + 'nameptr := |
| 429 |
namesleft #1 - 'namesleft := |
| 430 |
} |
| 431 |
while$ |
| 432 |
} if$ |
| 433 |
} |
| 434 |
FUNCTION {format.names.ed} |
| 435 |
{ |
| 436 |
'bibinfo := |
| 437 |
duplicate$ empty$ 'skip$ { |
| 438 |
's := |
| 439 |
"" 't := |
| 440 |
#1 'nameptr := |
| 441 |
s num.names$ 'numnames := |
| 442 |
numnames 'namesleft := |
| 443 |
{ namesleft #0 > } |
| 444 |
{ s nameptr |
| 445 |
"{f{.}.~}{vv~}{ll}{ jj}" |
| 446 |
format.name$ |
| 447 |
bibinfo bibinfo.check |
| 448 |
't := |
| 449 |
nameptr #1 > |
| 450 |
{ |
| 451 |
namesleft #1 > |
| 452 |
{ ", " * t * } |
| 453 |
{ |
| 454 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 455 |
{ 't := } |
| 456 |
{ pop$ } |
| 457 |
if$ |
| 458 |
t "others" = |
| 459 |
{ |
| 460 |
|
| 461 |
" " * bbl.etal emphasize * |
| 462 |
} |
| 463 |
{ |
| 464 |
bbl.and |
| 465 |
space.word * t * |
| 466 |
} |
| 467 |
if$ |
| 468 |
} |
| 469 |
if$ |
| 470 |
} |
| 471 |
't |
| 472 |
if$ |
| 473 |
nameptr #1 + 'nameptr := |
| 474 |
namesleft #1 - 'namesleft := |
| 475 |
} |
| 476 |
while$ |
| 477 |
} if$ |
| 478 |
} |
| 479 |
FUNCTION {format.key} |
| 480 |
{ empty$ |
| 481 |
{ key field.or.null } |
| 482 |
{ "" } |
| 483 |
if$ |
| 484 |
} |
| 485 |
|
| 486 |
FUNCTION {format.authors} |
| 487 |
{ author "author" format.names |
| 488 |
} |
| 489 |
FUNCTION {get.bbl.editor} |
| 490 |
{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } |
| 491 |
|
| 492 |
FUNCTION {format.editors} |
| 493 |
{ editor "editor" format.names duplicate$ empty$ 'skip$ |
| 494 |
{ |
| 495 |
"," * |
| 496 |
" " * |
| 497 |
get.bbl.editor |
| 498 |
"(" swap$ * ")" * |
| 499 |
* |
| 500 |
} |
| 501 |
if$ |
| 502 |
} |
| 503 |
FUNCTION {format.doi} |
| 504 |
{ doi empty$ |
| 505 |
{ "" } |
| 506 |
{ |
| 507 |
new.block |
| 508 |
"\doi{" doi * "}" * |
| 509 |
} |
| 510 |
if$ |
| 511 |
} |
| 512 |
FUNCTION {format.note} |
| 513 |
{ |
| 514 |
note empty$ |
| 515 |
{ "" } |
| 516 |
{ note #1 #1 substring$ |
| 517 |
duplicate$ "{" = |
| 518 |
'skip$ |
| 519 |
{ output.state mid.sentence = |
| 520 |
{ "l" } |
| 521 |
{ "u" } |
| 522 |
if$ |
| 523 |
change.case$ |
| 524 |
} |
| 525 |
if$ |
| 526 |
note #2 global.max$ substring$ * "note" bibinfo.check |
| 527 |
} |
| 528 |
if$ |
| 529 |
} |
| 530 |
|
| 531 |
FUNCTION {format.misctitle} |
| 532 |
{ title |
| 533 |
duplicate$ empty$ 'skip$ |
| 534 |
{ "t" change.case$ } |
| 535 |
if$ |
| 536 |
"title" bibinfo.check |
| 537 |
duplicate$ empty$ 'skip$ |
| 538 |
{ |
| 539 |
"\emph{" swap$ * |
| 540 |
"}" * |
| 541 |
} |
| 542 |
if$ |
| 543 |
} |
| 544 |
FUNCTION {format.title} |
| 545 |
{ title |
| 546 |
duplicate$ empty$ 'skip$ |
| 547 |
{ "t" change.case$ } |
| 548 |
if$ |
| 549 |
"title" bibinfo.check |
| 550 |
duplicate$ empty$ 'skip$ |
| 551 |
{ |
| 552 |
"\enquote{" swap$ * |
| 553 |
"}" * |
| 554 |
} |
| 555 |
if$ |
| 556 |
} |
| 557 |
FUNCTION {format.titleaddon} |
| 558 |
{ |
| 559 |
titleaddon empty$ |
| 560 |
{ "" } |
| 561 |
{ titleaddon } |
| 562 |
if$ |
| 563 |
|
| 564 |
} |
| 565 |
|
| 566 |
FUNCTION {format.full.names} |
| 567 |
{'s := |
| 568 |
"" 't := |
| 569 |
#1 'nameptr := |
| 570 |
s num.names$ 'numnames := |
| 571 |
numnames 'namesleft := |
| 572 |
{ namesleft #0 > } |
| 573 |
{ s nameptr |
| 574 |
"{vv~}{ll}" format.name$ |
| 575 |
't := |
| 576 |
nameptr #1 > |
| 577 |
{ |
| 578 |
namesleft #1 > |
| 579 |
{ ", " * t * } |
| 580 |
{ |
| 581 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 582 |
{ 't := } |
| 583 |
{ pop$ } |
| 584 |
if$ |
| 585 |
t "others" = |
| 586 |
{ |
| 587 |
" " * bbl.etal emphasize * |
| 588 |
} |
| 589 |
{ |
| 590 |
bbl.and |
| 591 |
space.word * t * |
| 592 |
} |
| 593 |
if$ |
| 594 |
} |
| 595 |
if$ |
| 596 |
} |
| 597 |
't |
| 598 |
if$ |
| 599 |
nameptr #1 + 'nameptr := |
| 600 |
namesleft #1 - 'namesleft := |
| 601 |
} |
| 602 |
while$ |
| 603 |
} |
| 604 |
|
| 605 |
FUNCTION {author.editor.key.full} |
| 606 |
{ author empty$ |
| 607 |
{ editor empty$ |
| 608 |
{ key empty$ |
| 609 |
{ cite$ #1 #3 substring$ } |
| 610 |
'key |
| 611 |
if$ |
| 612 |
} |
| 613 |
{ editor format.full.names } |
| 614 |
if$ |
| 615 |
} |
| 616 |
{ author format.full.names } |
| 617 |
if$ |
| 618 |
} |
| 619 |
|
| 620 |
FUNCTION {author.key.full} |
| 621 |
{ author empty$ |
| 622 |
{ key empty$ |
| 623 |
{ cite$ #1 #3 substring$ } |
| 624 |
'key |
| 625 |
if$ |
| 626 |
} |
| 627 |
{ author format.full.names } |
| 628 |
if$ |
| 629 |
} |
| 630 |
|
| 631 |
FUNCTION {editor.key.full} |
| 632 |
{ editor empty$ |
| 633 |
{ key empty$ |
| 634 |
{ cite$ #1 #3 substring$ } |
| 635 |
'key |
| 636 |
if$ |
| 637 |
} |
| 638 |
{ editor format.full.names } |
| 639 |
if$ |
| 640 |
} |
| 641 |
|
| 642 |
FUNCTION {make.full.names} |
| 643 |
{ type$ "book" = |
| 644 |
type$ "inbook" = |
| 645 |
or |
| 646 |
'author.editor.key.full |
| 647 |
{ type$ "proceedings" = |
| 648 |
'editor.key.full |
| 649 |
'author.key.full |
| 650 |
if$ |
| 651 |
} |
| 652 |
if$ |
| 653 |
} |
| 654 |
|
| 655 |
FUNCTION {output.bibitem} |
| 656 |
{ newline$ |
| 657 |
"\bibitem[{" write$ |
| 658 |
label write$ |
| 659 |
")" make.full.names duplicate$ short.list = |
| 660 |
{ pop$ } |
| 661 |
{ * } |
| 662 |
if$ |
| 663 |
"}]{" * write$ |
| 664 |
cite$ write$ |
| 665 |
"}" write$ |
| 666 |
newline$ |
| 667 |
"" |
| 668 |
before.all 'output.state := |
| 669 |
} |
| 670 |
|
| 671 |
FUNCTION {n.dashify} |
| 672 |
{ |
| 673 |
't := |
| 674 |
"" |
| 675 |
{ t empty$ not } |
| 676 |
{ t #1 #1 substring$ "-" = |
| 677 |
{ t #1 #2 substring$ "--" = not |
| 678 |
{ "--" * |
| 679 |
t #2 global.max$ substring$ 't := |
| 680 |
} |
| 681 |
{ { t #1 #1 substring$ "-" = } |
| 682 |
{ "-" * |
| 683 |
t #2 global.max$ substring$ 't := |
| 684 |
} |
| 685 |
while$ |
| 686 |
} |
| 687 |
if$ |
| 688 |
} |
| 689 |
{ t #1 #1 substring$ * |
| 690 |
t #2 global.max$ substring$ 't := |
| 691 |
} |
| 692 |
if$ |
| 693 |
} |
| 694 |
while$ |
| 695 |
} |
| 696 |
|
| 697 |
FUNCTION {word.in} |
| 698 |
{ bbl.in capitalize |
| 699 |
" " * } |
| 700 |
|
| 701 |
FUNCTION {format.date} |
| 702 |
{ year "year" bibinfo.check duplicate$ empty$ |
| 703 |
{ |
| 704 |
"empty year in " cite$ * "; set to ????" * warning$ |
| 705 |
pop$ "????" |
| 706 |
} |
| 707 |
'skip$ |
| 708 |
if$ |
| 709 |
extra.label * |
| 710 |
before.all 'output.state := |
| 711 |
" (" swap$ * ")" * |
| 712 |
} |
| 713 |
FUNCTION {format.btitle} |
| 714 |
{ title "title" bibinfo.check |
| 715 |
duplicate$ empty$ 'skip$ |
| 716 |
{ |
| 717 |
emphasize |
| 718 |
} |
| 719 |
if$ |
| 720 |
} |
| 721 |
FUNCTION {either.or.check} |
| 722 |
{ empty$ |
| 723 |
'pop$ |
| 724 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 725 |
if$ |
| 726 |
} |
| 727 |
FUNCTION {format.bvolume} |
| 728 |
{ volume empty$ |
| 729 |
{ "" } |
| 730 |
{ bbl.volume volume tie.or.space.prefix |
| 731 |
"volume" bibinfo.check * * |
| 732 |
series "series" bibinfo.check |
| 733 |
duplicate$ empty$ 'pop$ |
| 734 |
{ emphasize ", " * swap$ * } |
| 735 |
if$ |
| 736 |
"volume and number" number either.or.check |
| 737 |
} |
| 738 |
if$ |
| 739 |
} |
| 740 |
FUNCTION {format.number.series} |
| 741 |
{ volume empty$ |
| 742 |
{ number empty$ |
| 743 |
{ series field.or.null } |
| 744 |
{ series empty$ |
| 745 |
{ number "number" bibinfo.check } |
| 746 |
{ output.state mid.sentence = |
| 747 |
{ bbl.number } |
| 748 |
{ bbl.number capitalize } |
| 749 |
if$ |
| 750 |
number tie.or.space.prefix "number" bibinfo.check * * |
| 751 |
bbl.in space.word * |
| 752 |
series "series" bibinfo.check * |
| 753 |
} |
| 754 |
if$ |
| 755 |
} |
| 756 |
if$ |
| 757 |
} |
| 758 |
{ "" } |
| 759 |
if$ |
| 760 |
} |
| 761 |
|
| 762 |
FUNCTION {format.edition} |
| 763 |
{ edition duplicate$ empty$ 'skip$ |
| 764 |
{ |
| 765 |
output.state mid.sentence = |
| 766 |
{ "l" } |
| 767 |
{ "t" } |
| 768 |
if$ change.case$ |
| 769 |
"edition" bibinfo.check |
| 770 |
" " * bbl.edition * |
| 771 |
} |
| 772 |
if$ |
| 773 |
} |
| 774 |
INTEGERS { multiresult } |
| 775 |
FUNCTION {multi.page.check} |
| 776 |
{ 't := |
| 777 |
#0 'multiresult := |
| 778 |
{ multiresult not |
| 779 |
t empty$ not |
| 780 |
and |
| 781 |
} |
| 782 |
{ t #1 #1 substring$ |
| 783 |
duplicate$ "-" = |
| 784 |
swap$ duplicate$ "," = |
| 785 |
swap$ "+" = |
| 786 |
or or |
| 787 |
{ #1 'multiresult := } |
| 788 |
{ t #2 global.max$ substring$ 't := } |
| 789 |
if$ |
| 790 |
} |
| 791 |
while$ |
| 792 |
multiresult |
| 793 |
} |
| 794 |
FUNCTION {format.pages} |
| 795 |
{ pages duplicate$ empty$ 'skip$ |
| 796 |
{ duplicate$ multi.page.check |
| 797 |
{ |
| 798 |
bbl.pages swap$ |
| 799 |
n.dashify |
| 800 |
} |
| 801 |
{ |
| 802 |
bbl.page swap$ |
| 803 |
} |
| 804 |
if$ |
| 805 |
tie.or.space.prefix |
| 806 |
"pages" bibinfo.check |
| 807 |
* * |
| 808 |
} |
| 809 |
if$ |
| 810 |
} |
| 811 |
FUNCTION {format.journal.pages} |
| 812 |
{ pages duplicate$ empty$ 'pop$ |
| 813 |
{ swap$ duplicate$ empty$ |
| 814 |
{ pop$ pop$ format.pages } |
| 815 |
{ |
| 816 |
", " * |
| 817 |
swap$ |
| 818 |
n.dashify |
| 819 |
pages multi.page.check |
| 820 |
'bbl.pages |
| 821 |
'bbl.page |
| 822 |
if$ |
| 823 |
swap$ tie.or.space.prefix |
| 824 |
"pages" bibinfo.check |
| 825 |
* * |
| 826 |
* |
| 827 |
} |
| 828 |
if$ |
| 829 |
} |
| 830 |
if$ |
| 831 |
} |
| 832 |
FUNCTION {format.journal.eid} |
| 833 |
{ eid "eid" bibinfo.check |
| 834 |
duplicate$ empty$ 'pop$ |
| 835 |
{ swap$ duplicate$ empty$ 'skip$ |
| 836 |
{ |
| 837 |
", " * |
| 838 |
} |
| 839 |
if$ |
| 840 |
swap$ * |
| 841 |
} |
| 842 |
if$ |
| 843 |
} |
| 844 |
FUNCTION {format.vol.num.pages} |
| 845 |
{ volume field.or.null |
| 846 |
duplicate$ empty$ 'skip$ |
| 847 |
{ |
| 848 |
"volume" bibinfo.check |
| 849 |
} |
| 850 |
if$ |
| 851 |
number "number" bibinfo.check duplicate$ empty$ 'skip$ |
| 852 |
{ |
| 853 |
swap$ duplicate$ empty$ |
| 854 |
{ "there's a number but no volume in " cite$ * warning$ } |
| 855 |
'skip$ |
| 856 |
if$ |
| 857 |
swap$ |
| 858 |
"(" swap$ * ")" * |
| 859 |
} |
| 860 |
if$ * |
| 861 |
} |
| 862 |
|
| 863 |
FUNCTION {format.chapter.pages} |
| 864 |
{ chapter empty$ |
| 865 |
{ "" } |
| 866 |
{ type empty$ |
| 867 |
{ bbl.chapter } |
| 868 |
{ type "l" change.case$ |
| 869 |
"type" bibinfo.check |
| 870 |
} |
| 871 |
if$ |
| 872 |
chapter tie.or.space.prefix |
| 873 |
"chapter" bibinfo.check |
| 874 |
* * |
| 875 |
} |
| 876 |
if$ |
| 877 |
} |
| 878 |
|
| 879 |
FUNCTION {format.booktitle} |
| 880 |
{ |
| 881 |
booktitle "booktitle" bibinfo.check |
| 882 |
emphasize |
| 883 |
} |
| 884 |
FUNCTION {format.in.ed.booktitle} |
| 885 |
{ format.booktitle duplicate$ empty$ 'skip$ |
| 886 |
{ |
| 887 |
format.bvolume duplicate$ empty$ 'pop$ |
| 888 |
{ ", " swap$ * * } |
| 889 |
if$ |
| 890 |
editor "editor" format.names.ed duplicate$ empty$ 'pop$ |
| 891 |
{ |
| 892 |
"," * |
| 893 |
" " * |
| 894 |
get.bbl.editor |
| 895 |
"(" swap$ * ") " * |
| 896 |
* swap$ |
| 897 |
* } |
| 898 |
if$ |
| 899 |
word.in swap$ * |
| 900 |
} |
| 901 |
if$ |
| 902 |
} |
| 903 |
FUNCTION {format.thesis.type} |
| 904 |
{ type duplicate$ empty$ |
| 905 |
'pop$ |
| 906 |
{ swap$ pop$ |
| 907 |
"t" change.case$ "type" bibinfo.check |
| 908 |
} |
| 909 |
if$ |
| 910 |
} |
| 911 |
FUNCTION {format.tr.number} |
| 912 |
{ number "number" bibinfo.check |
| 913 |
type duplicate$ empty$ |
| 914 |
{ pop$ bbl.techrep } |
| 915 |
'skip$ |
| 916 |
if$ |
| 917 |
"type" bibinfo.check |
| 918 |
swap$ duplicate$ empty$ |
| 919 |
{ pop$ "t" change.case$ } |
| 920 |
{ tie.or.space.prefix * * } |
| 921 |
if$ |
| 922 |
} |
| 923 |
FUNCTION {format.article.crossref} |
| 924 |
{ |
| 925 |
word.in |
| 926 |
" \cite{" * crossref * "}" * |
| 927 |
} |
| 928 |
FUNCTION {format.book.crossref} |
| 929 |
{ volume duplicate$ empty$ |
| 930 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 931 |
pop$ word.in |
| 932 |
} |
| 933 |
{ bbl.volume |
| 934 |
capitalize |
| 935 |
swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word * |
| 936 |
} |
| 937 |
if$ |
| 938 |
" \cite{" * crossref * "}" * |
| 939 |
} |
| 940 |
FUNCTION {format.incoll.inproc.crossref} |
| 941 |
{ |
| 942 |
word.in |
| 943 |
" \cite{" * crossref * "}" * |
| 944 |
} |
| 945 |
FUNCTION {format.org.or.pub} |
| 946 |
{ 't := |
| 947 |
"" |
| 948 |
address empty$ t empty$ and |
| 949 |
'skip$ |
| 950 |
{ |
| 951 |
address "address" bibinfo.check * |
| 952 |
t empty$ |
| 953 |
'skip$ |
| 954 |
{ address empty$ |
| 955 |
'skip$ |
| 956 |
{ ": " * } |
| 957 |
if$ |
| 958 |
t * |
| 959 |
} |
| 960 |
if$ |
| 961 |
} |
| 962 |
if$ |
| 963 |
} |
| 964 |
FUNCTION {format.publisher.address} |
| 965 |
{ publisher "publisher" bibinfo.warn format.org.or.pub |
| 966 |
} |
| 967 |
|
| 968 |
FUNCTION {format.organization.address} |
| 969 |
{ organization "organization" bibinfo.check format.org.or.pub |
| 970 |
} |
| 971 |
|
| 972 |
FUNCTION {article} |
| 973 |
{ output.bibitem |
| 974 |
format.authors "author" output.check |
| 975 |
author format.key output |
| 976 |
format.date "year" output.check |
| 977 |
date.block |
| 978 |
format.title "title" output.check |
| 979 |
new.block |
| 980 |
crossref missing$ |
| 981 |
{ |
| 982 |
journal |
| 983 |
"journal" bibinfo.check |
| 984 |
emphasize |
| 985 |
"journal" output.check |
| 986 |
format.vol.num.pages output |
| 987 |
} |
| 988 |
{ format.article.crossref output.nonnull |
| 989 |
} |
| 990 |
if$ |
| 991 |
eid empty$ |
| 992 |
{ format.journal.pages } |
| 993 |
{ format.journal.eid } |
| 994 |
if$ |
| 995 |
format.doi output |
| 996 |
new.block |
| 997 |
format.url output |
| 998 |
new.block |
| 999 |
format.note output |
| 1000 |
fin.entry |
| 1001 |
} |
| 1002 |
FUNCTION {book} |
| 1003 |
{ output.bibitem |
| 1004 |
author empty$ |
| 1005 |
{ format.editors "author and editor" output.check |
| 1006 |
editor format.key output |
| 1007 |
add.blank |
| 1008 |
} |
| 1009 |
{ format.authors output.nonnull |
| 1010 |
crossref missing$ |
| 1011 |
{ "author and editor" editor either.or.check } |
| 1012 |
'skip$ |
| 1013 |
if$ |
| 1014 |
} |
| 1015 |
if$ |
| 1016 |
format.date "year" output.check |
| 1017 |
date.block |
| 1018 |
format.btitle "title" output.check |
| 1019 |
crossref missing$ |
| 1020 |
{ format.bvolume output |
| 1021 |
new.block |
| 1022 |
format.number.series output |
| 1023 |
format.edition output |
| 1024 |
new.sentence |
| 1025 |
format.publisher.address output |
| 1026 |
} |
| 1027 |
{ |
| 1028 |
new.block |
| 1029 |
format.book.crossref output.nonnull |
| 1030 |
} |
| 1031 |
if$ |
| 1032 |
format.doi output |
| 1033 |
new.block |
| 1034 |
format.url output |
| 1035 |
new.block |
| 1036 |
format.note output |
| 1037 |
fin.entry |
| 1038 |
} |
| 1039 |
FUNCTION {booklet} |
| 1040 |
{ output.bibitem |
| 1041 |
format.authors output |
| 1042 |
author format.key output |
| 1043 |
format.date "year" output.check |
| 1044 |
date.block |
| 1045 |
format.title "title" output.check |
| 1046 |
new.block |
| 1047 |
howpublished "howpublished" bibinfo.check output |
| 1048 |
address "address" bibinfo.check output |
| 1049 |
format.doi output |
| 1050 |
new.block |
| 1051 |
format.url output |
| 1052 |
new.block |
| 1053 |
format.note output |
| 1054 |
fin.entry |
| 1055 |
} |
| 1056 |
|
| 1057 |
FUNCTION {inbook} |
| 1058 |
{ output.bibitem |
| 1059 |
author empty$ |
| 1060 |
{ format.editors "author and editor" output.check |
| 1061 |
editor format.key output |
| 1062 |
} |
| 1063 |
{ format.authors output.nonnull |
| 1064 |
crossref missing$ |
| 1065 |
{ "author and editor" editor either.or.check } |
| 1066 |
'skip$ |
| 1067 |
if$ |
| 1068 |
} |
| 1069 |
if$ |
| 1070 |
format.date "year" output.check |
| 1071 |
date.block |
| 1072 |
format.btitle "title" output.check |
| 1073 |
crossref missing$ |
| 1074 |
{ |
| 1075 |
format.bvolume output |
| 1076 |
format.chapter.pages "chapter and pages" output.check |
| 1077 |
new.block |
| 1078 |
format.number.series output |
| 1079 |
format.edition output |
| 1080 |
new.sentence |
| 1081 |
format.publisher.address output |
| 1082 |
} |
| 1083 |
{ |
| 1084 |
format.chapter.pages "chapter and pages" output.check |
| 1085 |
new.block |
| 1086 |
format.book.crossref output.nonnull |
| 1087 |
} |
| 1088 |
if$ |
| 1089 |
format.pages "pages" output.check |
| 1090 |
format.doi output |
| 1091 |
new.block |
| 1092 |
format.url output |
| 1093 |
new.block |
| 1094 |
format.note output |
| 1095 |
fin.entry |
| 1096 |
} |
| 1097 |
|
| 1098 |
FUNCTION {incollection} |
| 1099 |
{ output.bibitem |
| 1100 |
format.authors "author" output.check |
| 1101 |
author format.key output |
| 1102 |
format.date "year" output.check |
| 1103 |
date.block |
| 1104 |
format.title "title" output.check |
| 1105 |
new.block |
| 1106 |
crossref missing$ |
| 1107 |
{ format.in.ed.booktitle "booktitle" output.check |
| 1108 |
format.number.series output |
| 1109 |
format.edition output |
| 1110 |
format.chapter.pages output |
| 1111 |
new.sentence |
| 1112 |
format.publisher.address output |
| 1113 |
} |
| 1114 |
{ format.incoll.inproc.crossref output.nonnull |
| 1115 |
format.chapter.pages output |
| 1116 |
} |
| 1117 |
if$ |
| 1118 |
format.pages "pages" output.check |
| 1119 |
format.doi output |
| 1120 |
new.block |
| 1121 |
format.url output |
| 1122 |
new.block |
| 1123 |
format.note output |
| 1124 |
fin.entry |
| 1125 |
} |
| 1126 |
FUNCTION {inproceedings} |
| 1127 |
{ output.bibitem |
| 1128 |
format.authors "author" output.check |
| 1129 |
author format.key output |
| 1130 |
format.date "year" output.check |
| 1131 |
date.block |
| 1132 |
format.title "title" output.check |
| 1133 |
new.block |
| 1134 |
crossref missing$ |
| 1135 |
{ format.in.ed.booktitle "booktitle" output.check |
| 1136 |
format.number.series output |
| 1137 |
new.sentence |
| 1138 |
publisher empty$ |
| 1139 |
{ format.organization.address output } |
| 1140 |
{ organization "organization" bibinfo.check output |
| 1141 |
format.publisher.address output |
| 1142 |
} |
| 1143 |
if$ |
| 1144 |
} |
| 1145 |
{ format.incoll.inproc.crossref output.nonnull |
| 1146 |
} |
| 1147 |
if$ |
| 1148 |
format.pages "pages" output.check |
| 1149 |
format.doi output |
| 1150 |
new.block |
| 1151 |
format.url output |
| 1152 |
new.block |
| 1153 |
format.note output |
| 1154 |
fin.entry |
| 1155 |
} |
| 1156 |
FUNCTION {conference} { inproceedings } |
| 1157 |
FUNCTION {manual} |
| 1158 |
{ output.bibitem |
| 1159 |
format.authors output |
| 1160 |
author format.key output |
| 1161 |
format.date "year" output.check |
| 1162 |
date.block |
| 1163 |
format.btitle "title" output.check |
| 1164 |
organization address new.block.checkb |
| 1165 |
organization "organization" bibinfo.check output |
| 1166 |
address "address" bibinfo.check output |
| 1167 |
format.edition output |
| 1168 |
format.doi output |
| 1169 |
new.block |
| 1170 |
format.url output |
| 1171 |
new.block |
| 1172 |
format.note output |
| 1173 |
fin.entry |
| 1174 |
} |
| 1175 |
|
| 1176 |
FUNCTION {mastersthesis} |
| 1177 |
{ output.bibitem |
| 1178 |
format.authors "author" output.check |
| 1179 |
author format.key output |
| 1180 |
format.date "year" output.check |
| 1181 |
date.block |
| 1182 |
format.btitle |
| 1183 |
"title" output.check |
| 1184 |
new.block |
| 1185 |
bbl.mthesis format.thesis.type output.nonnull |
| 1186 |
school "school" bibinfo.warn output |
| 1187 |
address "address" bibinfo.check output |
| 1188 |
format.doi output |
| 1189 |
new.block |
| 1190 |
format.url output |
| 1191 |
new.block |
| 1192 |
format.note output |
| 1193 |
fin.entry |
| 1194 |
} |
| 1195 |
|
| 1196 |
FUNCTION {misc} |
| 1197 |
{ output.bibitem |
| 1198 |
format.authors output |
| 1199 |
author format.key output |
| 1200 |
format.date "year" output.check |
| 1201 |
date.block |
| 1202 |
format.misctitle output |
| 1203 |
format.titleaddon output |
| 1204 |
new.block |
| 1205 |
howpublished "howpublished" bibinfo.check output |
| 1206 |
format.doi output |
| 1207 |
new.block |
| 1208 |
format.url output |
| 1209 |
new.block |
| 1210 |
format.urldate output |
| 1211 |
new.block |
| 1212 |
format.note output |
| 1213 |
fin.entry |
| 1214 |
} |
| 1215 |
FUNCTION {phdthesis} |
| 1216 |
{ output.bibitem |
| 1217 |
format.authors "author" output.check |
| 1218 |
author format.key output |
| 1219 |
format.date "year" output.check |
| 1220 |
date.block |
| 1221 |
format.btitle |
| 1222 |
"title" output.check |
| 1223 |
new.block |
| 1224 |
bbl.phdthesis format.thesis.type output.nonnull |
| 1225 |
school "school" bibinfo.warn output |
| 1226 |
address "address" bibinfo.check output |
| 1227 |
format.doi output |
| 1228 |
new.block |
| 1229 |
format.url output |
| 1230 |
new.block |
| 1231 |
format.note output |
| 1232 |
fin.entry |
| 1233 |
} |
| 1234 |
|
| 1235 |
FUNCTION {proceedings} |
| 1236 |
{ output.bibitem |
| 1237 |
format.editors output |
| 1238 |
editor format.key output |
| 1239 |
format.date "year" output.check |
| 1240 |
date.block |
| 1241 |
format.btitle "title" output.check |
| 1242 |
format.bvolume output |
| 1243 |
format.number.series output |
| 1244 |
new.sentence |
| 1245 |
publisher empty$ |
| 1246 |
{ format.organization.address output } |
| 1247 |
{ organization "organization" bibinfo.check output |
| 1248 |
format.publisher.address output |
| 1249 |
} |
| 1250 |
if$ |
| 1251 |
format.doi output |
| 1252 |
new.block |
| 1253 |
format.url output |
| 1254 |
new.block |
| 1255 |
format.note output |
| 1256 |
fin.entry |
| 1257 |
} |
| 1258 |
|
| 1259 |
FUNCTION {techreport} |
| 1260 |
{ output.bibitem |
| 1261 |
format.authors "author" output.check |
| 1262 |
author format.key output |
| 1263 |
format.date "year" output.check |
| 1264 |
date.block |
| 1265 |
format.title |
| 1266 |
"title" output.check |
| 1267 |
new.block |
| 1268 |
format.tr.number output.nonnull |
| 1269 |
institution "institution" bibinfo.warn output |
| 1270 |
address "address" bibinfo.check output |
| 1271 |
format.doi output |
| 1272 |
new.block |
| 1273 |
format.url output |
| 1274 |
new.block |
| 1275 |
format.note output |
| 1276 |
fin.entry |
| 1277 |
} |
| 1278 |
|
| 1279 |
FUNCTION {unpublished} |
| 1280 |
{ output.bibitem |
| 1281 |
format.authors "author" output.check |
| 1282 |
author format.key output |
| 1283 |
format.date "year" output.check |
| 1284 |
date.block |
| 1285 |
format.title "title" output.check |
| 1286 |
format.doi output |
| 1287 |
new.block |
| 1288 |
format.url output |
| 1289 |
new.block |
| 1290 |
format.note "note" output.check |
| 1291 |
fin.entry |
| 1292 |
} |
| 1293 |
|
| 1294 |
FUNCTION {default.type} { misc } |
| 1295 |
READ |
| 1296 |
FUNCTION {sortify} |
| 1297 |
{ purify$ |
| 1298 |
"l" change.case$ |
| 1299 |
} |
| 1300 |
INTEGERS { len } |
| 1301 |
FUNCTION {chop.word} |
| 1302 |
{ 's := |
| 1303 |
'len := |
| 1304 |
s #1 len substring$ = |
| 1305 |
{ s len #1 + global.max$ substring$ } |
| 1306 |
's |
| 1307 |
if$ |
| 1308 |
} |
| 1309 |
FUNCTION {format.lab.names} |
| 1310 |
{ 's := |
| 1311 |
"" 't := |
| 1312 |
s #1 "{vv~}{ll}" format.name$ |
| 1313 |
s num.names$ duplicate$ |
| 1314 |
#2 > |
| 1315 |
{ pop$ |
| 1316 |
" " * bbl.etal emphasize * |
| 1317 |
} |
| 1318 |
{ #2 < |
| 1319 |
'skip$ |
| 1320 |
{ s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 1321 |
{ |
| 1322 |
" " * bbl.etal emphasize * |
| 1323 |
} |
| 1324 |
{ bbl.and space.word * s #2 "{vv~}{ll}" format.name$ |
| 1325 |
* } |
| 1326 |
if$ |
| 1327 |
} |
| 1328 |
if$ |
| 1329 |
} |
| 1330 |
if$ |
| 1331 |
} |
| 1332 |
|
| 1333 |
FUNCTION {author.key.label} |
| 1334 |
{ author empty$ |
| 1335 |
{ key empty$ |
| 1336 |
{ cite$ #1 #3 substring$ } |
| 1337 |
'key |
| 1338 |
if$ |
| 1339 |
} |
| 1340 |
{ author format.lab.names } |
| 1341 |
if$ |
| 1342 |
} |
| 1343 |
|
| 1344 |
FUNCTION {author.editor.key.label} |
| 1345 |
{ author empty$ |
| 1346 |
{ editor empty$ |
| 1347 |
{ key empty$ |
| 1348 |
{ cite$ #1 #3 substring$ } |
| 1349 |
'key |
| 1350 |
if$ |
| 1351 |
} |
| 1352 |
{ editor format.lab.names } |
| 1353 |
if$ |
| 1354 |
} |
| 1355 |
{ author format.lab.names } |
| 1356 |
if$ |
| 1357 |
} |
| 1358 |
|
| 1359 |
FUNCTION {editor.key.label} |
| 1360 |
{ editor empty$ |
| 1361 |
{ key empty$ |
| 1362 |
{ cite$ #1 #3 substring$ } |
| 1363 |
'key |
| 1364 |
if$ |
| 1365 |
} |
| 1366 |
{ editor format.lab.names } |
| 1367 |
if$ |
| 1368 |
} |
| 1369 |
|
| 1370 |
FUNCTION {calc.short.authors} |
| 1371 |
{ type$ "book" = |
| 1372 |
type$ "inbook" = |
| 1373 |
or |
| 1374 |
'author.editor.key.label |
| 1375 |
{ type$ "proceedings" = |
| 1376 |
'editor.key.label |
| 1377 |
'author.key.label |
| 1378 |
if$ |
| 1379 |
} |
| 1380 |
if$ |
| 1381 |
'short.list := |
| 1382 |
} |
| 1383 |
|
| 1384 |
FUNCTION {calc.label} |
| 1385 |
{ calc.short.authors |
| 1386 |
short.list |
| 1387 |
"(" |
| 1388 |
* |
| 1389 |
year duplicate$ empty$ |
| 1390 |
short.list key field.or.null = or |
| 1391 |
{ pop$ "" } |
| 1392 |
'skip$ |
| 1393 |
if$ |
| 1394 |
* |
| 1395 |
'label := |
| 1396 |
} |
| 1397 |
|
| 1398 |
FUNCTION {sort.format.names} |
| 1399 |
{ 's := |
| 1400 |
#1 'nameptr := |
| 1401 |
"" |
| 1402 |
s num.names$ 'numnames := |
| 1403 |
numnames 'namesleft := |
| 1404 |
{ namesleft #0 > } |
| 1405 |
{ s nameptr |
| 1406 |
"{ll{ }}{ f{ }}{ jj{ }}" |
| 1407 |
format.name$ 't := |
| 1408 |
nameptr #1 > |
| 1409 |
{ |
| 1410 |
" " * |
| 1411 |
namesleft #1 = t "others" = and |
| 1412 |
{ "zzzzz" 't := } |
| 1413 |
'skip$ |
| 1414 |
if$ |
| 1415 |
t sortify * |
| 1416 |
} |
| 1417 |
{ t sortify * } |
| 1418 |
if$ |
| 1419 |
nameptr #1 + 'nameptr := |
| 1420 |
namesleft #1 - 'namesleft := |
| 1421 |
} |
| 1422 |
while$ |
| 1423 |
} |
| 1424 |
|
| 1425 |
FUNCTION {sort.format.title} |
| 1426 |
{ 't := |
| 1427 |
"A " #2 |
| 1428 |
"An " #3 |
| 1429 |
"The " #4 t chop.word |
| 1430 |
chop.word |
| 1431 |
chop.word |
| 1432 |
sortify |
| 1433 |
#1 global.max$ substring$ |
| 1434 |
} |
| 1435 |
FUNCTION {author.sort} |
| 1436 |
{ author empty$ |
| 1437 |
{ key empty$ |
| 1438 |
{ "to sort, need author or key in " cite$ * warning$ |
| 1439 |
"" |
| 1440 |
} |
| 1441 |
{ key sortify } |
| 1442 |
if$ |
| 1443 |
} |
| 1444 |
{ author sort.format.names } |
| 1445 |
if$ |
| 1446 |
} |
| 1447 |
FUNCTION {author.editor.sort} |
| 1448 |
{ author empty$ |
| 1449 |
{ editor empty$ |
| 1450 |
{ key empty$ |
| 1451 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 1452 |
"" |
| 1453 |
} |
| 1454 |
{ key sortify } |
| 1455 |
if$ |
| 1456 |
} |
| 1457 |
{ editor sort.format.names } |
| 1458 |
if$ |
| 1459 |
} |
| 1460 |
{ author sort.format.names } |
| 1461 |
if$ |
| 1462 |
} |
| 1463 |
FUNCTION {editor.sort} |
| 1464 |
{ editor empty$ |
| 1465 |
{ key empty$ |
| 1466 |
{ "to sort, need editor or key in " cite$ * warning$ |
| 1467 |
"" |
| 1468 |
} |
| 1469 |
{ key sortify } |
| 1470 |
if$ |
| 1471 |
} |
| 1472 |
{ editor sort.format.names } |
| 1473 |
if$ |
| 1474 |
} |
| 1475 |
FUNCTION {presort} |
| 1476 |
{ calc.label |
| 1477 |
label sortify |
| 1478 |
" " |
| 1479 |
* |
| 1480 |
type$ "book" = |
| 1481 |
type$ "inbook" = |
| 1482 |
or |
| 1483 |
'author.editor.sort |
| 1484 |
{ type$ "proceedings" = |
| 1485 |
'editor.sort |
| 1486 |
'author.sort |
| 1487 |
if$ |
| 1488 |
} |
| 1489 |
if$ |
| 1490 |
#1 entry.max$ substring$ |
| 1491 |
'sort.label := |
| 1492 |
sort.label |
| 1493 |
* |
| 1494 |
" " |
| 1495 |
* |
| 1496 |
title field.or.null |
| 1497 |
sort.format.title |
| 1498 |
* |
| 1499 |
#1 entry.max$ substring$ |
| 1500 |
'sort.key$ := |
| 1501 |
} |
| 1502 |
|
| 1503 |
ITERATE {presort} |
| 1504 |
SORT |
| 1505 |
STRINGS { last.label next.extra } |
| 1506 |
INTEGERS { last.extra.num last.extra.num.extended last.extra.num.blank number.label } |
| 1507 |
FUNCTION {initialize.extra.label.stuff} |
| 1508 |
{ #0 int.to.chr$ 'last.label := |
| 1509 |
"" 'next.extra := |
| 1510 |
#0 'last.extra.num := |
| 1511 |
"a" chr.to.int$ #1 - 'last.extra.num.blank := |
| 1512 |
last.extra.num.blank 'last.extra.num.extended := |
| 1513 |
#0 'number.label := |
| 1514 |
} |
| 1515 |
FUNCTION {forward.pass} |
| 1516 |
{ last.label label = |
| 1517 |
{ last.extra.num #1 + 'last.extra.num := |
| 1518 |
last.extra.num "z" chr.to.int$ > |
| 1519 |
{ "a" chr.to.int$ 'last.extra.num := |
| 1520 |
last.extra.num.extended #1 + 'last.extra.num.extended := |
| 1521 |
} |
| 1522 |
'skip$ |
| 1523 |
if$ |
| 1524 |
last.extra.num.extended last.extra.num.blank > |
| 1525 |
{ last.extra.num.extended int.to.chr$ |
| 1526 |
last.extra.num int.to.chr$ |
| 1527 |
* 'extra.label := } |
| 1528 |
{ last.extra.num int.to.chr$ 'extra.label := } |
| 1529 |
if$ |
| 1530 |
} |
| 1531 |
{ "a" chr.to.int$ 'last.extra.num := |
| 1532 |
"" 'extra.label := |
| 1533 |
label 'last.label := |
| 1534 |
} |
| 1535 |
if$ |
| 1536 |
number.label #1 + 'number.label := |
| 1537 |
} |
| 1538 |
FUNCTION {reverse.pass} |
| 1539 |
{ next.extra "b" = |
| 1540 |
{ "a" 'extra.label := } |
| 1541 |
'skip$ |
| 1542 |
if$ |
| 1543 |
extra.label 'next.extra := |
| 1544 |
extra.label |
| 1545 |
duplicate$ empty$ |
| 1546 |
'skip$ |
| 1547 |
{ "{\natexlab{" swap$ * "}}" * } |
| 1548 |
if$ |
| 1549 |
'extra.label := |
| 1550 |
label extra.label * 'label := |
| 1551 |
} |
| 1552 |
EXECUTE {initialize.extra.label.stuff} |
| 1553 |
ITERATE {forward.pass} |
| 1554 |
REVERSE {reverse.pass} |
| 1555 |
FUNCTION {bib.sort.order} |
| 1556 |
{ sort.label |
| 1557 |
" " |
| 1558 |
* |
| 1559 |
year field.or.null sortify |
| 1560 |
* |
| 1561 |
" " |
| 1562 |
* |
| 1563 |
title field.or.null |
| 1564 |
sort.format.title |
| 1565 |
* |
| 1566 |
#1 entry.max$ substring$ |
| 1567 |
'sort.key$ := |
| 1568 |
} |
| 1569 |
ITERATE {bib.sort.order} |
| 1570 |
SORT |
| 1571 |
FUNCTION {begin.bib} |
| 1572 |
{ preamble$ empty$ |
| 1573 |
'skip$ |
| 1574 |
{ preamble$ write$ newline$ } |
| 1575 |
if$ |
| 1576 |
"\begin{thebibliography}{" number.label int.to.str$ * "}" * |
| 1577 |
write$ newline$ |
| 1578 |
"\newcommand{\enquote}[1]{`#1'}" |
| 1579 |
write$ newline$ |
| 1580 |
"\providecommand{\natexlab}[1]{#1}" |
| 1581 |
write$ newline$ |
| 1582 |
"\providecommand{\url}[1]{\texttt{#1}}" |
| 1583 |
write$ newline$ |
| 1584 |
"\providecommand{\urlprefix}{ Available at: }" |
| 1585 |
write$ newline$ |
| 1586 |
"\expandafter\ifx\csname urlstyle\endcsname\relax" |
| 1587 |
write$ newline$ |
| 1588 |
" \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else" |
| 1589 |
write$ newline$ |
| 1590 |
" \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi" |
| 1591 |
write$ newline$ |
| 1592 |
} |
| 1593 |
EXECUTE {begin.bib} |
| 1594 |
EXECUTE {init.state.consts} |
| 1595 |
ITERATE {call.type$} |
| 1596 |
FUNCTION {end.bib} |
| 1597 |
{ newline$ |
| 1598 |
"\end{thebibliography}" write$ newline$ |
| 1599 |
} |
| 1600 |
EXECUTE {end.bib} |
| 1601 |
%% End of customized bst file |
| 1602 |
%% |
| 1603 |
%% End of file `newcastle.bst'. |