| 1 |
% iopart-num.bst -- BibTeX style for IOP journals (Harvard-like numeric style) |
| 2 |
% M. A. Caprio |
| 3 |
% |
| 4 |
% DESCRIPTION |
| 5 |
% |
| 6 |
% Further documenation may be found in iopart-num.pdf. |
| 7 |
% |
| 8 |
% Available from CTAN as /biblio/bibtex/contrib/iopart-num. |
| 9 |
% |
| 10 |
% COPYRIGHT/LICENSE |
| 11 |
% |
| 12 |
% Copyright 2009 M. A. Caprio |
| 13 |
% |
| 14 |
% This work may be distributed and/or modified under the |
| 15 |
% conditions of the LaTeX Project Public License, either |
| 16 |
% version 1.3 of this license or (at your option) any later |
| 17 |
% version. The latest version of this license is in |
| 18 |
% http://www.latex-project.org/lppl.txt |
| 19 |
% and version 1.3 or later is part of all distributions of |
| 20 |
% LaTeX version 2005/12/01 or later. |
| 21 |
% |
| 22 |
% This work has the LPPL maintenance status "maintained". |
| 23 |
% |
| 24 |
% The Current Maintainer of this work is the author. |
| 25 |
% |
| 26 |
% The contents of this work are listed in the README file. |
| 27 |
% |
| 28 |
% HISTORY |
| 29 |
% |
| 30 |
% Version 1.0 (2005/07/11) |
| 31 |
% Created using custom-bib (merlin.mbs), with following manual modifications: |
| 32 |
% -- remove trailing period from predefined volume, page, etc., abbreviations |
| 33 |
% -- provide command \newblock to fix incompatibility between natbib |
| 34 |
% and iopart (as of iopart version 1996/06/10) |
| 35 |
% -- move edition after booktitle |
| 36 |
% -- add version identifier to generated output |
| 37 |
% -- for incollection and inproceedings, move volume from after publisher to before |
| 38 |
% -- for any series with number, number after series |
| 39 |
% Version 2.0 (2006/12/21) |
| 40 |
% -- define section field for proper formatting of lettered journal sections |
| 41 |
% (suggested by Chris Latham) |
| 42 |
% -- suppress printing of number for article, but provide issue field |
| 43 |
% for periodicals with issue-based page numbering (suggested by Chris Latham) |
| 44 |
% -- patch remove.dots to not strip "\." control sequence (bug reported by Kevin Bube) |
| 45 |
% -- define epilog field (undocumented) |
| 46 |
% -- delete predefined computer science journal names |
| 47 |
% -- bring book volume+number or series+number formatting into IOP form |
| 48 |
% -- for book, inbook, and proceedings with editors but no author, fix formating of editors |
| 49 |
% -- for incollection and inproceedings, put editors in correct location |
| 50 |
% -- for journal: use same page formatting even if volume missing |
| 51 |
% Version 2.1 (2009/01/22) |
| 52 |
% -- for incollection and inproceedings: support title of chapter (not appropriate |
| 53 |
% to inbook) |
| 54 |
% -- for book, proceedings, etc.: support volumetitle for multivolume book |
| 55 |
% |
| 56 |
% LIMITATIONS |
| 57 |
% |
| 58 |
% Still not in IOP form: |
| 59 |
% -- for incollection and inproceedings, editors initials should preceed rather |
| 60 |
% than follow last name |
| 61 |
% Other: |
| 62 |
% -- hyphenated first names lose hyphen |
| 63 |
|
| 64 |
%% This is file `iopart-num.bst', |
| 65 |
%% generated with the docstrip utility. |
| 66 |
%% |
| 67 |
%% The original source files were: |
| 68 |
%% |
| 69 |
%% merlin.mbs (with options: `seq-no,nm-rv,dt-beg,yr-blk,xmth,yrp-x,jtit-x,vol-bf,volp-blk,num-xser,jnm-x,add-pub,pub-par,pre-pub,isbn,issn,blk-com,com-blank,fin-bare,pp,ed,abr,ednx,mth-bare,ord,jabr,and-xcom,etal-it,revdata,eprint,url,url-blk') |
| 70 |
%% ---------------------------------------- |
| 71 |
%% *** Institute of Physics (IOP) journals; Harvard-like numeric style *** |
| 72 |
%% |
| 73 |
%% Copyright 1994-2002 Patrick W Daly |
| 74 |
% =============================================================== |
| 75 |
% IMPORTANT NOTICE: |
| 76 |
% This bibliographic style (bst) file has been generated from one or |
| 77 |
% more master bibliographic style (mbs) files, listed above. |
| 78 |
% |
| 79 |
% This generated file can be redistributed and/or modified under the terms |
| 80 |
% of the LaTeX Project Public License Distributed from CTAN |
| 81 |
% archives in directory macros/latex/base/lppl.txt; either |
| 82 |
% version 1 of the License, or any later version. |
| 83 |
% =============================================================== |
| 84 |
% Name and version information of the main mbs file: |
| 85 |
% \ProvidesFile{merlin.mbs}[2002/10/21 4.05 (PWD, AO, DPC)] |
| 86 |
% For use with BibTeX version 0.99a or later |
| 87 |
%------------------------------------------------------------------- |
| 88 |
% This bibliography style file is intended for texts in ENGLISH |
| 89 |
% This is a numerical citation style, and as such is standard LaTeX. |
| 90 |
% It requires no extra package to interface to the main text. |
| 91 |
% The form of the \bibitem entries is |
| 92 |
% \bibitem{key}... |
| 93 |
% Usage of \cite is as follows: |
| 94 |
% \cite{key} ==>> [#] |
| 95 |
% \cite[chap. 2]{key} ==>> [#, chap. 2] |
| 96 |
% where # is a number determined by the ordering in the reference list. |
| 97 |
% The order in the reference list is that by which the works were originally |
| 98 |
% cited in the text, or that in the database. |
| 99 |
%--------------------------------------------------------------------- |
| 100 |
|
| 101 |
ENTRY |
| 102 |
{ address |
| 103 |
archive |
| 104 |
author |
| 105 |
booktitle |
| 106 |
chapter |
| 107 |
collaboration |
| 108 |
edition |
| 109 |
editor |
| 110 |
eid |
| 111 |
eprint |
| 112 |
howpublished |
| 113 |
institution |
| 114 |
isbn |
| 115 |
issn |
| 116 |
journal |
| 117 |
key |
| 118 |
month |
| 119 |
note |
| 120 |
number |
| 121 |
numpages |
| 122 |
organization |
| 123 |
pages |
| 124 |
publisher |
| 125 |
school |
| 126 |
series |
| 127 |
title |
| 128 |
type |
| 129 |
url |
| 130 |
volume |
| 131 |
year |
| 132 |
%mc |
| 133 |
issue |
| 134 |
section |
| 135 |
epilog |
| 136 |
volumetitle |
| 137 |
transjournal |
| 138 |
transsection |
| 139 |
transvolume |
| 140 |
transnumber |
| 141 |
transissue |
| 142 |
transpages |
| 143 |
transyear |
| 144 |
} |
| 145 |
{} |
| 146 |
{ label } |
| 147 |
|
| 148 |
FUNCTION {not} |
| 149 |
{ { #0 } |
| 150 |
{ #1 } |
| 151 |
if$ |
| 152 |
} |
| 153 |
FUNCTION {and} |
| 154 |
{ 'skip$ |
| 155 |
{ pop$ #0 } |
| 156 |
if$ |
| 157 |
} |
| 158 |
FUNCTION {or} |
| 159 |
{ { pop$ #1 } |
| 160 |
'skip$ |
| 161 |
if$ |
| 162 |
} |
| 163 |
|
| 164 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 165 |
% mc utilities |
| 166 |
% require merlin.mbs logical operators and field.or.null |
| 167 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 168 |
|
| 169 |
% hang -- {hang} suspends execution, for debugging purposes |
| 170 |
% Note that not all pending output may have been flushed. |
| 171 |
FUNCTION {hang} |
| 172 |
{ |
| 173 |
{#1} {skip$} while$ |
| 174 |
} |
| 175 |
|
| 176 |
% string.length -- {s string.length} returns the true character length of s |
| 177 |
% In contrast, text.length$ gives special treatment to LaTeX |
| 178 |
% accents ("special characters") and braces. |
| 179 |
% Example: "" string.length -> 0 |
| 180 |
% Example: "hello" string.length -> 5 |
| 181 |
|
| 182 |
STRINGS {string.length.s } |
| 183 |
INTEGERS {string.length.i } |
| 184 |
FUNCTION {string.length} |
| 185 |
{ |
| 186 |
'string.length.s := |
| 187 |
#0 'string.length.i := |
| 188 |
{ |
| 189 |
string.length.s #1 #1 substring$ "" = not |
| 190 |
} |
| 191 |
{ |
| 192 |
string.length.i #1 + 'string.length.i := |
| 193 |
string.length.s #2 global.max$ substring$ 'string.length.s := |
| 194 |
} |
| 195 |
while$ |
| 196 |
string.length.i |
| 197 |
} |
| 198 |
|
| 199 |
% shared working variables for stripping functions |
| 200 |
STRINGS { strip.s strip.t } |
| 201 |
INTEGERS { strip.i } |
| 202 |
|
| 203 |
% strip.leading -- {s t strip.leading} strips t from s if it appears |
| 204 |
% as an initial substring |
| 205 |
% Example: "abcdef" "abc" strip.leading -> "def" |
| 206 |
% Example: "abcdef" "xyz" strip.leading -> "abcdef" |
| 207 |
|
| 208 |
FUNCTION{strip.leading} |
| 209 |
{ |
| 210 |
'strip.t := |
| 211 |
'strip.s := |
| 212 |
strip.t string.length 'strip.i := |
| 213 |
strip.s #1 strip.i substring$ strip.t = |
| 214 |
{ strip.s strip.i #1 + global.max$ substring$ } |
| 215 |
{ strip.s } |
| 216 |
if$ |
| 217 |
} |
| 218 |
|
| 219 |
% strip.trailing -- {s t strip.trailing} strips t from s if it appears |
| 220 |
% as a terminal substring |
| 221 |
% Example: "abcdef" "def" strip.trailing -> "abc" |
| 222 |
% Example: "abcdef" "xyz" strip.trailing -> "abcdef" |
| 223 |
FUNCTION{strip.trailing} |
| 224 |
{ |
| 225 |
'strip.t := |
| 226 |
'strip.s := |
| 227 |
strip.t string.length 'strip.i := |
| 228 |
strip.s #-1 strip.i substring$ strip.t = |
| 229 |
{ strip.s #-1 strip.i - global.max$ substring$ } |
| 230 |
{ strip.s } |
| 231 |
if$ |
| 232 |
} |
| 233 |
|
| 234 |
% trim -- {s trim} strips any trailing whitespace from s |
| 235 |
% Example: "abcdef " trim -> "abcdef" |
| 236 |
STRINGS {trim.s trim.t} |
| 237 |
FUNCTION{trim} |
| 238 |
{ |
| 239 |
'trim.s := |
| 240 |
{ |
| 241 |
trim.s #-1 #1 substring$ 'trim.t := |
| 242 |
trim.t empty$ trim.t string.length #0 > and |
| 243 |
} |
| 244 |
{ trim.s #-2 global.max$ substring$ 'trim.s := } |
| 245 |
while$ |
| 246 |
trim.s |
| 247 |
} |
| 248 |
|
| 249 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 250 |
|
| 251 |
|
| 252 |
INTEGERS { output.state before.all mid.sentence after.sentence after.block } |
| 253 |
FUNCTION {init.state.consts} |
| 254 |
{ #0 'before.all := |
| 255 |
#1 'mid.sentence := |
| 256 |
#2 'after.sentence := |
| 257 |
#3 'after.block := |
| 258 |
} |
| 259 |
STRINGS { s t} |
| 260 |
|
| 261 |
FUNCTION {output.nonnull} |
| 262 |
{ 's := |
| 263 |
output.state mid.sentence = |
| 264 |
{ " " * write$ } |
| 265 |
{ output.state after.block = |
| 266 |
{ add.period$ write$ |
| 267 |
newline$ |
| 268 |
"\newblock " write$ |
| 269 |
} |
| 270 |
{ output.state before.all = |
| 271 |
'write$ |
| 272 |
{ add.period$ " " * write$ } |
| 273 |
if$ |
| 274 |
} |
| 275 |
if$ |
| 276 |
mid.sentence 'output.state := |
| 277 |
} |
| 278 |
if$ |
| 279 |
s |
| 280 |
} |
| 281 |
FUNCTION {output} |
| 282 |
{ duplicate$ empty$ |
| 283 |
'pop$ |
| 284 |
'output.nonnull |
| 285 |
if$ |
| 286 |
} |
| 287 |
FUNCTION {output.check} |
| 288 |
{ 't := |
| 289 |
duplicate$ empty$ |
| 290 |
{ pop$ "empty " t * " in " * cite$ * warning$ } |
| 291 |
'output.nonnull |
| 292 |
if$ |
| 293 |
} |
| 294 |
|
| 295 |
%mc |
| 296 |
FUNCTION {format.epilog} |
| 297 |
{ epilog duplicate$ empty$ |
| 298 |
{ pop$ } |
| 299 |
{ * } |
| 300 |
if$ |
| 301 |
} |
| 302 |
%mc end |
| 303 |
|
| 304 |
|
| 305 |
FUNCTION {fin.entry} |
| 306 |
{ |
| 307 |
%mc |
| 308 |
format.epilog |
| 309 |
%mc end |
| 310 |
duplicate$ empty$ |
| 311 |
'pop$ |
| 312 |
'write$ |
| 313 |
if$ |
| 314 |
newline$ |
| 315 |
} |
| 316 |
|
| 317 |
FUNCTION {new.block} |
| 318 |
{ output.state before.all = |
| 319 |
'skip$ |
| 320 |
{ after.block 'output.state := } |
| 321 |
if$ |
| 322 |
} |
| 323 |
FUNCTION {new.sentence} |
| 324 |
{ output.state after.block = |
| 325 |
'skip$ |
| 326 |
{ output.state before.all = |
| 327 |
'skip$ |
| 328 |
{ after.sentence 'output.state := } |
| 329 |
if$ |
| 330 |
} |
| 331 |
if$ |
| 332 |
} |
| 333 |
FUNCTION {add.blank} |
| 334 |
{ " " * before.all 'output.state := |
| 335 |
} |
| 336 |
|
| 337 |
FUNCTION {date.block} |
| 338 |
{ |
| 339 |
add.blank |
| 340 |
} |
| 341 |
|
| 342 |
STRINGS {z} |
| 343 |
FUNCTION {remove.dots} |
| 344 |
{ 'z := |
| 345 |
"" |
| 346 |
{ z empty$ not } |
| 347 |
{ |
| 348 |
%mc patch to preserve the control sequence \. if it appears in a name |
| 349 |
z #1 #2 substring$ "\." = |
| 350 |
{ |
| 351 |
% process "\." sequence |
| 352 |
z #3 global.max$ substring$ 'z := |
| 353 |
"\." * |
| 354 |
} |
| 355 |
{ |
| 356 |
% process regular character |
| 357 |
z #1 #1 substring$ |
| 358 |
z #2 global.max$ substring$ 'z := |
| 359 |
duplicate$ "." = 'pop$ |
| 360 |
{ * } |
| 361 |
if$ |
| 362 |
} |
| 363 |
if$ |
| 364 |
%mc |
| 365 |
} |
| 366 |
while$ |
| 367 |
} |
| 368 |
FUNCTION {new.block.checka} |
| 369 |
{ empty$ |
| 370 |
'skip$ |
| 371 |
'new.block |
| 372 |
if$ |
| 373 |
} |
| 374 |
FUNCTION {new.block.checkb} |
| 375 |
{ empty$ |
| 376 |
swap$ empty$ |
| 377 |
and |
| 378 |
'skip$ |
| 379 |
'new.block |
| 380 |
if$ |
| 381 |
} |
| 382 |
FUNCTION {new.sentence.checka} |
| 383 |
{ empty$ |
| 384 |
'skip$ |
| 385 |
'new.sentence |
| 386 |
if$ |
| 387 |
} |
| 388 |
FUNCTION {new.sentence.checkb} |
| 389 |
{ empty$ |
| 390 |
swap$ empty$ |
| 391 |
and |
| 392 |
'skip$ |
| 393 |
'new.sentence |
| 394 |
if$ |
| 395 |
} |
| 396 |
FUNCTION {field.or.null} |
| 397 |
{ duplicate$ empty$ |
| 398 |
{ pop$ "" } |
| 399 |
'skip$ |
| 400 |
if$ |
| 401 |
} |
| 402 |
FUNCTION {emphasize} |
| 403 |
{ duplicate$ empty$ |
| 404 |
{ pop$ "" } |
| 405 |
{ "{\em " swap$ * "\/}" * } |
| 406 |
if$ |
| 407 |
} |
| 408 |
FUNCTION {bolden} |
| 409 |
{ duplicate$ empty$ |
| 410 |
{ pop$ "" } |
| 411 |
{ "{\bf " swap$ * "}" * } |
| 412 |
if$ |
| 413 |
} |
| 414 |
FUNCTION {tie.or.space.prefix} |
| 415 |
{ duplicate$ text.length$ #3 < |
| 416 |
{ "~" } |
| 417 |
{ " " } |
| 418 |
if$ |
| 419 |
swap$ |
| 420 |
} |
| 421 |
|
| 422 |
FUNCTION {capitalize} |
| 423 |
{ "u" change.case$ "t" change.case$ } |
| 424 |
|
| 425 |
FUNCTION {space.word} |
| 426 |
{ " " swap$ * " " * } |
| 427 |
% Here are the language-specific definitions for explicit words. |
| 428 |
% Each function has a name bbl.xxx where xxx is the English word. |
| 429 |
% The language selected here is ENGLISH |
| 430 |
FUNCTION {bbl.and} |
| 431 |
{ "and"} |
| 432 |
|
| 433 |
FUNCTION {bbl.etal} |
| 434 |
{ "et~al." } |
| 435 |
|
| 436 |
FUNCTION {bbl.editors} |
| 437 |
{ "eds" } |
| 438 |
|
| 439 |
FUNCTION {bbl.editor} |
| 440 |
{ "ed" } |
| 441 |
|
| 442 |
FUNCTION {bbl.edby} |
| 443 |
{ "edited by" } |
| 444 |
|
| 445 |
FUNCTION {bbl.edition} |
| 446 |
{ "ed" } |
| 447 |
|
| 448 |
FUNCTION {bbl.volume} |
| 449 |
{ "vol" } |
| 450 |
|
| 451 |
FUNCTION {bbl.of} |
| 452 |
{ "of" } |
| 453 |
|
| 454 |
FUNCTION {bbl.number} |
| 455 |
{ "no" } |
| 456 |
|
| 457 |
FUNCTION {bbl.nr} |
| 458 |
{ "no" } |
| 459 |
|
| 460 |
FUNCTION {bbl.in} |
| 461 |
{ "in" } |
| 462 |
|
| 463 |
FUNCTION {bbl.pages} |
| 464 |
{ "pp" } |
| 465 |
|
| 466 |
FUNCTION {bbl.page} |
| 467 |
{ "p" } |
| 468 |
|
| 469 |
FUNCTION {bbl.eidpp} |
| 470 |
{ "pages" } |
| 471 |
|
| 472 |
FUNCTION {bbl.chapter} |
| 473 |
{ "chap" } |
| 474 |
|
| 475 |
FUNCTION {bbl.techrep} |
| 476 |
{ "Tech. Rep." } |
| 477 |
|
| 478 |
FUNCTION {bbl.mthesis} |
| 479 |
{ "Master's thesis" } |
| 480 |
|
| 481 |
FUNCTION {bbl.phdthesis} |
| 482 |
{ "Ph.D. thesis" } |
| 483 |
|
| 484 |
FUNCTION {bbl.first} |
| 485 |
{ "1st" } |
| 486 |
|
| 487 |
FUNCTION {bbl.second} |
| 488 |
{ "2nd" } |
| 489 |
|
| 490 |
FUNCTION {bbl.third} |
| 491 |
{ "3rd" } |
| 492 |
|
| 493 |
FUNCTION {bbl.fourth} |
| 494 |
{ "4th" } |
| 495 |
|
| 496 |
FUNCTION {bbl.fifth} |
| 497 |
{ "5th" } |
| 498 |
|
| 499 |
FUNCTION {bbl.st} |
| 500 |
{ "st" } |
| 501 |
|
| 502 |
FUNCTION {bbl.nd} |
| 503 |
{ "nd" } |
| 504 |
|
| 505 |
FUNCTION {bbl.rd} |
| 506 |
{ "rd" } |
| 507 |
|
| 508 |
FUNCTION {bbl.th} |
| 509 |
{ "th" } |
| 510 |
|
| 511 |
MACRO {jan} {"Jan."} |
| 512 |
|
| 513 |
MACRO {feb} {"Feb."} |
| 514 |
|
| 515 |
MACRO {mar} {"Mar."} |
| 516 |
|
| 517 |
MACRO {apr} {"Apr."} |
| 518 |
|
| 519 |
MACRO {may} {"May"} |
| 520 |
|
| 521 |
MACRO {jun} {"Jun."} |
| 522 |
|
| 523 |
MACRO {jul} {"Jul."} |
| 524 |
|
| 525 |
MACRO {aug} {"Aug."} |
| 526 |
|
| 527 |
MACRO {sep} {"Sep."} |
| 528 |
|
| 529 |
MACRO {oct} {"Oct."} |
| 530 |
|
| 531 |
MACRO {nov} {"Nov."} |
| 532 |
|
| 533 |
MACRO {dec} {"Dec."} |
| 534 |
|
| 535 |
FUNCTION {eng.ord} |
| 536 |
{ duplicate$ "1" swap$ * |
| 537 |
#-2 #1 substring$ "1" = |
| 538 |
{ bbl.th * } |
| 539 |
{ duplicate$ #-1 #1 substring$ |
| 540 |
duplicate$ "1" = |
| 541 |
{ pop$ bbl.st * } |
| 542 |
{ duplicate$ "2" = |
| 543 |
{ pop$ bbl.nd * } |
| 544 |
{ "3" = |
| 545 |
{ bbl.rd * } |
| 546 |
{ bbl.th * } |
| 547 |
if$ |
| 548 |
} |
| 549 |
if$ |
| 550 |
} |
| 551 |
if$ |
| 552 |
} |
| 553 |
if$ |
| 554 |
} |
| 555 |
|
| 556 |
FUNCTION {bibinfo.check} |
| 557 |
{ swap$ |
| 558 |
duplicate$ missing$ |
| 559 |
{ |
| 560 |
pop$ pop$ |
| 561 |
"" |
| 562 |
} |
| 563 |
{ duplicate$ empty$ |
| 564 |
{ |
| 565 |
swap$ pop$ |
| 566 |
} |
| 567 |
{ swap$ |
| 568 |
pop$ |
| 569 |
} |
| 570 |
if$ |
| 571 |
} |
| 572 |
if$ |
| 573 |
} |
| 574 |
FUNCTION {bibinfo.warn} |
| 575 |
{ swap$ |
| 576 |
duplicate$ missing$ |
| 577 |
{ |
| 578 |
swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ |
| 579 |
"" |
| 580 |
} |
| 581 |
{ duplicate$ empty$ |
| 582 |
{ |
| 583 |
swap$ "empty " swap$ * " in " * cite$ * warning$ |
| 584 |
} |
| 585 |
{ swap$ |
| 586 |
pop$ |
| 587 |
} |
| 588 |
if$ |
| 589 |
} |
| 590 |
if$ |
| 591 |
} |
| 592 |
%% FUNCTION {format.eprint} |
| 593 |
%% { eprint duplicate$ empty$ |
| 594 |
%% 'skip$ |
| 595 |
%% { "\eprint" |
| 596 |
%% archive empty$ |
| 597 |
%% 'skip$ |
| 598 |
%% { "[" * archive * "]" * } |
| 599 |
%% if$ |
| 600 |
%% "{" * swap$ * "}" * |
| 601 |
%% } |
| 602 |
%% if$ |
| 603 |
%% } |
| 604 |
FUNCTION {format.eprint} |
| 605 |
{ eprint duplicate$ empty$ |
| 606 |
'skip$ |
| 607 |
{ |
| 608 |
"(\textit{Preprint} " |
| 609 |
swap$ |
| 610 |
"\eprint" |
| 611 |
archive empty$ |
| 612 |
'skip$ |
| 613 |
{ "[" * archive * "]" * } |
| 614 |
if$ |
| 615 |
"{" * swap$ * "}" * |
| 616 |
* |
| 617 |
")" |
| 618 |
* |
| 619 |
} |
| 620 |
if$ |
| 621 |
} |
| 622 |
|
| 623 |
FUNCTION {format.url} |
| 624 |
{ url empty$ |
| 625 |
{ "" } |
| 626 |
{ "\urlprefix\url{" url * "}" * } |
| 627 |
if$ |
| 628 |
} |
| 629 |
|
| 630 |
STRINGS { bibinfo} |
| 631 |
INTEGERS { nameptr namesleft numnames } |
| 632 |
|
| 633 |
FUNCTION {format.names} |
| 634 |
{ 'bibinfo := |
| 635 |
duplicate$ empty$ 'skip$ { |
| 636 |
's := |
| 637 |
"" 't := |
| 638 |
#1 'nameptr := |
| 639 |
s num.names$ 'numnames := |
| 640 |
numnames 'namesleft := |
| 641 |
{ namesleft #0 > } |
| 642 |
{ s nameptr |
| 643 |
"{vv~}{ll}{ jj}{ f{~}}" |
| 644 |
format.name$ |
| 645 |
remove.dots |
| 646 |
bibinfo bibinfo.check |
| 647 |
't := |
| 648 |
nameptr #1 > |
| 649 |
{ |
| 650 |
namesleft #1 > |
| 651 |
{ ", " * t * } |
| 652 |
{ |
| 653 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 654 |
{ 't := } |
| 655 |
{ pop$ } |
| 656 |
if$ |
| 657 |
t "others" = |
| 658 |
{ |
| 659 |
" " * bbl.etal emphasize * |
| 660 |
} |
| 661 |
{ |
| 662 |
bbl.and |
| 663 |
space.word * t * |
| 664 |
} |
| 665 |
if$ |
| 666 |
} |
| 667 |
if$ |
| 668 |
} |
| 669 |
't |
| 670 |
if$ |
| 671 |
nameptr #1 + 'nameptr := |
| 672 |
namesleft #1 - 'namesleft := |
| 673 |
} |
| 674 |
while$ |
| 675 |
} if$ |
| 676 |
} |
| 677 |
FUNCTION {format.names.ed} |
| 678 |
{ |
| 679 |
'bibinfo := |
| 680 |
duplicate$ empty$ 'skip$ { |
| 681 |
's := |
| 682 |
"" 't := |
| 683 |
#1 'nameptr := |
| 684 |
s num.names$ 'numnames := |
| 685 |
numnames 'namesleft := |
| 686 |
{ namesleft #0 > } |
| 687 |
{ s nameptr |
| 688 |
"{f{~}~}{vv~}{ll}{ jj}" |
| 689 |
format.name$ |
| 690 |
remove.dots |
| 691 |
bibinfo bibinfo.check |
| 692 |
't := |
| 693 |
nameptr #1 > |
| 694 |
{ |
| 695 |
namesleft #1 > |
| 696 |
{ ", " * t * } |
| 697 |
{ |
| 698 |
s nameptr "{ll}" format.name$ duplicate$ "others" = |
| 699 |
{ 't := } |
| 700 |
{ pop$ } |
| 701 |
if$ |
| 702 |
t "others" = |
| 703 |
{ |
| 704 |
|
| 705 |
" " * bbl.etal emphasize * |
| 706 |
} |
| 707 |
{ |
| 708 |
bbl.and |
| 709 |
space.word * t * |
| 710 |
} |
| 711 |
if$ |
| 712 |
} |
| 713 |
if$ |
| 714 |
} |
| 715 |
't |
| 716 |
if$ |
| 717 |
nameptr #1 + 'nameptr := |
| 718 |
namesleft #1 - 'namesleft := |
| 719 |
} |
| 720 |
while$ |
| 721 |
} if$ |
| 722 |
} |
| 723 |
FUNCTION {format.authors} |
| 724 |
{ author "author" format.names |
| 725 |
duplicate$ empty$ 'skip$ |
| 726 |
{ collaboration "collaboration" bibinfo.check |
| 727 |
duplicate$ empty$ 'skip$ |
| 728 |
{ " (" swap$ * ")" * } |
| 729 |
if$ |
| 730 |
* |
| 731 |
} |
| 732 |
if$ |
| 733 |
} |
| 734 |
FUNCTION {get.bbl.editor} |
| 735 |
{ editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ } |
| 736 |
|
| 737 |
FUNCTION {format.editors} |
| 738 |
{ editor "editor" format.names duplicate$ empty$ 'skip$ |
| 739 |
{ |
| 740 |
%% "," * |
| 741 |
%% " " * |
| 742 |
%% get.bbl.editor |
| 743 |
%% * |
| 744 |
%mc |
| 745 |
" " * |
| 746 |
"(" * |
| 747 |
get.bbl.editor |
| 748 |
* |
| 749 |
")" * |
| 750 |
%mc end |
| 751 |
} |
| 752 |
if$ |
| 753 |
} |
| 754 |
%mc |
| 755 |
FUNCTION {format.editors.inline} |
| 756 |
{ editor "editor" format.names duplicate$ empty$ 'skip$ |
| 757 |
{ |
| 758 |
bbl.editor " " * |
| 759 |
swap$ |
| 760 |
* |
| 761 |
} |
| 762 |
if$ |
| 763 |
} |
| 764 |
%mc end |
| 765 |
|
| 766 |
FUNCTION {format.isbn} |
| 767 |
{ isbn "isbn" bibinfo.check |
| 768 |
duplicate$ empty$ 'skip$ |
| 769 |
{ |
| 770 |
"ISBN " swap$ * |
| 771 |
} |
| 772 |
if$ |
| 773 |
} |
| 774 |
|
| 775 |
FUNCTION {format.issn} |
| 776 |
{ issn "issn" bibinfo.check |
| 777 |
duplicate$ empty$ 'skip$ |
| 778 |
{ |
| 779 |
"ISSN " swap$ * |
| 780 |
} |
| 781 |
if$ |
| 782 |
} |
| 783 |
|
| 784 |
FUNCTION {format.note} |
| 785 |
{ |
| 786 |
note empty$ |
| 787 |
{ "" } |
| 788 |
{ note #1 #1 substring$ |
| 789 |
duplicate$ "{" = |
| 790 |
'skip$ |
| 791 |
{ output.state mid.sentence = |
| 792 |
{ "l" } |
| 793 |
{ "u" } |
| 794 |
if$ |
| 795 |
change.case$ |
| 796 |
} |
| 797 |
if$ |
| 798 |
note #2 global.max$ substring$ * "note" bibinfo.check |
| 799 |
} |
| 800 |
if$ |
| 801 |
} |
| 802 |
|
| 803 |
FUNCTION {format.title} |
| 804 |
{ title |
| 805 |
duplicate$ empty$ 'skip$ |
| 806 |
{ "t" change.case$ } |
| 807 |
if$ |
| 808 |
"title" bibinfo.check |
| 809 |
} |
| 810 |
FUNCTION {output.bibitem} |
| 811 |
{ newline$ |
| 812 |
"\bibitem{" write$ |
| 813 |
cite$ write$ |
| 814 |
"}" write$ |
| 815 |
newline$ |
| 816 |
"" |
| 817 |
before.all 'output.state := |
| 818 |
} |
| 819 |
|
| 820 |
FUNCTION {n.dashify} |
| 821 |
{ |
| 822 |
't := |
| 823 |
"" |
| 824 |
{ t empty$ not } |
| 825 |
{ t #1 #1 substring$ "-" = |
| 826 |
{ t #1 #2 substring$ "--" = not |
| 827 |
{ "--" * |
| 828 |
t #2 global.max$ substring$ 't := |
| 829 |
} |
| 830 |
{ { t #1 #1 substring$ "-" = } |
| 831 |
{ "-" * |
| 832 |
t #2 global.max$ substring$ 't := |
| 833 |
} |
| 834 |
while$ |
| 835 |
} |
| 836 |
if$ |
| 837 |
} |
| 838 |
{ t #1 #1 substring$ * |
| 839 |
t #2 global.max$ substring$ 't := |
| 840 |
} |
| 841 |
if$ |
| 842 |
} |
| 843 |
while$ |
| 844 |
} |
| 845 |
|
| 846 |
FUNCTION {word.in} |
| 847 |
{ bbl.in |
| 848 |
" " * } |
| 849 |
|
| 850 |
FUNCTION {format.date} |
| 851 |
{ |
| 852 |
"" |
| 853 |
duplicate$ empty$ |
| 854 |
year "year" bibinfo.check duplicate$ empty$ |
| 855 |
{ swap$ 'skip$ |
| 856 |
{ "there's a month but no year in " cite$ * warning$ } |
| 857 |
if$ |
| 858 |
* |
| 859 |
} |
| 860 |
{ swap$ 'skip$ |
| 861 |
{ |
| 862 |
swap$ |
| 863 |
" " * swap$ |
| 864 |
} |
| 865 |
if$ |
| 866 |
* |
| 867 |
remove.dots |
| 868 |
} |
| 869 |
if$ |
| 870 |
duplicate$ empty$ |
| 871 |
'skip$ |
| 872 |
{ |
| 873 |
before.all 'output.state := |
| 874 |
" " swap$ * |
| 875 |
} |
| 876 |
if$ |
| 877 |
} |
| 878 |
FUNCTION {format.btitle} |
| 879 |
{ title "title" bibinfo.check |
| 880 |
duplicate$ empty$ 'skip$ |
| 881 |
{ |
| 882 |
emphasize |
| 883 |
} |
| 884 |
if$ |
| 885 |
} |
| 886 |
FUNCTION {either.or.check} |
| 887 |
{ empty$ |
| 888 |
'pop$ |
| 889 |
{ "can't use both " swap$ * " fields in " * cite$ * warning$ } |
| 890 |
if$ |
| 891 |
} |
| 892 |
FUNCTION {format.bvolume} |
| 893 |
{ volume empty$ |
| 894 |
% no volume: return blank |
| 895 |
{ "" } |
| 896 |
%% { bbl.volume volume tie.or.space.prefix |
| 897 |
%% "volume" bibinfo.check * * |
| 898 |
%% series "series" bibinfo.check |
| 899 |
%% duplicate$ empty$ 'pop$ |
| 900 |
%% { swap$ bbl.of space.word * swap$ |
| 901 |
%% emphasize * } |
| 902 |
%% if$ |
| 903 |
%% "volume and number" number either.or.check |
| 904 |
%% } |
| 905 |
%mc |
| 906 |
{ |
| 907 |
series "series" bibinfo.check |
| 908 |
empty$ |
| 909 |
% no series: must be multivolume book |
| 910 |
{ |
| 911 |
bbl.volume volume tie.or.space.prefix "volume" bibinfo.check * * |
| 912 |
volumetitle empty$ |
| 913 |
'skip$ |
| 914 |
% volumetitle: book volume has title |
| 915 |
{ " " volumetitle "volumetitle" bibinfo.check emphasize * * } |
| 916 |
if$ |
| 917 |
} |
| 918 |
% series: format as volume in series |
| 919 |
{ |
| 920 |
"(" |
| 921 |
series "series" bibinfo.check emphasize * |
| 922 |
" " * bbl.volume * |
| 923 |
volume tie.or.space.prefix "volume" bibinfo.check * |
| 924 |
")" * * |
| 925 |
} |
| 926 |
if$ |
| 927 |
"volume and number" number either.or.check |
| 928 |
} |
| 929 |
%mc end |
| 930 |
if$ |
| 931 |
} |
| 932 |
FUNCTION {format.number.series} |
| 933 |
{ volume empty$ |
| 934 |
{ number empty$ |
| 935 |
{ series field.or.null } |
| 936 |
{ series empty$ |
| 937 |
{ number "number" bibinfo.check } |
| 938 |
{ |
| 939 |
%% output.state mid.sentence = |
| 940 |
%% { bbl.number } |
| 941 |
%% { bbl.number capitalize } |
| 942 |
%% if$ |
| 943 |
%% number tie.or.space.prefix "number" bibinfo.check * * |
| 944 |
%% bbl.in space.word * |
| 945 |
%% series "series" bibinfo.check * |
| 946 |
%% " " * bbl.number * |
| 947 |
%% number tie.or.space.prefix "number" bibinfo.check * * |
| 948 |
%mc |
| 949 |
"(" |
| 950 |
series "series" bibinfo.check emphasize * |
| 951 |
" " * bbl.number * |
| 952 |
number tie.or.space.prefix "number" bibinfo.check * |
| 953 |
")" * |
| 954 |
* |
| 955 |
%mc end |
| 956 |
} |
| 957 |
if$ |
| 958 |
} |
| 959 |
if$ |
| 960 |
} |
| 961 |
{ "" } |
| 962 |
if$ |
| 963 |
} |
| 964 |
|
| 965 |
|
| 966 |
FUNCTION {is.num} |
| 967 |
{ chr.to.int$ |
| 968 |
duplicate$ "0" chr.to.int$ < not |
| 969 |
swap$ "9" chr.to.int$ > not and |
| 970 |
} |
| 971 |
|
| 972 |
FUNCTION {extract.num} |
| 973 |
{ duplicate$ 't := |
| 974 |
"" 's := |
| 975 |
{ t empty$ not } |
| 976 |
{ t #1 #1 substring$ |
| 977 |
t #2 global.max$ substring$ 't := |
| 978 |
duplicate$ is.num |
| 979 |
{ s swap$ * 's := } |
| 980 |
{ pop$ "" 't := } |
| 981 |
if$ |
| 982 |
} |
| 983 |
while$ |
| 984 |
s empty$ |
| 985 |
'skip$ |
| 986 |
{ pop$ s } |
| 987 |
if$ |
| 988 |
} |
| 989 |
|
| 990 |
FUNCTION {convert.edition} |
| 991 |
{ extract.num "l" change.case$ 's := |
| 992 |
s "first" = s "1" = or |
| 993 |
{ bbl.first 't := } |
| 994 |
{ s "second" = s "2" = or |
| 995 |
{ bbl.second 't := } |
| 996 |
{ s "third" = s "3" = or |
| 997 |
{ bbl.third 't := } |
| 998 |
{ s "fourth" = s "4" = or |
| 999 |
{ bbl.fourth 't := } |
| 1000 |
{ s "fifth" = s "5" = or |
| 1001 |
{ bbl.fifth 't := } |
| 1002 |
{ s #1 #1 substring$ is.num |
| 1003 |
{ s eng.ord 't := } |
| 1004 |
{ edition 't := } |
| 1005 |
if$ |
| 1006 |
} |
| 1007 |
if$ |
| 1008 |
} |
| 1009 |
if$ |
| 1010 |
} |
| 1011 |
if$ |
| 1012 |
} |
| 1013 |
if$ |
| 1014 |
} |
| 1015 |
if$ |
| 1016 |
t |
| 1017 |
} |
| 1018 |
|
| 1019 |
FUNCTION {format.edition} |
| 1020 |
{ edition duplicate$ empty$ 'skip$ |
| 1021 |
{ |
| 1022 |
convert.edition |
| 1023 |
output.state mid.sentence = |
| 1024 |
{ "l" } |
| 1025 |
{ "t" } |
| 1026 |
if$ change.case$ |
| 1027 |
"edition" bibinfo.check |
| 1028 |
" " * bbl.edition * |
| 1029 |
} |
| 1030 |
if$ |
| 1031 |
} |
| 1032 |
INTEGERS { multiresult } |
| 1033 |
FUNCTION {multi.page.check} |
| 1034 |
{ 't := |
| 1035 |
#0 'multiresult := |
| 1036 |
{ multiresult not |
| 1037 |
t empty$ not |
| 1038 |
and |
| 1039 |
} |
| 1040 |
{ t #1 #1 substring$ |
| 1041 |
duplicate$ "-" = |
| 1042 |
swap$ duplicate$ "," = |
| 1043 |
swap$ "+" = |
| 1044 |
or or |
| 1045 |
{ #1 'multiresult := } |
| 1046 |
{ t #2 global.max$ substring$ 't := } |
| 1047 |
if$ |
| 1048 |
} |
| 1049 |
while$ |
| 1050 |
multiresult |
| 1051 |
} |
| 1052 |
FUNCTION {format.pages} |
| 1053 |
{ pages duplicate$ empty$ 'skip$ |
| 1054 |
{ duplicate$ multi.page.check |
| 1055 |
{ |
| 1056 |
bbl.pages swap$ |
| 1057 |
n.dashify |
| 1058 |
} |
| 1059 |
{ |
| 1060 |
bbl.page swap$ |
| 1061 |
} |
| 1062 |
if$ |
| 1063 |
tie.or.space.prefix |
| 1064 |
"pages" bibinfo.check |
| 1065 |
* * |
| 1066 |
} |
| 1067 |
if$ |
| 1068 |
} |
| 1069 |
FUNCTION {format.journal.pages} |
| 1070 |
{ pages duplicate$ empty$ 'pop$ |
| 1071 |
%mc { swap$ duplicate$ empty$ |
| 1072 |
%mc { pop$ pop$ format.pages } |
| 1073 |
%mc { |
| 1074 |
%mc " " * |
| 1075 |
%mc swap$ |
| 1076 |
%mc n.dashify |
| 1077 |
%mc "pages" bibinfo.check |
| 1078 |
%mc * |
| 1079 |
%mc } |
| 1080 |
%mc if$ |
| 1081 |
%mc } |
| 1082 |
{ swap$ |
| 1083 |
" " * |
| 1084 |
swap$ |
| 1085 |
n.dashify |
| 1086 |
"pages" bibinfo.check |
| 1087 |
* |
| 1088 |
} |
| 1089 |
if$ |
| 1090 |
} |
| 1091 |
FUNCTION {format.journal.eid} |
| 1092 |
{ eid "eid" bibinfo.check |
| 1093 |
duplicate$ empty$ 'skip$ |
| 1094 |
{ swap$ duplicate$ empty$ 'skip$ |
| 1095 |
{ |
| 1096 |
" " * |
| 1097 |
} |
| 1098 |
if$ |
| 1099 |
swap$ |
| 1100 |
numpages empty$ 'skip$ |
| 1101 |
{ bbl.eidpp numpages tie.or.space.prefix |
| 1102 |
"numpages" bibinfo.check * * |
| 1103 |
" (" swap$ * ")" * * |
| 1104 |
} |
| 1105 |
if$ |
| 1106 |
} |
| 1107 |
if$ * |
| 1108 |
} |
| 1109 |
FUNCTION {format.vol.num.pages} |
| 1110 |
{ volume field.or.null |
| 1111 |
%mc section handling |
| 1112 |
section field.or.null strip.leading |
| 1113 |
section field.or.null strip.trailing trim |
| 1114 |
%mc end |
| 1115 |
duplicate$ empty$ 'skip$ |
| 1116 |
{ |
| 1117 |
"volume" bibinfo.check |
| 1118 |
} |
| 1119 |
if$ |
| 1120 |
bolden |
| 1121 |
%mc number "number" bibinfo.check duplicate$ empty$ 'skip$ |
| 1122 |
issue "issue" bibinfo.check duplicate$ empty$ 'skip$ |
| 1123 |
{ |
| 1124 |
swap$ duplicate$ empty$ |
| 1125 |
%mc { "there's a number but no volume in " cite$ * warning$ } |
| 1126 |
{ "there's an issue but no volume in " cite$ * warning$ } |
| 1127 |
'skip$ |
| 1128 |
if$ |
| 1129 |
swap$ |
| 1130 |
"(" swap$ * ")" * |
| 1131 |
} |
| 1132 |
if$ * |
| 1133 |
eid empty$ |
| 1134 |
{ format.journal.pages } |
| 1135 |
{ format.journal.eid } |
| 1136 |
if$ |
| 1137 |
} |
| 1138 |
|
| 1139 |
FUNCTION {format.chapter.pages} |
| 1140 |
{ chapter empty$ |
| 1141 |
'format.pages |
| 1142 |
{ type empty$ |
| 1143 |
{ bbl.chapter } |
| 1144 |
{ type "l" change.case$ |
| 1145 |
"type" bibinfo.check |
| 1146 |
} |
| 1147 |
if$ |
| 1148 |
chapter tie.or.space.prefix |
| 1149 |
"chapter" bibinfo.check |
| 1150 |
* * |
| 1151 |
pages empty$ |
| 1152 |
'skip$ |
| 1153 |
{ ", " * format.pages * } |
| 1154 |
if$ |
| 1155 |
} |
| 1156 |
if$ |
| 1157 |
} |
| 1158 |
|
| 1159 |
FUNCTION {format.booktitle} |
| 1160 |
{ |
| 1161 |
booktitle "booktitle" bibinfo.check |
| 1162 |
emphasize |
| 1163 |
} |
| 1164 |
%% FUNCTION {format.in.ed.booktitle} |
| 1165 |
%% { format.booktitle duplicate$ empty$ 'skip$ |
| 1166 |
%% { |
| 1167 |
%% editor "editor" format.names.ed duplicate$ empty$ 'pop$ |
| 1168 |
%% { |
| 1169 |
%% "," * |
| 1170 |
%% " " * |
| 1171 |
%% get.bbl.editor |
| 1172 |
%% ", " * |
| 1173 |
%% * swap$ |
| 1174 |
%% * } |
| 1175 |
%% if$ |
| 1176 |
%% word.in swap$ * |
| 1177 |
%% } |
| 1178 |
%% if$ |
| 1179 |
%% } |
| 1180 |
FUNCTION {empty.misc.check} |
| 1181 |
{ author empty$ title empty$ howpublished empty$ |
| 1182 |
month empty$ year empty$ note empty$ |
| 1183 |
and and and and and |
| 1184 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 1185 |
'skip$ |
| 1186 |
if$ |
| 1187 |
} |
| 1188 |
FUNCTION {format.thesis.type} |
| 1189 |
{ type duplicate$ empty$ |
| 1190 |
'pop$ |
| 1191 |
{ swap$ pop$ |
| 1192 |
"t" change.case$ "type" bibinfo.check |
| 1193 |
} |
| 1194 |
if$ |
| 1195 |
} |
| 1196 |
FUNCTION {format.tr.number} |
| 1197 |
{ number "number" bibinfo.check |
| 1198 |
type duplicate$ empty$ |
| 1199 |
{ pop$ bbl.techrep } |
| 1200 |
'skip$ |
| 1201 |
if$ |
| 1202 |
"type" bibinfo.check |
| 1203 |
swap$ duplicate$ empty$ |
| 1204 |
{ pop$ "t" change.case$ } |
| 1205 |
{ tie.or.space.prefix * * } |
| 1206 |
if$ |
| 1207 |
} |
| 1208 |
FUNCTION {format.article.crossref} |
| 1209 |
{ |
| 1210 |
key duplicate$ empty$ |
| 1211 |
{ pop$ |
| 1212 |
journal duplicate$ empty$ |
| 1213 |
{ "need key or journal for " cite$ * " to crossref " * crossref * warning$ } |
| 1214 |
{ "journal" bibinfo.check emphasize word.in swap$ * } |
| 1215 |
if$ |
| 1216 |
} |
| 1217 |
{ word.in swap$ * " " *} |
| 1218 |
if$ |
| 1219 |
" \cite{" * crossref * "}" * |
| 1220 |
} |
| 1221 |
FUNCTION {format.crossref.editor} |
| 1222 |
{ editor #1 "{vv~}{ll}" format.name$ |
| 1223 |
"editor" bibinfo.check |
| 1224 |
editor num.names$ duplicate$ |
| 1225 |
#2 > |
| 1226 |
{ pop$ |
| 1227 |
"editor" bibinfo.check |
| 1228 |
" " * bbl.etal |
| 1229 |
emphasize |
| 1230 |
* |
| 1231 |
} |
| 1232 |
{ #2 < |
| 1233 |
'skip$ |
| 1234 |
{ editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 1235 |
{ |
| 1236 |
"editor" bibinfo.check |
| 1237 |
" " * bbl.etal |
| 1238 |
emphasize |
| 1239 |
* |
| 1240 |
} |
| 1241 |
{ |
| 1242 |
bbl.and space.word |
| 1243 |
* editor #2 "{vv~}{ll}" format.name$ |
| 1244 |
"editor" bibinfo.check |
| 1245 |
* |
| 1246 |
} |
| 1247 |
if$ |
| 1248 |
} |
| 1249 |
if$ |
| 1250 |
} |
| 1251 |
if$ |
| 1252 |
} |
| 1253 |
|
| 1254 |
FUNCTION {format.book.crossref} |
| 1255 |
{ volume duplicate$ empty$ |
| 1256 |
{ "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
| 1257 |
pop$ word.in |
| 1258 |
} |
| 1259 |
{ bbl.volume |
| 1260 |
swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word * |
| 1261 |
} |
| 1262 |
if$ |
| 1263 |
editor empty$ |
| 1264 |
editor field.or.null author field.or.null = |
| 1265 |
or |
| 1266 |
{ key empty$ |
| 1267 |
{ series empty$ |
| 1268 |
{ "need editor, key, or series for " cite$ * " to crossref " * |
| 1269 |
crossref * warning$ |
| 1270 |
"" * |
| 1271 |
} |
| 1272 |
{ series emphasize * } |
| 1273 |
if$ |
| 1274 |
} |
| 1275 |
{ key * } |
| 1276 |
if$ |
| 1277 |
} |
| 1278 |
{ format.crossref.editor * } |
| 1279 |
if$ |
| 1280 |
" \cite{" * crossref * "}" * |
| 1281 |
} |
| 1282 |
FUNCTION {format.incoll.inproc.crossref} |
| 1283 |
{ |
| 1284 |
editor empty$ |
| 1285 |
editor field.or.null author field.or.null = |
| 1286 |
or |
| 1287 |
{ key empty$ |
| 1288 |
{ format.booktitle duplicate$ empty$ |
| 1289 |
{ "need editor, key, or booktitle for " cite$ * " to crossref " * |
| 1290 |
crossref * warning$ |
| 1291 |
} |
| 1292 |
{ word.in swap$ * } |
| 1293 |
if$ |
| 1294 |
} |
| 1295 |
{ word.in key * " " *} |
| 1296 |
if$ |
| 1297 |
} |
| 1298 |
{ word.in format.crossref.editor * " " *} |
| 1299 |
if$ |
| 1300 |
" \cite{" * crossref * "}" * |
| 1301 |
} |
| 1302 |
FUNCTION {format.org.or.pub} |
| 1303 |
{ 't := |
| 1304 |
"" |
| 1305 |
address empty$ t empty$ and |
| 1306 |
'skip$ |
| 1307 |
{ |
| 1308 |
add.blank "(" * |
| 1309 |
address "address" bibinfo.check * |
| 1310 |
t empty$ |
| 1311 |
'skip$ |
| 1312 |
{ address empty$ |
| 1313 |
'skip$ |
| 1314 |
{ ": " * } |
| 1315 |
if$ |
| 1316 |
t * |
| 1317 |
} |
| 1318 |
if$ |
| 1319 |
")" * |
| 1320 |
} |
| 1321 |
if$ |
| 1322 |
} |
| 1323 |
FUNCTION {format.publisher.address} |
| 1324 |
{ publisher "publisher" bibinfo.warn format.org.or.pub |
| 1325 |
} |
| 1326 |
|
| 1327 |
FUNCTION {format.organization.address} |
| 1328 |
{ organization "organization" bibinfo.check format.org.or.pub |
| 1329 |
} |
| 1330 |
|
| 1331 |
|
| 1332 |
|
| 1333 |
FUNCTION {article} |
| 1334 |
{ output.bibitem |
| 1335 |
format.authors "author" output.check |
| 1336 |
format.date "year" output.check |
| 1337 |
date.block |
| 1338 |
crossref missing$ |
| 1339 |
{ |
| 1340 |
%mc add section handling |
| 1341 |
%mc journal |
| 1342 |
%mc "journal" bibinfo.check |
| 1343 |
%mc emphasize |
| 1344 |
%mc "journal" output.check |
| 1345 |
%mc add.blank |
| 1346 |
journal |
| 1347 |
"journal" bibinfo.check |
| 1348 |
section field.or.null strip.trailing trim |
| 1349 |
emphasize |
| 1350 |
"journal" output.check |
| 1351 |
add.blank |
| 1352 |
section empty$ |
| 1353 |
{ skip$ } |
| 1354 |
{ section * add.blank} |
| 1355 |
if$ |
| 1356 |
%mc end |
| 1357 |
format.vol.num.pages output |
| 1358 |
} |
| 1359 |
{ format.article.crossref output.nonnull |
| 1360 |
format.pages output |
| 1361 |
} |
| 1362 |
if$ |
| 1363 |
format.issn output |
| 1364 |
format.note output |
| 1365 |
format.eprint output |
| 1366 |
format.url output |
| 1367 |
fin.entry |
| 1368 |
} |
| 1369 |
FUNCTION {book} |
| 1370 |
{ output.bibitem |
| 1371 |
author empty$ |
| 1372 |
{ format.editors "author and editor" output.check |
| 1373 |
} |
| 1374 |
{ format.authors output.nonnull |
| 1375 |
crossref missing$ |
| 1376 |
{ "author and editor" editor either.or.check } |
| 1377 |
'skip$ |
| 1378 |
if$ |
| 1379 |
} |
| 1380 |
if$ |
| 1381 |
format.date "year" output.check |
| 1382 |
date.block |
| 1383 |
format.btitle "title" output.check |
| 1384 |
format.edition output |
| 1385 |
crossref missing$ |
| 1386 |
{ format.bvolume output |
| 1387 |
format.number.series output |
| 1388 |
format.publisher.address output |
| 1389 |
} |
| 1390 |
{ |
| 1391 |
format.book.crossref output.nonnull |
| 1392 |
} |
| 1393 |
if$ |
| 1394 |
%% format.edition output |
| 1395 |
format.isbn output |
| 1396 |
format.note output |
| 1397 |
format.eprint output |
| 1398 |
format.url output |
| 1399 |
fin.entry |
| 1400 |
} |
| 1401 |
FUNCTION {booklet} |
| 1402 |
{ output.bibitem |
| 1403 |
format.authors output |
| 1404 |
format.date output |
| 1405 |
date.block |
| 1406 |
format.title "title" output.check |
| 1407 |
howpublished "howpublished" bibinfo.check output |
| 1408 |
address "address" bibinfo.check output |
| 1409 |
format.isbn output |
| 1410 |
format.note output |
| 1411 |
format.eprint output |
| 1412 |
format.url output |
| 1413 |
fin.entry |
| 1414 |
} |
| 1415 |
|
| 1416 |
FUNCTION {inbook} |
| 1417 |
{ output.bibitem |
| 1418 |
author empty$ |
| 1419 |
{ format.editors "author and editor" output.check |
| 1420 |
} |
| 1421 |
{ format.authors output.nonnull |
| 1422 |
crossref missing$ |
| 1423 |
{ "author and editor" editor either.or.check } |
| 1424 |
'skip$ |
| 1425 |
if$ |
| 1426 |
} |
| 1427 |
if$ |
| 1428 |
format.date "year" output.check |
| 1429 |
date.block |
| 1430 |
format.btitle "title" output.check |
| 1431 |
crossref missing$ |
| 1432 |
{ |
| 1433 |
format.bvolume output |
| 1434 |
format.publisher.address output |
| 1435 |
%% format.bvolume output |
| 1436 |
format.chapter.pages "chapter and pages" output.check |
| 1437 |
format.number.series output |
| 1438 |
} |
| 1439 |
{ |
| 1440 |
format.chapter.pages "chapter and pages" output.check |
| 1441 |
format.book.crossref output.nonnull |
| 1442 |
} |
| 1443 |
if$ |
| 1444 |
format.edition output |
| 1445 |
crossref missing$ |
| 1446 |
{ format.isbn output } |
| 1447 |
'skip$ |
| 1448 |
if$ |
| 1449 |
format.note output |
| 1450 |
format.eprint output |
| 1451 |
format.url output |
| 1452 |
fin.entry |
| 1453 |
} |
| 1454 |
|
| 1455 |
FUNCTION {incollection} |
| 1456 |
{ output.bibitem |
| 1457 |
format.authors "author" output.check |
| 1458 |
format.date "year" output.check |
| 1459 |
date.block |
| 1460 |
format.title "title" output.check |
| 1461 |
crossref missing$ |
| 1462 |
{ |
| 1463 |
%% format.in.ed.booktitle "booktitle" output.check |
| 1464 |
%mc |
| 1465 |
format.booktitle "booktitle" output.check |
| 1466 |
format.bvolume output |
| 1467 |
format.number.series output |
| 1468 |
format.editors.inline output |
| 1469 |
%mc end |
| 1470 |
format.publisher.address output |
| 1471 |
%% format.bvolume output |
| 1472 |
%% format.number.series output |
| 1473 |
format.chapter.pages output |
| 1474 |
format.edition output |
| 1475 |
format.isbn output |
| 1476 |
} |
| 1477 |
{ format.incoll.inproc.crossref output.nonnull |
| 1478 |
format.chapter.pages output |
| 1479 |
} |
| 1480 |
if$ |
| 1481 |
format.note output |
| 1482 |
format.eprint output |
| 1483 |
format.url output |
| 1484 |
fin.entry |
| 1485 |
} |
| 1486 |
FUNCTION {inproceedings} |
| 1487 |
{ output.bibitem |
| 1488 |
format.authors "author" output.check |
| 1489 |
format.date "year" output.check |
| 1490 |
date.block |
| 1491 |
format.title "title" output.check |
| 1492 |
crossref missing$ |
| 1493 |
{ |
| 1494 |
|
| 1495 |
%%format.in.ed.booktitle "booktitle" output.check |
| 1496 |
%mc |
| 1497 |
format.booktitle "booktitle" output.check |
| 1498 |
format.bvolume output |
| 1499 |
format.number.series output |
| 1500 |
format.editors.inline output |
| 1501 |
%mc end |
| 1502 |
publisher empty$ |
| 1503 |
{ format.organization.address output } |
| 1504 |
{ organization "organization" bibinfo.check output |
| 1505 |
format.publisher.address output |
| 1506 |
} |
| 1507 |
if$ |
| 1508 |
%% format.bvolume output |
| 1509 |
%% format.number.series output |
| 1510 |
format.pages output |
| 1511 |
format.isbn output |
| 1512 |
format.issn output |
| 1513 |
} |
| 1514 |
{ format.incoll.inproc.crossref output.nonnull |
| 1515 |
format.pages output |
| 1516 |
} |
| 1517 |
if$ |
| 1518 |
format.note output |
| 1519 |
format.eprint output |
| 1520 |
format.url output |
| 1521 |
fin.entry |
| 1522 |
} |
| 1523 |
FUNCTION {conference} { inproceedings } |
| 1524 |
FUNCTION {manual} |
| 1525 |
{ output.bibitem |
| 1526 |
author empty$ |
| 1527 |
{ organization "organization" bibinfo.check |
| 1528 |
duplicate$ empty$ 'pop$ |
| 1529 |
{ output |
| 1530 |
address "address" bibinfo.check output |
| 1531 |
} |
| 1532 |
if$ |
| 1533 |
} |
| 1534 |
{ format.authors output.nonnull } |
| 1535 |
if$ |
| 1536 |
format.date output |
| 1537 |
date.block |
| 1538 |
format.btitle "title" output.check |
| 1539 |
author empty$ |
| 1540 |
{ organization empty$ |
| 1541 |
{ |
| 1542 |
address "address" bibinfo.check output |
| 1543 |
} |
| 1544 |
'skip$ |
| 1545 |
if$ |
| 1546 |
} |
| 1547 |
{ |
| 1548 |
organization "organization" bibinfo.check output |
| 1549 |
address "address" bibinfo.check output |
| 1550 |
} |
| 1551 |
if$ |
| 1552 |
format.edition output |
| 1553 |
format.note output |
| 1554 |
format.eprint output |
| 1555 |
format.url output |
| 1556 |
fin.entry |
| 1557 |
} |
| 1558 |
|
| 1559 |
FUNCTION {mastersthesis} |
| 1560 |
{ output.bibitem |
| 1561 |
format.authors "author" output.check |
| 1562 |
format.date "year" output.check |
| 1563 |
date.block |
| 1564 |
format.btitle |
| 1565 |
"title" output.check |
| 1566 |
bbl.mthesis format.thesis.type output.nonnull |
| 1567 |
school "school" bibinfo.warn output |
| 1568 |
address "address" bibinfo.check output |
| 1569 |
format.note output |
| 1570 |
format.eprint output |
| 1571 |
format.url output |
| 1572 |
fin.entry |
| 1573 |
} |
| 1574 |
|
| 1575 |
FUNCTION {misc} |
| 1576 |
{ output.bibitem |
| 1577 |
format.authors output |
| 1578 |
format.date output |
| 1579 |
format.title output |
| 1580 |
howpublished "howpublished" bibinfo.check output |
| 1581 |
format.note output |
| 1582 |
format.eprint output |
| 1583 |
format.url output |
| 1584 |
fin.entry |
| 1585 |
empty.misc.check |
| 1586 |
} |
| 1587 |
FUNCTION {phdthesis} |
| 1588 |
{ output.bibitem |
| 1589 |
format.authors "author" output.check |
| 1590 |
format.date "year" output.check |
| 1591 |
date.block |
| 1592 |
format.btitle |
| 1593 |
"title" output.check |
| 1594 |
bbl.phdthesis format.thesis.type output.nonnull |
| 1595 |
school "school" bibinfo.warn output |
| 1596 |
address "address" bibinfo.check output |
| 1597 |
format.note output |
| 1598 |
format.eprint output |
| 1599 |
format.url output |
| 1600 |
fin.entry |
| 1601 |
} |
| 1602 |
|
| 1603 |
FUNCTION {proceedings} |
| 1604 |
{ output.bibitem |
| 1605 |
editor empty$ |
| 1606 |
{ organization "organization" bibinfo.check output |
| 1607 |
} |
| 1608 |
{ format.editors output.nonnull } |
| 1609 |
if$ |
| 1610 |
format.date "year" output.check |
| 1611 |
date.block |
| 1612 |
format.btitle "title" output.check |
| 1613 |
format.bvolume output |
| 1614 |
format.number.series output |
| 1615 |
editor empty$ |
| 1616 |
{ publisher empty$ |
| 1617 |
'skip$ |
| 1618 |
{ |
| 1619 |
format.publisher.address output |
| 1620 |
} |
| 1621 |
if$ |
| 1622 |
} |
| 1623 |
{ publisher empty$ |
| 1624 |
{ |
| 1625 |
format.organization.address output } |
| 1626 |
{ |
| 1627 |
organization "organization" bibinfo.check output |
| 1628 |
format.publisher.address output |
| 1629 |
} |
| 1630 |
if$ |
| 1631 |
} |
| 1632 |
if$ |
| 1633 |
format.isbn output |
| 1634 |
format.issn output |
| 1635 |
format.note output |
| 1636 |
format.eprint output |
| 1637 |
format.url output |
| 1638 |
fin.entry |
| 1639 |
} |
| 1640 |
|
| 1641 |
FUNCTION {techreport} |
| 1642 |
{ output.bibitem |
| 1643 |
format.authors "author" output.check |
| 1644 |
format.date "year" output.check |
| 1645 |
date.block |
| 1646 |
format.title |
| 1647 |
"title" output.check |
| 1648 |
format.tr.number output.nonnull |
| 1649 |
institution "institution" bibinfo.warn output |
| 1650 |
address "address" bibinfo.check output |
| 1651 |
format.note output |
| 1652 |
format.eprint output |
| 1653 |
format.url output |
| 1654 |
fin.entry |
| 1655 |
} |
| 1656 |
|
| 1657 |
FUNCTION {unpublished} |
| 1658 |
{ output.bibitem |
| 1659 |
format.authors "author" output.check |
| 1660 |
format.date output |
| 1661 |
date.block |
| 1662 |
format.title "title" output.check |
| 1663 |
format.note "note" output.check |
| 1664 |
format.eprint output |
| 1665 |
format.url output |
| 1666 |
fin.entry |
| 1667 |
} |
| 1668 |
|
| 1669 |
FUNCTION {default.type} { misc } |
| 1670 |
READ |
| 1671 |
STRINGS { longest.label } |
| 1672 |
INTEGERS { number.label longest.label.width } |
| 1673 |
FUNCTION {initialize.longest.label} |
| 1674 |
{ "" 'longest.label := |
| 1675 |
#1 'number.label := |
| 1676 |
#0 'longest.label.width := |
| 1677 |
} |
| 1678 |
FUNCTION {longest.label.pass} |
| 1679 |
{ number.label int.to.str$ 'label := |
| 1680 |
number.label #1 + 'number.label := |
| 1681 |
label width$ longest.label.width > |
| 1682 |
{ label 'longest.label := |
| 1683 |
label width$ 'longest.label.width := |
| 1684 |
} |
| 1685 |
'skip$ |
| 1686 |
if$ |
| 1687 |
} |
| 1688 |
EXECUTE {initialize.longest.label} |
| 1689 |
ITERATE {longest.label.pass} |
| 1690 |
FUNCTION {begin.bib} |
| 1691 |
{ preamble$ empty$ |
| 1692 |
'skip$ |
| 1693 |
{ preamble$ write$ newline$ } |
| 1694 |
if$ |
| 1695 |
"\providecommand{\newblock}{}" |
| 1696 |
write$ newline$ |
| 1697 |
"\begin{thebibliography}{" longest.label * "}" * |
| 1698 |
write$ newline$ |
| 1699 |
"\expandafter\ifx\csname url\endcsname\relax" |
| 1700 |
write$ newline$ |
| 1701 |
" \def\url#1{{\tt #1}}\fi" |
| 1702 |
write$ newline$ |
| 1703 |
"\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{URL }\fi" |
| 1704 |
write$ newline$ |
| 1705 |
"\providecommand{\eprint}[2][]{\url{#2}}" |
| 1706 |
write$ newline$ |
| 1707 |
"% Bibliography created with iopart-num v2.1" |
| 1708 |
write$ newline$ |
| 1709 |
"% /biblio/bibtex/contrib/iopart-num" |
| 1710 |
write$ newline$ |
| 1711 |
} |
| 1712 |
EXECUTE {begin.bib} |
| 1713 |
EXECUTE {init.state.consts} |
| 1714 |
ITERATE {call.type$} |
| 1715 |
FUNCTION {end.bib} |
| 1716 |
{ newline$ |
| 1717 |
"\end{thebibliography}" write$ newline$ |
| 1718 |
} |
| 1719 |
EXECUTE {end.bib} |
| 1720 |
%% End of customized bst file |
| 1721 |
%% |
| 1722 |
%% End of file `iopart-num.bst'. |