| 1 |
%%% -*-BibTeX-*- |
| 2 |
%%% ==================================================================== |
| 3 |
%%% @BibTeX-style-file{ |
| 4 |
%%% author = "Nelson H. F. Beebe, Boris Veytsman and Gerald Murray", |
| 5 |
%%% version = "2.1", |
| 6 |
%%% acmart-version = "1.90", |
| 7 |
%%% date = "Mar 26 2023", |
| 8 |
%%% filename = "ACM-Reference-Format.bst", |
| 9 |
%%% email = "[email protected], [email protected]", |
| 10 |
%%% codetable = "ISO/ASCII", |
| 11 |
%%% keywords = "ACM Transactions bibliography style; BibTeX", |
| 12 |
%%% license = "public domain", |
| 13 |
%%% supported = "yes", |
| 14 |
%%% abstract = "", |
| 15 |
%%% } |
| 16 |
%%% ==================================================================== |
| 17 |
|
| 18 |
%%% Revision history: see source in git |
| 19 |
|
| 20 |
ENTRY |
| 21 |
{ address |
| 22 |
advisor |
| 23 |
archiveprefix |
| 24 |
author |
| 25 |
booktitle |
| 26 |
chapter |
| 27 |
city |
| 28 |
date |
| 29 |
edition |
| 30 |
editor |
| 31 |
eprint |
| 32 |
eprinttype |
| 33 |
eprintclass |
| 34 |
howpublished |
| 35 |
institution |
| 36 |
journal |
| 37 |
key |
| 38 |
location |
| 39 |
month |
| 40 |
note |
| 41 |
number |
| 42 |
organization |
| 43 |
pages |
| 44 |
primaryclass |
| 45 |
publisher |
| 46 |
school |
| 47 |
series |
| 48 |
title |
| 49 |
type |
| 50 |
volume |
| 51 |
year |
| 52 |
% New keys recognized |
| 53 |
issue % UTAH: used in, e.g., ACM SIGSAM Bulletin and ACM Communications in Computer Algebra |
| 54 |
articleno |
| 55 |
eid |
| 56 |
day % UTAH: needed for newspapers, weeklies, bi-weeklies |
| 57 |
doi % UTAH |
| 58 |
url % UTAH |
| 59 |
bookpages % UTAH |
| 60 |
numpages |
| 61 |
lastaccessed % UTAH: used only for @Misc{...} |
| 62 |
coden % UTAH |
| 63 |
isbn % UTAH |
| 64 |
isbn-13 % UTAH |
| 65 |
issn % UTAH |
| 66 |
lccn % UTAH |
| 67 |
distinctURL % whether to print url if doi is present |
| 68 |
archived % Where the url is archived |
| 69 |
venue % for presentations |
| 70 |
} |
| 71 |
{} |
| 72 |
{ label.year extra.label sort.year sort.label basic.label.year} |
| 73 |
|
| 74 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 75 |
|
| 76 |
INTEGERS { show-isbn-10-and-13 } % initialized below in begin.bib |
| 77 |
|
| 78 |
INTEGERS { nameptr namesleft numnames } |
| 79 |
|
| 80 |
INTEGERS { multiresult } |
| 81 |
|
| 82 |
INTEGERS { len } |
| 83 |
|
| 84 |
INTEGERS { last.extra.num } |
| 85 |
|
| 86 |
STRINGS { s t t.org u } |
| 87 |
|
| 88 |
STRINGS { last.label next.extra } |
| 89 |
|
| 90 |
STRINGS { p1 p2 p3 page.count } |
| 91 |
|
| 92 |
|
| 93 |
FUNCTION { not } |
| 94 |
{ |
| 95 |
{ #0 } |
| 96 |
{ #1 } |
| 97 |
if$ |
| 98 |
} |
| 99 |
|
| 100 |
FUNCTION { and } |
| 101 |
{ |
| 102 |
'skip$ |
| 103 |
{ pop$ #0 } |
| 104 |
if$ |
| 105 |
} |
| 106 |
|
| 107 |
FUNCTION { or } |
| 108 |
{ |
| 109 |
{ pop$ #1 } |
| 110 |
'skip$ |
| 111 |
if$ |
| 112 |
} |
| 113 |
|
| 114 |
|
| 115 |
FUNCTION { dump.stack.1 } |
| 116 |
{ |
| 117 |
duplicate$ "STACK[top] = [" swap$ * "]" * warning$ |
| 118 |
} |
| 119 |
|
| 120 |
FUNCTION { dump.stack.2 } |
| 121 |
{ |
| 122 |
duplicate$ "STACK[top ] = [" swap$ * "]" * warning$ |
| 123 |
swap$ |
| 124 |
duplicate$ "STACK[top-1] = [" swap$ * "]" * warning$ |
| 125 |
swap$ |
| 126 |
} |
| 127 |
|
| 128 |
FUNCTION { empty.or.unknown } |
| 129 |
{ |
| 130 |
%% Examine the top stack entry, and push 1 if it is empty, or |
| 131 |
%% consists only of whitespace, or is a string beginning with two |
| 132 |
%% queries (??), and otherwise, push 0. |
| 133 |
%% |
| 134 |
%% This function provides a replacement for empty$, with the |
| 135 |
%% convenient feature that unknown values marked by two leading |
| 136 |
%% queries are treated the same as missing values, and thus, do not |
| 137 |
%% appear in the output .bbl file, and yet, their presence in .bib |
| 138 |
%% file(s) serves to mark values which are temporarily missing, but |
| 139 |
%% are expected to be filled in eventually once more data is |
| 140 |
%% obtained. The TeX User Group and BibNet bibliography archives |
| 141 |
%% make extensive use of this practice. |
| 142 |
%% |
| 143 |
%% An empty string cannot serve the same purpose, because just as in |
| 144 |
%% statistics data processing, an unknown value is not the same as an |
| 145 |
%% empty value. |
| 146 |
%% |
| 147 |
%% At entry: stack = ... top:[string] |
| 148 |
%% At exit: stack = ... top:[0 or 1] |
| 149 |
|
| 150 |
duplicate$ empty$ |
| 151 |
{ pop$ #1 } |
| 152 |
{ #1 #2 substring$ "??" = } |
| 153 |
if$ |
| 154 |
} |
| 155 |
|
| 156 |
FUNCTION { empty.or.zero } |
| 157 |
{ |
| 158 |
%% Examine the top entry and push 1 if it is empty, or is zero |
| 159 |
duplicate$ empty$ |
| 160 |
{ pop$ #1 } |
| 161 |
{ "0" = } |
| 162 |
if$ |
| 163 |
} |
| 164 |
|
| 165 |
|
| 166 |
FUNCTION { writeln } |
| 167 |
{ |
| 168 |
%% In BibTeX style files, the sequences |
| 169 |
%% |
| 170 |
%% ... "one" "two" output |
| 171 |
%% ... "one" "two" output.xxx |
| 172 |
%% |
| 173 |
%% ship "one" to the output file, possibly following by punctuation, |
| 174 |
%% leaving the stack with |
| 175 |
%% |
| 176 |
%% ... "two" |
| 177 |
%% |
| 178 |
%% There is thus a one-string lag in output processing that must be |
| 179 |
%% carefully handled to avoid duplicating a string in the output |
| 180 |
%% file. Unless otherwise noted, all output.xxx functions leave |
| 181 |
%% just one new string on the stack, and that model should be born |
| 182 |
%% in mind when reading or writing function code. |
| 183 |
%% |
| 184 |
%% BibTeX's asynchronous buffering of output from strings from the |
| 185 |
%% stack is confusing because newline$ bypasses the buffer. It |
| 186 |
%% would have been so much easier for newline to be a character |
| 187 |
%% rather than a state of the output-in-progress. |
| 188 |
%% |
| 189 |
%% The documentation in btxhak.dvi is WRONG: it says |
| 190 |
%% |
| 191 |
%% newline$ Writes onto the bbl file what's accumulated in the |
| 192 |
%% output buffer. It writes a blank line if and only |
| 193 |
%% if the output buffer is empty. Since write$ does |
| 194 |
%% reasonable line breaking, you should use this |
| 195 |
%% function only when you want a blank line or an |
| 196 |
%% explicit line break. |
| 197 |
%% |
| 198 |
%% write$ Pops the top (string) literal and writes it on the |
| 199 |
%% output buffer (which will result in stuff being |
| 200 |
%% written onto the bbl file when the buffer fills |
| 201 |
%% up). |
| 202 |
%% |
| 203 |
%% Examination of the BibTeX source code shows that write$ does |
| 204 |
%% indeed behave as claimed, but newline$ sends a newline character |
| 205 |
%% directly to the output file, leaving the stack unchanged. The |
| 206 |
%% first line "Writes onto ... buffer." is therefore wrong. |
| 207 |
%% |
| 208 |
%% The original BibTeX style files almost always use "write$ newline$" |
| 209 |
%% in that order, so it makes sense to hide that pair in a private |
| 210 |
%% function like this one, named after a statement in Pascal, |
| 211 |
%% the programming language embedded in the BibTeX Web program. |
| 212 |
|
| 213 |
write$ % output top-of-stack string |
| 214 |
newline$ % immediate write of newline (not via stack) |
| 215 |
} |
| 216 |
|
| 217 |
FUNCTION { init.state.consts } |
| 218 |
{ |
| 219 |
#0 'before.all := |
| 220 |
#1 'mid.sentence := |
| 221 |
#2 'after.sentence := |
| 222 |
#3 'after.block := |
| 223 |
} |
| 224 |
|
| 225 |
FUNCTION { output.nonnull } |
| 226 |
{ % Stack in: ... R S T Stack out: ... R T File out: S<comma><space> |
| 227 |
's := |
| 228 |
output.state mid.sentence = |
| 229 |
{ |
| 230 |
", " * write$ |
| 231 |
} |
| 232 |
{ |
| 233 |
output.state after.block = |
| 234 |
{ |
| 235 |
add.period$ writeln |
| 236 |
"\newblock " write$ |
| 237 |
} |
| 238 |
{ |
| 239 |
output.state before.all = |
| 240 |
{ |
| 241 |
write$ |
| 242 |
} |
| 243 |
{ |
| 244 |
add.period$ " " * write$ |
| 245 |
} |
| 246 |
if$ |
| 247 |
} |
| 248 |
if$ |
| 249 |
mid.sentence 'output.state := |
| 250 |
} |
| 251 |
if$ |
| 252 |
s |
| 253 |
} |
| 254 |
|
| 255 |
FUNCTION { output.nonnull.dot.space } |
| 256 |
{ % Stack in: ... R S T Stack out: ... R T File out: S<dot><space> |
| 257 |
's := |
| 258 |
output.state mid.sentence = % { "<DEBUG output.nonnull.dot.space>. " * write$ } |
| 259 |
{ |
| 260 |
". " * write$ |
| 261 |
} |
| 262 |
{ |
| 263 |
output.state after.block = |
| 264 |
{ |
| 265 |
add.period$ writeln "\newblock " write$ |
| 266 |
} |
| 267 |
{ |
| 268 |
output.state before.all = |
| 269 |
{ |
| 270 |
write$ |
| 271 |
} |
| 272 |
{ |
| 273 |
add.period$ " " * write$ |
| 274 |
} |
| 275 |
if$ |
| 276 |
} |
| 277 |
if$ |
| 278 |
mid.sentence 'output.state := |
| 279 |
} |
| 280 |
if$ |
| 281 |
s |
| 282 |
} |
| 283 |
|
| 284 |
FUNCTION { output.nonnull.remove } |
| 285 |
{ % Stack in: ... R S T Stack out: ... R T File out: S<space> |
| 286 |
's := |
| 287 |
output.state mid.sentence = |
| 288 |
{ |
| 289 |
" " * write$ |
| 290 |
} |
| 291 |
{ |
| 292 |
output.state after.block = |
| 293 |
{ |
| 294 |
add.period$ writeln "\newblock " write$ |
| 295 |
} |
| 296 |
{ |
| 297 |
output.state before.all = |
| 298 |
{ |
| 299 |
write$ |
| 300 |
} |
| 301 |
{ |
| 302 |
add.period$ " " * write$ |
| 303 |
} |
| 304 |
if$ |
| 305 |
} |
| 306 |
if$ |
| 307 |
mid.sentence 'output.state := |
| 308 |
} |
| 309 |
if$ |
| 310 |
s |
| 311 |
} |
| 312 |
|
| 313 |
FUNCTION { output.nonnull.removenospace } |
| 314 |
{ % Stack in: ... R S T Stack out: ... R T File out: S |
| 315 |
's := |
| 316 |
output.state mid.sentence = |
| 317 |
{ |
| 318 |
"" * write$ |
| 319 |
} |
| 320 |
{ |
| 321 |
output.state after.block = |
| 322 |
{ |
| 323 |
add.period$ writeln "\newblock " write$ |
| 324 |
} |
| 325 |
{ |
| 326 |
output.state before.all = |
| 327 |
{ |
| 328 |
write$ |
| 329 |
} |
| 330 |
{ |
| 331 |
add.period$ " " * write$ |
| 332 |
} |
| 333 |
if$ |
| 334 |
} |
| 335 |
if$ |
| 336 |
mid.sentence 'output.state := |
| 337 |
} |
| 338 |
if$ |
| 339 |
s |
| 340 |
} |
| 341 |
|
| 342 |
FUNCTION { output } |
| 343 |
{ % discard top token if empty, else like output.nonnull |
| 344 |
duplicate$ empty.or.unknown |
| 345 |
'pop$ |
| 346 |
'output.nonnull |
| 347 |
if$ |
| 348 |
} |
| 349 |
|
| 350 |
FUNCTION { output.dot.space } |
| 351 |
{ % discard top token if empty, else like output.nonnull.dot.space |
| 352 |
duplicate$ empty.or.unknown |
| 353 |
'pop$ |
| 354 |
'output.nonnull.dot.space |
| 355 |
if$ |
| 356 |
} |
| 357 |
|
| 358 |
FUNCTION { output.removenospace } |
| 359 |
{ % discard top token if empty, else like output.nonnull.removenospace |
| 360 |
duplicate$ empty.or.unknown |
| 361 |
'pop$ |
| 362 |
'output.nonnull.removenospace |
| 363 |
if$ |
| 364 |
} |
| 365 |
|
| 366 |
FUNCTION { output.check } |
| 367 |
{ % like output, but warn if key name on top-of-stack is not set |
| 368 |
't := |
| 369 |
duplicate$ empty.or.unknown |
| 370 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 371 |
'output.nonnull |
| 372 |
if$ |
| 373 |
} |
| 374 |
|
| 375 |
FUNCTION { bibinfo.output.check } |
| 376 |
{ % like output.check, adding bibinfo field |
| 377 |
't := |
| 378 |
duplicate$ empty.or.unknown |
| 379 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 380 |
{ "\bibinfo{" t "}{" * * swap$ * "}" * |
| 381 |
output.nonnull } |
| 382 |
if$ |
| 383 |
} |
| 384 |
|
| 385 |
FUNCTION { output.check.dot.space } |
| 386 |
{ % like output.dot.space, but warn if key name on top-of-stack is not set |
| 387 |
't := |
| 388 |
duplicate$ empty.or.unknown |
| 389 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 390 |
'output.nonnull.dot.space |
| 391 |
if$ |
| 392 |
} |
| 393 |
|
| 394 |
FUNCTION { fin.block } |
| 395 |
{ % functionally, but not logically, identical to fin.entry |
| 396 |
add.period$ |
| 397 |
writeln |
| 398 |
} |
| 399 |
|
| 400 |
FUNCTION { fin.entry } |
| 401 |
{ |
| 402 |
add.period$ |
| 403 |
writeln |
| 404 |
} |
| 405 |
|
| 406 |
FUNCTION { new.sentence } |
| 407 |
{ % update sentence state, with neither output nor stack change |
| 408 |
output.state after.block = |
| 409 |
'skip$ |
| 410 |
{ |
| 411 |
output.state before.all = |
| 412 |
'skip$ |
| 413 |
{ after.sentence 'output.state := } |
| 414 |
if$ |
| 415 |
} |
| 416 |
if$ |
| 417 |
} |
| 418 |
|
| 419 |
FUNCTION { fin.sentence } |
| 420 |
{ |
| 421 |
add.period$ |
| 422 |
write$ |
| 423 |
new.sentence |
| 424 |
"" |
| 425 |
} |
| 426 |
|
| 427 |
FUNCTION { new.block } |
| 428 |
{ |
| 429 |
output.state before.all = |
| 430 |
'skip$ |
| 431 |
{ after.block 'output.state := } |
| 432 |
if$ |
| 433 |
} |
| 434 |
|
| 435 |
FUNCTION { output.coden } % UTAH |
| 436 |
{ % output non-empty CODEN as one-line sentence (stack untouched) |
| 437 |
coden empty.or.unknown |
| 438 |
{ } |
| 439 |
{ "\showCODEN{" coden * "}" * writeln } |
| 440 |
if$ |
| 441 |
} |
| 442 |
|
| 443 |
% |
| 444 |
% Sometimes articleno starts with the word 'Article' or 'Paper. |
| 445 |
% (this is a bug of acmdl, sigh) |
| 446 |
% We strip them. We assume eid or articleno is already on stack |
| 447 |
% |
| 448 |
|
| 449 |
FUNCTION { strip.articleno.or.eid } |
| 450 |
{ |
| 451 |
't := |
| 452 |
t #1 #7 substring$ "Article" = |
| 453 |
{t #8 t text.length$ substring$ 't :=} |
| 454 |
{ } |
| 455 |
if$ |
| 456 |
t #1 #7 substring$ "article" = |
| 457 |
{t #8 t text.length$ substring$ 't :=} |
| 458 |
{ } |
| 459 |
if$ |
| 460 |
t #1 #5 substring$ "Paper" = |
| 461 |
{t #6 t text.length$ substring$ 't :=} |
| 462 |
{ } |
| 463 |
if$ |
| 464 |
t #1 #5 substring$ "paper" = |
| 465 |
{t #6 t text.length$ substring$ 't :=} |
| 466 |
{ } |
| 467 |
if$ |
| 468 |
% Strip any left trailing space or ~ |
| 469 |
t #1 #1 substring$ " " = |
| 470 |
{t #2 t text.length$ substring$ 't :=} |
| 471 |
{ } |
| 472 |
if$ |
| 473 |
t #1 #1 substring$ "~" = |
| 474 |
{t #2 t text.length$ substring$ 't :=} |
| 475 |
{ } |
| 476 |
if$ |
| 477 |
t |
| 478 |
} |
| 479 |
|
| 480 |
|
| 481 |
FUNCTION { format.articleno } |
| 482 |
{ |
| 483 |
articleno empty.or.unknown not eid empty.or.unknown not and |
| 484 |
{ "Both articleno and eid are defined for " cite$ * warning$ } |
| 485 |
'skip$ |
| 486 |
if$ |
| 487 |
articleno empty.or.unknown eid empty.or.unknown and |
| 488 |
{ "" } |
| 489 |
{ |
| 490 |
numpages empty.or.unknown |
| 491 |
{ "articleno or eid field, but no numpages field, in " |
| 492 |
cite$ * warning$ } |
| 493 |
{ } |
| 494 |
if$ |
| 495 |
eid empty.or.unknown |
| 496 |
{ "Article \bibinfo{articleno}{" articleno strip.articleno.or.eid * "}" * } |
| 497 |
{ "Article \bibinfo{articleno}{" eid strip.articleno.or.eid * "}" * } |
| 498 |
if$ |
| 499 |
} |
| 500 |
if$ |
| 501 |
} |
| 502 |
|
| 503 |
FUNCTION { format.year } |
| 504 |
{ % push year string or "[n.\,d.]" onto output stack |
| 505 |
%% Because year is a mandatory field, we always force SOMETHING |
| 506 |
%% to be output. If we do not know year but know date, we push date |
| 507 |
%% as the last resort |
| 508 |
"\bibinfo{year}{" |
| 509 |
year empty.or.unknown |
| 510 |
{ date empty.or.unknown |
| 511 |
{ "[n.\,d.]" } |
| 512 |
{ date #1 #4 substring$ } |
| 513 |
if$ |
| 514 |
} |
| 515 |
{ year } |
| 516 |
if$ |
| 517 |
* "}" * |
| 518 |
} |
| 519 |
|
| 520 |
FUNCTION { format.day.month } |
| 521 |
{ % push "day month " or "month " or "" onto output stack |
| 522 |
day empty.or.unknown |
| 523 |
{ |
| 524 |
month empty.or.unknown |
| 525 |
{ "" } |
| 526 |
{ "\bibinfo{date}{" month * "} " *} |
| 527 |
if$ |
| 528 |
} |
| 529 |
{ |
| 530 |
month empty.or.unknown |
| 531 |
{ "" } |
| 532 |
{ "\bibinfo{date}{" day * " " * month * "} " *} |
| 533 |
if$ |
| 534 |
} |
| 535 |
if$ |
| 536 |
} |
| 537 |
|
| 538 |
FUNCTION { format.day.month.year } % UTAH |
| 539 |
{ % if month is empty, push "" else push "(MON.)" or "(DD MON.)" |
| 540 |
% Needed for frequent periodicals: 2008. ... New York Times C-1, C-2, C-17 (23 Oct.) |
| 541 |
% acm-*.bst addition: prefix parenthesized date string with |
| 542 |
% ", Article nnn " |
| 543 |
articleno empty.or.unknown eid empty.or.unknown and |
| 544 |
{ "" } |
| 545 |
{ output.state after.block = |
| 546 |
{", " format.articleno * } |
| 547 |
{ format.articleno } |
| 548 |
if$ |
| 549 |
} |
| 550 |
if$ |
| 551 |
" (" * format.day.month * format.year * ")" * |
| 552 |
} |
| 553 |
|
| 554 |
FUNCTION { output.day.month.year } % UTAH |
| 555 |
{ % if month is empty value, do nothing; else output stack top and |
| 556 |
% leave with new top string "(MON.)" or "(DD MON.)" |
| 557 |
% Needed for frequent periodicals: 2008. ... New York Times C-1, C-2, C-17 (23 Oct.) |
| 558 |
format.day.month.year |
| 559 |
output.nonnull.remove |
| 560 |
} |
| 561 |
|
| 562 |
FUNCTION { strip.doi } % UTAH |
| 563 |
{ % Strip any Web address prefix to recover the bare DOI, leaving the |
| 564 |
% result on the output stack, as recommended by CrossRef DOI |
| 565 |
% documentation. |
| 566 |
% For example, reduce "http://doi.acm.org/10.1145/1534530.1534545" to |
| 567 |
% "10.1145/1534530.1534545". A suitable URL is later typeset and |
| 568 |
% displayed as the LAST item in the reference list entry. Publisher Web |
| 569 |
% sites wrap this with a suitable link to a real URL to resolve the DOI, |
| 570 |
% and the master https://doi.org/ address is preferred, since publisher- |
| 571 |
% specific URLs can disappear in response to economic events. All |
| 572 |
% journals are encouraged by the DOI authorities to use that typeset |
| 573 |
% format and link procedures for uniformity across all publications that |
| 574 |
% include DOIs in reference lists. |
| 575 |
% The numeric prefix is guaranteed to start with "10.", so we use |
| 576 |
% that as a test. |
| 577 |
% 2017-02-04 Added stripping of https:// (Boris) |
| 578 |
doi #1 #3 substring$ "10." = |
| 579 |
{ doi } |
| 580 |
{ |
| 581 |
doi 't := % get modifiable copy of DOI |
| 582 |
|
| 583 |
% Change https:// to http:// to strip both prefixes (BV) |
| 584 |
|
| 585 |
t #1 #8 substring$ "https://" = |
| 586 |
{ "http://" t #9 t text.length$ #8 - substring$ * 't := } |
| 587 |
{ } |
| 588 |
if$ |
| 589 |
|
| 590 |
t #1 #7 substring$ "http://" = |
| 591 |
{ |
| 592 |
t #8 t text.length$ #7 - substring$ 't := |
| 593 |
|
| 594 |
"INTERNAL STYLE-FILE ERROR" 's := |
| 595 |
|
| 596 |
% search for next "/" and assign its suffix to s |
| 597 |
|
| 598 |
{ t text.length$ } |
| 599 |
{ |
| 600 |
t #1 #1 substring$ "/" = |
| 601 |
{ |
| 602 |
% save rest of string as true DOI (should be 10.xxxx/yyyy) |
| 603 |
t #2 t text.length$ #1 - substring$ 's := |
| 604 |
"" 't := % empty string t terminates the loop |
| 605 |
} |
| 606 |
{ |
| 607 |
% discard first character and continue loop: t <= substring(t,2,last) |
| 608 |
t #2 t text.length$ #1 - substring$ 't := |
| 609 |
} |
| 610 |
if$ |
| 611 |
} |
| 612 |
while$ |
| 613 |
|
| 614 |
% check for valid DOI (should be 10.xxxx/yyyy) |
| 615 |
s #1 #3 substring$ "10." = |
| 616 |
{ } |
| 617 |
{ "unrecognized DOI substring " s * " in DOI value [" * doi * "]" * warning$ } |
| 618 |
if$ |
| 619 |
|
| 620 |
s % push the stripped DOI on the output stack |
| 621 |
|
| 622 |
} |
| 623 |
{ |
| 624 |
"unrecognized DOI value [" doi * "]" * warning$ |
| 625 |
doi % push the unrecognized original DOI on the output stack |
| 626 |
} |
| 627 |
if$ |
| 628 |
} |
| 629 |
if$ |
| 630 |
} |
| 631 |
|
| 632 |
% |
| 633 |
% Change by BV: added standard prefix to URL |
| 634 |
% |
| 635 |
FUNCTION { output.doi } % UTAH |
| 636 |
{ % output non-empty DOI as one-line sentence (stack untouched) |
| 637 |
doi empty.or.unknown |
| 638 |
{ } |
| 639 |
{ |
| 640 |
"\href{https://doi.org/" strip.doi * "}{doi:\nolinkurl{" * |
| 641 |
strip.doi * "}}" * writeln |
| 642 |
} |
| 643 |
if$ |
| 644 |
} |
| 645 |
|
| 646 |
FUNCTION { output.isbn } % UTAH |
| 647 |
{ % output non-empty ISBN-10 and/or ISBN-13 as one-line sentences (stack untouched) |
| 648 |
show-isbn-10-and-13 |
| 649 |
{ |
| 650 |
%% show both 10- and 13-digit ISBNs |
| 651 |
isbn empty.or.unknown |
| 652 |
{ } |
| 653 |
{ |
| 654 |
"\showISBNx{" isbn * "}" * writeln |
| 655 |
} |
| 656 |
if$ |
| 657 |
isbn-13 empty.or.unknown |
| 658 |
{ } |
| 659 |
{ |
| 660 |
"\showISBNxiii{" isbn-13 * "}" * writeln |
| 661 |
} |
| 662 |
if$ |
| 663 |
} |
| 664 |
{ |
| 665 |
%% show 10-digit ISBNs only if 13-digit ISBNs not available |
| 666 |
isbn-13 empty.or.unknown |
| 667 |
{ |
| 668 |
isbn empty.or.unknown |
| 669 |
{ } |
| 670 |
{ |
| 671 |
"\showISBNx{" isbn * "}" * writeln |
| 672 |
} |
| 673 |
if$ |
| 674 |
} |
| 675 |
{ |
| 676 |
"\showISBNxiii{" isbn-13 * "}" * writeln |
| 677 |
} |
| 678 |
if$ |
| 679 |
} |
| 680 |
if$ |
| 681 |
} |
| 682 |
|
| 683 |
FUNCTION { output.issn } % UTAH |
| 684 |
{ % output non-empty ISSN as one-line sentence (stack untouched) |
| 685 |
issn empty.or.unknown |
| 686 |
{ } |
| 687 |
{ "\showISSN{" issn * "}" * writeln } |
| 688 |
if$ |
| 689 |
} |
| 690 |
|
| 691 |
FUNCTION { output.issue } |
| 692 |
{ % output non-empty issue number as a one-line sentence (stack untouched) |
| 693 |
issue empty.or.unknown |
| 694 |
{ } |
| 695 |
{ "Issue " issue * "." * writeln } |
| 696 |
if$ |
| 697 |
} |
| 698 |
|
| 699 |
FUNCTION { output.lccn } % UTAH |
| 700 |
{ % return with stack untouched |
| 701 |
lccn empty.or.unknown |
| 702 |
{ } |
| 703 |
{ "\showLCCN{" lccn * "}" * writeln } |
| 704 |
if$ |
| 705 |
} |
| 706 |
|
| 707 |
FUNCTION { output.note } % UTAH |
| 708 |
{ % return with stack empty |
| 709 |
note empty.or.unknown |
| 710 |
{ } |
| 711 |
{ "\shownote{" note * "}" add.period$ * writeln } |
| 712 |
if$ |
| 713 |
} |
| 714 |
|
| 715 |
FUNCTION { output.note.check } % UTAH |
| 716 |
{ % return with stack empty |
| 717 |
note empty.or.unknown |
| 718 |
{ "empty note in " cite$ * warning$ } |
| 719 |
{ "\shownote{" note * "}" add.period$ * writeln } |
| 720 |
if$ |
| 721 |
} |
| 722 |
|
| 723 |
FUNCTION { output.eprint } % |
| 724 |
{ % return with stack empty |
| 725 |
eprint empty.or.unknown |
| 726 |
{ } |
| 727 |
{ "\showeprint" |
| 728 |
archiveprefix empty.or.unknown |
| 729 |
{ eprinttype empty.or.unknown |
| 730 |
{ } |
| 731 |
{ "[" eprinttype "]" * * * } |
| 732 |
if$ |
| 733 |
} |
| 734 |
{ "[" archiveprefix "l" change.case$ "]" * * * } |
| 735 |
if$ |
| 736 |
"{" eprint "}" * * * |
| 737 |
primaryclass empty.or.unknown |
| 738 |
{ eprintclass empty.or.unknown |
| 739 |
{ } |
| 740 |
{ "~[" eprintclass "]" * * * } |
| 741 |
if$ |
| 742 |
} |
| 743 |
{ "~[" primaryclass "]" * * * } |
| 744 |
if$ |
| 745 |
writeln |
| 746 |
} |
| 747 |
if$ |
| 748 |
} |
| 749 |
|
| 750 |
|
| 751 |
% |
| 752 |
% Changes by BV 2011/04/15. Do not output |
| 753 |
% url if doi is defined |
| 754 |
% |
| 755 |
% |
| 756 |
% Changes by BV 2021/11/26. Output url even if doi is defined |
| 757 |
% if distinctURL is not zero. |
| 758 |
% |
| 759 |
FUNCTION { output.url } % UTAH |
| 760 |
{ % return with stack untouched |
| 761 |
% output URL and associated lastaccessed fields |
| 762 |
doi empty.or.unknown distinctURL empty.or.zero not or |
| 763 |
{ |
| 764 |
url empty.or.unknown |
| 765 |
{ } |
| 766 |
{ new.sentence |
| 767 |
%% Use \urldef, outside \showURL, so that %nn, #, etc in URLs work |
| 768 |
%% correctly. Put the actual URL on its own line to reduce the |
| 769 |
%% likelihood of BibTeX's nasty line wrapping after column 79. |
| 770 |
%% \url{} can undo this, but if that doesn't work for some reason |
| 771 |
%% the .bbl file would have to be repaired manually. |
| 772 |
"\urldef\tempurl%" writeln |
| 773 |
"\url{" url * "}" * writeln |
| 774 |
|
| 775 |
"\showURL{%" writeln |
| 776 |
lastaccessed empty.or.unknown |
| 777 |
{ "" } |
| 778 |
{ "Retrieved " lastaccessed * " from " * } |
| 779 |
if$ |
| 780 |
"\tempurl" * |
| 781 |
archived empty.or.unknown |
| 782 |
{ } |
| 783 |
{"\urldef\tempurla%" writeln |
| 784 |
"\url{" archived * "}%" * writeln |
| 785 |
", archived at [\tempurla]" * |
| 786 |
} |
| 787 |
if$ |
| 788 |
"}" * writeln |
| 789 |
} |
| 790 |
if$ |
| 791 |
} |
| 792 |
{ } |
| 793 |
if$ |
| 794 |
} |
| 795 |
|
| 796 |
FUNCTION { output.year.check } |
| 797 |
{ % warn if year empty, output top string and leave " YEAR<label>" on stack in mid-sentence |
| 798 |
year empty.or.unknown |
| 799 |
{ "empty year in " cite$ * warning$ |
| 800 |
date empty.or.unknown |
| 801 |
{ |
| 802 |
"using n.d. in " cite$ * warning$ |
| 803 |
write$ |
| 804 |
" \bibinfo{year}{[n.\,d.]}" |
| 805 |
"\natexlab{" extra.label * "}" * * |
| 806 |
mid.sentence 'output.state := |
| 807 |
} |
| 808 |
{ |
| 809 |
"using date in " cite$ * warning$ |
| 810 |
write$ |
| 811 |
" \bibinfo{year}{" date #1 #4 substring$ * "}" * |
| 812 |
"\natexlab{" extra.label * "}" * * |
| 813 |
mid.sentence 'output.state := |
| 814 |
} |
| 815 |
if$ |
| 816 |
} |
| 817 |
{ write$ |
| 818 |
" \bibinfo{year}{" year * "}" * |
| 819 |
"\natexlab{" extra.label * "}" * * |
| 820 |
mid.sentence 'output.state := |
| 821 |
} |
| 822 |
if$ |
| 823 |
} |
| 824 |
|
| 825 |
|
| 826 |
FUNCTION { le } |
| 827 |
{ |
| 828 |
%% test whether first number is less than or equal to second number |
| 829 |
%% stack in: n1 n2 |
| 830 |
%% stack out: if n1 <= n2 then 1 else 0 |
| 831 |
|
| 832 |
%% "DEBUG: le " cite$ * warning$ |
| 833 |
> { #0 } { #1 } if$ |
| 834 |
} |
| 835 |
|
| 836 |
FUNCTION { ge } |
| 837 |
{ |
| 838 |
%% test whether first number is greater than or equal to second number |
| 839 |
%% stack in: n1 n2 |
| 840 |
%% stack out: if n1 >= n2 then 1 else 0 |
| 841 |
|
| 842 |
%% "DEBUG: ge " cite$ * warning$ |
| 843 |
< { #0 } { #1 } if$ |
| 844 |
} |
| 845 |
|
| 846 |
FUNCTION { is.leading.digit } |
| 847 |
{ |
| 848 |
%% test whether first character of string is a digit |
| 849 |
%% stack in: string |
| 850 |
%% stack out: if first-char-is-digit then 1 else 0 |
| 851 |
|
| 852 |
#1 #1 substring$ % replace string by string[1:1] |
| 853 |
duplicate$ % string[1:1] string[1:1] |
| 854 |
chr.to.int$ |
| 855 |
"0" chr.to.int$ swap$ le % "0" <= string[1:1] --> 0-or-1 |
| 856 |
swap$ % 0-or-1 string[1:1] |
| 857 |
chr.to.int$ |
| 858 |
"9" chr.to.int$ le % string[1:1} <= "9" --> 0-or-1 |
| 859 |
and |
| 860 |
} |
| 861 |
|
| 862 |
FUNCTION { skip.digits } |
| 863 |
{ |
| 864 |
%% skip over leading digits in string |
| 865 |
%% stack in: string |
| 866 |
%% stack out: rest-of-string leading-digits |
| 867 |
|
| 868 |
%% "DEBUG: enter skip.digits " cite$ * warning$ |
| 869 |
|
| 870 |
%% dump.stack.1 |
| 871 |
|
| 872 |
duplicate$ |
| 873 |
't := |
| 874 |
't.org := |
| 875 |
"" 'u := |
| 876 |
|
| 877 |
{ t text.length$ } |
| 878 |
{ |
| 879 |
%% "=================DEBUG: skip.digits t = [" t * "]" * warning$ |
| 880 |
t is.leading.digit |
| 881 |
{ t #2 t text.length$ #1 - substring$ } |
| 882 |
{ |
| 883 |
t 'u := |
| 884 |
"" |
| 885 |
} |
| 886 |
if$ |
| 887 |
't := |
| 888 |
} |
| 889 |
while$ |
| 890 |
|
| 891 |
u % rest of string |
| 892 |
t.org #1 t.org text.length$ u text.length$ - substring$ % leading digits |
| 893 |
|
| 894 |
%% "DEBUG: t.org = [" t.org * "]" * warning$ |
| 895 |
%% "DEBUG: u = [" u * "]" * warning$ |
| 896 |
|
| 897 |
%% dump.stack.2 |
| 898 |
|
| 899 |
%% "DEBUG: leave skip.digits " cite$ * warning$ |
| 900 |
} |
| 901 |
|
| 902 |
FUNCTION { skip.nondigits } |
| 903 |
{ |
| 904 |
%% skip over leading nondigits in string |
| 905 |
%% stack in: string |
| 906 |
%% stack out: rest-of-string |
| 907 |
|
| 908 |
%% "DEBUG: enter skip.nondigits " cite$ * warning$ |
| 909 |
|
| 910 |
't := |
| 911 |
"" 'u := |
| 912 |
|
| 913 |
{ t text.length$ } |
| 914 |
{ |
| 915 |
%% "=================DEBUG: skip.nondigits t = [" t * "]" * warning$ |
| 916 |
t is.leading.digit |
| 917 |
{ |
| 918 |
t 'u := |
| 919 |
"" |
| 920 |
} |
| 921 |
{ t #2 t text.length$ #1 - substring$ } |
| 922 |
if$ |
| 923 |
't := |
| 924 |
} |
| 925 |
while$ |
| 926 |
|
| 927 |
u % rest of string |
| 928 |
|
| 929 |
%% dump.stack.1 |
| 930 |
%% "DEBUG: leave skip.nondigits " cite$ * warning$ |
| 931 |
} |
| 932 |
|
| 933 |
FUNCTION { parse.next.number } |
| 934 |
{ |
| 935 |
%% stack in: string |
| 936 |
%% stack out: rest-of-string next-numeric-part-of-string |
| 937 |
%% Example: |
| 938 |
%% stack in: "123:1--123:59" |
| 939 |
%% stack out: ":1--123:59" "123" |
| 940 |
|
| 941 |
's := |
| 942 |
s skip.nondigits 's := |
| 943 |
s skip.digits |
| 944 |
} |
| 945 |
|
| 946 |
FUNCTION { reduce.pages.to.page.count } |
| 947 |
{ |
| 948 |
%% Stack in: arbitrary-and-unused |
| 949 |
%% Stack out: unchanged |
| 950 |
%% |
| 951 |
%% For the new-style pagination with article number and numpages or |
| 952 |
%% pages, we expect to have BibTeX entries containing something like |
| 953 |
%% articleno = "17", |
| 954 |
%% pages = "1--23", |
| 955 |
%% with output "Article 17, 23 pages", |
| 956 |
%% or |
| 957 |
%% articleno = "17", |
| 958 |
%% numpages = "23", |
| 959 |
%% with output "Article 17, 23 pages", |
| 960 |
%% or |
| 961 |
%% articleno = "17", |
| 962 |
%% pages = "17:1--17:23", |
| 963 |
%% with output "Article 17, 23 pages", |
| 964 |
%% |
| 965 |
%% If articleno is missing or empty, then we should output "1--23", |
| 966 |
%% "23" (with a warning of a missing articleno), or "17:1--17:23", |
| 967 |
%% respectively. |
| 968 |
|
| 969 |
%% "DEBUG: enter reduce.pages.to.page.count " cite$ * warning$ |
| 970 |
|
| 971 |
%% "DEBUG: pages = [" pages * "]" * warning$ |
| 972 |
|
| 973 |
pages |
| 974 |
parse.next.number 'p1 := |
| 975 |
parse.next.number 'p2 := |
| 976 |
parse.next.number 'p3 := |
| 977 |
parse.next.number 'page.count := |
| 978 |
|
| 979 |
duplicate$ |
| 980 |
empty.or.unknown |
| 981 |
{ } |
| 982 |
{ |
| 983 |
duplicate$ "unexpected trailing garbage [" swap$ * |
| 984 |
"] after n:p1--n:p2 in pages = [" * |
| 985 |
pages * |
| 986 |
"] in " * |
| 987 |
cite$ * |
| 988 |
warning$ |
| 989 |
} |
| 990 |
if$ |
| 991 |
|
| 992 |
pop$ |
| 993 |
|
| 994 |
%% "DEBUG: reduce.pages.to.page.count: " |
| 995 |
%% " p1 = " p1 * * |
| 996 |
%% " p2 = " p2 * * |
| 997 |
%% " p3 = " p3 * * |
| 998 |
%% " p4 = " page.count * * |
| 999 |
%% " in " cite$ * * warning$ |
| 1000 |
|
| 1001 |
p1 p3 = p2 "1" = and numpages empty.or.unknown and |
| 1002 |
{ "INFO: reduced pages = [" pages * "] to numpages = [" * page.count * "]" * warning$ } |
| 1003 |
{ |
| 1004 |
numpages empty.or.unknown |
| 1005 |
{ pages } |
| 1006 |
{ numpages } |
| 1007 |
if$ |
| 1008 |
'page.count := |
| 1009 |
} |
| 1010 |
if$ |
| 1011 |
|
| 1012 |
p1 "1" = p3 empty.or.unknown and numpages empty.or.unknown and |
| 1013 |
{ |
| 1014 |
p2 'page.count := |
| 1015 |
"INFO: reduced pages = [" pages * "] to numpages = [" * page.count * "]" * warning$ |
| 1016 |
} |
| 1017 |
{ |
| 1018 |
numpages empty.or.unknown |
| 1019 |
{ pages } |
| 1020 |
{ numpages } |
| 1021 |
if$ |
| 1022 |
'page.count := |
| 1023 |
} |
| 1024 |
if$ |
| 1025 |
|
| 1026 |
%% "DEBUG: leave reduce.pages.to.page.count " cite$ * warning$ |
| 1027 |
} |
| 1028 |
|
| 1029 |
FUNCTION { new.block.checkb } |
| 1030 |
{ % issue a new.block only if at least one of top two stack strings is not empty |
| 1031 |
empty.or.unknown |
| 1032 |
swap$ empty.or.unknown |
| 1033 |
and |
| 1034 |
'skip$ |
| 1035 |
'new.block |
| 1036 |
if$ |
| 1037 |
} |
| 1038 |
|
| 1039 |
FUNCTION { field.or.null } |
| 1040 |
{ % convert empty value to null string, else return value |
| 1041 |
duplicate$ empty.or.unknown |
| 1042 |
{ pop$ "" } |
| 1043 |
'skip$ |
| 1044 |
if$ |
| 1045 |
} |
| 1046 |
|
| 1047 |
|
| 1048 |
|
| 1049 |
FUNCTION { emphasize } |
| 1050 |
{ % emphasize a non-empty top string on the stack |
| 1051 |
duplicate$ empty.or.unknown |
| 1052 |
{ pop$ "" } |
| 1053 |
{ "\emph{" swap$ * "}" * } |
| 1054 |
if$ |
| 1055 |
} |
| 1056 |
|
| 1057 |
FUNCTION { comma } |
| 1058 |
{ % convert empty string to null string, or brace string and add trailing comma |
| 1059 |
duplicate$ empty.or.unknown |
| 1060 |
{ pop$ "" } |
| 1061 |
{ "{" swap$ * "}," * } |
| 1062 |
if$ |
| 1063 |
} |
| 1064 |
|
| 1065 |
FUNCTION { format.names } |
| 1066 |
{ |
| 1067 |
% Format bibliographical entries with the first author last name first, |
| 1068 |
% and subsequent authors with initials followed by last name. |
| 1069 |
% All names are formatted in this routine. |
| 1070 |
|
| 1071 |
's := |
| 1072 |
#1 'nameptr := % nameptr = 1; |
| 1073 |
s num.names$ 'numnames := % numnames = num.name$(s); |
| 1074 |
numnames 'namesleft := |
| 1075 |
{ namesleft #0 > } |
| 1076 |
{ nameptr #1 = |
| 1077 |
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := } |
| 1078 |
%NO: BAD ORDER: {"{" s nameptr "{ff~}{ll}{, jj}{, vv}" format.name$ * "}" * 't := } |
| 1079 |
{"\bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := } |
| 1080 |
{"\bibinfo{person}{" s nameptr "{ff }{vv }{ll}{, jj}" format.name$ * "}" * 't := } |
| 1081 |
if$ |
| 1082 |
nameptr #1 > |
| 1083 |
{ |
| 1084 |
namesleft #1 > |
| 1085 |
{ ", " * t * } |
| 1086 |
{ |
| 1087 |
numnames #2 > |
| 1088 |
{ "," * } |
| 1089 |
'skip$ |
| 1090 |
if$ |
| 1091 |
t "\bibinfo{person}{others}" = |
| 1092 |
{ " {et~al\mbox{.}}" * } % jrh: avoid spacing problems |
| 1093 |
{ " {and} " * t * } % from Chicago Manual of Style |
| 1094 |
if$ |
| 1095 |
} |
| 1096 |
if$ |
| 1097 |
} |
| 1098 |
't |
| 1099 |
if$ |
| 1100 |
nameptr #1 + 'nameptr := % nameptr += 1; |
| 1101 |
namesleft #1 - 'namesleft := % namesleft =- 1; |
| 1102 |
} |
| 1103 |
while$ |
| 1104 |
} |
| 1105 |
|
| 1106 |
FUNCTION { my.full.label } |
| 1107 |
{ |
| 1108 |
's := |
| 1109 |
#1 'nameptr := % nameptr = 1; |
| 1110 |
s num.names$ 'numnames := % numnames = num.name$(s); |
| 1111 |
numnames 'namesleft := |
| 1112 |
{ namesleft #0 > } |
| 1113 |
|
| 1114 |
{ s nameptr "{vv~}{ll}" format.name$ 't := % get the next name |
| 1115 |
nameptr #1 > |
| 1116 |
{ |
| 1117 |
namesleft #1 > |
| 1118 |
{ ", " * t * } |
| 1119 |
{ |
| 1120 |
numnames #2 > |
| 1121 |
{ "," * } |
| 1122 |
'skip$ |
| 1123 |
if$ |
| 1124 |
t "others" = |
| 1125 |
{ " et~al\mbox{.}" * } % jrh: avoid spacing problems |
| 1126 |
{ " and " * t * } % from Chicago Manual of Style |
| 1127 |
if$ |
| 1128 |
} |
| 1129 |
if$ |
| 1130 |
} |
| 1131 |
't |
| 1132 |
if$ |
| 1133 |
nameptr #1 + 'nameptr := % nameptr += 1; |
| 1134 |
namesleft #1 - 'namesleft := % namesleft =- 1; |
| 1135 |
} |
| 1136 |
while$ |
| 1137 |
|
| 1138 |
} |
| 1139 |
|
| 1140 |
FUNCTION { format.names.fml } |
| 1141 |
{ |
| 1142 |
% Format names in "familiar" format, with first initial followed by |
| 1143 |
% last name. Like format.names, ALL names are formatted. |
| 1144 |
% jtb: The names are NOT put in small caps |
| 1145 |
|
| 1146 |
's := |
| 1147 |
#1 'nameptr := % nameptr = 1; |
| 1148 |
s num.names$ 'numnames := % numnames = num.name$(s); |
| 1149 |
numnames 'namesleft := |
| 1150 |
{ namesleft #0 > } |
| 1151 |
|
| 1152 |
{ |
| 1153 |
"\bibinfo{person}{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't := |
| 1154 |
|
| 1155 |
nameptr #1 > |
| 1156 |
{ |
| 1157 |
namesleft #1 > |
| 1158 |
{ ", " * t * } |
| 1159 |
{ |
| 1160 |
numnames #2 > |
| 1161 |
{ "," * } |
| 1162 |
'skip$ |
| 1163 |
if$ |
| 1164 |
t "\bibinfo{person}{others}" = |
| 1165 |
{ " {et~al\mbox{.}}" * } |
| 1166 |
{ " {and} " * t * } |
| 1167 |
if$ |
| 1168 |
} |
| 1169 |
if$ |
| 1170 |
} |
| 1171 |
't |
| 1172 |
if$ |
| 1173 |
nameptr #1 + 'nameptr := % nameptr += 1; |
| 1174 |
namesleft #1 - 'namesleft := % namesleft =- 1; |
| 1175 |
} |
| 1176 |
while$ |
| 1177 |
} |
| 1178 |
|
| 1179 |
FUNCTION { format.authors } |
| 1180 |
{ |
| 1181 |
author empty.or.unknown |
| 1182 |
{ "" } |
| 1183 |
{ |
| 1184 |
"\bibfield{author}{" |
| 1185 |
author format.names add.period$ * "}" *} % jtb: add period if none before |
| 1186 |
if$ |
| 1187 |
} |
| 1188 |
|
| 1189 |
FUNCTION { format.key } |
| 1190 |
{ |
| 1191 |
empty.or.unknown |
| 1192 |
{ key field.or.null } |
| 1193 |
{ "" } |
| 1194 |
if$ |
| 1195 |
} |
| 1196 |
|
| 1197 |
FUNCTION { format.no.key } |
| 1198 |
{ |
| 1199 |
empty.or.unknown |
| 1200 |
{ "" } |
| 1201 |
{ "" } |
| 1202 |
if$ |
| 1203 |
} |
| 1204 |
|
| 1205 |
FUNCTION { format.editors.fml } |
| 1206 |
{ |
| 1207 |
% Format editor names for use in the "in" types: inbook, incollection, |
| 1208 |
% inproceedings: first initial, then last names. When editors are the |
| 1209 |
% LABEL for an entry, then format.editor is used which lists editors |
| 1210 |
% by last name first. |
| 1211 |
|
| 1212 |
editor empty.or.unknown |
| 1213 |
{ "" } |
| 1214 |
{ |
| 1215 |
"\bibfield{editor}{" |
| 1216 |
editor format.names.fml |
| 1217 |
* "}" * |
| 1218 |
editor num.names$ #1 > |
| 1219 |
{ " (Eds.)" * } |
| 1220 |
{ " (Ed.)" * } |
| 1221 |
if$ |
| 1222 |
} |
| 1223 |
if$ |
| 1224 |
} |
| 1225 |
|
| 1226 |
FUNCTION { format.editors } |
| 1227 |
{ % format editor names for use in labels, last names first. |
| 1228 |
editor empty.or.unknown |
| 1229 |
{ "" } |
| 1230 |
{ |
| 1231 |
"\bibfield{editor}{" |
| 1232 |
editor format.names |
| 1233 |
* "}" * |
| 1234 |
editor num.names$ #1 > |
| 1235 |
{ " (Eds.)." * } |
| 1236 |
{ " (Ed.)." * } |
| 1237 |
if$ |
| 1238 |
} |
| 1239 |
if$ |
| 1240 |
} |
| 1241 |
|
| 1242 |
FUNCTION { format.articletitle } |
| 1243 |
{ |
| 1244 |
title empty.or.unknown |
| 1245 |
{ "" } |
| 1246 |
% Use this to preserve lettercase in titles: |
| 1247 |
{ "\showarticletitle{" title * "}" * } |
| 1248 |
% Use this for downcase title style: |
| 1249 |
% { \showarticletitle{" title "t" change.case$ * "}" * } |
| 1250 |
if$ |
| 1251 |
} |
| 1252 |
|
| 1253 |
FUNCTION { format.title } |
| 1254 |
{ |
| 1255 |
title empty.or.unknown |
| 1256 |
{ "" } |
| 1257 |
% Use this to preserve lettercase in titles: |
| 1258 |
{ "\bibinfo{title}{" title * "}" * } |
| 1259 |
% Use this for downcase title style: |
| 1260 |
% { title "t" change.case$ } |
| 1261 |
if$ |
| 1262 |
} |
| 1263 |
|
| 1264 |
FUNCTION { n.dashify } |
| 1265 |
{ |
| 1266 |
't := |
| 1267 |
"" |
| 1268 |
{ t empty.or.unknown not } |
| 1269 |
{ |
| 1270 |
t #1 #1 substring$ "-" = |
| 1271 |
{ |
| 1272 |
t #1 #2 substring$ "--" = not |
| 1273 |
{ "--" * |
| 1274 |
t #2 global.max$ substring$ 't := |
| 1275 |
} |
| 1276 |
{ |
| 1277 |
{ t #1 #1 substring$ "-" = } |
| 1278 |
{ |
| 1279 |
"-" * |
| 1280 |
t #2 global.max$ substring$ 't := |
| 1281 |
} |
| 1282 |
while$ |
| 1283 |
} |
| 1284 |
if$ |
| 1285 |
} |
| 1286 |
{ |
| 1287 |
t #1 #1 substring$ * |
| 1288 |
t #2 global.max$ substring$ 't := |
| 1289 |
} |
| 1290 |
if$ |
| 1291 |
} |
| 1292 |
while$ |
| 1293 |
} |
| 1294 |
|
| 1295 |
FUNCTION { format.a.title.with.edition } |
| 1296 |
{ |
| 1297 |
"\bibinfo{booktitle}{" |
| 1298 |
swap$ emphasize * |
| 1299 |
edition empty.or.unknown |
| 1300 |
'skip$ |
| 1301 |
{ " (\bibinfo{edition}{" * edition "l" change.case$ * |
| 1302 |
"} ed.)" * } % jtb: no parens for ed. |
| 1303 |
if$ |
| 1304 |
"}" * |
| 1305 |
} |
| 1306 |
|
| 1307 |
FUNCTION { format.btitle } |
| 1308 |
{ title format.a.title.with.edition } |
| 1309 |
|
| 1310 |
FUNCTION { format.emphasize.booktitle } |
| 1311 |
{ booktitle format.a.title.with.edition } |
| 1312 |
|
| 1313 |
|
| 1314 |
|
| 1315 |
FUNCTION { format.city } |
| 1316 |
{ |
| 1317 |
% jtb: if the preceding string (the title of the conference) is non-empty, |
| 1318 |
% jtb: append the location, otherwise leave empty (so as to trigger the |
| 1319 |
% jtb: error message in output.check |
| 1320 |
|
| 1321 |
duplicate$ empty.or.unknown |
| 1322 |
{ } |
| 1323 |
{ |
| 1324 |
city empty.or.unknown location empty.or.unknown and |
| 1325 |
{ |
| 1326 |
date empty.or.unknown |
| 1327 |
{ } |
| 1328 |
{ " (" * date * ")" * } |
| 1329 |
if$ |
| 1330 |
} |
| 1331 |
{ |
| 1332 |
location empty.or.unknown |
| 1333 |
{ |
| 1334 |
date empty.or.unknown |
| 1335 |
{ " (" * city * ")" * } |
| 1336 |
{ " (" * city * ", " * date * ")" * } |
| 1337 |
if$ |
| 1338 |
} |
| 1339 |
{ |
| 1340 |
date empty.or.unknown |
| 1341 |
{ " (" * location * ")" * } |
| 1342 |
{ " (" * location * ", " * date * ")" * } |
| 1343 |
if$ |
| 1344 |
} |
| 1345 |
if$ |
| 1346 |
} |
| 1347 |
if$ |
| 1348 |
} |
| 1349 |
if$ |
| 1350 |
} |
| 1351 |
|
| 1352 |
FUNCTION { tie.or.space.connect } |
| 1353 |
{ |
| 1354 |
duplicate$ text.length$ #3 < |
| 1355 |
{ "~" } |
| 1356 |
{ " " } |
| 1357 |
if$ |
| 1358 |
swap$ * * |
| 1359 |
} |
| 1360 |
|
| 1361 |
FUNCTION { either.or.check } |
| 1362 |
{ |
| 1363 |
empty.or.unknown |
| 1364 |
'pop$ |
| 1365 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 1366 |
if$ |
| 1367 |
} |
| 1368 |
|
| 1369 |
FUNCTION { format.bvolume } |
| 1370 |
{ |
| 1371 |
% jtb: If there is a series, this is added and the volume trails after it. |
| 1372 |
% jtb: Otherwise, "Vol" is Capitalized. |
| 1373 |
|
| 1374 |
volume empty.or.unknown |
| 1375 |
{ "" } |
| 1376 |
{ |
| 1377 |
series empty.or.unknown |
| 1378 |
{ "Vol.~\bibinfo{volume}{" volume "}" * *} |
| 1379 |
{ "\bibinfo{series}{" series "}, " * * |
| 1380 |
"Vol.~\bibinfo{volume}{" volume "}" * * *} |
| 1381 |
if$ |
| 1382 |
"volume and number" number either.or.check |
| 1383 |
} |
| 1384 |
if$ |
| 1385 |
} |
| 1386 |
|
| 1387 |
FUNCTION { format.bvolume.noseries } |
| 1388 |
{ |
| 1389 |
volume empty.or.unknown |
| 1390 |
{ "" } |
| 1391 |
{ "Vol.~\bibinfo{volume}{" volume "}" * * |
| 1392 |
"volume and number" number either.or.check |
| 1393 |
} |
| 1394 |
if$ |
| 1395 |
} |
| 1396 |
|
| 1397 |
FUNCTION { format.series } |
| 1398 |
{ |
| 1399 |
series empty.or.unknown |
| 1400 |
{""} |
| 1401 |
{" \emph{(\bibinfo{series}{" * series "}" * |
| 1402 |
volume empty.or.unknown |
| 1403 |
{ |
| 1404 |
number empty.or.unknown |
| 1405 |
{")}" *} |
| 1406 |
{", \bibinfo{number}{" number "})}" * * *} |
| 1407 |
if$ |
| 1408 |
} |
| 1409 |
{", Vol.~\bibinfo{volume}{" volume "})}" * * * |
| 1410 |
"volume and number" number either.or.check |
| 1411 |
} |
| 1412 |
if$ |
| 1413 |
} |
| 1414 |
if$ |
| 1415 |
} |
| 1416 |
|
| 1417 |
FUNCTION { format.number.series } |
| 1418 |
{ |
| 1419 |
volume empty.or.unknown |
| 1420 |
{ |
| 1421 |
number empty.or.unknown |
| 1422 |
{ |
| 1423 |
volume empty.or.unknown |
| 1424 |
{ "" } |
| 1425 |
{ |
| 1426 |
series empty.or.unknown |
| 1427 |
{ "" } |
| 1428 |
{ " (\bibinfo{series}{" series * "})" * } |
| 1429 |
if$ |
| 1430 |
} |
| 1431 |
if$ |
| 1432 |
} % { series field.or.null } |
| 1433 |
{ |
| 1434 |
output.state mid.sentence = |
| 1435 |
{ "Number" } % gnp - changed to mixed case always |
| 1436 |
{ "Number" } |
| 1437 |
if$ |
| 1438 |
number tie.or.space.connect series empty.or.unknown |
| 1439 |
{ "there's a number but no series in " cite$ * warning$ } |
| 1440 |
{ " in \bibinfo{series}{" * series * "}" * } |
| 1441 |
if$ |
| 1442 |
} |
| 1443 |
if$ |
| 1444 |
} |
| 1445 |
{ |
| 1446 |
"" |
| 1447 |
} |
| 1448 |
if$ |
| 1449 |
} |
| 1450 |
|
| 1451 |
FUNCTION { multi.page.check } |
| 1452 |
{ |
| 1453 |
't := |
| 1454 |
#0 'multiresult := |
| 1455 |
{ multiresult not |
| 1456 |
t empty.or.unknown not |
| 1457 |
and |
| 1458 |
} |
| 1459 |
{ t #1 #1 substring$ |
| 1460 |
duplicate$ "-" = |
| 1461 |
swap$ duplicate$ "," = |
| 1462 |
swap$ "+" = |
| 1463 |
or or |
| 1464 |
{ #1 'multiresult := } |
| 1465 |
{ t #2 global.max$ substring$ 't := } |
| 1466 |
if$ |
| 1467 |
} |
| 1468 |
while$ |
| 1469 |
multiresult |
| 1470 |
} |
| 1471 |
|
| 1472 |
FUNCTION { format.pages } |
| 1473 |
{ |
| 1474 |
pages empty.or.unknown |
| 1475 |
{ "" } |
| 1476 |
{ "\bibinfo{pages}{" |
| 1477 |
pages multi.page.check |
| 1478 |
{ pages n.dashify } % gnp - removed () % jtb: removed pp. |
| 1479 |
{ pages } |
| 1480 |
if$ |
| 1481 |
* "}" * |
| 1482 |
} |
| 1483 |
if$ |
| 1484 |
} |
| 1485 |
|
| 1486 |
FUNCTION { format.pages.check.without.articleno } |
| 1487 |
{ %% format pages field only if articleno is absent |
| 1488 |
%% Stack out: pages-specification |
| 1489 |
numpages missing$ pages missing$ and |
| 1490 |
{ "page numbers missing in both pages and numpages fields in " cite$ * warning$ } |
| 1491 |
{ } |
| 1492 |
if$ |
| 1493 |
|
| 1494 |
articleno empty.or.unknown eid empty.or.unknown and |
| 1495 |
{ |
| 1496 |
pages missing$ |
| 1497 |
{ |
| 1498 |
numpages empty.or.unknown |
| 1499 |
{""} |
| 1500 |
{ "\bibinfo{numpages}{" numpages * "}~pages" * } |
| 1501 |
if$ |
| 1502 |
} |
| 1503 |
{ format.pages } |
| 1504 |
if$ |
| 1505 |
} |
| 1506 |
{ "" } |
| 1507 |
if$ |
| 1508 |
} |
| 1509 |
|
| 1510 |
FUNCTION { format.pages.check } |
| 1511 |
{ |
| 1512 |
pages empty.or.unknown |
| 1513 |
{ "page numbers missing in " cite$ * warning$ "" } |
| 1514 |
{ pages n.dashify } |
| 1515 |
if$ |
| 1516 |
} |
| 1517 |
|
| 1518 |
FUNCTION { format.bookpages } |
| 1519 |
{ |
| 1520 |
bookpages empty.or.unknown |
| 1521 |
{ "" } |
| 1522 |
{ bookpages "book pages" tie.or.space.connect } |
| 1523 |
if$ |
| 1524 |
} |
| 1525 |
|
| 1526 |
FUNCTION { format.named.pages } |
| 1527 |
{ |
| 1528 |
pages empty.or.unknown |
| 1529 |
{ "" } |
| 1530 |
{ format.pages "pages" tie.or.space.connect } |
| 1531 |
if$ |
| 1532 |
} |
| 1533 |
|
| 1534 |
% |
| 1535 |
% Changed by Boris Veytsman, 2011-03-13 |
| 1536 |
% Now the word "pages" is printed even if |
| 1537 |
% there field pages is not empty. |
| 1538 |
% |
| 1539 |
|
| 1540 |
FUNCTION { format.page.count } |
| 1541 |
{ |
| 1542 |
page.count empty.or.unknown |
| 1543 |
{ "" } |
| 1544 |
{ "\bibinfo{numpages}{" page.count * "}~pages" * } |
| 1545 |
if$ |
| 1546 |
} |
| 1547 |
|
| 1548 |
FUNCTION { format.articleno.numpages } |
| 1549 |
{ |
| 1550 |
%% There are seven possible outputs, depending on which fields are set. |
| 1551 |
%% |
| 1552 |
%% These four are handled here: |
| 1553 |
%% |
| 1554 |
%% articleno, numpages, pages -> "Article articleno-value, numpages-value pages" |
| 1555 |
%% articleno, numpages -> "Article articleno-value, numpages-value pages" |
| 1556 |
%% articleno, pages -> "Article articleno-value, reduced-pages-value pages" |
| 1557 |
%% articleno -> "Article articleno-value" and warn about missing numpages |
| 1558 |
%% |
| 1559 |
%% The remaining three have already been handled by |
| 1560 |
%% format.pages.check.without.articleno: |
| 1561 |
%% |
| 1562 |
%% numpages, pages -> "pages-value" |
| 1563 |
%% numpages -> "numpages-value" |
| 1564 |
%% pages -> "pages-value" |
| 1565 |
%% |
| 1566 |
%% We no longer issue warninig when missing articleno, but having numpages |
| 1567 |
|
| 1568 |
articleno empty.or.unknown eid empty.or.unknown and |
| 1569 |
{ |
| 1570 |
%% numpages empty.or.unknown |
| 1571 |
%% { } |
| 1572 |
%% { "numpages field, but no articleno or eid field, in " |
| 1573 |
%% cite$ * warning$ } |
| 1574 |
%% if$ |
| 1575 |
"" |
| 1576 |
} |
| 1577 |
{ |
| 1578 |
numpages empty.or.unknown |
| 1579 |
{ |
| 1580 |
pages empty.or.unknown |
| 1581 |
{ |
| 1582 |
"articleno or eid, but no pages or numpages field in " |
| 1583 |
cite$ * warning$ |
| 1584 |
"" 'page.count := |
| 1585 |
} |
| 1586 |
{ reduce.pages.to.page.count } |
| 1587 |
if$ |
| 1588 |
} |
| 1589 |
{ numpages 'page.count := } |
| 1590 |
if$ |
| 1591 |
|
| 1592 |
%% The Article number is now handled in format.day.month.year because |
| 1593 |
%% ACM prefers the style "Digital Libraries 12, 3, Article 5 (July 2008)" |
| 1594 |
%% over "Digital Libraries 12, 3 (July 2008), Article 5" |
| 1595 |
%% format.articleno output |
| 1596 |
format.page.count |
| 1597 |
} |
| 1598 |
if$ |
| 1599 |
} |
| 1600 |
|
| 1601 |
FUNCTION {calc.format.page.count} |
| 1602 |
{ |
| 1603 |
numpages empty.or.unknown |
| 1604 |
{ |
| 1605 |
pages empty.or.unknown |
| 1606 |
{ |
| 1607 |
"" 'page.count := |
| 1608 |
} |
| 1609 |
{ reduce.pages.to.page.count } |
| 1610 |
if$ |
| 1611 |
} |
| 1612 |
{ numpages 'page.count := } |
| 1613 |
if$ |
| 1614 |
format.page.count |
| 1615 |
} |
| 1616 |
|
| 1617 |
|
| 1618 |
FUNCTION { journal.canon.abbrev } |
| 1619 |
{ |
| 1620 |
% Returns a canonical abbreviation for 'journal', or else 'journal' |
| 1621 |
% unchanged. |
| 1622 |
journal "ACM Computing Surveys" = { "Comput. Surveys" } { |
| 1623 |
journal "{ACM} Computing Surveys" = { "Comput. Surveys" } { |
| 1624 |
journal "ACM Transactions on Mathematical Software" = { "ACM Trans. Math. Software" } { |
| 1625 |
journal "{ACM} Transactions on Mathematical Software" = { "ACM Trans. Math. Software" } { |
| 1626 |
journal "ACM SIGNUM Newsletter" = { "ACM SIGNUM Newslett." } { |
| 1627 |
journal "ACM {SIGNUM} Newsletter" = { "ACM SIGNUM Newslett." } { |
| 1628 |
journal "{ACM} SIGNUM Newsletter" = { "ACM SIGNUM Newslett." } { |
| 1629 |
journal "{ACM} {SIGNUM} Newsletter" = { "ACM SIGNUM Newslett." } { |
| 1630 |
journal "American Journal of Sociology" = { "Amer. J. Sociology" } { |
| 1631 |
journal "American Mathematical Monthly" = { "Amer. Math. Monthly" } { |
| 1632 |
journal "American Mathematical Society Translations" = { "Amer. Math. Soc. Transl." } { |
| 1633 |
journal "Applied Mathematics and Computation" = { "Appl. Math. Comput." } { |
| 1634 |
journal "British Journal of Mathematical and Statistical Psychology" = { "Brit. J. Math. Statist. Psych." } { |
| 1635 |
journal "Bulletin of the American Mathematical Society" = { "Bull. Amer. Math. Soc." } { |
| 1636 |
journal "Canadian Mathematical Bulletin" = { "Canad. Math. Bull." } { |
| 1637 |
journal "Communications of the ACM" = { "Commun. ACM" } { |
| 1638 |
journal "Communications of the {ACM}" = { "Commun. ACM" } { |
| 1639 |
journal "Computers and Structures" = { "Comput. \& Structures" } { |
| 1640 |
journal "Contemporary Mathematics" = { "Contemp. Math." } { |
| 1641 |
journal "Crelle's Journal" = { "Crelle's J." } { |
| 1642 |
journal "Giornale di Mathematiche" = { "Giorn. Mat." } { |
| 1643 |
journal "IEEE Transactions on Aerospace and Electronic Systems" = { "IEEE Trans. Aerospace Electron. Systems" } { |
| 1644 |
journal "{IEEE} Transactions on Aerospace and Electronic Systems" = { "IEEE Trans. Aerospace Electron. Systems" } { |
| 1645 |
journal "IEEE Transactions on Automatic Control" = { "IEEE Trans. Automat. Control" } { |
| 1646 |
journal "{IEEE} Transactions on Automatic Control" = { "IEEE Trans. Automat. Control" } { |
| 1647 |
journal "IEEE Transactions on Computers" = { "IEEE Trans. Comput." } { |
| 1648 |
journal "{IEEE} Transactions on Computers" = { "IEEE Trans. Comput." } { |
| 1649 |
journal "IMA Journal of Numerical Analysis" = { "IMA J. Numer. Anal." } { |
| 1650 |
journal "{IMA} Journal of Numerical Analysis" = { "IMA J. Numer. Anal." } { |
| 1651 |
journal "Information Processing Letters" = { "Inform. Process. Lett." } { |
| 1652 |
journal "International Journal for Numerical Methods in Engineering" = { "Internat. J. Numer. Methods Engrg." } { |
| 1653 |
journal "International Journal of Control" = { "Internat. J. Control" } { |
| 1654 |
journal "International Journal of Supercomputing Applications" = { "Internat. J. Supercomputing Applic." } { |
| 1655 |
journal "Journal of Computational Physics" = { "J. Comput. Phys." } { |
| 1656 |
journal "Journal of Computational and Applied Mathematics" = { "J. Comput. Appl. Math." } { |
| 1657 |
journal "Journal of Computer and System Sciences" = { "J. Comput. System Sci." } { |
| 1658 |
journal "Journal of Mathematical Analysis and Applications" = { "J. Math. Anal. Appl." } { |
| 1659 |
journal "Journal of Mathematical Physics" = { "J. Math. Phys." } { |
| 1660 |
journal "Journal of Parallel and Distributed Computing" = { "J. Parallel and Distrib. Comput." } { |
| 1661 |
journal "Journal of Research of the National Bureau of Standards" = { "J. Res. Nat. Bur. Standards" } { |
| 1662 |
journal "Journal of VLSI and Computer Systems" = { "J. VLSI Comput. Syst." } { |
| 1663 |
journal "Journal of {VLSI} and Computer Systems" = { "J. VLSI Comput. Syst." } { |
| 1664 |
journal "Journal of the ACM" = { "J. ACM" } { |
| 1665 |
journal "Journal of the American Statistical Association" = { "J. Amer. Statist. Assoc." } { |
| 1666 |
journal "Journal of the Institute of Mathematics and its Applications" = { "J. Inst. Math. Appl." } { |
| 1667 |
journal "Journal of the Society for Industrial and Applied Mathematics" = { "J. Soc. Indust. Appl. Math." } { |
| 1668 |
journal "Journal of the Society for Industrial and Applied Mathematics, Series B, Numerical Analysis" = { "J. Soc. Indust. Appl. Math. Ser. B Numer. Anal." } { |
| 1669 |
journal "Linear Algebra and its Applications" = { "Linear Algebra Appl." } { |
| 1670 |
journal "Mathematica Scandinavica" = { "Math. Scand." } { |
| 1671 |
journal "Mathematical Tables and Other Aids to Computation" = { "Math. Tables Aids Comput." } { |
| 1672 |
journal "Mathematics of Computation" = { "Math. Comp." } { |
| 1673 |
journal "Mathematische Annalen" = { "Math. Ann." } { |
| 1674 |
journal "Numerische Mathematik" = { "Numer. Math." } { |
| 1675 |
journal "Pacific Journal of Mathematics" = { "Pacific J. Math." } { |
| 1676 |
journal "Parallel Computing" = { "Parallel Comput." } { |
| 1677 |
journal "Philosophical Magazine" = { "Philos. Mag." } { |
| 1678 |
journal "Proceedings of the American Mathematical Society" = { "Proc. Amer. Math. Soc." } { |
| 1679 |
journal "Proceedings of the IEEE" = { "Proc. IEEE" } { |
| 1680 |
journal "Proceedings of the {IEEE}" = { "Proc. IEEE" } { |
| 1681 |
journal "Proceedings of the National Academy of Sciences of the USA" = { "Proc. Nat. Acad. Sci. U. S. A." } { |
| 1682 |
journal "Quarterly Journal of Mathematics, Oxford, Series (2)" = { "Quart. J. Math. Oxford Ser. (2)" } { |
| 1683 |
journal "Quarterly of Applied Mathematics" = { "Quart. Appl. Math." } { |
| 1684 |
journal "Review of the International Statisical Institute" = { "Rev. Inst. Internat. Statist." } { |
| 1685 |
journal "SIAM Journal on Algebraic and Discrete Methods" = { "SIAM J. Algebraic Discrete Methods" } { |
| 1686 |
journal "{SIAM} Journal on Algebraic and Discrete Methods" = { "SIAM J. Algebraic Discrete Methods" } { |
| 1687 |
journal "SIAM Journal on Applied Mathematics" = { "SIAM J. Appl. Math." } { |
| 1688 |
journal "{SIAM} Journal on Applied Mathematics" = { "SIAM J. Appl. Math." } { |
| 1689 |
journal "SIAM Journal on Computing" = { "SIAM J. Comput." } { |
| 1690 |
journal "{SIAM} Journal on Computing" = { "SIAM J. Comput." } { |
| 1691 |
journal "SIAM Journal on Matrix Analysis and Applications" = { "SIAM J. Matrix Anal. Appl." } { |
| 1692 |
journal "{SIAM} Journal on Matrix Analysis and Applications" = { "SIAM J. Matrix Anal. Appl." } { |
| 1693 |
journal "SIAM Journal on Numerical Analysis" = { "SIAM J. Numer. Anal." } { |
| 1694 |
journal "{SIAM} Journal on Numerical Analysis" = { "SIAM J. Numer. Anal." } { |
| 1695 |
journal "SIAM Journal on Scientific and Statistical Computing" = { "SIAM J. Sci. Statist. Comput." } { |
| 1696 |
journal "{SIAM} Journal on Scientific and Statistical Computing" = { "SIAM J. Sci. Statist. Comput." } { |
| 1697 |
journal "SIAM Review" = { "SIAM Rev." } { |
| 1698 |
journal "{SIAM} Review" = { "SIAM Rev." } { |
| 1699 |
journal "Software Practice and Experience" = { "Software Prac. Experience" } { |
| 1700 |
journal "Statistical Science" = { "Statist. Sci." } { |
| 1701 |
journal "The Computer Journal" = { "Comput. J." } { |
| 1702 |
journal "Transactions of the American Mathematical Society" = { "Trans. Amer. Math. Soc." } { |
| 1703 |
journal "USSR Computational Mathematics and Mathematical Physics" = { "U. S. S. R. Comput. Math. and Math. Phys." } { |
| 1704 |
journal "{USSR} Computational Mathematics and Mathematical Physics" = { "U. S. S. R. Comput. Math. and Math. Phys." } { |
| 1705 |
journal "Zeitschrift fur Angewandte Mathematik und Mechanik" = { "Z. Angew. Math. Mech." } { |
| 1706 |
journal "Zeitschrift fur Angewandte Mathematik und Physik" = { "Z. Angew. Math. Phys." } { |
| 1707 |
journal |
| 1708 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1709 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1710 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1711 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1712 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1713 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1714 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1715 |
} if$ } if$ } if$ } if$ } if$ } if$ } if$ } if$ |
| 1716 |
} |
| 1717 |
|
| 1718 |
FUNCTION { format.journal.volume.number.day.month.year } |
| 1719 |
{ |
| 1720 |
% By Young (and Spencer) |
| 1721 |
% GNP - fixed bugs with missing volume, number, and/or pages |
| 1722 |
% |
| 1723 |
% Format journal, volume, number, pages for article types. |
| 1724 |
% |
| 1725 |
journal empty.or.unknown |
| 1726 |
{ "no journal in " cite$ * warning$ "" } |
| 1727 |
{ "\bibinfo{journal}{" |
| 1728 |
journal.canon.abbrev emphasize * |
| 1729 |
"}" * } |
| 1730 |
if$ |
| 1731 |
|
| 1732 |
number empty.or.unknown |
| 1733 |
{ |
| 1734 |
volume empty.or.unknown |
| 1735 |
{ "no number and no volume in " cite$ * warning$ "" * } |
| 1736 |
{ " " * " \bibinfo{volume}{" * volume * "}" * } |
| 1737 |
if$ |
| 1738 |
} |
| 1739 |
{ |
| 1740 |
volume empty.or.unknown |
| 1741 |
{ |
| 1742 |
"unusual to have number, but no volume, for " cite$ * warning$ |
| 1743 |
" \bibinfo{number}{" * number * "}" * |
| 1744 |
} |
| 1745 |
{ " \bibinfo{volume}{" * volume * "}, \bibinfo{number}{" * |
| 1746 |
number * "}" *} |
| 1747 |
if$ |
| 1748 |
} |
| 1749 |
if$ |
| 1750 |
after.block 'output.state := |
| 1751 |
|
| 1752 |
% Sometimes proceedings are published in journals |
| 1753 |
% In this case we do not want to put year, day and month here |
| 1754 |
|
| 1755 |
type$ "inproceedings" = |
| 1756 |
{ } |
| 1757 |
{format.day.month.year * } |
| 1758 |
if$ |
| 1759 |
} |
| 1760 |
|
| 1761 |
|
| 1762 |
FUNCTION { format.journal.underreview } |
| 1763 |
{ |
| 1764 |
journal empty.or.unknown |
| 1765 |
{ "" } |
| 1766 |
{ "\bibinfo{journal}{" |
| 1767 |
journal.canon.abbrev emphasize * |
| 1768 |
"}." * } |
| 1769 |
if$ |
| 1770 |
|
| 1771 |
" Manuscript submitted for review" * |
| 1772 |
} |
| 1773 |
|
| 1774 |
|
| 1775 |
FUNCTION { format.chapter.pages } |
| 1776 |
{ |
| 1777 |
chapter empty.or.unknown |
| 1778 |
'format.pages |
| 1779 |
{ type empty.or.unknown |
| 1780 |
{ "Chapter" } % gnp - changed to mixed case |
| 1781 |
{ type "t" change.case$ } |
| 1782 |
if$ |
| 1783 |
chapter tie.or.space.connect |
| 1784 |
pages empty.or.unknown |
| 1785 |
{"page numbers missing in " cite$ * warning$} % gnp - added check |
| 1786 |
{ ", " * format.pages * } |
| 1787 |
if$ |
| 1788 |
} |
| 1789 |
if$ |
| 1790 |
} |
| 1791 |
|
| 1792 |
FUNCTION { format.in.emphasize.booktitle } |
| 1793 |
{ % jtb: format for collections or proceedings not appearing in a journal |
| 1794 |
booktitle empty.or.unknown |
| 1795 |
{ "" } |
| 1796 |
{ "In " format.emphasize.booktitle * } |
| 1797 |
if$ |
| 1798 |
} |
| 1799 |
|
| 1800 |
FUNCTION { format.in.booktitle } |
| 1801 |
{ % jtb: format for proceedings appearing in a journal |
| 1802 |
booktitle empty.or.unknown |
| 1803 |
{ "" } |
| 1804 |
{ "In \bibinfo{booktitle}{" booktitle * "}" * } |
| 1805 |
if$ |
| 1806 |
} |
| 1807 |
|
| 1808 |
FUNCTION { format.venue } |
| 1809 |
{ %Venues for presentations |
| 1810 |
venue empty.or.unknown |
| 1811 |
{ "" } |
| 1812 |
{"Presentation at \bibinfo{venue}{" venue * "}" * } |
| 1813 |
if$ |
| 1814 |
} |
| 1815 |
|
| 1816 |
FUNCTION { format.in.ed.booktitle } |
| 1817 |
{ |
| 1818 |
booktitle empty.or.unknown |
| 1819 |
{ "" } |
| 1820 |
{ editor empty.or.unknown |
| 1821 |
{ "In " format.emphasize.booktitle * } |
| 1822 |
% jtb: swapped editor location |
| 1823 |
{ "In " format.emphasize.booktitle * ", " * format.editors.fml * } |
| 1824 |
if$ |
| 1825 |
} |
| 1826 |
if$ |
| 1827 |
} |
| 1828 |
|
| 1829 |
FUNCTION { format.thesis.type } |
| 1830 |
{ % call with default type on stack top |
| 1831 |
type empty.or.unknown |
| 1832 |
'skip$ % use default type |
| 1833 |
{ |
| 1834 |
pop$ % discard default type |
| 1835 |
% NO: it is silly to have to brace protect every degree type!: type "t" change.case$ |
| 1836 |
type |
| 1837 |
} |
| 1838 |
if$ |
| 1839 |
} |
| 1840 |
|
| 1841 |
FUNCTION { format.tr.number } |
| 1842 |
{ |
| 1843 |
"\bibinfo{type}{" |
| 1844 |
type empty.or.unknown |
| 1845 |
{ "{T}echnical {R}eport" } |
| 1846 |
'type |
| 1847 |
if$ |
| 1848 |
"}" * * |
| 1849 |
number empty.or.unknown |
| 1850 |
{ "t" change.case$ } |
| 1851 |
%% LOOKS BAD: { "." * number tie.or.space.connect } |
| 1852 |
%% Prefer "Research report RJ687." to "Research report. RJ687." |
| 1853 |
{ number tie.or.space.connect } |
| 1854 |
if$ |
| 1855 |
} |
| 1856 |
|
| 1857 |
FUNCTION { format.advisor } |
| 1858 |
{ |
| 1859 |
advisor empty.or.unknown |
| 1860 |
{ "" } |
| 1861 |
{ "Advisor(s) " advisor * } |
| 1862 |
if$ |
| 1863 |
} |
| 1864 |
|
| 1865 |
FUNCTION { format.article.crossref } |
| 1866 |
{ "See" |
| 1867 |
"\citeN{" * crossref * "}" * |
| 1868 |
} |
| 1869 |
|
| 1870 |
FUNCTION { format.crossref.editor } |
| 1871 |
{ |
| 1872 |
editor #1 "{vv~}{ll}" format.name$ |
| 1873 |
editor num.names$ duplicate$ |
| 1874 |
#2 > |
| 1875 |
{ pop$ " et~al\mbox{.}" * } % jrh: avoid spacing problems |
| 1876 |
{ #2 < |
| 1877 |
'skip$ |
| 1878 |
{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 1879 |
{ " et~al\mbox{.}" * } % jrh: avoid spacing problems |
| 1880 |
{ " and " * editor #2 "{vv~}{ll}" format.name$ * } |
| 1881 |
if$ |
| 1882 |
} |
| 1883 |
if$ |
| 1884 |
} |
| 1885 |
if$ |
| 1886 |
} |
| 1887 |
|
| 1888 |
FUNCTION { format.book.crossref } |
| 1889 |
{ |
| 1890 |
volume empty.or.unknown |
| 1891 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 1892 |
"In " |
| 1893 |
} |
| 1894 |
{ "Volume" volume tie.or.space.connect % gnp - changed to mixed case |
| 1895 |
" of " * |
| 1896 |
} |
| 1897 |
if$ |
| 1898 |
editor empty.or.unknown |
| 1899 |
editor field.or.null author field.or.null = |
| 1900 |
or |
| 1901 |
{ key empty.or.unknown |
| 1902 |
{ series empty.or.unknown |
| 1903 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 1904 |
crossref * warning$ |
| 1905 |
"" * |
| 1906 |
} |
| 1907 |
{ series emphasize * } |
| 1908 |
if$ |
| 1909 |
} |
| 1910 |
{ key * } |
| 1911 |
if$ |
| 1912 |
} |
| 1913 |
{ format.crossref.editor * } |
| 1914 |
if$ |
| 1915 |
" \citeN{" * crossref * "}" * |
| 1916 |
} |
| 1917 |
|
| 1918 |
FUNCTION { format.incoll.inproc.crossref } |
| 1919 |
{ "See" |
| 1920 |
" \citeN{" * crossref * "}" * |
| 1921 |
} |
| 1922 |
|
| 1923 |
FUNCTION { format.lab.names } |
| 1924 |
{ |
| 1925 |
% format.lab.names: |
| 1926 |
% |
| 1927 |
% determines "short" names for the abbreviated author information. |
| 1928 |
% "Long" labels are created in calc.label, using the routine my.full.label |
| 1929 |
% to format author and editor fields. |
| 1930 |
% |
| 1931 |
% There are 4 cases for labels. (n=3 in the example) |
| 1932 |
% a) one author Foo |
| 1933 |
% b) one to n Foo, Bar and Baz |
| 1934 |
% c) use of "and others" Foo, Bar et al. |
| 1935 |
% d) more than n Foo et al. |
| 1936 |
|
| 1937 |
's := |
| 1938 |
s num.names$ 'numnames := |
| 1939 |
numnames #2 > % change number to number of others allowed before |
| 1940 |
% forcing "et al". |
| 1941 |
{ s #1 "{vv~}{ll}" format.name$ " et~al\mbox{.}" * } % jrh: \mbox{} added |
| 1942 |
{ |
| 1943 |
numnames #1 - 'namesleft := |
| 1944 |
#2 'nameptr := |
| 1945 |
s #1 "{vv~}{ll}" format.name$ |
| 1946 |
{ namesleft #0 > } |
| 1947 |
{ nameptr numnames = |
| 1948 |
{ s nameptr "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 1949 |
{ " et~al\mbox{.}" * } % jrh: avoid spacing problems |
| 1950 |
{ " and " * s nameptr "{vv~}{ll}" format.name$ * } |
| 1951 |
if$ |
| 1952 |
} |
| 1953 |
{ ", " * s nameptr "{vv~}{ll}" format.name$ * } |
| 1954 |
if$ |
| 1955 |
nameptr #1 + 'nameptr := |
| 1956 |
namesleft #1 - 'namesleft := |
| 1957 |
} |
| 1958 |
while$ |
| 1959 |
} |
| 1960 |
if$ |
| 1961 |
} |
| 1962 |
|
| 1963 |
FUNCTION { author.key.label } |
| 1964 |
{ |
| 1965 |
author empty.or.unknown |
| 1966 |
{ key empty.or.unknown |
| 1967 |
{ "no key, author in " cite$ * warning$ |
| 1968 |
cite$ #1 #3 substring$ } |
| 1969 |
'key |
| 1970 |
if$ |
| 1971 |
} |
| 1972 |
{ author format.lab.names } |
| 1973 |
if$ |
| 1974 |
} |
| 1975 |
|
| 1976 |
FUNCTION { editor.key.organization.label } |
| 1977 |
{ % added - gnp. Provide label formatting by organization if editor is null. |
| 1978 |
editor empty.or.unknown |
| 1979 |
{ organization empty.or.unknown |
| 1980 |
{ key empty.or.unknown |
| 1981 |
{ "no key, editor or organization in " cite$ * warning$ |
| 1982 |
cite$ #1 #3 substring$ } |
| 1983 |
'key |
| 1984 |
if$ |
| 1985 |
} |
| 1986 |
{ organization } |
| 1987 |
if$ |
| 1988 |
} |
| 1989 |
{ editor format.lab.names } |
| 1990 |
if$ |
| 1991 |
} |
| 1992 |
|
| 1993 |
FUNCTION { author.editor.key.label } |
| 1994 |
{ |
| 1995 |
author empty.or.unknown |
| 1996 |
{ editor empty.or.unknown |
| 1997 |
{ key empty.or.unknown |
| 1998 |
{ "no key, author, or editor in " cite$ * warning$ |
| 1999 |
cite$ #1 #3 substring$ } |
| 2000 |
'key |
| 2001 |
if$ |
| 2002 |
} |
| 2003 |
{ editor format.lab.names } |
| 2004 |
if$ |
| 2005 |
} |
| 2006 |
{ author format.lab.names } |
| 2007 |
if$ |
| 2008 |
} |
| 2009 |
|
| 2010 |
FUNCTION { author.editor.key.organization.label } |
| 2011 |
{ % added - gnp. Provide label formatting by organization if author is null. |
| 2012 |
author empty.or.unknown |
| 2013 |
{ editor empty.or.unknown |
| 2014 |
{ organization empty.or.unknown |
| 2015 |
{ key empty.or.unknown |
| 2016 |
{ "no key, author, editor or organization in " cite$ * warning$ |
| 2017 |
cite$ #1 #3 substring$ } |
| 2018 |
'key |
| 2019 |
if$ |
| 2020 |
} |
| 2021 |
{ organization } |
| 2022 |
if$ |
| 2023 |
} |
| 2024 |
{ editor format.lab.names } |
| 2025 |
if$ |
| 2026 |
} |
| 2027 |
{ author format.lab.names } |
| 2028 |
if$ |
| 2029 |
} |
| 2030 |
|
| 2031 |
% Calculate label and leave it on stack |
| 2032 |
FUNCTION { calc.basic.label } |
| 2033 |
{ |
| 2034 |
type$ "book" = |
| 2035 |
type$ "inbook" = |
| 2036 |
or |
| 2037 |
type$ "article" = |
| 2038 |
or |
| 2039 |
'author.editor.key.label |
| 2040 |
{ type$ "proceedings" = |
| 2041 |
type$ "periodical" = |
| 2042 |
or |
| 2043 |
'editor.key.organization.label |
| 2044 |
{ type$ "manual" = |
| 2045 |
'author.editor.key.organization.label |
| 2046 |
'author.key.label |
| 2047 |
if$ |
| 2048 |
} |
| 2049 |
if$ |
| 2050 |
} |
| 2051 |
if$ |
| 2052 |
duplicate$ |
| 2053 |
year empty.or.unknown |
| 2054 |
{ date empty.or.unknown |
| 2055 |
{ "{[n.\,d.]}" } |
| 2056 |
{ date field.or.null purify$ #1 #4 substring$} |
| 2057 |
if$ |
| 2058 |
} |
| 2059 |
{ year field.or.null purify$ #-1 #4 substring$} |
| 2060 |
if$ |
| 2061 |
* |
| 2062 |
'basic.label.year := |
| 2063 |
} |
| 2064 |
|
| 2065 |
FUNCTION { calc.label } |
| 2066 |
{ |
| 2067 |
% Changed - GNP. See also author.editor.organization.sort, editor.organization.sort |
| 2068 |
% Form label for BibTeX entry. The classification of which fields are used |
| 2069 |
% for which type of entry (book, inbook, etc.) are taken from alpha.bst. |
| 2070 |
% The change here from newapa is to also include organization as a |
| 2071 |
% citation label if author or editor is missing. |
| 2072 |
|
| 2073 |
calc.basic.label |
| 2074 |
|
| 2075 |
author empty.or.unknown % generate the full label citation information. |
| 2076 |
{ |
| 2077 |
editor empty.or.unknown |
| 2078 |
{ |
| 2079 |
organization empty.or.unknown |
| 2080 |
{ |
| 2081 |
key empty.or.unknown |
| 2082 |
{ |
| 2083 |
"no author, editor, organization, or key in " cite$ * warning$ |
| 2084 |
"??" |
| 2085 |
} |
| 2086 |
{ key } |
| 2087 |
if$ |
| 2088 |
} |
| 2089 |
{ organization } |
| 2090 |
if$ |
| 2091 |
} |
| 2092 |
{ editor my.full.label } |
| 2093 |
if$ |
| 2094 |
} |
| 2095 |
{ author my.full.label } |
| 2096 |
if$ |
| 2097 |
|
| 2098 |
% leave label on the stack, to be popped when required. |
| 2099 |
|
| 2100 |
"}{" * swap$ * "}{" * |
| 2101 |
% year field.or.null purify$ #-1 #4 substring$ * |
| 2102 |
% |
| 2103 |
% save the year for sort processing afterwards (adding a, b, c, etc.) |
| 2104 |
% |
| 2105 |
year empty.or.unknown |
| 2106 |
{ date empty.or.unknown |
| 2107 |
{ "{[n.\,d.]}" } |
| 2108 |
{ date field.or.null purify$ #1 #4 substring$} |
| 2109 |
if$ |
| 2110 |
} |
| 2111 |
{ year field.or.null purify$ #-1 #4 substring$} |
| 2112 |
if$ |
| 2113 |
'label.year := |
| 2114 |
} |
| 2115 |
|
| 2116 |
|
| 2117 |
FUNCTION { output.bibitem } |
| 2118 |
{ |
| 2119 |
newline$ |
| 2120 |
"\bibitem[" write$ |
| 2121 |
calc.basic.label write$ |
| 2122 |
"(" write$ |
| 2123 |
sort.year write$ |
| 2124 |
")" write$ |
| 2125 |
"]%" writeln |
| 2126 |
" {" write$ |
| 2127 |
cite$ write$ |
| 2128 |
"}" writeln |
| 2129 |
"" |
| 2130 |
before.all 'output.state := |
| 2131 |
} |
| 2132 |
|
| 2133 |
|
| 2134 |
FUNCTION { output.issue.doi.coden.isxn.lccn.url.eprint } |
| 2135 |
{ % enter and return with stack empty |
| 2136 |
%% We switch now from buffered output to output of complete lines, so |
| 2137 |
%% that the Issue .. URL data have their own lines, and are less likely |
| 2138 |
%% to be line-wrapped by BibTeX's short-sighted algorithm, which wraps |
| 2139 |
%% lines longer than 79 characters, backtracking to what it thinks is |
| 2140 |
%% a break point in the string. Any such wrapping MUST be undone to |
| 2141 |
%% prevent percent-newline from appearing in DOIs and URLs. The |
| 2142 |
%% output data are intentionally wrapped in \showxxx{} macros at |
| 2143 |
%% beginning of line, and that supply their own punctuation (if they |
| 2144 |
%% are not defined to suppress output entirely), to make it easier for |
| 2145 |
%% other software to recover them from .bbl files. |
| 2146 |
%% |
| 2147 |
%% It also makes it possible to later change the macro definitions |
| 2148 |
%% to suppress particular output values, or alter their appearance. |
| 2149 |
%% |
| 2150 |
%% Note that it is possible for theses, technical reports, and |
| 2151 |
%% manuals to have ISBNs, and anything that has an ISBN may also |
| 2152 |
%% have an ISSN. When there are no values for these keys, there |
| 2153 |
%% is no output generated for them here. |
| 2154 |
|
| 2155 |
"\newblock" writeln |
| 2156 |
after.block 'output.state := |
| 2157 |
|
| 2158 |
output.issue |
| 2159 |
output.isbn |
| 2160 |
output.coden % CODEN is functionally like ISSN, so output them sequentially |
| 2161 |
output.issn |
| 2162 |
output.lccn |
| 2163 |
output.eprint |
| 2164 |
output.doi % DOI is ALWAYS last according to CrossRef DOI documentation |
| 2165 |
output.url % but ACM wants URL last |
| 2166 |
} |
| 2167 |
|
| 2168 |
FUNCTION { output.issue.doi.coden.isxn.lccn.url.eprint.note } |
| 2169 |
{ % enter with stack empty, return with empty string on stack |
| 2170 |
output.issue.doi.coden.isxn.lccn.url.eprint |
| 2171 |
note empty.or.unknown |
| 2172 |
{ } |
| 2173 |
{ |
| 2174 |
"\newblock" writeln |
| 2175 |
output.note |
| 2176 |
} |
| 2177 |
if$ |
| 2178 |
"" |
| 2179 |
} |
| 2180 |
|
| 2181 |
FUNCTION { output.issue.doi.coden.isxn.lccn.url.eprint.note.check } |
| 2182 |
{ % enter with stack empty, return with empty string on stack |
| 2183 |
output.issue.doi.coden.isxn.lccn.url.eprint |
| 2184 |
note empty.or.unknown |
| 2185 |
{ } |
| 2186 |
{ |
| 2187 |
"\newblock" writeln |
| 2188 |
output.note.check |
| 2189 |
} |
| 2190 |
if$ |
| 2191 |
"" |
| 2192 |
} |
| 2193 |
|
| 2194 |
FUNCTION { article } |
| 2195 |
{ |
| 2196 |
output.bibitem |
| 2197 |
|
| 2198 |
author empty.or.unknown |
| 2199 |
{ |
| 2200 |
editor empty.or.unknown |
| 2201 |
{ "neither author and editor supplied for " cite$ * warning$ } |
| 2202 |
{ format.editors "editor" output.check } |
| 2203 |
if$ |
| 2204 |
} |
| 2205 |
{ format.authors "author" output.check } |
| 2206 |
if$ |
| 2207 |
|
| 2208 |
author format.no.key output % added |
| 2209 |
output.year.check % added |
| 2210 |
new.block |
| 2211 |
format.articletitle "title" output.check |
| 2212 |
new.block |
| 2213 |
howpublished empty.or.unknown |
| 2214 |
{ } |
| 2215 |
{ "\bibinfo{howpublished}{" howpublished "}" * * output } |
| 2216 |
if$ |
| 2217 |
|
| 2218 |
crossref missing$ |
| 2219 |
{ format.journal.volume.number.day.month.year output} |
| 2220 |
{ |
| 2221 |
"cross reference in @Article{...} is unusual" warning$ |
| 2222 |
format.article.crossref output.nonnull |
| 2223 |
} |
| 2224 |
if$ |
| 2225 |
|
| 2226 |
format.pages.check.without.articleno output |
| 2227 |
format.articleno.numpages output |
| 2228 |
fin.block |
| 2229 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2230 |
fin.entry |
| 2231 |
} |
| 2232 |
|
| 2233 |
FUNCTION { underreview } |
| 2234 |
{ |
| 2235 |
output.bibitem |
| 2236 |
|
| 2237 |
author empty.or.unknown |
| 2238 |
{ |
| 2239 |
editor empty.or.unknown |
| 2240 |
{ "neither author and editor supplied for " cite$ * warning$ } |
| 2241 |
{ format.editors "editor" output.check } |
| 2242 |
if$ |
| 2243 |
} |
| 2244 |
{ format.authors "author" output.check } |
| 2245 |
if$ |
| 2246 |
|
| 2247 |
author format.no.key output % added |
| 2248 |
output.year.check % added |
| 2249 |
new.block |
| 2250 |
format.articletitle "title" output.check |
| 2251 |
new.block |
| 2252 |
howpublished empty.or.unknown |
| 2253 |
{ } |
| 2254 |
{ "\bibinfo{howpublished}{" howpublished "}" * * output } |
| 2255 |
if$ |
| 2256 |
|
| 2257 |
format.journal.underreview "journal" output.check |
| 2258 |
|
| 2259 |
fin.block |
| 2260 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2261 |
fin.entry |
| 2262 |
} |
| 2263 |
|
| 2264 |
|
| 2265 |
FUNCTION { book } |
| 2266 |
{ |
| 2267 |
output.bibitem |
| 2268 |
author empty.or.unknown |
| 2269 |
{ format.editors "author and editor" output.check } |
| 2270 |
{ format.authors output.nonnull |
| 2271 |
crossref missing$ |
| 2272 |
{ "author and editor" editor either.or.check } |
| 2273 |
'skip$ |
| 2274 |
if$ |
| 2275 |
} |
| 2276 |
if$ |
| 2277 |
output.year.check % added |
| 2278 |
new.block |
| 2279 |
format.btitle "title" output.check |
| 2280 |
crossref missing$ |
| 2281 |
{ new.sentence % jtb: start a new sentence for series/volume |
| 2282 |
format.bvolume output |
| 2283 |
new.block |
| 2284 |
format.number.series output |
| 2285 |
new.sentence |
| 2286 |
publisher "publisher" bibinfo.output.check |
| 2287 |
address "address" bibinfo.output.check % jtb: require address |
| 2288 |
fin.sentence |
| 2289 |
pages empty.or.unknown |
| 2290 |
{ format.bookpages } % use bookpages when pages empty |
| 2291 |
{ format.pages.check "pages" tie.or.space.connect } |
| 2292 |
if$ |
| 2293 |
output |
| 2294 |
} |
| 2295 |
{ new.block |
| 2296 |
format.book.crossref output.nonnull |
| 2297 |
} |
| 2298 |
if$ |
| 2299 |
fin.block |
| 2300 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2301 |
fin.entry |
| 2302 |
} |
| 2303 |
|
| 2304 |
FUNCTION { booklet } |
| 2305 |
{ |
| 2306 |
output.bibitem |
| 2307 |
format.authors output |
| 2308 |
author format.key output % added |
| 2309 |
output.year.check % added |
| 2310 |
new.block |
| 2311 |
format.title "title" output.check |
| 2312 |
new.block |
| 2313 |
howpublished empty.or.unknown |
| 2314 |
{ } |
| 2315 |
{ "\bibinfo{howpublished}{" howpublished "}" * * output } |
| 2316 |
if$ |
| 2317 |
address output |
| 2318 |
fin.block |
| 2319 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2320 |
fin.entry |
| 2321 |
} |
| 2322 |
|
| 2323 |
FUNCTION { inbook } |
| 2324 |
{ |
| 2325 |
output.bibitem |
| 2326 |
author empty.or.unknown |
| 2327 |
{ format.editors |
| 2328 |
"author and editor" output.check |
| 2329 |
} |
| 2330 |
{ format.authors output.nonnull |
| 2331 |
crossref missing$ |
| 2332 |
{ "author and editor" editor either.or.check } |
| 2333 |
'skip$ |
| 2334 |
if$ |
| 2335 |
} |
| 2336 |
if$ |
| 2337 |
output.year.check % added |
| 2338 |
new.block |
| 2339 |
format.btitle "title" output.check |
| 2340 |
crossref missing$ |
| 2341 |
{ new.sentence % jtb: start a new sentence for series/volume |
| 2342 |
format.bvolume output |
| 2343 |
new.block |
| 2344 |
format.number.series output |
| 2345 |
new.sentence |
| 2346 |
publisher "publisher" bibinfo.output.check |
| 2347 |
address "address" bibinfo.output.check % jtb: require address |
| 2348 |
format.bookpages output |
| 2349 |
format.chapter.pages |
| 2350 |
"chapter and pages" output.check % jtb: moved from before publisher |
| 2351 |
} |
| 2352 |
{ |
| 2353 |
format.bookpages output |
| 2354 |
format.chapter.pages "chapter and pages" output.check |
| 2355 |
new.block |
| 2356 |
format.book.crossref output.nonnull |
| 2357 |
} |
| 2358 |
if$ |
| 2359 |
fin.block |
| 2360 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2361 |
fin.entry |
| 2362 |
} |
| 2363 |
|
| 2364 |
FUNCTION { incollection } |
| 2365 |
{ |
| 2366 |
output.bibitem |
| 2367 |
format.authors "author" output.check |
| 2368 |
author format.key output % added |
| 2369 |
output.year.check % added |
| 2370 |
new.block |
| 2371 |
format.articletitle "title" output.check |
| 2372 |
new.block |
| 2373 |
crossref missing$ |
| 2374 |
{ format.in.ed.booktitle "booktitle" output.check |
| 2375 |
new.sentence % jtb: start a new sentence for series/volume |
| 2376 |
format.bvolume output |
| 2377 |
format.number.series output |
| 2378 |
new.sentence |
| 2379 |
publisher "publisher" bibinfo.output.check |
| 2380 |
address "address" bibinfo.output.check % jtb: require address |
| 2381 |
format.bookpages output |
| 2382 |
format.chapter.pages output % gnp - was special.output.nonnull |
| 2383 |
% left out comma before page numbers |
| 2384 |
% jtb: moved from before publisher |
| 2385 |
} |
| 2386 |
{ |
| 2387 |
format.incoll.inproc.crossref output.nonnull |
| 2388 |
format.chapter.pages output |
| 2389 |
} |
| 2390 |
if$ |
| 2391 |
fin.block |
| 2392 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2393 |
fin.entry |
| 2394 |
} |
| 2395 |
|
| 2396 |
FUNCTION { inproceedings } |
| 2397 |
{ |
| 2398 |
output.bibitem |
| 2399 |
format.authors "author" output.check |
| 2400 |
author format.key output % added |
| 2401 |
output.year.check % added |
| 2402 |
new.block |
| 2403 |
format.articletitle "title" output.check |
| 2404 |
howpublished empty.or.unknown |
| 2405 |
{ } |
| 2406 |
{ "\bibinfo{howpublished}{" howpublished "}" * * output.dot.space } |
| 2407 |
if$ |
| 2408 |
crossref missing$ |
| 2409 |
{ |
| 2410 |
journal missing$ % jtb: proceedings appearing in journals |
| 2411 |
{ format.in.emphasize.booktitle format.city "booktitle" output.check.dot.space |
| 2412 |
format.series output.removenospace |
| 2413 |
format.editors.fml output % BV 2011/09/27 Moved dot to comma |
| 2414 |
series empty.or.unknown |
| 2415 |
{ format.bvolume.noseries output } |
| 2416 |
{} |
| 2417 |
if$ |
| 2418 |
new.sentence |
| 2419 |
organization output |
| 2420 |
publisher "publisher" bibinfo.output.check % jtb: require publisher (?) |
| 2421 |
address "address" bibinfo.output.check % jtb: require address |
| 2422 |
format.bookpages output |
| 2423 |
} |
| 2424 |
{ |
| 2425 |
format.in.booktitle format.city "booktitle" output.check |
| 2426 |
format.editors.fml output |
| 2427 |
new.sentence |
| 2428 |
format.journal.volume.number.day.month.year output |
| 2429 |
} |
| 2430 |
if$ |
| 2431 |
format.articleno output |
| 2432 |
format.pages.check.without.articleno output |
| 2433 |
} |
| 2434 |
{ |
| 2435 |
format.incoll.inproc.crossref output.nonnull |
| 2436 |
format.articleno output |
| 2437 |
format.pages.check.without.articleno output |
| 2438 |
} |
| 2439 |
if$ |
| 2440 |
format.articleno.numpages output |
| 2441 |
fin.block |
| 2442 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2443 |
fin.entry |
| 2444 |
} |
| 2445 |
|
| 2446 |
|
| 2447 |
FUNCTION { presentation } |
| 2448 |
{ |
| 2449 |
output.bibitem |
| 2450 |
format.authors "author" output.check |
| 2451 |
author format.key output % added |
| 2452 |
output.year.check % added |
| 2453 |
new.block |
| 2454 |
format.articletitle "title" output.check |
| 2455 |
howpublished empty.or.unknown |
| 2456 |
{ } |
| 2457 |
{ "\bibinfo{howpublished}{" howpublished "}" * * output.dot.space } |
| 2458 |
if$ |
| 2459 |
crossref missing$ |
| 2460 |
{ |
| 2461 |
journal missing$ % jtb: proceedings appearing in journals |
| 2462 |
{ new.sentence |
| 2463 |
format.venue "venue" output.check |
| 2464 |
format.series output.removenospace |
| 2465 |
format.editors.fml output % BV 2011/09/27 Moved dot to comma |
| 2466 |
series empty.or.unknown |
| 2467 |
{ format.bvolume.noseries output } |
| 2468 |
{} |
| 2469 |
if$ |
| 2470 |
new.sentence |
| 2471 |
organization output |
| 2472 |
publisher output |
| 2473 |
address output |
| 2474 |
format.bookpages output |
| 2475 |
} |
| 2476 |
{ |
| 2477 |
new.sentence |
| 2478 |
format.venue "venue" output.check |
| 2479 |
format.editors.fml output |
| 2480 |
new.sentence |
| 2481 |
format.journal.volume.number.day.month.year output |
| 2482 |
} |
| 2483 |
if$ |
| 2484 |
format.articleno output |
| 2485 |
format.pages.check.without.articleno output |
| 2486 |
} |
| 2487 |
{ |
| 2488 |
format.incoll.inproc.crossref output.nonnull |
| 2489 |
format.articleno output |
| 2490 |
format.pages.check.without.articleno output |
| 2491 |
} |
| 2492 |
if$ |
| 2493 |
format.articleno.numpages output |
| 2494 |
fin.block |
| 2495 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2496 |
fin.entry |
| 2497 |
} |
| 2498 |
|
| 2499 |
|
| 2500 |
FUNCTION { conference } { inproceedings } |
| 2501 |
|
| 2502 |
FUNCTION { manual } |
| 2503 |
{ |
| 2504 |
output.bibitem |
| 2505 |
author empty.or.unknown |
| 2506 |
{ editor empty.or.unknown |
| 2507 |
{ organization output |
| 2508 |
organization format.key output } % if all else fails, use key |
| 2509 |
{ format.editors "author and editor" output.check } |
| 2510 |
if$ |
| 2511 |
} |
| 2512 |
{ format.authors output.nonnull } |
| 2513 |
if$ |
| 2514 |
output.year.check % added |
| 2515 |
new.block |
| 2516 |
format.btitle "title" output.check |
| 2517 |
organization address new.block.checkb |
| 2518 |
% jtb: back to normal style: organization, address |
| 2519 |
organization output |
| 2520 |
address output |
| 2521 |
fin.block |
| 2522 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2523 |
fin.entry |
| 2524 |
} |
| 2525 |
|
| 2526 |
FUNCTION { mastersthesis } |
| 2527 |
{ |
| 2528 |
output.bibitem |
| 2529 |
format.authors "author" output.check |
| 2530 |
author format.key output % added |
| 2531 |
output.year.check % added |
| 2532 |
new.block |
| 2533 |
format.title emphasize "title" output.check % NB: ACM style requires emphasized thesis title |
| 2534 |
new.block |
| 2535 |
"\bibinfo{thesistype}{Master's\ thesis}" format.thesis.type output |
| 2536 |
new.sentence |
| 2537 |
school "school" bibinfo.output.check |
| 2538 |
address empty.or.unknown |
| 2539 |
{ } |
| 2540 |
{ "\bibinfo{address}{" address * "}" * output } |
| 2541 |
if$ |
| 2542 |
new.block |
| 2543 |
format.advisor output |
| 2544 |
fin.block |
| 2545 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2546 |
fin.entry |
| 2547 |
} |
| 2548 |
|
| 2549 |
FUNCTION { misc } |
| 2550 |
{ |
| 2551 |
output.bibitem |
| 2552 |
format.authors "author" output.check |
| 2553 |
author format.key output % added |
| 2554 |
output.year.check % added |
| 2555 |
title howpublished new.block.checkb |
| 2556 |
format.title output |
| 2557 |
new.block |
| 2558 |
howpublished empty.or.unknown |
| 2559 |
{ } |
| 2560 |
{ "\bibinfo{howpublished}{" howpublished "}" * * output } |
| 2561 |
if$ |
| 2562 |
calc.format.page.count output |
| 2563 |
fin.block |
| 2564 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2565 |
fin.entry |
| 2566 |
} |
| 2567 |
|
| 2568 |
FUNCTION { online } { manual } |
| 2569 |
|
| 2570 |
FUNCTION { game } { manual } |
| 2571 |
|
| 2572 |
FUNCTION { video } { manual } |
| 2573 |
|
| 2574 |
FUNCTION { artifactsoftware } { manual } |
| 2575 |
|
| 2576 |
FUNCTION { artifactdataset } { manual } |
| 2577 |
|
| 2578 |
FUNCTION { software } { artifactsoftware } |
| 2579 |
|
| 2580 |
FUNCTION { dataset } { artifactdataset } |
| 2581 |
|
| 2582 |
|
| 2583 |
FUNCTION { preprint } { manual } |
| 2584 |
|
| 2585 |
FUNCTION { phdthesis } |
| 2586 |
{ |
| 2587 |
output.bibitem |
| 2588 |
format.authors "author" output.check |
| 2589 |
author format.key output % added |
| 2590 |
output.year.check % added |
| 2591 |
new.block |
| 2592 |
format.title emphasize "title" output.check % NB: ACM style requires emphasized thesis title |
| 2593 |
new.block |
| 2594 |
"\bibinfo{thesistype}{Ph.\,D. Dissertation}" format.thesis.type output |
| 2595 |
new.sentence |
| 2596 |
school "school" bibinfo.output.check |
| 2597 |
address empty.or.unknown |
| 2598 |
{ } |
| 2599 |
{ "\bibinfo{address}{" address * "}" * output } |
| 2600 |
if$ |
| 2601 |
new.block |
| 2602 |
format.advisor output |
| 2603 |
fin.block |
| 2604 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2605 |
fin.entry |
| 2606 |
} |
| 2607 |
|
| 2608 |
FUNCTION {format.date} |
| 2609 |
{ year empty.or.unknown |
| 2610 |
{ month empty.or.unknown |
| 2611 |
{ |
| 2612 |
"" % output empty date if year/month both empty |
| 2613 |
day empty.or.unknown |
| 2614 |
{ } |
| 2615 |
{ "there's a day but no month or year in " cite$ * warning$ } |
| 2616 |
if$ |
| 2617 |
} |
| 2618 |
{ "there's a month but no year in " cite$ * warning$ |
| 2619 |
month |
| 2620 |
day empty.or.unknown |
| 2621 |
{ } |
| 2622 |
{ " " * day * } |
| 2623 |
if$ |
| 2624 |
} |
| 2625 |
if$ |
| 2626 |
} |
| 2627 |
{ month empty.or.unknown |
| 2628 |
{ |
| 2629 |
year % output only year if month empty |
| 2630 |
day empty.or.unknown |
| 2631 |
{ } |
| 2632 |
{ "there's a day and year but no month in " cite$ * warning$ } |
| 2633 |
if$ |
| 2634 |
} |
| 2635 |
{ |
| 2636 |
month " " * |
| 2637 |
day empty.or.unknown |
| 2638 |
{ } |
| 2639 |
{ day * ", " * } |
| 2640 |
if$ |
| 2641 |
year * |
| 2642 |
} |
| 2643 |
if$ |
| 2644 |
} |
| 2645 |
if$ |
| 2646 |
} |
| 2647 |
|
| 2648 |
FUNCTION {new.block.checka} |
| 2649 |
{ |
| 2650 |
empty.or.unknown |
| 2651 |
'skip$ |
| 2652 |
'new.block |
| 2653 |
if$ |
| 2654 |
} |
| 2655 |
|
| 2656 |
FUNCTION { periodical } |
| 2657 |
{ |
| 2658 |
output.bibitem |
| 2659 |
editor empty.or.unknown |
| 2660 |
{ organization output } |
| 2661 |
{ format.editors output.nonnull } |
| 2662 |
if$ |
| 2663 |
new.block |
| 2664 |
output.year.check |
| 2665 |
new.sentence |
| 2666 |
format.articletitle "title" output.check |
| 2667 |
format.journal.volume.number.day.month.year output |
| 2668 |
calc.format.page.count output |
| 2669 |
fin.entry |
| 2670 |
} |
| 2671 |
|
| 2672 |
FUNCTION { proceedings } |
| 2673 |
{ |
| 2674 |
output.bibitem |
| 2675 |
editor empty.or.unknown |
| 2676 |
{ organization output |
| 2677 |
organization format.key output } % gnp - changed from author format.key |
| 2678 |
{ format.editors output.nonnull } |
| 2679 |
if$ |
| 2680 |
% author format.key output % gnp - removed (should be either |
| 2681 |
% editor or organization |
| 2682 |
output.year.check % added (newapa) |
| 2683 |
new.block |
| 2684 |
format.btitle format.city "title" output.check % jtb: added city |
| 2685 |
new.sentence |
| 2686 |
format.bvolume output |
| 2687 |
format.number.series output |
| 2688 |
new.sentence |
| 2689 |
organization output |
| 2690 |
% jtb: normal order: publisher, address |
| 2691 |
publisher empty.or.unknown |
| 2692 |
{ } |
| 2693 |
{ "\bibinfo{publisher}{" publisher * "}" * output } |
| 2694 |
if$ |
| 2695 |
address empty.or.unknown |
| 2696 |
{ } |
| 2697 |
{ "\bibinfo{address}{" address * "}" * output } |
| 2698 |
if$ |
| 2699 |
fin.block |
| 2700 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2701 |
fin.entry |
| 2702 |
} |
| 2703 |
|
| 2704 |
FUNCTION { collection } { proceedings } |
| 2705 |
|
| 2706 |
FUNCTION { techreport } |
| 2707 |
{ |
| 2708 |
output.bibitem |
| 2709 |
format.authors "author" output.check |
| 2710 |
author format.key output % added |
| 2711 |
output.year.check % added |
| 2712 |
new.block |
| 2713 |
format.btitle "title" output.check |
| 2714 |
new.block |
| 2715 |
% format.tr.number output % jtb: moved month ... |
| 2716 |
format.tr.number output new.sentence % Gerry - need dot 2011/09/28 |
| 2717 |
institution "institution" bibinfo.output.check |
| 2718 |
address empty.or.unknown |
| 2719 |
{ } |
| 2720 |
{ "\bibinfo{address}{" address "}" * * output } |
| 2721 |
if$ |
| 2722 |
new.sentence |
| 2723 |
format.named.pages output |
| 2724 |
% ACM omits year at end in transactions style |
| 2725 |
% format.day.month.year output.nonnull.dot.space % jtb: ... to here (no parens) |
| 2726 |
fin.block |
| 2727 |
output.issue.doi.coden.isxn.lccn.url.eprint.note |
| 2728 |
fin.entry |
| 2729 |
} |
| 2730 |
|
| 2731 |
FUNCTION { unpublished } |
| 2732 |
{ |
| 2733 |
output.bibitem |
| 2734 |
format.authors |
| 2735 |
"author" output.check |
| 2736 |
author format.key output % added |
| 2737 |
output.year.check % added |
| 2738 |
new.block |
| 2739 |
format.title "title" output.check |
| 2740 |
fin.sentence |
| 2741 |
output.day.month.year % UTAH |
| 2742 |
calc.format.page.count output |
| 2743 |
fin.block |
| 2744 |
output.issue.doi.coden.isxn.lccn.url.eprint.note.check |
| 2745 |
fin.entry |
| 2746 |
} |
| 2747 |
|
| 2748 |
FUNCTION { default.type } { misc } |
| 2749 |
|
| 2750 |
%%% ACM journal-style month definitions: full name if 1--5 letters, else |
| 2751 |
%%% abbreviation of 3 or 4 characters and a dot |
| 2752 |
|
| 2753 |
MACRO {jan} {"Jan."} |
| 2754 |
|
| 2755 |
MACRO {feb} {"Feb."} |
| 2756 |
|
| 2757 |
MACRO {mar} {"March"} |
| 2758 |
|
| 2759 |
MACRO {apr} {"April"} |
| 2760 |
|
| 2761 |
MACRO {may} {"May"} |
| 2762 |
|
| 2763 |
MACRO {jun} {"June"} |
| 2764 |
|
| 2765 |
MACRO {jul} {"July"} |
| 2766 |
|
| 2767 |
MACRO {aug} {"Aug."} |
| 2768 |
|
| 2769 |
MACRO {sep} {"Sept."} |
| 2770 |
|
| 2771 |
MACRO {oct} {"Oct."} |
| 2772 |
|
| 2773 |
MACRO {nov} {"Nov."} |
| 2774 |
|
| 2775 |
MACRO {dec} {"Dec."} |
| 2776 |
|
| 2777 |
%%% ACM journal names |
| 2778 |
|
| 2779 |
MACRO {cie} {"ACM Computers in Entertainment"} |
| 2780 |
MACRO {csur} {"ACM Computing Surveys"} |
| 2781 |
MACRO {dgov} {"Digital Government: Research and Practice"} |
| 2782 |
MACRO {dtrap} {"Digital Threats: Research and Practice"} |
| 2783 |
MACRO {health} {"ACM Transactions on Computing for Healthcare"} |
| 2784 |
MACRO {imwut} {"PACM on Interactive, Mobile, Wearable and Ubiquitous Technologies"} |
| 2785 |
MACRO {jacm} {"Journal of the ACM"} |
| 2786 |
MACRO {jdiq} {"ACM Journal of Data and Information Quality"} |
| 2787 |
MACRO {jea} {"ACM Journal of Experimental Algorithmics"} |
| 2788 |
MACRO {jeric} {"ACM Journal of Educational Resources in Computing"} |
| 2789 |
MACRO {jetc} {"ACM Journal on Emerging Technologies in Computing Systems"} |
| 2790 |
MACRO {jocch} {"ACM Journal on Computing and Cultural Heritage"} |
| 2791 |
MACRO {pacmcgit} {"Proceedings of the ACM on Computer Graphics and Interactive Techniques"} |
| 2792 |
MACRO {pacmhci} {"PACM on Human-Computer Interaction"} |
| 2793 |
MACRO {pacmpl} {"PACM on Programming Languages"} |
| 2794 |
MACRO {pomacs} {"PACM on Measurement and Analysis of Computing Systems"} |
| 2795 |
MACRO {taas} {"ACM Transactions on Autonomous and Adaptive Systems"} |
| 2796 |
MACRO {taccess} {"ACM Transactions on Accessible Computing"} |
| 2797 |
MACRO {taco} {"ACM Transactions on Architecture and Code Optimization"} |
| 2798 |
MACRO {talg} {"ACM Transactions on Algorithms"} |
| 2799 |
MACRO {tallip} {"ACM Transactions on Asian and Low-Resource Language Information Processing"} |
| 2800 |
MACRO {tap} {"ACM Transactions on Applied Perception"} |
| 2801 |
MACRO {tcps} {"ACM Transactions on Cyber-Physical Systems"} |
| 2802 |
MACRO {tds} {"ACM/IMS Transactions on Data Science"} |
| 2803 |
MACRO {teac} {"ACM Transactions on Economics and Computation"} |
| 2804 |
MACRO {tecs} {"ACM Transactions on Embedded Computing Systems"} |
| 2805 |
MACRO {telo} {"ACM Transactions on Evolutionary Learning"} |
| 2806 |
MACRO {thri} {"ACM Transactions on Human-Robot Interaction"} |
| 2807 |
MACRO {tiis} {"ACM Transactions on Interactive Intelligent Systems"} |
| 2808 |
MACRO {tiot} {"ACM Transactions on Internet of Things"} |
| 2809 |
MACRO {tissec} {"ACM Transactions on Information and System Security"} |
| 2810 |
MACRO {tist} {"ACM Transactions on Intelligent Systems and Technology"} |
| 2811 |
MACRO {tkdd} {"ACM Transactions on Knowledge Discovery from Data"} |
| 2812 |
MACRO {tmis} {"ACM Transactions on Management Information Systems"} |
| 2813 |
MACRO {toce} {"ACM Transactions on Computing Education"} |
| 2814 |
MACRO {tochi} {"ACM Transactions on Computer-Human Interaction"} |
| 2815 |
MACRO {tocl} {"ACM Transactions on Computational Logic"} |
| 2816 |
MACRO {tocs} {"ACM Transactions on Computer Systems"} |
| 2817 |
MACRO {toct} {"ACM Transactions on Computation Theory"} |
| 2818 |
MACRO {todaes} {"ACM Transactions on Design Automation of Electronic Systems"} |
| 2819 |
MACRO {tods} {"ACM Transactions on Database Systems"} |
| 2820 |
MACRO {tog} {"ACM Transactions on Graphics"} |
| 2821 |
MACRO {tois} {"ACM Transactions on Information Systems"} |
| 2822 |
MACRO {toit} {"ACM Transactions on Internet Technology"} |
| 2823 |
MACRO {tomacs} {"ACM Transactions on Modeling and Computer Simulation"} |
| 2824 |
MACRO {tomm} {"ACM Transactions on Multimedia Computing, Communications and Applications"} |
| 2825 |
MACRO {tompecs} {"ACM Transactions on Modeling and Performance Evaluation of Computing Systems"} |
| 2826 |
MACRO {toms} {"ACM Transactions on Mathematical Software"} |
| 2827 |
MACRO {topc} {"ACM Transactions on Parallel Computing"} |
| 2828 |
MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} |
| 2829 |
MACRO {tops} {"ACM Transactions on Privacy and Security"} |
| 2830 |
MACRO {tos} {"ACM Transactions on Storage"} |
| 2831 |
MACRO {tosem} {"ACM Transactions on Software Engineering and Methodology"} |
| 2832 |
MACRO {tosn} {"ACM Transactions on Sensor Networks"} |
| 2833 |
MACRO {tqc} {"ACM Transactions on Quantum Computing"} |
| 2834 |
MACRO {trets} {"ACM Transactions on Reconfigurable Technology and Systems"} |
| 2835 |
MACRO {tsas} {"ACM Transactions on Spatial Algorithms and Systems"} |
| 2836 |
MACRO {tsc} {"ACM Transactions on Social Computing"} |
| 2837 |
MACRO {tslp} {"ACM Transactions on Speech and Language Processing"} |
| 2838 |
MACRO {tweb} {"ACM Transactions on the Web"} |
| 2839 |
|
| 2840 |
%%% Some traditional macros |
| 2841 |
MACRO {acmcs} {"ACM Computing Surveys"} |
| 2842 |
|
| 2843 |
MACRO {acta} {"Acta Informatica"} |
| 2844 |
|
| 2845 |
MACRO {cacm} {"Communications of the ACM"} |
| 2846 |
|
| 2847 |
MACRO {ibmjrd} {"IBM Journal of Research and Development"} |
| 2848 |
|
| 2849 |
MACRO {ibmsj} {"IBM Systems Journal"} |
| 2850 |
|
| 2851 |
MACRO {ieeese} {"IEEE Transactions on Software Engineering"} |
| 2852 |
|
| 2853 |
MACRO {ieeetc} {"IEEE Transactions on Computers"} |
| 2854 |
|
| 2855 |
MACRO {ieeetcad} |
| 2856 |
{"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} |
| 2857 |
|
| 2858 |
MACRO {ipl} {"Information Processing Letters"} |
| 2859 |
|
| 2860 |
MACRO {jcss} {"Journal of Computer and System Sciences"} |
| 2861 |
|
| 2862 |
MACRO {scp} {"Science of Computer Programming"} |
| 2863 |
|
| 2864 |
MACRO {sicomp} {"SIAM Journal on Computing"} |
| 2865 |
|
| 2866 |
MACRO {toois} {"ACM Transactions on Office Information Systems"} |
| 2867 |
|
| 2868 |
MACRO {tcs} {"Theoretical Computer Science"} |
| 2869 |
|
| 2870 |
|
| 2871 |
|
| 2872 |
READ |
| 2873 |
|
| 2874 |
FUNCTION { sortify } |
| 2875 |
{ |
| 2876 |
purify$ |
| 2877 |
"l" change.case$ |
| 2878 |
} |
| 2879 |
|
| 2880 |
FUNCTION { chop.word } |
| 2881 |
{ |
| 2882 |
's := |
| 2883 |
'len := |
| 2884 |
s #1 len substring$ = |
| 2885 |
{ s len #1 + global.max$ substring$ } |
| 2886 |
's |
| 2887 |
if$ |
| 2888 |
} |
| 2889 |
|
| 2890 |
FUNCTION { sort.format.names } |
| 2891 |
{ |
| 2892 |
's := |
| 2893 |
#1 'nameptr := |
| 2894 |
"" |
| 2895 |
s num.names$ 'numnames := |
| 2896 |
numnames 'namesleft := |
| 2897 |
{ namesleft #0 > } |
| 2898 |
{ nameptr #1 > |
| 2899 |
{ " " * } |
| 2900 |
'skip$ |
| 2901 |
if$ |
| 2902 |
s nameptr "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}" format.name$ 't := |
| 2903 |
nameptr numnames = t "others" = and |
| 2904 |
{ " et~al" * } |
| 2905 |
{ t sortify * } |
| 2906 |
if$ |
| 2907 |
nameptr #1 + 'nameptr := |
| 2908 |
namesleft #1 - 'namesleft := |
| 2909 |
} |
| 2910 |
while$ |
| 2911 |
} |
| 2912 |
|
| 2913 |
FUNCTION { sort.format.title } |
| 2914 |
{ |
| 2915 |
't := |
| 2916 |
"A " #2 |
| 2917 |
"An " #3 |
| 2918 |
"The " #4 t chop.word |
| 2919 |
chop.word |
| 2920 |
chop.word |
| 2921 |
sortify |
| 2922 |
#1 global.max$ substring$ |
| 2923 |
} |
| 2924 |
|
| 2925 |
FUNCTION { author.sort } |
| 2926 |
{ |
| 2927 |
author empty.or.unknown |
| 2928 |
{ key empty.or.unknown |
| 2929 |
{ "to sort, need author or key in " cite$ * warning$ |
| 2930 |
"" } |
| 2931 |
{ key sortify } |
| 2932 |
if$ |
| 2933 |
} |
| 2934 |
{ author sort.format.names } |
| 2935 |
if$ |
| 2936 |
} |
| 2937 |
|
| 2938 |
FUNCTION { author.editor.sort } |
| 2939 |
{ |
| 2940 |
author empty.or.unknown |
| 2941 |
{ |
| 2942 |
editor empty.or.unknown |
| 2943 |
{ |
| 2944 |
key empty.or.unknown |
| 2945 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 2946 |
"" |
| 2947 |
} |
| 2948 |
{ key sortify } |
| 2949 |
if$ |
| 2950 |
} |
| 2951 |
{ editor sort.format.names } |
| 2952 |
if$ |
| 2953 |
} |
| 2954 |
{ author sort.format.names } |
| 2955 |
if$ |
| 2956 |
} |
| 2957 |
|
| 2958 |
FUNCTION { editor.organization.sort } |
| 2959 |
{ |
| 2960 |
% added - GNP. Stack editor or organization for sorting (from alpha.bst). |
| 2961 |
% Unlike alpha.bst, we need entire names, not abbreviations |
| 2962 |
|
| 2963 |
editor empty.or.unknown |
| 2964 |
{ organization empty.or.unknown |
| 2965 |
{ key empty.or.unknown |
| 2966 |
{ "to sort, need editor, organization, or key in " cite$ * warning$ |
| 2967 |
"" |
| 2968 |
} |
| 2969 |
{ key sortify } |
| 2970 |
if$ |
| 2971 |
} |
| 2972 |
{ organization sortify } |
| 2973 |
if$ |
| 2974 |
} |
| 2975 |
{ editor sort.format.names } |
| 2976 |
if$ |
| 2977 |
} |
| 2978 |
|
| 2979 |
FUNCTION { author.editor.organization.sort } |
| 2980 |
{ |
| 2981 |
% added - GNP. Stack author or organization for sorting (from alpha.bst). |
| 2982 |
% Unlike alpha.bst, we need entire names, not abbreviations |
| 2983 |
|
| 2984 |
author empty.or.unknown |
| 2985 |
{ |
| 2986 |
editor empty.or.unknown |
| 2987 |
{ organization empty.or.unknown |
| 2988 |
{ key empty.or.unknown |
| 2989 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 2990 |
"" |
| 2991 |
} |
| 2992 |
{ key sortify } |
| 2993 |
if$ |
| 2994 |
} |
| 2995 |
{ organization sortify } |
| 2996 |
if$ |
| 2997 |
} |
| 2998 |
{ editor sort.format.names } |
| 2999 |
if$ |
| 3000 |
} |
| 3001 |
{ author sort.format.names } |
| 3002 |
if$ |
| 3003 |
} |
| 3004 |
|
| 3005 |
FUNCTION { presort } |
| 3006 |
{ |
| 3007 |
% Presort creates the bibentry's label via a call to calc.label, and then |
| 3008 |
% sorts the entries based on entry type. Chicago.bst adds support for |
| 3009 |
% including organizations as the sort key; the following is stolen from |
| 3010 |
% alpha.bst. |
| 3011 |
|
| 3012 |
calc.label |
| 3013 |
basic.label.year |
| 3014 |
swap$ |
| 3015 |
" " |
| 3016 |
swap$ |
| 3017 |
* * |
| 3018 |
" " |
| 3019 |
* |
| 3020 |
sortify |
| 3021 |
year field.or.null purify$ #-1 #4 substring$ * % add year |
| 3022 |
" " |
| 3023 |
* |
| 3024 |
type$ "book" = |
| 3025 |
type$ "inbook" = |
| 3026 |
or |
| 3027 |
type$ "article" = |
| 3028 |
or |
| 3029 |
'author.editor.sort |
| 3030 |
{ type$ "proceedings" = |
| 3031 |
type$ "periodical" = |
| 3032 |
or |
| 3033 |
'editor.organization.sort |
| 3034 |
{ type$ "manual" = |
| 3035 |
'author.editor.organization.sort |
| 3036 |
'author.sort |
| 3037 |
if$ |
| 3038 |
} |
| 3039 |
if$ |
| 3040 |
} |
| 3041 |
if$ |
| 3042 |
#1 entry.max$ substring$ % added for newapa |
| 3043 |
'sort.label := % added for newapa |
| 3044 |
sort.label % added for newapa |
| 3045 |
* |
| 3046 |
" " |
| 3047 |
* |
| 3048 |
title field.or.null |
| 3049 |
sort.format.title |
| 3050 |
* |
| 3051 |
#1 entry.max$ substring$ |
| 3052 |
'sort.key$ := |
| 3053 |
} |
| 3054 |
|
| 3055 |
|
| 3056 |
|
| 3057 |
ITERATE { presort } |
| 3058 |
|
| 3059 |
SORT % by label, year, author/editor, title |
| 3060 |
|
| 3061 |
% From plainnat.bst |
| 3062 |
STRINGS { longest.label } |
| 3063 |
|
| 3064 |
INTEGERS { longest.label.width number.label } |
| 3065 |
|
| 3066 |
FUNCTION {initialize.longest.label} |
| 3067 |
{ "" 'longest.label := |
| 3068 |
#0 int.to.chr$ 'last.label := |
| 3069 |
"" 'next.extra := |
| 3070 |
#0 'longest.label.width := |
| 3071 |
#0 'last.extra.num := |
| 3072 |
#0 'number.label := |
| 3073 |
} |
| 3074 |
|
| 3075 |
|
| 3076 |
|
| 3077 |
FUNCTION { initialize.extra.label.stuff } |
| 3078 |
{ #0 int.to.chr$ 'last.label := |
| 3079 |
"" 'next.extra := |
| 3080 |
#0 'last.extra.num := |
| 3081 |
} |
| 3082 |
|
| 3083 |
FUNCTION { forward.pass } |
| 3084 |
{ |
| 3085 |
% Pass through all entries, comparing current entry to last one. |
| 3086 |
% Need to concatenate year to the stack (done by calc.label) to determine |
| 3087 |
% if two entries are the same (see presort) |
| 3088 |
|
| 3089 |
last.label |
| 3090 |
calc.basic.label year field.or.null purify$ #-1 #4 substring$ * % add year |
| 3091 |
#1 entry.max$ substring$ = % are they equal? |
| 3092 |
{ last.extra.num #1 + 'last.extra.num := |
| 3093 |
last.extra.num int.to.chr$ 'extra.label := |
| 3094 |
} |
| 3095 |
{ "a" chr.to.int$ 'last.extra.num := |
| 3096 |
"" 'extra.label := |
| 3097 |
calc.basic.label year field.or.null purify$ #-1 #4 substring$ * % add year |
| 3098 |
#1 entry.max$ substring$ 'last.label := % assign to last.label |
| 3099 |
} |
| 3100 |
if$ |
| 3101 |
number.label #1 + 'number.label := |
| 3102 |
} |
| 3103 |
|
| 3104 |
FUNCTION { reverse.pass } |
| 3105 |
{ |
| 3106 |
next.extra "b" = |
| 3107 |
{ "a" 'extra.label := } |
| 3108 |
'skip$ |
| 3109 |
if$ |
| 3110 |
label.year extra.label * 'sort.year := |
| 3111 |
extra.label 'next.extra := |
| 3112 |
} |
| 3113 |
|
| 3114 |
EXECUTE {initialize.extra.label.stuff} |
| 3115 |
EXECUTE {initialize.longest.label} |
| 3116 |
|
| 3117 |
|
| 3118 |
ITERATE {forward.pass} |
| 3119 |
|
| 3120 |
REVERSE {reverse.pass} |
| 3121 |
|
| 3122 |
FUNCTION { bib.sort.order } |
| 3123 |
{ |
| 3124 |
sort.label |
| 3125 |
" " |
| 3126 |
* |
| 3127 |
year field.or.null sortify |
| 3128 |
* |
| 3129 |
" " |
| 3130 |
* |
| 3131 |
title field.or.null |
| 3132 |
sort.format.title |
| 3133 |
* |
| 3134 |
#1 entry.max$ substring$ |
| 3135 |
'sort.key$ := |
| 3136 |
} |
| 3137 |
|
| 3138 |
ITERATE { bib.sort.order } |
| 3139 |
|
| 3140 |
SORT % by sort.label, year, title --- giving final bib. order. |
| 3141 |
|
| 3142 |
FUNCTION { begin.bib } |
| 3143 |
{ |
| 3144 |
%% Set to #0 show 13-digit ISBN in preference to 10-digit ISBN. |
| 3145 |
%% Set to #1 to show both 10-digit and 13-digit ISBNs. |
| 3146 |
#1 'show-isbn-10-and-13 := |
| 3147 |
|
| 3148 |
"%%% -*-BibTeX-*-" writeln |
| 3149 |
"%%% Do NOT edit. File created by BibTeX with style" writeln |
| 3150 |
"%%% ACM-Reference-Format-Journals [18-Jan-2012]." writeln |
| 3151 |
"" writeln |
| 3152 |
|
| 3153 |
preamble$ empty.or.unknown |
| 3154 |
'skip$ |
| 3155 |
{ preamble$ writeln } |
| 3156 |
if$ |
| 3157 |
"\begin{thebibliography}{" number.label int.to.str$ * "}" * writeln |
| 3158 |
"" writeln |
| 3159 |
"%%% ====================================================================" writeln |
| 3160 |
"%%% NOTE TO THE USER: you can override these defaults by providing" writeln |
| 3161 |
"%%% customized versions of any of these macros before the \bibliography" writeln |
| 3162 |
"%%% command. Each of them MUST provide its own final punctuation," writeln |
| 3163 |
"%%% except for \shownote{} and \showURL{}. The latter two" writeln |
| 3164 |
"%%% do not use final punctuation, in order to avoid confusing it with" writeln |
| 3165 |
"%%% the Web address." writeln |
| 3166 |
"%%%" writeln |
| 3167 |
"%%% To suppress output of a particular field, define its macro to expand" writeln |
| 3168 |
"%%% to an empty string, or better, \unskip, like this:" writeln |
| 3169 |
"%%%" writeln |
| 3170 |
"%%% \newcommand{\showURL}[1]{\unskip} % LaTeX syntax" writeln |
| 3171 |
"%%%" writeln |
| 3172 |
"%%% \def \showURL #1{\unskip} % plain TeX syntax" writeln |
| 3173 |
"%%%" writeln |
| 3174 |
"%%% ====================================================================" writeln |
| 3175 |
"" writeln |
| 3176 |
|
| 3177 |
%% ACM publications do not use CODEN, ISSN, and LCCN data, so their default |
| 3178 |
%% macro wrappers expand to \unskip, discarding their values and unwanted |
| 3179 |
%% space. |
| 3180 |
%% |
| 3181 |
%% For other publications, prior definitions like these may be useful: |
| 3182 |
%% |
| 3183 |
%% Plain TeX: |
| 3184 |
%% \def \showCODEN #1{CODEN #1.} |
| 3185 |
%% \def \showISSN #1{ISSN #1.} |
| 3186 |
%% \def \showLCCN #1{LCCN #1.} |
| 3187 |
%% |
| 3188 |
%% LaTeX: |
| 3189 |
%% \newcommand{\showCODEN}[1]{CODEN #1.} |
| 3190 |
%% \newcommand{\showISSN}[1]#1{ISSN #1.} |
| 3191 |
%% \newcommand{\showLCCN}[1]{LCCN #1.} |
| 3192 |
|
| 3193 |
"\ifx \showCODEN \undefined \def \showCODEN #1{\unskip} \fi" writeln |
| 3194 |
% ACM styles omit ISBNs, but they can be included by suitable definitions of |
| 3195 |
% \showISBNx and \showISBNxiii before the .bbl file is read |
| 3196 |
"\ifx \showISBNx \undefined \def \showISBNx #1{\unskip} \fi" writeln |
| 3197 |
"\ifx \showISBNxiii \undefined \def \showISBNxiii #1{\unskip} \fi" writeln |
| 3198 |
"\ifx \showISSN \undefined \def \showISSN #1{\unskip} \fi" writeln |
| 3199 |
"\ifx \showLCCN \undefined \def \showLCCN #1{\unskip} \fi" writeln |
| 3200 |
"\ifx \shownote \undefined \def \shownote #1{#1} \fi" writeln % NB: final period supplied by add.period$ above |
| 3201 |
"\ifx \showarticletitle \undefined \def \showarticletitle #1{#1} \fi" writeln |
| 3202 |
"\ifx \showURL \undefined \def \showURL {\relax} \fi" writeln |
| 3203 |
"% The following commands are used for tagged output and should be " writeln |
| 3204 |
"% invisible to TeX" writeln |
| 3205 |
"\providecommand\bibfield[2]{#2}" writeln |
| 3206 |
"\providecommand\bibinfo[2]{#2}" writeln |
| 3207 |
"\providecommand\natexlab[1]{#1}" writeln |
| 3208 |
"\providecommand\showeprint[2][]{arXiv:#2}" writeln |
| 3209 |
} |
| 3210 |
|
| 3211 |
EXECUTE {begin.bib} |
| 3212 |
|
| 3213 |
EXECUTE {init.state.consts} |
| 3214 |
|
| 3215 |
ITERATE {call.type$} |
| 3216 |
|
| 3217 |
FUNCTION { end.bib } |
| 3218 |
{ |
| 3219 |
newline$ |
| 3220 |
"\end{thebibliography}" |
| 3221 |
writeln |
| 3222 |
} |
| 3223 |
|
| 3224 |
EXECUTE {end.bib} |