| 1 |
%% |
| 2 |
%% This is file `smfalpha.bst', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% smflatex.dtx (with options: `smfalpha') |
| 8 |
%% BibTeX style for the smflatex bundle, version v1.6 |
| 9 |
%% \CharacterTable |
| 10 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 11 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 12 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 13 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 14 |
%% Dollar \$ Percent \% Ampersand \& |
| 15 |
%% Acute accent \' Left paren \( Right paren \) |
| 16 |
%% Asterisk \* Plus \+ Comma \, |
| 17 |
%% Minus \- Point \. Solidus \/ |
| 18 |
%% Colon \: Semicolon \; Less than \< |
| 19 |
%% Equals \= Greater than \> Question mark \? |
| 20 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 21 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 22 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 23 |
%% Right brace \} Tilde \~} |
| 24 |
%% |
| 25 |
%% @BibTeX-style-file{"smfalpha.bst" |
| 26 |
%% date="1998/06/15", |
| 27 |
%% version="v0.1"} |
| 28 |
%% Types of entries currently allowed in a BibTeX file: |
| 29 |
%% ARTICLE -- An article from a journal or magazine. |
| 30 |
%% BOOK -- A book with an explicit publisher. |
| 31 |
%% BOOKLET -- A work that is printed and bound, |
| 32 |
%% but without a named publisher or sponsoring institution. |
| 33 |
%% CONFERENCE -- The same as INPROCEEDINGS, |
| 34 |
%% included for Scribe compatibility. |
| 35 |
%% INBOOK -- A part of a book, |
| 36 |
%% which may be a chapter (or section or whatever) and/or a range of pages. |
| 37 |
%% INCOLLECTION -- A part of a book having its own title. |
| 38 |
%% INPROCEEDINGS -- An article in a conference proceedings. |
| 39 |
%% MANUAL -- Technical documentation. |
| 40 |
%% MASTERSTHESIS -- A Master's thesis. |
| 41 |
%% MISC -- Use this type when nothing else fits. |
| 42 |
%% PHDTHESIS -- A PhD thesis. |
| 43 |
%% PROCEEDINGS -- The proceedings of a conference. |
| 44 |
%% TECHREPORT -- A report published by a school or other institution, |
| 45 |
%% usually numbered within a series. |
| 46 |
%% UNPUBLISHED -- A document having an author and title, but not formally |
| 47 |
%% published. |
| 48 |
ENTRY |
| 49 |
{ address |
| 50 |
author |
| 51 |
booktitle |
| 52 |
chapter |
| 53 |
edition |
| 54 |
editor |
| 55 |
howpublished |
| 56 |
institution |
| 57 |
journal |
| 58 |
key |
| 59 |
language |
| 60 |
month |
| 61 |
note |
| 62 |
number |
| 63 |
organization |
| 64 |
pages |
| 65 |
publisher |
| 66 |
school |
| 67 |
series |
| 68 |
title |
| 69 |
type |
| 70 |
volume |
| 71 |
year |
| 72 |
} |
| 73 |
{} |
| 74 |
{ label extra.label extra.same.label sort.label } |
| 75 |
|
| 76 |
INTEGERS { output.state before.all mid.sentence after.name } |
| 77 |
|
| 78 |
FUNCTION {init.state.consts} |
| 79 |
{ #0 'before.all := |
| 80 |
#1 'after.name := |
| 81 |
#2 'mid.sentence := |
| 82 |
} |
| 83 |
|
| 84 |
STRINGS { s t } |
| 85 |
FUNCTION {not} |
| 86 |
{ { #0 } |
| 87 |
{ #1 } |
| 88 |
if$ |
| 89 |
} |
| 90 |
|
| 91 |
FUNCTION {and} |
| 92 |
{ 'skip$ |
| 93 |
{ pop$ #0 } |
| 94 |
if$ |
| 95 |
} |
| 96 |
|
| 97 |
FUNCTION {or} |
| 98 |
{ { pop$ #1 } |
| 99 |
'skip$ |
| 100 |
if$ |
| 101 |
} |
| 102 |
|
| 103 |
FUNCTION {field.or.null} |
| 104 |
{ duplicate$ empty$ |
| 105 |
{ pop$ "" } |
| 106 |
'skip$ |
| 107 |
if$ |
| 108 |
} |
| 109 |
|
| 110 |
FUNCTION {emphasize} |
| 111 |
{ duplicate$ empty$ |
| 112 |
{ pop$ "" } |
| 113 |
{ "\emph{" swap$ * "}" * } |
| 114 |
if$ |
| 115 |
} |
| 116 |
|
| 117 |
FUNCTION {guillemetize} |
| 118 |
{ duplicate$ empty$ |
| 119 |
{ pop$ "" } |
| 120 |
{ "{\og " swap$ * "\fg}" * } |
| 121 |
if$ |
| 122 |
} |
| 123 |
|
| 124 |
FUNCTION {scapify} |
| 125 |
{ duplicate$ empty$ |
| 126 |
{ pop$ "" } |
| 127 |
{ "{\scshape " swap$ * "}" * } |
| 128 |
if$ |
| 129 |
} |
| 130 |
|
| 131 |
FUNCTION {n.dashify} |
| 132 |
{ 't := |
| 133 |
"" |
| 134 |
{ t empty$ not } |
| 135 |
{ t #1 #1 substring$ "-" = |
| 136 |
{ t #1 #2 substring$ "--" = not |
| 137 |
{ "--" * |
| 138 |
t #2 global.max$ substring$ 't := |
| 139 |
} |
| 140 |
{ { t #1 #1 substring$ "-" = } |
| 141 |
{ "-" * |
| 142 |
t #2 global.max$ substring$ 't := |
| 143 |
} |
| 144 |
while$ |
| 145 |
} |
| 146 |
if$ |
| 147 |
} |
| 148 |
{ t #1 #1 substring$ * |
| 149 |
t #2 global.max$ substring$ 't := |
| 150 |
} |
| 151 |
if$ |
| 152 |
} |
| 153 |
while$ |
| 154 |
} |
| 155 |
|
| 156 |
FUNCTION {tie.or.space.connect} |
| 157 |
{ duplicate$ text.length$ #3 < |
| 158 |
{ "~" } |
| 159 |
{ " " } |
| 160 |
if$ |
| 161 |
swap$ * * |
| 162 |
} |
| 163 |
|
| 164 |
FUNCTION {add.space.if.necessary} |
| 165 |
{ duplicate$ "" = |
| 166 |
'skip$ |
| 167 |
{ " " * } |
| 168 |
if$ |
| 169 |
} |
| 170 |
|
| 171 |
FUNCTION {either.or.check} |
| 172 |
{ empty$ |
| 173 |
'pop$ |
| 174 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 175 |
if$ |
| 176 |
} |
| 177 |
|
| 178 |
FUNCTION {output.nonnull} |
| 179 |
{ 's := |
| 180 |
output.state after.name = |
| 181 |
{ extra.same.label "\bysame" = |
| 182 |
{ ", " * write$ } |
| 183 |
{ " -- " * write$ } |
| 184 |
if$ |
| 185 |
mid.sentence 'output.state := } |
| 186 |
{ output.state mid.sentence = |
| 187 |
{ ", " * write$ } |
| 188 |
{ output.state before.all = |
| 189 |
'write$ |
| 190 |
{ add.period$ " " * write$ } |
| 191 |
if$ |
| 192 |
after.name 'output.state := } |
| 193 |
if$ } |
| 194 |
if$ |
| 195 |
s |
| 196 |
} |
| 197 |
|
| 198 |
FUNCTION {output} |
| 199 |
{ duplicate$ empty$ |
| 200 |
'pop$ |
| 201 |
'output.nonnull |
| 202 |
if$ |
| 203 |
} |
| 204 |
|
| 205 |
FUNCTION {missing.warning} |
| 206 |
{ "missing " swap$ * " in " * cite$ * warning$ } |
| 207 |
|
| 208 |
FUNCTION {output.check} |
| 209 |
{ 't := |
| 210 |
duplicate$ empty$ |
| 211 |
{ pop$ t missing.warning } |
| 212 |
'output.nonnull |
| 213 |
if$ |
| 214 |
} |
| 215 |
|
| 216 |
FUNCTION {output.bibitem} |
| 217 |
{ newline$ |
| 218 |
"\bibitem[" write$ |
| 219 |
label write$ |
| 220 |
"]{" write$ |
| 221 |
cite$ write$ |
| 222 |
"}" write$ |
| 223 |
newline$ |
| 224 |
"" |
| 225 |
before.all 'output.state := |
| 226 |
} |
| 227 |
|
| 228 |
FUNCTION {fin.entry} |
| 229 |
{ add.period$ |
| 230 |
write$ |
| 231 |
newline$ |
| 232 |
} |
| 233 |
|
| 234 |
FUNCTION {format.language} |
| 235 |
{ language empty$ |
| 236 |
{ "" } |
| 237 |
{ " (" language * ")" * } |
| 238 |
if$ |
| 239 |
} |
| 240 |
INTEGERS { nameptr namesleft numnames } |
| 241 |
|
| 242 |
FUNCTION {format.names} |
| 243 |
{ 's := |
| 244 |
#1 'nameptr := |
| 245 |
s num.names$ 'numnames := |
| 246 |
numnames 'namesleft := |
| 247 |
{ namesleft #0 > } |
| 248 |
{ s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := |
| 249 |
nameptr #1 > |
| 250 |
{ namesleft #1 > |
| 251 |
{ ", " * t * } |
| 252 |
{ numnames #2 > |
| 253 |
{ "" * } |
| 254 |
'skip$ |
| 255 |
if$ |
| 256 |
t "others" = |
| 257 |
{ " {\normalfont et~al.}" * } |
| 258 |
{ " {\normalfont \smfandname} " * t * } |
| 259 |
if$ |
| 260 |
} |
| 261 |
if$ |
| 262 |
} |
| 263 |
't |
| 264 |
if$ |
| 265 |
nameptr #1 + 'nameptr := |
| 266 |
namesleft #1 - 'namesleft := |
| 267 |
} |
| 268 |
while$ |
| 269 |
} |
| 270 |
|
| 271 |
FUNCTION {format.authors} |
| 272 |
{ author empty$ |
| 273 |
{ "" } |
| 274 |
{ extra.same.label "\bysame" = |
| 275 |
{ "\bysame " } |
| 276 |
{ author format.names scapify } |
| 277 |
if$ |
| 278 |
} |
| 279 |
if$ |
| 280 |
} |
| 281 |
|
| 282 |
FUNCTION {format.editors} |
| 283 |
{ editor empty$ |
| 284 |
{ "" } |
| 285 |
{ extra.same.label "\bysame" = |
| 286 |
{ "\bysame " } |
| 287 |
{ editor format.names scapify } |
| 288 |
if$ |
| 289 |
editor num.names$ #1 > |
| 290 |
{ " (\smfedsname)" * } |
| 291 |
{ " (\smfedname)" * } |
| 292 |
if$ |
| 293 |
"\nomorebysame" 'extra.same.label := |
| 294 |
} |
| 295 |
if$ |
| 296 |
} |
| 297 |
|
| 298 |
FUNCTION {format.nonauthor.editors} |
| 299 |
{ editor empty$ |
| 300 |
{ "" } |
| 301 |
{ editor format.names |
| 302 |
editor num.names$ #1 > |
| 303 |
{ ", \smfedsname" * } |
| 304 |
{ ", \smfedname" * } |
| 305 |
if$ |
| 306 |
} |
| 307 |
if$ |
| 308 |
} |
| 309 |
|
| 310 |
FUNCTION {format.booktitle} |
| 311 |
{ title empty$ |
| 312 |
{ "" } |
| 313 |
{ title "t" change.case$ emphasize } |
| 314 |
if$ |
| 315 |
} |
| 316 |
|
| 317 |
FUNCTION {format.title} |
| 318 |
{ title empty$ |
| 319 |
{ "" } |
| 320 |
{ title "t" change.case$ guillemetize } |
| 321 |
if$ |
| 322 |
} |
| 323 |
|
| 324 |
FUNCTION {format.journal.vol.year} |
| 325 |
{ journal empty$ |
| 326 |
{ "journal name" missing.warning ""} |
| 327 |
{ journal emphasize } |
| 328 |
if$ |
| 329 |
volume empty$ |
| 330 |
'skip$ |
| 331 |
{ " \textbf{" * volume * "}" * } |
| 332 |
if$ |
| 333 |
year empty$ |
| 334 |
{ "year" missing.warning } |
| 335 |
{ " (" * year * ")" * } |
| 336 |
if$ |
| 337 |
} |
| 338 |
|
| 339 |
FUNCTION {format.number} |
| 340 |
{ number empty$ |
| 341 |
{ "" } |
| 342 |
{ "no.~" number * } |
| 343 |
if$ |
| 344 |
} |
| 345 |
|
| 346 |
FUNCTION {format.date} |
| 347 |
{ year empty$ |
| 348 |
{ month empty$ |
| 349 |
{ "" } |
| 350 |
{ "there's a month but no year in " cite$ * warning$ |
| 351 |
month |
| 352 |
} |
| 353 |
if$ |
| 354 |
} |
| 355 |
{ month empty$ |
| 356 |
'year |
| 357 |
{ month " " * year * } |
| 358 |
if$ |
| 359 |
} |
| 360 |
if$ |
| 361 |
} |
| 362 |
|
| 363 |
FUNCTION {format.bookvolume.series.number} |
| 364 |
{ volume empty$ |
| 365 |
{ "" % Push the empty string as a placeholder in case everything else |
| 366 |
% is empty too. |
| 367 |
series empty$ |
| 368 |
'skip$ |
| 369 |
{ pop$ series } % if series is not empty put in stack |
| 370 |
if$ |
| 371 |
number empty$ |
| 372 |
'skip$ |
| 373 |
{ duplicate$ empty$ % if no preceding material, |
| 374 |
'skip$ % do nothing, otherwise |
| 375 |
{ ", " * } % add a comma and space to separate. |
| 376 |
if$ |
| 377 |
"no." number tie.or.space.connect * % add the number information |
| 378 |
} |
| 379 |
if$ |
| 380 |
} |
| 381 |
%% If the volume is NOT EMPTY: |
| 382 |
{ "vol." volume tie.or.space.connect % vol. XX |
| 383 |
number empty$ |
| 384 |
{ series empty$ |
| 385 |
'skip$ |
| 386 |
{ series ", " * swap$ *} % Series Name, vol. XX |
| 387 |
if$ |
| 388 |
} |
| 389 |
{ series empty$ |
| 390 |
{ "can't use both volume and number if series info is missing" |
| 391 |
warning$ |
| 392 |
"in BibTeX entry type `" type$ * "'" * top$ |
| 393 |
} |
| 394 |
{ ", " * series * ", no." * number tie.or.space.connect } |
| 395 |
if$ |
| 396 |
} |
| 397 |
if$ |
| 398 |
} |
| 399 |
if$ |
| 400 |
|
| 401 |
} % end of format.bookvolume.series.number |
| 402 |
|
| 403 |
%% format.inproc.title.where.editors is used by inproceedings entry types |
| 404 |
|
| 405 |
FUNCTION {format.inproc.title.address.editors} |
| 406 |
{ booktitle empty$ |
| 407 |
{ "" } |
| 408 |
%% Emphasizing the title. We want initial caps. |
| 409 |
{ "in " booktitle emphasize *} |
| 410 |
if$ |
| 411 |
%% We add parentheses around the address (place where conference |
| 412 |
%% was held). |
| 413 |
address empty$ |
| 414 |
'skip$ |
| 415 |
{ add.space.if.necessary "(" * address * ")" * } |
| 416 |
if$ |
| 417 |
%% Likewise we add parentheses around the editors' names. |
| 418 |
editor empty$ |
| 419 |
'skip$ |
| 420 |
{ add.space.if.necessary "(" * format.nonauthor.editors * ")" * } |
| 421 |
if$ |
| 422 |
} |
| 423 |
|
| 424 |
%% format.incoll.title.editors is similar to format.inproc... but |
| 425 |
%% omits the address. For collections that are not proceedings volumes. |
| 426 |
|
| 427 |
FUNCTION {format.incoll.title.editors} |
| 428 |
{ booktitle empty$ |
| 429 |
{ "" } |
| 430 |
%% Emphasizing the title. We want initial caps. |
| 431 |
{ "in " booktitle emphasize * } |
| 432 |
if$ |
| 433 |
%% We add parentheses around the editors' names. |
| 434 |
editor empty$ |
| 435 |
'skip$ |
| 436 |
{ add.space.if.necessary "(" * format.nonauthor.editors * ")" * } |
| 437 |
if$ |
| 438 |
} |
| 439 |
|
| 440 |
FUNCTION {format.number.series} |
| 441 |
{ series empty$ |
| 442 |
{ number empty$ |
| 443 |
{ "" } |
| 444 |
{ "there's a number but no series in " cite$ * warning$ } |
| 445 |
if$ |
| 446 |
} |
| 447 |
{ series |
| 448 |
number empty$ |
| 449 |
'skip$ |
| 450 |
{ "\ \textbf{" * number * "}" * } |
| 451 |
if$ |
| 452 |
} |
| 453 |
if$ |
| 454 |
} |
| 455 |
|
| 456 |
FUNCTION {format.edition} |
| 457 |
{ edition empty$ |
| 458 |
{ "" } |
| 459 |
{ output.state mid.sentence = |
| 460 |
{ edition "l" change.case$ " \smfedname" * } |
| 461 |
{ edition "t" change.case$ " \smfedname" * } |
| 462 |
if$ |
| 463 |
} |
| 464 |
if$ |
| 465 |
} |
| 466 |
|
| 467 |
INTEGERS { multiresult } |
| 468 |
|
| 469 |
FUNCTION {multi.page.check} |
| 470 |
{ 't := |
| 471 |
#0 'multiresult := |
| 472 |
{ multiresult not |
| 473 |
t empty$ not |
| 474 |
and |
| 475 |
} |
| 476 |
{ t #1 #1 substring$ |
| 477 |
duplicate$ "-" = |
| 478 |
swap$ duplicate$ "," = |
| 479 |
swap$ "+" = |
| 480 |
or or |
| 481 |
{ #1 'multiresult := } |
| 482 |
{ t #2 global.max$ substring$ 't := } |
| 483 |
if$ |
| 484 |
} |
| 485 |
while$ |
| 486 |
multiresult |
| 487 |
} |
| 488 |
|
| 489 |
FUNCTION {format.pages} |
| 490 |
{ pages empty$ |
| 491 |
{ "" } |
| 492 |
{ "p.~" pages n.dashify * } |
| 493 |
if$ |
| 494 |
} |
| 495 |
|
| 496 |
FUNCTION {format.book.pages} |
| 497 |
{ pages empty$ |
| 498 |
{ "" } |
| 499 |
{ pages multi.page.check |
| 500 |
{ "p.~" pages n.dashify * } |
| 501 |
{ "p.~" pages * } |
| 502 |
if$ |
| 503 |
} |
| 504 |
if$ |
| 505 |
} |
| 506 |
|
| 507 |
FUNCTION {format.chapter.pages} |
| 508 |
{ chapter empty$ |
| 509 |
'format.pages |
| 510 |
{ type empty$ |
| 511 |
{ "ch.~" } |
| 512 |
{ type "l" change.case$ " " * } |
| 513 |
if$ |
| 514 |
chapter * |
| 515 |
pages empty$ |
| 516 |
'skip$ |
| 517 |
{ ", " * format.book.pages * } |
| 518 |
if$ |
| 519 |
} |
| 520 |
if$ |
| 521 |
} |
| 522 |
|
| 523 |
FUNCTION {empty.misc.check} |
| 524 |
{ author empty$ title empty$ howpublished empty$ |
| 525 |
month empty$ year empty$ note empty$ |
| 526 |
and and and and and |
| 527 |
key empty$ not and |
| 528 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 529 |
'skip$ |
| 530 |
if$ |
| 531 |
} |
| 532 |
|
| 533 |
FUNCTION {format.thesis.type} |
| 534 |
{ type empty$ |
| 535 |
'skip$ |
| 536 |
{ pop$ |
| 537 |
type "t" change.case$ |
| 538 |
} |
| 539 |
if$ |
| 540 |
} |
| 541 |
|
| 542 |
FUNCTION {format.tr.number} |
| 543 |
{ type empty$ |
| 544 |
{ "Tech. Report" } |
| 545 |
'type |
| 546 |
if$ |
| 547 |
number empty$ |
| 548 |
{ "t" change.case$ } |
| 549 |
{ number tie.or.space.connect } |
| 550 |
if$ |
| 551 |
} |
| 552 |
|
| 553 |
FUNCTION {format.article.crossref} |
| 554 |
{ key empty$ |
| 555 |
{ journal empty$ |
| 556 |
{ "need key or journal for " cite$ * " to crossref " * crossref * |
| 557 |
warning$ |
| 558 |
"" |
| 559 |
} |
| 560 |
{ "in " journal * } |
| 561 |
if$ |
| 562 |
} |
| 563 |
{ "in " key * } |
| 564 |
if$ |
| 565 |
" \cite{" * crossref * "}" * |
| 566 |
} |
| 567 |
|
| 568 |
FUNCTION {format.crossref.editor} |
| 569 |
{ editor #1 "{vv~}{ll}" format.name$ |
| 570 |
editor num.names$ duplicate$ |
| 571 |
#2 > |
| 572 |
{ pop$ " et~al." * } |
| 573 |
{ #2 < |
| 574 |
'skip$ |
| 575 |
{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 576 |
{ " et~al." * } |
| 577 |
{ " \smfandname\ " * editor #2 "{vv~}{ll}" format.name$ * } |
| 578 |
if$ |
| 579 |
} |
| 580 |
if$ |
| 581 |
} |
| 582 |
if$ |
| 583 |
} |
| 584 |
|
| 585 |
FUNCTION {format.book.crossref} |
| 586 |
{ volume empty$ |
| 587 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 588 |
"in " |
| 589 |
} |
| 590 |
{ "vol." volume tie.or.space.connect |
| 591 |
" de " * |
| 592 |
} |
| 593 |
if$ |
| 594 |
editor empty$ |
| 595 |
editor field.or.null author field.or.null = |
| 596 |
or |
| 597 |
{ key empty$ |
| 598 |
{ series empty$ |
| 599 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 600 |
crossref * warning$ |
| 601 |
"" * |
| 602 |
} |
| 603 |
{ series * } |
| 604 |
if$ |
| 605 |
} |
| 606 |
{ key * } |
| 607 |
if$ |
| 608 |
} |
| 609 |
{ format.crossref.editor * } |
| 610 |
if$ |
| 611 |
" \cite{" * crossref * "}" * |
| 612 |
} |
| 613 |
|
| 614 |
FUNCTION {format.incoll.inproc.crossref} |
| 615 |
{ key empty$ |
| 616 |
{ booktitle empty$ |
| 617 |
{ editor empty$ |
| 618 |
editor field.or.null author field.or.null = |
| 619 |
or |
| 620 |
{ "need editor, key, or booktitle for " cite$ * "to crossref " * |
| 621 |
crossref * warning$ "" } |
| 622 |
{ "in " format.crossref.editor * } |
| 623 |
if$ } |
| 624 |
{ "in " booktitle emphasize * } |
| 625 |
if$ } |
| 626 |
{ "in " key * } |
| 627 |
if$ |
| 628 |
" \cite{" * crossref * "}" * |
| 629 |
} |
| 630 |
|
| 631 |
FUNCTION {article} |
| 632 |
{ output.bibitem |
| 633 |
format.authors "author" output.check |
| 634 |
format.title "title" output.check |
| 635 |
crossref missing$ |
| 636 |
{ format.journal.vol.year output |
| 637 |
format.number output |
| 638 |
format.pages "pages" output.check |
| 639 |
} |
| 640 |
{ format.article.crossref output.nonnull |
| 641 |
format.pages output |
| 642 |
} |
| 643 |
if$ |
| 644 |
format.language * |
| 645 |
note output |
| 646 |
fin.entry |
| 647 |
} |
| 648 |
|
| 649 |
FUNCTION {book} |
| 650 |
{ output.bibitem |
| 651 |
author empty$ |
| 652 |
{ format.editors "author and editor" output.check } |
| 653 |
{ format.authors output.nonnull |
| 654 |
crossref missing$ |
| 655 |
{ "author and editor" editor either.or.check } |
| 656 |
'skip$ |
| 657 |
if$ |
| 658 |
} |
| 659 |
if$ |
| 660 |
format.booktitle "title" output.check |
| 661 |
format.edition output |
| 662 |
crossref missing$ |
| 663 |
{ format.bookvolume.series.number output |
| 664 |
publisher "publisher" output.check |
| 665 |
address output |
| 666 |
} |
| 667 |
{ format.book.crossref output.nonnull |
| 668 |
} |
| 669 |
if$ |
| 670 |
format.date "year" output.check |
| 671 |
format.language * |
| 672 |
note output |
| 673 |
fin.entry |
| 674 |
} |
| 675 |
FUNCTION {booklet} |
| 676 |
{ output.bibitem |
| 677 |
format.authors output |
| 678 |
format.booktitle "title" output.check |
| 679 |
howpublished output |
| 680 |
address output |
| 681 |
format.date output |
| 682 |
note output |
| 683 |
fin.entry |
| 684 |
} |
| 685 |
|
| 686 |
FUNCTION {inbook} |
| 687 |
{ output.bibitem |
| 688 |
author empty$ |
| 689 |
{ format.editors "author and editor" output.check } |
| 690 |
{ format.authors output.nonnull |
| 691 |
crossref missing$ |
| 692 |
{ "author and editor" editor either.or.check } |
| 693 |
'skip$ |
| 694 |
if$ |
| 695 |
} |
| 696 |
if$ |
| 697 |
format.title "title" output.check |
| 698 |
crossref missing$ |
| 699 |
{ format.bookvolume.series.number output |
| 700 |
format.chapter.pages "chapter and pages" output.check |
| 701 |
format.number.series output |
| 702 |
publisher "publisher" output.check |
| 703 |
address output |
| 704 |
} |
| 705 |
{ format.chapter.pages "chapter and pages" output.check |
| 706 |
format.book.crossref output.nonnull |
| 707 |
} |
| 708 |
if$ |
| 709 |
format.edition output |
| 710 |
format.date "year" output.check |
| 711 |
format.language * |
| 712 |
note output |
| 713 |
fin.entry |
| 714 |
} |
| 715 |
|
| 716 |
FUNCTION {incollection} |
| 717 |
{ output.bibitem |
| 718 |
format.authors "author" output.check |
| 719 |
format.title "title" output.check |
| 720 |
crossref missing$ |
| 721 |
{ format.incoll.title.editors "booktitle" output.check |
| 722 |
format.bookvolume.series.number output |
| 723 |
publisher "publisher" output.check |
| 724 |
address output |
| 725 |
format.edition output |
| 726 |
format.date "year" output.check |
| 727 |
} |
| 728 |
{ format.incoll.inproc.crossref output.nonnull |
| 729 |
} |
| 730 |
if$ |
| 731 |
note output |
| 732 |
format.book.pages output |
| 733 |
format.language * |
| 734 |
fin.entry |
| 735 |
} |
| 736 |
|
| 737 |
FUNCTION {inproceedings} |
| 738 |
{ output.bibitem |
| 739 |
format.authors "author" output.check |
| 740 |
format.title "title" output.check |
| 741 |
crossref missing$ |
| 742 |
{ format.inproc.title.address.editors "booktitle" output.check |
| 743 |
format.bookvolume.series.number output |
| 744 |
organization output |
| 745 |
publisher output |
| 746 |
format.date "year" output.check |
| 747 |
} |
| 748 |
{ format.incoll.inproc.crossref output.nonnull |
| 749 |
} |
| 750 |
if$ |
| 751 |
note output |
| 752 |
format.book.pages output |
| 753 |
format.language * |
| 754 |
fin.entry |
| 755 |
} |
| 756 |
|
| 757 |
FUNCTION {conference} { inproceedings } |
| 758 |
|
| 759 |
FUNCTION {manual} |
| 760 |
{ output.bibitem |
| 761 |
author empty$ |
| 762 |
{ organization empty$ |
| 763 |
'skip$ |
| 764 |
{ organization output.nonnull |
| 765 |
address output |
| 766 |
} |
| 767 |
if$ |
| 768 |
} |
| 769 |
{ format.authors output.nonnull } |
| 770 |
if$ |
| 771 |
format.booktitle "title" output.check |
| 772 |
author empty$ |
| 773 |
{ organization empty$ |
| 774 |
{ address output } |
| 775 |
'skip$ |
| 776 |
if$ |
| 777 |
} |
| 778 |
{ organization output |
| 779 |
address output |
| 780 |
} |
| 781 |
if$ |
| 782 |
format.edition output |
| 783 |
format.date output |
| 784 |
note output |
| 785 |
fin.entry |
| 786 |
} |
| 787 |
|
| 788 |
FUNCTION {mastersthesis} |
| 789 |
{ output.bibitem |
| 790 |
format.authors "author" output.check |
| 791 |
format.booktitle "title" output.check |
| 792 |
"\smfmastersthesisname" format.thesis.type output.nonnull |
| 793 |
school "school" output.check |
| 794 |
address output |
| 795 |
format.date "year" output.check |
| 796 |
note output |
| 797 |
fin.entry |
| 798 |
} |
| 799 |
|
| 800 |
FUNCTION {phdthesis} |
| 801 |
{ output.bibitem |
| 802 |
format.authors "author" output.check |
| 803 |
format.title "title" output.check |
| 804 |
"\smfphdthesisname" format.thesis.type output.nonnull |
| 805 |
school "school" output.check |
| 806 |
address output |
| 807 |
format.date "year" output.check |
| 808 |
note output |
| 809 |
format.book.pages output |
| 810 |
fin.entry |
| 811 |
} |
| 812 |
|
| 813 |
FUNCTION {proceedings} |
| 814 |
{ output.bibitem |
| 815 |
editor empty$ |
| 816 |
{ organization output } |
| 817 |
{ format.editors output.nonnull } |
| 818 |
if$ |
| 819 |
format.booktitle "title" output.check |
| 820 |
format.bookvolume.series.number output |
| 821 |
address empty$ |
| 822 |
{ editor empty$ |
| 823 |
'skip$ |
| 824 |
{ organization output } |
| 825 |
if$ |
| 826 |
publisher output |
| 827 |
format.date "year" output.check |
| 828 |
} |
| 829 |
{ address output.nonnull |
| 830 |
editor empty$ |
| 831 |
'skip$ |
| 832 |
{ organization output } |
| 833 |
if$ |
| 834 |
publisher output |
| 835 |
format.date "year" output.check |
| 836 |
} |
| 837 |
if$ |
| 838 |
note output |
| 839 |
fin.entry |
| 840 |
} |
| 841 |
|
| 842 |
FUNCTION {techreport} |
| 843 |
{ output.bibitem |
| 844 |
format.authors "author" output.check |
| 845 |
format.title "title" output.check |
| 846 |
format.tr.number output.nonnull |
| 847 |
institution "institution" output.check |
| 848 |
address output |
| 849 |
format.date "year" output.check |
| 850 |
note output |
| 851 |
fin.entry |
| 852 |
} |
| 853 |
|
| 854 |
FUNCTION {misc} |
| 855 |
{ output.bibitem |
| 856 |
format.authors output |
| 857 |
format.title output |
| 858 |
howpublished output |
| 859 |
format.date output |
| 860 |
note output |
| 861 |
format.book.pages output |
| 862 |
fin.entry |
| 863 |
empty.misc.check |
| 864 |
} |
| 865 |
|
| 866 |
FUNCTION {unpublished} |
| 867 |
{ output.bibitem |
| 868 |
format.authors "author" output.check |
| 869 |
format.title "title" output.check |
| 870 |
note "note" output.check |
| 871 |
format.date output |
| 872 |
fin.entry |
| 873 |
} |
| 874 |
FUNCTION {default.type} { misc } |
| 875 |
READ |
| 876 |
|
| 877 |
FUNCTION {sortify} |
| 878 |
{ purify$ |
| 879 |
"l" change.case$ |
| 880 |
} |
| 881 |
|
| 882 |
INTEGERS { len } |
| 883 |
|
| 884 |
FUNCTION {chop.word} |
| 885 |
{ 's := |
| 886 |
'len := |
| 887 |
s #1 len substring$ = |
| 888 |
{ s len #1 + global.max$ substring$ } |
| 889 |
's |
| 890 |
if$ |
| 891 |
} |
| 892 |
|
| 893 |
INTEGERS { et.al.char.used } |
| 894 |
|
| 895 |
FUNCTION {initialize.et.al.char.used} |
| 896 |
{ #0 'et.al.char.used := |
| 897 |
} |
| 898 |
|
| 899 |
EXECUTE {initialize.et.al.char.used} |
| 900 |
|
| 901 |
FUNCTION {format.lab.names} |
| 902 |
{ 's := |
| 903 |
s num.names$ 'numnames := |
| 904 |
numnames #1 > |
| 905 |
{ numnames #4 > |
| 906 |
{ #3 'namesleft := } |
| 907 |
{ numnames 'namesleft := } |
| 908 |
if$ |
| 909 |
#1 'nameptr := |
| 910 |
"" |
| 911 |
{ namesleft #0 > } |
| 912 |
{ nameptr numnames = |
| 913 |
{ s nameptr "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 914 |
{ "{\etalchar{+}}" * |
| 915 |
#1 'et.al.char.used := |
| 916 |
} |
| 917 |
{ s nameptr "{v{}}{l{}}" format.name$ * } |
| 918 |
if$ |
| 919 |
} |
| 920 |
{ s nameptr "{v{}}{l{}}" format.name$ * } |
| 921 |
if$ |
| 922 |
nameptr #1 + 'nameptr := |
| 923 |
namesleft #1 - 'namesleft := |
| 924 |
} |
| 925 |
while$ |
| 926 |
numnames #4 > |
| 927 |
{ "{\etalchar{+}}" * |
| 928 |
#1 'et.al.char.used := |
| 929 |
} |
| 930 |
'skip$ |
| 931 |
if$ |
| 932 |
} |
| 933 |
{ s #1 "{v{}}{l{}}" format.name$ |
| 934 |
duplicate$ text.length$ #2 < |
| 935 |
{ pop$ s #1 "{ll}" format.name$ #3 text.prefix$ } |
| 936 |
'skip$ |
| 937 |
if$ |
| 938 |
} |
| 939 |
if$ |
| 940 |
} |
| 941 |
|
| 942 |
FUNCTION {author.key.label} |
| 943 |
{ author empty$ |
| 944 |
{ key empty$ |
| 945 |
{ cite$ #1 #3 substring$ } |
| 946 |
{ key #3 text.prefix$ } |
| 947 |
if$ |
| 948 |
} |
| 949 |
{ author format.lab.names } |
| 950 |
if$ |
| 951 |
} |
| 952 |
|
| 953 |
FUNCTION {author.editor.key.label} |
| 954 |
{ author empty$ |
| 955 |
{ editor empty$ |
| 956 |
{ key empty$ |
| 957 |
{ cite$ #1 #3 substring$ } |
| 958 |
{ key #3 text.prefix$ } |
| 959 |
if$ |
| 960 |
} |
| 961 |
{ editor format.lab.names } |
| 962 |
if$ |
| 963 |
} |
| 964 |
{ author format.lab.names } |
| 965 |
if$ |
| 966 |
} |
| 967 |
|
| 968 |
FUNCTION {author.key.organization.label} |
| 969 |
{ author empty$ |
| 970 |
{ key empty$ |
| 971 |
{ organization empty$ |
| 972 |
{ cite$ #1 #3 substring$ } |
| 973 |
{ "The " #4 organization chop.word #3 text.prefix$ } |
| 974 |
if$ |
| 975 |
} |
| 976 |
{ key #3 text.prefix$ } |
| 977 |
if$ |
| 978 |
} |
| 979 |
{ author format.lab.names } |
| 980 |
if$ |
| 981 |
} |
| 982 |
|
| 983 |
FUNCTION {editor.key.organization.label} |
| 984 |
{ editor empty$ |
| 985 |
{ key empty$ |
| 986 |
{ organization empty$ |
| 987 |
{ cite$ #1 #3 substring$ } |
| 988 |
{ "The " #4 organization chop.word #3 text.prefix$ } |
| 989 |
if$ |
| 990 |
} |
| 991 |
{ key #3 text.prefix$ } |
| 992 |
if$ |
| 993 |
} |
| 994 |
{ editor format.lab.names } |
| 995 |
if$ |
| 996 |
} |
| 997 |
|
| 998 |
FUNCTION {calc.label} |
| 999 |
{ type$ "book" = |
| 1000 |
type$ "inbook" = |
| 1001 |
or |
| 1002 |
'author.editor.key.label |
| 1003 |
{ type$ "proceedings" = |
| 1004 |
'editor.key.organization.label |
| 1005 |
{ type$ "manual" = |
| 1006 |
'author.key.organization.label |
| 1007 |
'author.key.label |
| 1008 |
if$ |
| 1009 |
} |
| 1010 |
if$ |
| 1011 |
} |
| 1012 |
if$ |
| 1013 |
duplicate$ |
| 1014 |
year field.or.null purify$ #-1 #2 substring$ |
| 1015 |
* |
| 1016 |
'label := |
| 1017 |
year field.or.null purify$ #-1 #4 substring$ |
| 1018 |
* |
| 1019 |
sortify 'sort.label := |
| 1020 |
} |
| 1021 |
FUNCTION {sort.format.names} |
| 1022 |
{ 's := |
| 1023 |
#1 'nameptr := |
| 1024 |
"" |
| 1025 |
s num.names$ 'numnames := |
| 1026 |
numnames 'namesleft := |
| 1027 |
{ namesleft #0 > } |
| 1028 |
{ nameptr #1 > |
| 1029 |
{ " " * } |
| 1030 |
'skip$ |
| 1031 |
if$ |
| 1032 |
%% s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := |
| 1033 |
s nameptr "{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := |
| 1034 |
nameptr numnames = t "others" = and |
| 1035 |
{ "et~al" * } |
| 1036 |
{ t sortify * } |
| 1037 |
if$ |
| 1038 |
nameptr #1 + 'nameptr := |
| 1039 |
namesleft #1 - 'namesleft := |
| 1040 |
} |
| 1041 |
while$ |
| 1042 |
} |
| 1043 |
|
| 1044 |
FUNCTION {sort.format.title} |
| 1045 |
{ 't := |
| 1046 |
"A " #2 |
| 1047 |
"An " #3 |
| 1048 |
"The " #4 t chop.word |
| 1049 |
chop.word |
| 1050 |
chop.word |
| 1051 |
sortify |
| 1052 |
#1 global.max$ substring$ |
| 1053 |
} |
| 1054 |
|
| 1055 |
FUNCTION {author.sort} |
| 1056 |
{ author empty$ |
| 1057 |
{ key empty$ |
| 1058 |
{ "to sort, need author or key in " cite$ * warning$ |
| 1059 |
"" |
| 1060 |
} |
| 1061 |
{ key sortify } |
| 1062 |
if$ |
| 1063 |
} |
| 1064 |
{ author sort.format.names } |
| 1065 |
if$ |
| 1066 |
} |
| 1067 |
|
| 1068 |
FUNCTION {author.editor.sort} |
| 1069 |
{ author empty$ |
| 1070 |
{ editor empty$ |
| 1071 |
{ key empty$ |
| 1072 |
{ "to sort, need author, editor, or key in " cite$ * warning$ |
| 1073 |
"" |
| 1074 |
} |
| 1075 |
{ key sortify } |
| 1076 |
if$ |
| 1077 |
} |
| 1078 |
{ editor sort.format.names } |
| 1079 |
if$ |
| 1080 |
} |
| 1081 |
{ author sort.format.names } |
| 1082 |
if$ |
| 1083 |
} |
| 1084 |
|
| 1085 |
FUNCTION {author.organization.sort} |
| 1086 |
{ author empty$ |
| 1087 |
{ organization empty$ |
| 1088 |
{ key empty$ |
| 1089 |
{ "to sort, need author, organization, or key in " cite$ * warning$ |
| 1090 |
"" |
| 1091 |
} |
| 1092 |
{ key sortify } |
| 1093 |
if$ |
| 1094 |
} |
| 1095 |
{ "The " #4 organization chop.word sortify } |
| 1096 |
if$ |
| 1097 |
} |
| 1098 |
{ author sort.format.names } |
| 1099 |
if$ |
| 1100 |
} |
| 1101 |
|
| 1102 |
FUNCTION {editor.organization.sort} |
| 1103 |
{ editor empty$ |
| 1104 |
{ organization empty$ |
| 1105 |
{ key empty$ |
| 1106 |
{ "to sort, need editor, organization, or key in " cite$ * warning$ |
| 1107 |
"" |
| 1108 |
} |
| 1109 |
{ key sortify } |
| 1110 |
if$ |
| 1111 |
} |
| 1112 |
{ "The " #4 organization chop.word sortify } |
| 1113 |
if$ |
| 1114 |
} |
| 1115 |
{ editor sort.format.names } |
| 1116 |
if$ |
| 1117 |
} |
| 1118 |
|
| 1119 |
FUNCTION {presort} |
| 1120 |
{ |
| 1121 |
calc.label |
| 1122 |
sort.label |
| 1123 |
" " |
| 1124 |
* |
| 1125 |
type$ "book" = |
| 1126 |
type$ "inbook" = |
| 1127 |
or |
| 1128 |
'author.editor.sort |
| 1129 |
{ type$ "proceedings" = |
| 1130 |
'editor.organization.sort |
| 1131 |
{ type$ "manual" = |
| 1132 |
'author.organization.sort |
| 1133 |
'author.sort |
| 1134 |
if$ |
| 1135 |
} |
| 1136 |
if$ |
| 1137 |
} |
| 1138 |
if$ |
| 1139 |
* |
| 1140 |
" " |
| 1141 |
* |
| 1142 |
year field.or.null sortify |
| 1143 |
* |
| 1144 |
" " |
| 1145 |
* |
| 1146 |
title field.or.null |
| 1147 |
sort.format.title |
| 1148 |
* |
| 1149 |
#1 entry.max$ substring$ |
| 1150 |
'sort.key$ := |
| 1151 |
} |
| 1152 |
|
| 1153 |
ITERATE {presort} |
| 1154 |
|
| 1155 |
SORT |
| 1156 |
STRINGS { longest.label last.sort.label next.extra this.author prev.author } |
| 1157 |
|
| 1158 |
INTEGERS { longest.label.width last.extra.num } |
| 1159 |
|
| 1160 |
FUNCTION {initialize.longest.label} |
| 1161 |
{ "" 'longest.label := |
| 1162 |
#0 int.to.chr$ 'last.sort.label := |
| 1163 |
"" 'next.extra := |
| 1164 |
#0 'longest.label.width := |
| 1165 |
#0 'last.extra.num := |
| 1166 |
"abcxyz" 'prev.author := |
| 1167 |
"" 'this.author := |
| 1168 |
} |
| 1169 |
FUNCTION {forward.pass} |
| 1170 |
{ last.sort.label sort.label = |
| 1171 |
{ last.extra.num #1 + 'last.extra.num := |
| 1172 |
last.extra.num int.to.chr$ 'extra.label := |
| 1173 |
} |
| 1174 |
{ "a" chr.to.int$ 'last.extra.num := |
| 1175 |
"" 'extra.label := |
| 1176 |
sort.label 'last.sort.label := |
| 1177 |
} |
| 1178 |
if$ |
| 1179 |
|
| 1180 |
author empty$ |
| 1181 |
{ editor empty$ |
| 1182 |
{ "" } |
| 1183 |
'editor |
| 1184 |
if$ |
| 1185 |
} |
| 1186 |
'author |
| 1187 |
if$ |
| 1188 |
'this.author := |
| 1189 |
this.author prev.author = |
| 1190 |
{ "\bysame" 'extra.same.label := } |
| 1191 |
{ "" 'extra.same.label := |
| 1192 |
this.author "" = |
| 1193 |
{ "abcxyz" } |
| 1194 |
'this.author |
| 1195 |
if$ |
| 1196 |
'prev.author := |
| 1197 |
} |
| 1198 |
if$ |
| 1199 |
} |
| 1200 |
|
| 1201 |
FUNCTION {reverse.pass} |
| 1202 |
{ next.extra "b" = |
| 1203 |
{ "a" 'extra.label := } |
| 1204 |
'skip$ |
| 1205 |
if$ |
| 1206 |
label extra.label * 'label := |
| 1207 |
label width$ longest.label.width > |
| 1208 |
{ label 'longest.label := |
| 1209 |
label width$ 'longest.label.width := |
| 1210 |
} |
| 1211 |
'skip$ |
| 1212 |
if$ |
| 1213 |
extra.label 'next.extra := |
| 1214 |
} |
| 1215 |
|
| 1216 |
EXECUTE {initialize.longest.label} |
| 1217 |
|
| 1218 |
ITERATE {forward.pass} |
| 1219 |
|
| 1220 |
REVERSE {reverse.pass} |
| 1221 |
FUNCTION {begin.bib} |
| 1222 |
{ |
| 1223 |
et.al.char.used |
| 1224 |
{ "\newcommand{\etalchar}[1]{$^{#1}$}" write$ newline$ } |
| 1225 |
'skip$ |
| 1226 |
if$ |
| 1227 |
preamble$ empty$ |
| 1228 |
'skip$ |
| 1229 |
{ preamble$ write$ newline$ } |
| 1230 |
if$ |
| 1231 |
"\providecommand{\bysame}{\leavevmode ---\ }" write$ newline$ |
| 1232 |
"\providecommand{\og}{``}" write$ newline$ |
| 1233 |
"\providecommand{\fg}{''}" write$ newline$ |
| 1234 |
"\providecommand{\smfandname}{\&}" write$ newline$ |
| 1235 |
"\providecommand{\smfedsname}{\'eds.}" write$ newline$ |
| 1236 |
"\providecommand{\smfedname}{\'ed.}" write$ newline$ |
| 1237 |
"\providecommand{\smfmastersthesisname}{M\'emoire}" write$ newline$ |
| 1238 |
"\providecommand{\smfphdthesisname}{Th\`ese}" write$ newline$ |
| 1239 |
"\begin{thebibliography}{" longest.label * "}" * write$ newline$ |
| 1240 |
} |
| 1241 |
|
| 1242 |
EXECUTE {begin.bib} |
| 1243 |
|
| 1244 |
EXECUTE {init.state.consts} |
| 1245 |
|
| 1246 |
ITERATE {call.type$} |
| 1247 |
|
| 1248 |
FUNCTION {end.bib} |
| 1249 |
{ newline$ |
| 1250 |
"\end{thebibliography}" write$ newline$ |
| 1251 |
} |
| 1252 |
|
| 1253 |
EXECUTE {end.bib} |
| 1254 |
%% |
| 1255 |
%% |
| 1256 |
%% End of file `smfalpha.bst'. |