Debian Codegraph @

texmf-dist/source/latex/revtex/revtex-bst.dtx

raw
1 % \iffalse meta-comment balanced on line 122
2 % revtex-bst.dtx: Package to extract .bst files for RevTeX
3 % Copyright (c) 2020--2022 American Physical Society.
4 % https://journals.aps.org/revtex/
5 % mailto:[email protected]
6 %
7 % Disclaimer
8 % This file is distributed WITHOUT ANY WARRANTY;
9 % without even the implied warranty of
10 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 % License
12 % You may distribute this file under the conditions of the
13 % LaTeX Project Public License 1.3c or later
14 % (http://www.latex-project.org/lppl.txt).
15 % ReadMe
16 % For the documentation and more detailed instructions for
17 % installation, typeset this document with \LaTeX.
18 % Maintenance Status
19 % This work has the LPPL maintenance status "maintained";
20 % Current Maintainer of this work is Phelype Oleinik.
21 %
22 % This work consists of the main source file revtex-bst.dtx
23 % and the derived files
24 % aapmrev4-2.bst, aipauth4-2.bst, aipnum4-2.bst, apsrev4-2.bst, apsrmp4-2.bst
25 % Distribution:
26 % CTAN:macros/latex/contrib/revtex/
27 %
28 % Unpacking:
29 % tex revtex-bst.dtx
30 %
31 % Installation:
32 % TDS:bibtex/bst/revtex/
33 %
34 %<*ignore>
35 \begingroup
36 \def\x{LaTeX2e}%
37 \expandafter\endgroup
38 \ifcase
39 0\expandafter\ifx\csname processbatchFile\endcsname\relax\else1\fi\ifx\fmtname\x\else 1\fi
40 \relax
41 \else
42 \csname fi\endcsname
43 %</ignore>
44 %<*install>
45 %% This file will generate documentation and runtime files
46 %% from revtex4-2.dtx when run through TeX.
47 \input docstrip
48 \nopreamble
49 \edef\defaultpostamble{%
50 \MetaPrefix\space End of customized bst file^^J%
51 \MetaPrefix ^^J%
52 \MetaPrefix\space End of file `\outFileName'.%
53 }
54 \askforoverwritefalse
55 \keepsilent
56 \generate{%
57 \file{aapmrev4-2.bst}{\from{revtex-bst.dtx}{aapmrev}}%
58 \file{aipauth4-2.bst}{\from{revtex-bst.dtx}{aipauth}}%
59 \file{aipnum4-2.bst}{\from{revtex-bst.dtx}{aipnum}}%
60 \file{apsrev4-2.bst}{\from{revtex-bst.dtx}{apsrev}}%
61 \file{apsrmp4-2.bst}{\from{revtex-bst.dtx}{apsrmp}}%
62 }%
63 \ifToplevel{
64 \Msg{***********************************************************}
65 \Msg{*}
66 \Msg{* To finish the installation, please move}
67 \Msg{* *.bst }
68 \Msg{* into a directory searched by TeX;}
69 \Msg{* in a TDS-compliant installation:}
70 \Msg{* texmf/bibtex/bst/revtex/.}
71 \Msg{*}
72 \Msg{* Happy BibTeXing}
73 \Msg{***********************************************************}
74 }
75 \endbatchfile
76 %</install>
77 %<*ignore>
78 \fi
79 %</ignore>
80 % \fi
81 %
82 % \GetFileInfo{revtex-bst.dtx}
83 %
84 % \StopEventually{}
85 % \iffalse ltxdoc klootch
86 %<*package>
87 %%% @LaTeX-file{
88 %%% filename = "revtex-bst.dtx",
89 %%% version = "4.2f",
90 %%% date = "2022/06/05",
91 %%% author = "Phelype Oleinik (mailto: phelype.oleinik at latex-project.org),
92 %%% commissioned by the American Physical Society.
93 %%% ",
94 %%% copyright = "Copyright (C) 2020--2022 American Physical Society
95 %%% distributed under the terms of the
96 %%% LaTeX Project Public License 1.3c, see
97 %%% ftp://ctan.tug.org/macros/latex/base/lppl.txt
98 %%% ",
99 %%% email = "mailto colon revtex at aps.org",
100 %%% codetable = "ISO/ASCII",
101 %%% keywords = "",
102 %%% supported = "yes",
103 %%% abstract = "",
104 %%% }
105 %</package>
106 % \fi
107 %
108 % \subsection{Bill of Materials}
109 %
110 % Following is a list of the files in this distribution arranged
111 % according to provenance.
112 %
113 % \subsubsection{Primary Source}%
114 % One single file generates all.
115 %\begin{verbatim}
116 %revtex-bst.dtx
117 %\end{verbatim}
118 %
119 % \subsubsection{Generated by \texttt{tex revtex-bst.dtx}}%
120 % Typesetting ths file under \TeX\ itself runs the installer,
121 % which generates the bibliography style files.
122 %\begin{verbatim}
123 %aapmrev4-2.bst, aipauth4-2.bst, aipnum4-2.bst,
124 %apsrev4-2.bst, apsrmp4-2.bst
125 %\end{verbatim}
126 %
127 % \section{Code common to all modules}%
128 %
129 % \begin{macrocode}
130 %<*aapmrev|aipauth|aipnum|apsrev|apsrmp>
131 %%
132 %<aapmrev>%% This is file `aapmrev4-2.bst', and is a hand-edited version of aapmrev4-1.bst
133 %<aipauth>%% This is file `aipauth4-2.bst', and is a hand-edited version of aipauth4-1.bst
134 %<aipnum>%% This is file `aipnum4-2.bst', and is a hand-edited version of aipnum4-1.bst
135 %<apsrev>%% This is file `apsrev4-2.bst', and is a hand-edited version of apsrev4-1.bst
136 %<apsrmp>%% This is file `apsrmp4-2.bst', and is a hand-edited version of apsrmp4-1.bst
137 % ===============================================================
138 % IMPORTANT NOTICE:
139 % This file can be redistributed and/or modified under the terms
140 % of the LaTeX Project Public License Distributed from CTAN
141 % archives in directory macros/latex/base/lppl.txt; either
142 % version 1 of the License, or any later version.
143 % ===============================================================
144 %-------------------------------------------------------------------
145 % This bibliography style file is intended for texts in ENGLISH
146 % This is an author-year citation style bibliography. As such, it is
147 % non-standard LaTeX, and requires a special package file to function properly.
148 % Such a package is natbib.sty by Patrick W. Daly
149 % The form of the \bibitem entries is
150 % \bibitem[Jones et al.(1990)]{key}...
151 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
152 % The essential feature is that the label (the part in brackets) consists
153 % of the author names, as they should appear in the citation, with the year
154 % in parentheses following. There must be no space before the opening
155 % parenthesis!
156 % With natbib v5.3, a full list of authors may also follow the year.
157 % In natbib.sty, it is possible to define the type of enclosures that is
158 % really wanted (brackets or parentheses), but in either case, there must
159 % be parentheses in the label.
160 % The \cite command functions as follows:
161 % \citet{key} ==>> Jones et al. (1990)
162 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
163 % \citep{key} ==>> (Jones et al., 1990)
164 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
165 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
166 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
167 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
168 % \citeauthor{key} ==>> Jones et al.
169 % \citeauthor*{key} ==>> Jones, Baker, and Smith
170 % \citeyear{key} ==>> 1990
171 %---------------------------------------------------------------------
172 %</aapmrev|aipauth|aipnum|apsrev|apsrmp>
173 %
174 % \subsection{The Frontmatter File}
175 % As promised above, here is the contents of the frontmatter file.
176 % This file doesn't have any documentation, so just stop early.
177 % \begin{macrocode}
178 %<*ignore>
179 \stop
180 \changes{4.2e}{2020/10/03}{(PHO) Initial version---Put all .bst files in a single .dtx}
181 %</ignore>
182 % \end{macrocode}
183 %
184 % \begin{macrocode}
185 %<*aapmrev|aipauth|aipnum|apsrev|apsrmp>
186 % \end{macrocode}
187 %
188 % \begin{macrocode}
189
190 %<aapmrev>FUNCTION {id.bst} {"aapmrev4-2.bst 2019-01-14 (MD) hand-edited version of aapmrev4-1.bst"}
191 %<aipauth>FUNCTION {id.bst} {"aipnauth4-2.bst 2018-12-27 (MD) hand-edited version of apsauth4-1.bst"}
192 %<aipnum>FUNCTION {id.bst} {"aipnum4-2.bst 2019-01-14 (MD) hand-edited version of apsrev4-1.bst"}
193 %<apsrev>FUNCTION {id.bst} {"apsrev4-2.bst 2019-01-14 (MD) hand-edited version of apsrev4-1.bst"}
194 %<apsrmp>FUNCTION {id.bst} {"apsrmp4-2.bst 2018-12-27 (MD) hand-edited version of apsrmp4-1.bst"}
195 ENTRY
196 {
197 address
198 archive
199 archivePrefix
200 author
201 bookaddress
202 booktitle
203 chapter
204 collaboration
205 doi
206 edition
207 editor
208 eid
209 eprint
210 howpublished
211 institution
212 isbn
213 issn
214 journal
215 key
216 language
217 month
218 note
219 number
220 organization
221 pages
222 primaryClass
223 publisher
224 school
225 SLACcitation
226 series
227 title
228 translation
229 type
230 url
231 volume
232 year
233 }{
234 }{
235 label
236 extra.label sort.label
237 short.list
238 }
239
240 INTEGERS
241 {
242 output.state before.all
243 after.word after.punctuation
244 after.sentence after.block
245 }
246
247 INTEGERS
248 {
249 punctuation.state punctuation.no punctuation.space punctuation.yes
250 }
251
252 STRINGS { bibfield output.bibfield }
253
254 FUNCTION {not}
255 { { #0 }
256 { #1 }
257 if$
258 }
259
260 FUNCTION {and}
261 { 'skip$
262 { pop$ #0 }
263 if$
264 }
265
266 FUNCTION {or}
267 { { pop$ #1 }
268 'skip$
269 if$
270 }
271
272 FUNCTION {non.stop}
273 { duplicate$
274 "}" * add.period$
275 #-1 #1 substring$ "." =
276 }
277
278 INTEGERS { arith.mulitplier arith.multiplicand }
279
280 FUNCTION {multiply}
281 {
282 'arith.multiplicand :=
283 'arith.mulitplier :=
284 #0
285 { arith.mulitplier #0 > }
286 { arith.multiplicand +
287 arith.mulitplier #1 - 'arith.mulitplier :=
288 }
289 while$
290 }
291
292 FUNCTION {chr.to.hex}
293 {
294 chr.to.int$
295 duplicate$ "0" chr.to.int$ -
296 duplicate$ duplicate$ #0 < swap$ #9 > or not
297 { swap$ pop$ }
298 { pop$
299 duplicate$ "A" chr.to.int$ -
300 duplicate$ duplicate$ #0 < swap$ #5 > or not
301 { swap$ pop$ #10 + }
302 { pop$
303 duplicate$ "a" chr.to.int$ -
304 duplicate$ duplicate$ #0 < swap$ #5 > or not
305 { swap$ pop$ #10 + }
306 { pop$
307 pop$ #-1
308 }
309 if$
310 }
311 if$
312 }
313 if$
314 }
315
316 INTEGERS { arith.accumulator }
317
318 FUNCTION {str.to.hex}
319 { #0 'arith.accumulator :=
320 { duplicate$ empty$ not }
321 { duplicate$ #1 #1 substring$ chr.to.hex
322 duplicate$ #0 <
323 { pop$ pop$ ""
324 }
325 { arith.accumulator #16 multiply + 'arith.accumulator :=
326 #2 global.max$ substring$
327 }
328 if$
329 }
330 while$
331 pop$ arith.accumulator
332 }
333
334 FUNCTION {diagn.cmntlog}
335 {
336 duplicate$ top$ "%" swap$ * write$ newline$
337 }
338
339 INTEGERS { control.key control.author control.editor control.title control.pages control.eprint control.year }
340
341 INTEGERS { control.author.jnrlst control.author.dotless control.author.nospace control.author.initials control.author.nocomma control.author.first control.author.reversed }
342
343 FUNCTION { control.init }
344 {
345 #0
346 'control.key :=
347 #0
348 %<aipauth> #1 +
349 %<apsrmp> #1 +
350 %<apsrmp> #2 +
351 #8 +
352 %<apsrev> #64 +
353 %<apsrmp> #64 +
354 'control.author :=
355 %<aapmrev> #0
356 %<aipauth> #0
357 %<aipnum> #0
358 %<apsrev> #1
359 %<apsrmp> #1
360 'control.author.jnrlst :=
361 #0
362 'control.author.dotless :=
363 #0
364 'control.author.nospace :=
365 #1
366 'control.author.initials :=
367 #0
368 'control.author.nocomma :=
369 %<!apsrmp> #0
370 %<apsrmp> #1
371 'control.author.first :=
372 %<aapmrev> #0
373 %<aipauth> #1
374 %<aipnum> #0
375 %<apsrev> #0
376 %<apsrmp> #1
377 'control.author.reversed :=
378 %<aapmrev> #1
379 %<aipauth> #0
380 %<aipnum> #1
381 %<apsrev> #1
382 %<apsrmp> #0
383 'control.editor :=
384 #-1
385 'control.title :=
386 #0
387 'control.pages :=
388 #0
389 'control.eprint :=
390 #1
391 'control.year :=
392 }
393
394 FUNCTION {warning.dependency}
395 {
396 " (dependency: " * swap$ * ") set " * swap$ int.to.str$ * warning$
397 }
398
399 FUNCTION {control.check}
400 {
401 control.editor
402 {
403 "editor formatted same as author"
404 control.author.reversed {
405 duplicate$ #0 swap$ "reversed" warning.dependency
406 #0 'control.author.reversed :=
407 } 'skip$ if$
408 control.author.first {
409 duplicate$ #0 swap$ "first" warning.dependency
410 #0 'control.author.first :=
411 } 'skip$ if$
412 control.author.nocomma {
413 duplicate$ #0 swap$ "nocomma" warning.dependency
414 #0 'control.author.nocomma :=
415 } 'skip$ if$
416 pop$
417 } 'skip$ if$
418 control.author.reversed 'skip$
419 {
420 "not reversed"
421 control.author.nospace {
422 duplicate$ #0 swap$ "nospace" warning.dependency
423 #0 'control.author.nospace :=
424 } 'skip$ if$
425 control.author.jnrlst 'skip$ {
426 duplicate$ #1 swap$ "jnrlst" warning.dependency
427 #1 'control.author.jnrlst :=
428 } if$
429 control.author.initials {
430 duplicate$ ", initials" *
431 control.author.dotless {
432 duplicate$ #0 swap$ "dotless" warning.dependency
433 #0 'control.author.dotless :=
434 } 'skip$ if$
435 pop$
436 } 'skip$ if$
437 pop$
438 }
439 if$
440 control.author.initials 'skip$ {
441 "not initials"
442 control.author.nocomma {
443 duplicate$ #0 swap$ "nocomma" warning.dependency
444 #0 'control.author.nocomma :=
445 } 'skip$ if$
446 control.author.nospace {
447 duplicate$ #0 swap$ "nospace" warning.dependency
448 #0 'control.author.nospace :=
449 } 'skip$ if$
450 control.author.dotless 'skip$ {
451 duplicate$ #1 swap$ "dotless" warning.dependency
452 #1 'control.author.dotless :=
453 } if$
454 pop$
455 } if$
456 }
457
458 FUNCTION {control.parse}
459 {
460 duplicate$ duplicate$ missing$
461 {
462 pop$ pop$ pop$
463 }
464 { empty$
465 {
466 pop$ #-1
467 }{
468 str.to.hex
469 }
470 if$
471 swap$ :=
472 }
473 if$
474 }
475
476 FUNCTION {control.dump}
477 {
478 duplicate$ missing$ { pop$ "N/A" } 'skip$ if$
479 "{" swap$ * "}, " *
480 *
481 }
482
483 INTEGERS { decode.threshold }
484
485 FUNCTION {control.decode}
486 {
487 - duplicate$
488 #0 <
489 {
490 skip$ pop$ swap$ #0
491 }
492 {
493 swap$ pop$ swap$ #1
494 }
495 if$
496 swap$ :=
497 }
498
499 FUNCTION {control.author.decode}
500 {
501 control.author
502 duplicate$ duplicate$ #0 < swap$ #128 < not or
503 {
504 int.to.str$ "(" swap$ * ")" *
505 "Control cannot interpret author " swap$ *
506 warning$
507 }{
508 'control.author.jnrlst swap$ duplicate$ #64 control.decode
509 'control.author.dotless swap$ duplicate$ #32 control.decode
510 'control.author.nospace swap$ duplicate$ #16 control.decode
511 'control.author.initials swap$ duplicate$ #8 control.decode
512 'control.author.nocomma swap$ duplicate$ #4 control.decode
513 'control.author.first swap$ duplicate$ #2 control.decode
514 'control.author.reversed swap$ duplicate$ #1 control.decode
515 duplicate$ #0 =
516 'skip$
517 {
518 "Control: residue of author"
519 "(" swap$ * ")" * *
520 warning$
521 }
522 if$
523 pop$
524 }
525 if$
526 }
527
528 FUNCTION {control.setup}
529 {
530 type$ cite$ "{" swap$ * "}, " * *
531 "control.key" key control.dump *
532 "control.author" author control.dump *
533 "control.editor" editor control.dump *
534 "control.title" title control.dump *
535 "control.pages" pages control.dump *
536 "control.year" year control.dump *
537 "control.eprint" eprint control.dump *
538 top$
539 'control.key key control.parse
540 'control.author author control.parse
541 'control.editor editor control.parse
542 'control.title title control.parse
543 'control.pages pages control.parse
544 'control.year year control.parse
545 'control.eprint eprint control.parse
546 control.author.decode
547 }
548
549 FUNCTION {control.pass}
550 { type$ "control" = 'control.setup 'skip$ if$
551 }
552
553 FUNCTION {control.presort}
554 {
555 }
556
557 FUNCTION {control.forward}
558 {
559 }
560
561 FUNCTION {control.reverse}
562 {
563 }
564
565 FUNCTION {control.sort}
566 {
567 }
568
569 FUNCTION {control.longest.label}
570 {
571 }
572
573 FUNCTION {control.key.bib}
574 {
575 "Control: key "
576 control.key
577 duplicate$ "(" swap$ int.to.str$ * ") " * swap$
578 pop$ *
579 diagn.cmntlog
580 }
581
582 FUNCTION {control.author.bib}
583 {
584 "Control: author "
585 control.author "(" swap$ int.to.str$ * ")" * *
586 control.author.reversed { " reversed" * }{} if$
587 control.author.first { " first" * }{} if$
588 control.author.nocomma { " nocomma" * }{} if$
589 control.author.initials { " initials" * }{} if$
590 control.author.nospace { " nospace" * }{} if$
591 control.author.dotless { " dotless" * }{} if$
592 control.author.jnrlst { " jnrlst" * }{} if$
593 diagn.cmntlog
594 }
595
596 FUNCTION {control.editor.bib}
597 {
598 "Control: editor formatted "
599 control.editor
600 duplicate$ "(" swap$ int.to.str$ * ") " * swap$
601 duplicate$ #0 < {
602 pop$
603 "disabled!"
604 } {
605 #0 > {
606 "identically to author"
607 } {
608 "differently from author"
609 } if$
610 } if$ * *
611 diagn.cmntlog
612 }
613
614 FUNCTION {control.title.bib}
615 {
616 "Control: production of article title "
617 control.title
618 duplicate$ "(" swap$ int.to.str$ * ") " * swap$
619 duplicate$ #0 < {
620 pop$
621 "disabled"
622 } {
623 #0 > {
624 "required"
625 } {
626 "allowed"
627 } if$
628 } if$ * *
629 diagn.cmntlog
630 }
631
632 FUNCTION {control.pages.bib}
633 {
634 "Control: page "
635 control.pages
636 duplicate$ "(" swap$ int.to.str$ * ") " * swap$
637 duplicate$ #0 < {
638 pop$
639 "none"
640 } {
641 #0 > {
642 "range"
643 } {
644 "single"
645 } if$
646 } if$ * *
647 diagn.cmntlog
648 }
649
650 FUNCTION {control.year.bib}
651 {
652 "Control: year "
653 control.year
654 duplicate$ "(" swap$ int.to.str$ * ") " * swap$
655 duplicate$ #0 < {
656 pop$
657 "disabled!"
658 } {
659 #0 > {
660 "truncated"
661 } {
662 "verbatim"
663 } if$
664 } if$ * *
665 diagn.cmntlog
666 }
667
668 FUNCTION {control.eprint.bib}
669 {
670 "Control: production of eprint "
671 control.eprint
672 duplicate$ "(" swap$ int.to.str$ * ") " * swap$
673 #0 < { "disabled" } { "enabled" } if$ * *
674 diagn.cmntlog
675 }
676
677 FUNCTION {control.bib}
678 {
679 control.key.bib
680 control.author.bib
681 control.editor.bib
682 control.title.bib
683 control.pages.bib
684 control.year.bib
685 control.eprint.bib
686 }
687
688 FUNCTION {init.state.consts}
689 {
690 #0 'before.all :=
691 #1 'after.word :=
692 #2 'after.punctuation :=
693 #3 'after.sentence :=
694 #4 'after.block :=
695 #0 'punctuation.no :=
696 #1 'punctuation.space :=
697 #2 'punctuation.yes :=
698 "" 'bibfield :=
699 "" 'output.bibfield :=
700 }
701
702 STRINGS { s t}
703 FUNCTION {block.punctuation}
704 { ""
705 "," *
706 }
707
708 FUNCTION {word.space}
709 {
710 "\ "
711 }
712
713 FUNCTION {show.stackstring.one}{
714 "(" *
715 output.state int.to.str$ *
716 "," * punctuation.state int.to.str$ *
717 ")" * top$
718 duplicate$ "1(" swap$ * ")" * top$
719 }
720
721 FUNCTION {show.stackstring.two}{
722 "(" *
723 output.state int.to.str$ *
724 "," * punctuation.state int.to.str$ *
725 ")" * top$
726 swap$
727 duplicate$ "1(" swap$ * ")" * top$
728 swap$
729 duplicate$ "2(" swap$ * ")" * top$
730 }
731
732 FUNCTION {bibfield.command}{ "\bibfield "}
733
734 FUNCTION {output.nonnull}
735 {
736 swap$
737 output.state after.word =
738 {
739 block.punctuation *
740 word.space *
741 }
742 {
743 output.state after.punctuation =
744 {
745 word.space *
746 }
747 {
748 output.state after.block = output.state after.sentence = or
749 {
750 add.period$
751 "\EOS\ " *
752 }{
753 }
754 if$
755 }
756 if$
757 }
758 if$
759 output.bibfield duplicate$ empty$ 'pop$
760 {
761 bibfield.command
762 " {" * swap$ * "} {" * swap$ * "}" *
763 }
764 if$
765 write$
766 bibfield 'output.bibfield := "" 'bibfield :=
767 output.state after.block =
768 {
769 newline$
770 "\newblock " write$
771 }
772 'skip$
773 if$
774 punctuation.state duplicate$
775 punctuation.yes 'punctuation.state :=
776 punctuation.no =
777 { pop$ before.all }
778 { punctuation.yes = { after.word }{ after.punctuation } if$ }
779 if$
780 'output.state :=
781 }
782
783 FUNCTION {output}
784 { duplicate$ empty$
785 {
786 pop$
787 "" 'bibfield :=
788 }
789 'output.nonnull
790 if$
791 }
792
793 FUNCTION {output.nopunct}
794 {
795 punctuation.no 'punctuation.state :=
796 output.nonnull
797 }
798
799 FUNCTION {output.check}
800 { swap$
801 duplicate$ empty$
802 { pop$ "empty " swap$ * " in " * cite$ * warning$ }
803 { swap$ pop$ output.nonnull }
804 if$
805 }
806
807 FUNCTION {bbl.open} { "\BibitemOpen " }
808
809 FUNCTION {bbl.shut} { "\BibitemShut " }
810
811 FUNCTION {bibitem.shut.stop} { bbl.shut "{Stop}%" * }
812
813 FUNCTION {bibitem.shut.nostop} { bbl.shut "{NoStop}%" * }
814
815 FUNCTION {bibitem.shut}
816 {
817 non.stop
818 {
819 bibitem.shut.nostop *
820 }{
821 bibitem.shut.stop *
822 }
823 if$
824 }
825
826 FUNCTION {html.itag} {
827 "p"
828 }
829
830 FUNCTION {html.ltag} {
831 ""
832 }
833
834 FUNCTION {output.SLACcitation}
835 { SLACcitation empty$
836 'skip$
837 {
838 newline$
839 SLACcitation write$
840 }
841 if$
842 }
843
844 FUNCTION {fin.entry}
845 {
846 bibitem.shut
847 write$
848 output.SLACcitation
849 }
850
851 FUNCTION {new.block}
852 { output.state before.all =
853 'skip$
854 { after.block 'output.state := }
855 if$
856 }
857
858 FUNCTION {new.block.comma}
859 {
860 }
861
862 FUNCTION {new.sentence}
863 { output.state after.block = output.state before.all = or
864 'skip$
865 { after.sentence 'output.state := }
866 if$
867 }
868
869 FUNCTION {new.sentence.comma}
870 {
871 }
872
873 FUNCTION {sentence.or.colon}
874 {
875 new.sentence
876 }
877
878 FUNCTION {add.blank}
879 {
880 word.space *
881 before.all 'output.state :=
882 }
883
884 FUNCTION {no.blank.or.punct}
885 {
886 "\hspace {0pt}" *
887 before.all 'output.state :=
888 }
889
890 FUNCTION {date.block}
891 {
892 new.block.comma
893 skip$
894 }
895
896 STRINGS {z}
897 FUNCTION {remove.dots}
898 {
899 control.author.dotless {
900 'z :=
901 ""
902 { z empty$ not }
903 { z #1 #1 substring$
904 z #2 global.max$ substring$ 'z :=
905 duplicate$ "." = 'pop$
906 { * }
907 if$
908 }
909 while$
910 } 'skip$ if$
911 }
912
913 FUNCTION {new.block.checkb}
914 { empty$
915 swap$ empty$
916 and
917 'skip$
918 'new.block
919 if$
920 }
921
922 FUNCTION {field.or.null}
923 { duplicate$ empty$
924 { pop$ "" }
925 'skip$
926 if$
927 }
928
929 FUNCTION {emphasize}
930 {
931 duplicate$ empty$
932 { pop$ "" }
933 {
934 "\emph {" swap$ * "}" *
935 }
936 if$
937 }
938
939 FUNCTION {bolden}
940 { duplicate$ empty$
941 { pop$ "" }
942 { "\textbf {" swap$ * "}" * }
943 if$
944 }
945
946 FUNCTION {bib.name.font}
947 {
948 duplicate$ empty$
949 { pop$ "" }
950 {
951 "\bibnamefont {" swap$ * "}" *
952 }
953 if$
954 }
955
956 FUNCTION {bib.fname.font}
957 {
958 duplicate$ empty$
959 { pop$ "" }
960 {
961 "\bibfnamefont {" swap$ * "}" *
962 }
963 if$
964 }
965
966 FUNCTION {cite.name.font}
967 {
968 duplicate$ empty$
969 { pop$ "" }
970 {
971 "\citenamefont {" swap$ * "}" *
972 }
973 if$
974 }
975
976 FUNCTION {tie.or.space.prefix}
977 { duplicate$ text.length$ #3 <
978 { "~" }
979 { word.space }
980 if$
981 swap$
982 }
983
984 FUNCTION {capitalize}
985 {
986 "u" change.case$ "t" change.case$
987 }
988
989 FUNCTION {space.word}
990 { word.space swap$ * word.space * }
991
992 % Here are the language-specific definitions for explicit words.
993 % Each function has a name bbl.xxx where xxx is the English word.
994 % The language selected here is ENGLISH
995
996 FUNCTION {bbl.and}
997 {
998 "and"
999 }
1000
1001 FUNCTION {bbl.etal}
1002 {
1003 "et~al."
1004 }
1005
1006 FUNCTION {bbl.editors}
1007 {
1008 "eds."
1009 }
1010
1011 FUNCTION {bbl.editor}
1012 {
1013 "ed."
1014 }
1015
1016 FUNCTION {bbl.edby}
1017 { "edited by" }
1018
1019 FUNCTION {bbl.edition}
1020 {
1021 "ed."
1022 }
1023
1024 FUNCTION {bbl.volume}
1025 {
1026 "vol."
1027 }
1028
1029 FUNCTION {bbl.of}
1030 { "of" }
1031
1032 FUNCTION {bbl.number}
1033 {
1034 "no."
1035 }
1036
1037 FUNCTION {bbl.nr}
1038 { "no." }
1039
1040 FUNCTION {bbl.in}
1041 { "in" }
1042
1043 FUNCTION {bbl.pages}
1044 {
1045 "pp."
1046 }
1047
1048 FUNCTION {bbl.page}
1049 {
1050 "p."
1051 }
1052
1053 FUNCTION {bbl.eidpp}
1054 { "pages" }
1055
1056 FUNCTION {bbl.chapter}
1057 {
1058 "chap."
1059 }
1060
1061 FUNCTION {bbl.techrep}
1062 {
1063 "Tech. Rep."
1064 }
1065
1066 FUNCTION {bbl.mthesis}
1067 { "Master's thesis" }
1068
1069 FUNCTION {bbl.phdthesis}
1070 { "Ph.D. thesis" }
1071
1072 FUNCTION {bbl.first}
1073 {
1074 "1st"
1075 }
1076
1077 FUNCTION {bbl.second}
1078 {
1079 "2nd"
1080 }
1081
1082 FUNCTION {bbl.third}
1083 {
1084 "3rd"
1085 }
1086
1087 FUNCTION {bbl.fourth}
1088 {
1089 "4th"
1090 }
1091
1092 FUNCTION {bbl.fifth}
1093 {
1094 "5th"
1095 }
1096
1097 FUNCTION {bbl.st}
1098 { "st" }
1099
1100 FUNCTION {bbl.nd}
1101 { "nd" }
1102
1103 FUNCTION {bbl.rd}
1104 { "rd" }
1105
1106 FUNCTION {bbl.th}
1107 { "th" }
1108
1109 MACRO {jan} {"Jan."}
1110
1111 MACRO {feb} {"Feb."}
1112
1113 MACRO {mar} {"Mar."}
1114
1115 MACRO {apr} {"Apr."}
1116
1117 MACRO {may} {"May"}
1118
1119 MACRO {jun} {"Jun."}
1120
1121 MACRO {jul} {"Jul."}
1122
1123 MACRO {aug} {"Aug."}
1124
1125 MACRO {sep} {"Sep."}
1126
1127 MACRO {oct} {"Oct."}
1128
1129 MACRO {nov} {"Nov."}
1130
1131 MACRO {dec} {"Dec."}
1132
1133 FUNCTION {bbl.url.prefix}
1134 {
1135 "\urlprefix "
1136 }
1137
1138 FUNCTION {eng.ord}
1139 { duplicate$ "1" swap$ *
1140 #-2 #1 substring$ "1" =
1141 { bbl.th * }
1142 { duplicate$ #-1 #1 substring$
1143 duplicate$ "1" =
1144 { pop$ bbl.st * }
1145 { duplicate$ "2" =
1146 { pop$ bbl.nd * }
1147 { "3" =
1148 { bbl.rd * }
1149 { bbl.th * }
1150 if$
1151 }
1152 if$
1153 }
1154 if$
1155 }
1156 if$
1157 }
1158
1159 %-------------------------------------------------------------------
1160 % Begin module:
1161 % \ProvidesFile{physjour.mbs}[2002/01/14 2.2 (PWD)]
1162 MACRO {aa}{"Astron. \& Astrophys."}
1163 MACRO {aasup}{"Astron. \& Astrophys. Suppl. Ser."}
1164 MACRO {aj} {"Astron. J."}
1165 MACRO {aph} {"Acta Phys."}
1166 MACRO {advp} {"Adv. Phys."}
1167 MACRO {ajp} {"Amer. J. Phys."}
1168 MACRO {ajm} {"Amer. J. Math."}
1169 MACRO {amsci} {"Amer. Sci."}
1170 MACRO {anofd} {"Ann. Fluid Dyn."}
1171 MACRO {am} {"Ann. Math."}
1172 MACRO {ap} {"Ann. Phys. (NY)"}
1173 MACRO {adp} {"Ann. Phys. (Leipzig)"}
1174 MACRO {ao} {"Appl. Opt."}
1175 MACRO {apl} {"Appl. Phys. Lett."}
1176 MACRO {app} {"Astroparticle Phys."}
1177 MACRO {apj} {"Astrophys. J."}
1178 MACRO {apjsup} {"Astrophys. J. Suppl."}
1179 MACRO {apss} {"Astrophys. Space Sci."}
1180 MACRO {araa} {"Ann. Rev. Astron. Astrophys."}
1181 MACRO {baas} {"Bull. Amer. Astron. Soc."}
1182 MACRO {baps} {"Bull. Amer. Phys. Soc."}
1183 MACRO {cmp} {"Comm. Math. Phys."}
1184 MACRO {cpam} {"Commun. Pure Appl. Math."}
1185 MACRO {cppcf} {"Comm. Plasma Phys. \& Controlled Fusion"}
1186 MACRO {cpc} {"Comp. Phys. Comm."}
1187 MACRO {cqg} {"Class. Quant. Grav."}
1188 MACRO {cra} {"C. R. Acad. Sci. A"}
1189 MACRO {fed} {"Fusion Eng. \& Design"}
1190 MACRO {ft} {"Fusion Tech."}
1191 MACRO {grg} {"Gen. Relativ. Gravit."}
1192 MACRO {ieeens} {"IEEE Trans. Nucl. Sci."}
1193 MACRO {ieeeps} {"IEEE Trans. Plasma Sci."}
1194 MACRO {ijimw} {"Interntl. J. Infrared \& Millimeter Waves"}
1195 MACRO {ip} {"Infrared Phys."}
1196 MACRO {irp} {"Infrared Phys."}
1197 MACRO {jap} {"J. Appl. Phys."}
1198 MACRO {jasa} {"J. Acoust. Soc. America"}
1199 MACRO {jcp} {"J. Comp. Phys."}
1200 MACRO {jetp} {"Sov. Phys.--JETP"}
1201 MACRO {jfe} {"J. Fusion Energy"}
1202 MACRO {jfm} {"J. Fluid Mech."}
1203 MACRO {jmp} {"J. Math. Phys."}
1204 MACRO {jne} {"J. Nucl. Energy"}
1205 MACRO {jnec} {"J. Nucl. Energy, C: Plasma Phys., Accelerators, Thermonucl. Res."}
1206 MACRO {jnm} {"J. Nucl. Mat."}
1207 MACRO {jpc} {"J. Phys. Chem."}
1208 MACRO {jpp} {"J. Plasma Phys."}
1209 MACRO {jpsj} {"J. Phys. Soc. Japan"}
1210 MACRO {jsi} {"J. Sci. Instrum."}
1211 MACRO {jvst} {"J. Vac. Sci. \& Tech."}
1212 MACRO {nat} {"Nature"}
1213 MACRO {nature} {"Nature"}
1214 MACRO {nedf} {"Nucl. Eng. \& Design/Fusion"}
1215 MACRO {nf} {"Nucl. Fusion"}
1216 MACRO {nim} {"Nucl. Inst. \& Meth."}
1217 MACRO {nimpr} {"Nucl. Inst. \& Meth. in Phys. Res."}
1218 MACRO {np} {"Nucl. Phys."}
1219 MACRO {npb} {"Nucl. Phys. B"}
1220 MACRO {nt/f} {"Nucl. Tech./Fusion"}
1221 MACRO {npbpc} {"Nucl. Phys. B (Proc. Suppl.)"}
1222 MACRO {inc} {"Nuovo Cimento"}
1223 MACRO {nc} {"Nuovo Cimento"}
1224 MACRO {pf} {"Phys. Fluids"}
1225 MACRO {pfa} {"Phys. Fluids A: Fluid Dyn."}
1226 MACRO {pfb} {"Phys. Fluids B: Plasma Phys."}
1227 MACRO {pl} {"Phys. Lett."}
1228 MACRO {pla} {"Phys. Lett. A"}
1229 MACRO {plb} {"Phys. Lett. B"}
1230 MACRO {prep} {"Phys. Rep."}
1231 MACRO {pnas} {"Proc. Nat. Acad. Sci. USA"}
1232 MACRO {pp} {"Phys. Plasmas"}
1233 MACRO {ppcf} {"Plasma Phys. \& Controlled Fusion"}
1234 MACRO {phitrsl} {"Philos. Trans. Roy. Soc. London"}
1235 MACRO {prl} {"Phys. Rev. Lett."}
1236 MACRO {pr} {"Phys. Rev."}
1237 MACRO {physrev} {"Phys. Rev."}
1238 MACRO {pra} {"Phys. Rev. A"}
1239 MACRO {prb} {"Phys. Rev. B"}
1240 MACRO {prc} {"Phys. Rev. C"}
1241 MACRO {prd} {"Phys. Rev. D"}
1242 MACRO {pre} {"Phys. Rev. E"}
1243 MACRO {ps} {"Phys. Scripta"}
1244 MACRO {procrsl} {"Proc. Roy. Soc. London"}
1245 MACRO {rmp} {"Rev. Mod. Phys."}
1246 MACRO {rsi} {"Rev. Sci. Inst."}
1247 MACRO {science} {"Science"}
1248 MACRO {sciam} {"Sci. Am."}
1249 MACRO {sam} {"Stud. Appl. Math."}
1250 MACRO {sjpp} {"Sov. J. Plasma Phys."}
1251 MACRO {spd} {"Sov. Phys.--Doklady"}
1252 MACRO {sptp} {"Sov. Phys.--Tech. Phys."}
1253 MACRO {spu} {"Sov. Phys.--Uspeki"}
1254 MACRO {st} {"Sky and Telesc."}
1255 % End module: physjour.mbs
1256 %-------------------------------------------------------------------
1257 % Begin module:
1258 % \ProvidesFile{geojour.mbs}[2002/07/10 2.0h (PWD)]
1259 MACRO {aisr} {"Adv. Space Res."}
1260 MACRO {ag} {"Ann. Geophys."}
1261 MACRO {anigeo} {"Ann. Geofis."}
1262 MACRO {angl} {"Ann. Glaciol."}
1263 MACRO {andmet} {"Ann. d. Meteor."}
1264 MACRO {andgeo} {"Ann. d. Geophys."}
1265 MACRO {andphy} {"Ann. Phys.-Paris"}
1266 MACRO {afmgb} {"Arch. Meteor. Geophys. Bioklimatol."}
1267 MACRO {atph} {"Atm\'osphera"}
1268 MACRO {aao} {"Atmos. Ocean"}
1269 MACRO {ass}{"Astrophys. Space Sci."}
1270 MACRO {atenv} {"Atmos. Environ."}
1271 MACRO {aujag} {"Aust. J. Agr. Res."}
1272 MACRO {aumet} {"Aust. Meteorol. Mag."}
1273 MACRO {blmet} {"Bound.-Lay. Meteorol."}
1274 MACRO {bams} {"Bull. Amer. Meteorol. Soc."}
1275 MACRO {cch} {"Clim. Change"}
1276 MACRO {cdyn} {"Clim. Dynam."}
1277 MACRO {cbul} {"Climatol. Bull."}
1278 MACRO {cap} {"Contrib. Atmos. Phys."}
1279 MACRO {dsr} {"Deep-Sea Res."}
1280 MACRO {dhz} {"Dtsch. Hydrogr. Z."}
1281 MACRO {dao} {"Dynam. Atmos. Oceans"}
1282 MACRO {eco} {"Ecology"}
1283 MACRO {empl}{"Earth, Moon and Planets"}
1284 MACRO {envres} {"Environ. Res."}
1285 MACRO {envst} {"Environ. Sci. Technol."}
1286 MACRO {ecms} {"Estuarine Coastal Mar. Sci."}
1287 MACRO {expa}{"Exper. Astron."}
1288 MACRO {geoint} {"Geofis. Int."}
1289 MACRO {geopub} {"Geofys. Publ."}
1290 MACRO {geogeo} {"Geol. Geofiz."}
1291 MACRO {gafd} {"Geophys. Astrophys. Fluid Dyn."}
1292 MACRO {gfd} {"Geophys. Fluid Dyn."}
1293 MACRO {geomag} {"Geophys. Mag."}
1294 MACRO {georl} {"Geophys. Res. Lett."}
1295 MACRO {grl} {"Geophys. Res. Lett."}
1296 MACRO {ga} {"Geophysica"}
1297 MACRO {gs} {"Geophysics"}
1298 MACRO {ieeetap} {"IEEE Trans. Antenn. Propag."}
1299 MACRO {ijawp} {"Int. J. Air Water Pollut."}
1300 MACRO {ijc} {"Int. J. Climatol."}
1301 MACRO {ijrs} {"Int. J. Remote Sens."}
1302 MACRO {jam} {"J. Appl. Meteorol."}
1303 MACRO {jaot} {"J. Atmos. Ocean. Technol."}
1304 MACRO {jatp} {"J. Atmos. Terr. Phys."}
1305 MACRO {jastp} {"J. Atmos. Solar-Terr. Phys."}
1306 MACRO {jce} {"J. Climate"}
1307 MACRO {jcam} {"J. Climate Appl. Meteor."}
1308 MACRO {jcm} {"J. Climate Meteor."}
1309 MACRO {jcy} {"J. Climatol."}
1310 MACRO {jgr} {"J. Geophys. Res."}
1311 MACRO {jga} {"J. Glaciol."}
1312 MACRO {jh} {"J. Hydrol."}
1313 MACRO {jmr} {"J. Mar. Res."}
1314 MACRO {jmrj} {"J. Meteor. Res. Japan"}
1315 MACRO {jm} {"J. Meteor."}
1316 MACRO {jpo} {"J. Phys. Oceanogr."}
1317 MACRO {jra} {"J. Rech. Atmos."}
1318 MACRO {jaes} {"J. Aeronaut. Sci."}
1319 MACRO {japca} {"J. Air Pollut. Control Assoc."}
1320 MACRO {jas} {"J. Atmos. Sci."}
1321 MACRO {jmts} {"J. Mar. Technol. Soc."}
1322 MACRO {jmsj} {"J. Meteorol. Soc. Japan"}
1323 MACRO {josj} {"J. Oceanogr. Soc. Japan"}
1324 MACRO {jwm} {"J. Wea. Mod."}
1325 MACRO {lao} {"Limnol. Oceanogr."}
1326 MACRO {mwl} {"Mar. Wea. Log"}
1327 MACRO {mau} {"Mausam"}
1328 MACRO {meteor} {"``Meteor'' Forschungsergeb."}
1329 MACRO {map} {"Meteorol. Atmos. Phys."}
1330 MACRO {metmag} {"Meteor. Mag."}
1331 MACRO {metmon} {"Meteor. Monogr."}
1332 MACRO {metrun} {"Meteor. Rundsch."}
1333 MACRO {metzeit} {"Meteor. Z."}
1334 MACRO {metgid} {"Meteor. Gidrol."}
1335 MACRO {mwr} {"Mon. Weather Rev."}
1336 MACRO {nwd} {"Natl. Weather Dig."}
1337 MACRO {nzjmfr} {"New Zeal. J. Mar. Freshwater Res."}
1338 MACRO {npg} {"Nonlin. Proc. Geophys."}
1339 MACRO {om} {"Oceanogr. Meteorol."}
1340 MACRO {ocac} {"Oceanol. Acta"}
1341 MACRO {oceanus} {"Oceanus"}
1342 MACRO {paleoc} {"Paleoceanography"}
1343 MACRO {pce} {"Phys. Chem. Earth"}
1344 MACRO {pmg} {"Pap. Meteor. Geophys."}
1345 MACRO {ppom} {"Pap. Phys. Oceanogr. Meteor."}
1346 MACRO {physzeit} {"Phys. Z."}
1347 MACRO {pps} {"Planet. Space Sci."}
1348 MACRO {pss} {"Planet. Space Sci."}
1349 MACRO {pag} {"Pure Appl. Geophys."}
1350 MACRO {qjrms} {"Quart. J. Roy. Meteorol. Soc."}
1351 MACRO {quatres} {"Quat. Res."}
1352 MACRO {rsci} {"Radio Sci."}
1353 MACRO {rse} {"Remote Sens. Environ."}
1354 MACRO {rgeo} {"Rev. Geophys."}
1355 MACRO {rgsp} {"Rev. Geophys. Space Phys."}
1356 MACRO {rdgeo} {"Rev. Geofis."}
1357 MACRO {revmeta} {"Rev. Meteorol."}
1358 MACRO {sgp}{"Surveys in Geophys."}
1359 MACRO {sp} {"Solar Phys."}
1360 MACRO {ssr} {"Space Sci. Rev."}
1361 MACRO {tellus} {"Tellus"}
1362 MACRO {tac} {"Theor. Appl. Climatol."}
1363 MACRO {tagu} {"Trans. Am. Geophys. Union (EOS)"}
1364 MACRO {wrr} {"Water Resour. Res."}
1365 MACRO {weather} {"Weather"}
1366 MACRO {wafc} {"Weather Forecast."}
1367 MACRO {ww} {"Weatherwise"}
1368 MACRO {wmob} {"WMO Bull."}
1369 MACRO {zeitmet} {"Z. Meteorol."}
1370 % End module: geojour.mbs
1371 %-------------------------------------------------------------------
1372 % Begin module:
1373 % \ProvidesFile{photjour.mbs}[1999/02/24 2.0b (PWD)]
1374
1375 MACRO {appopt} {"Appl. Opt."}
1376 MACRO {bell} {"Bell Syst. Tech. J."}
1377 MACRO {ell} {"Electron. Lett."}
1378 MACRO {jasp} {"J. Appl. Spectr."}
1379 MACRO {jqe} {"IEEE J. Quantum Electron."}
1380 MACRO {jlwt} {"J. Lightwave Technol."}
1381 MACRO {jmo} {"J. Mod. Opt."}
1382 MACRO {josa} {"J. Opt. Soc. America"}
1383 MACRO {josaa} {"J. Opt. Soc. Amer.~A"}
1384 MACRO {josab} {"J. Opt. Soc. Amer.~B"}
1385 MACRO {jdp} {"J. Phys. (Paris)"}
1386 MACRO {oc} {"Opt. Commun."}
1387 MACRO {ol} {"Opt. Lett."}
1388 MACRO {phtl} {"IEEE Photon. Technol. Lett."}
1389 MACRO {pspie} {"Proc. Soc. Photo-Opt. Instrum. Eng."}
1390 MACRO {sse} {"Solid-State Electron."}
1391 MACRO {sjot} {"Sov. J. Opt. Technol."}
1392 MACRO {sjqe} {"Sov. J. Quantum Electron."}
1393 MACRO {sleb} {"Sov. Phys.--Leb. Inst. Rep."}
1394 MACRO {stph} {"Sov. Phys.--Techn. Phys."}
1395 MACRO {stphl} {"Sov. Techn. Phys. Lett."}
1396 MACRO {vr} {"Vision Res."}
1397 MACRO {zph} {"Z. f. Physik"}
1398 MACRO {zphb} {"Z. f. Physik~B"}
1399 MACRO {zphd} {"Z. f. Physik~D"}
1400
1401 MACRO {CLEO} {"CLEO"}
1402 MACRO {ASSL} {"Adv. Sol.-State Lasers"}
1403 MACRO {OSA} {"OSA"}
1404 % End module: photjour.mbs
1405 %% Copyright 1994-2007 Patrick W Daly
1406 MACRO {acmcs} {"ACM Comput. Surv."}
1407 MACRO {acta} {"Acta Inf."}
1408 MACRO {cacm} {"Commun. ACM"}
1409 MACRO {ibmjrd} {"IBM J. Res. Dev."}
1410 MACRO {ibmsj} {"IBM Syst.~J."}
1411 MACRO {ieeese} {"IEEE Trans. Software Eng."}
1412 MACRO {ieeetc} {"IEEE Trans. Comput."}
1413 MACRO {ieeetcad}
1414 {"IEEE Trans. Comput. Aid. Des."}
1415 MACRO {ipl} {"Inf. Process. Lett."}
1416 MACRO {jacm} {"J.~ACM"}
1417 MACRO {jcss} {"J.~Comput. Syst. Sci."}
1418 MACRO {scp} {"Sci. Comput. Program."}
1419 MACRO {sicomp} {"SIAM J. Comput."}
1420 MACRO {tocs} {"ACM Trans. Comput. Syst."}
1421 MACRO {tods} {"ACM Trans. Database Syst."}
1422 MACRO {tog} {"ACM Trans. Graphic."}
1423 MACRO {toms} {"ACM Trans. Math. Software"}
1424 MACRO {toois} {"ACM Trans. Office Inf. Syst."}
1425 MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."}
1426 MACRO {tcs} {"Theor. Comput. Sci."}
1427
1428 MACRO {jhep} {"J. High Energy Phys."}
1429 MACRO {jcap} {"J. Cosmol. Astropart. Phys."}
1430 MACRO {jinst} {"J. Instrum."}
1431 MACRO {jstat} {"J. Stat. Mech.: Theory Exp."}
1432
1433 FUNCTION {bibinfo.command} { "\bibinfo " }
1434
1435 FUNCTION {bibinfo.check}
1436 { swap$
1437 duplicate$ missing$
1438 {
1439 pop$
1440 pop$ ""
1441 }{
1442 duplicate$ empty$
1443 {
1444 swap$ pop$
1445 }{
1446 swap$
1447 bibinfo.command "{" * swap$ * "} {" * swap$ * "}" *
1448 }
1449 if$
1450 }
1451 if$
1452 }
1453
1454 FUNCTION {bibinfo.warn}
1455 { swap$
1456 duplicate$ missing$
1457 {
1458 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
1459 ""
1460 }{
1461 duplicate$ empty$
1462 {
1463 swap$ "empty " swap$ * " in " * cite$ * warning$
1464 }{
1465 swap$
1466 bibinfo.command " {" * swap$ * "} {" * swap$ * "}" *
1467 }
1468 if$
1469 }
1470 if$
1471 }
1472
1473 FUNCTION {archiv.base}
1474 {
1475 "https://arxiv.org/abs"
1476 }
1477
1478 FUNCTION {archiv.prefix.base}
1479 {
1480 "arXiv"
1481 }
1482
1483 FUNCTION {eprint.command}
1484 {
1485 "\Eprint "
1486 }
1487
1488 FUNCTION {format.eprint.controlled}
1489 {
1490 eprint duplicate$ empty$
1491 control.eprint #1 =
1492 or
1493 { pop$ "" }
1494 {
1495 duplicate$
1496 ""
1497 archive duplicate$ empty$ { pop$ archiv.base } 'skip$ if$ *
1498 "/" *
1499 swap$ *
1500 "{" swap$ * "} " *
1501 swap$
1502 ""
1503 archivePrefix duplicate$ empty$ { pop$ "" } { ":" * } if$ *
1504 swap$ *
1505 primaryClass duplicate$ empty$ { pop$ "" } { " [" swap$ * "]" * } if$ *
1506 "{" swap$ * "} " *
1507 *
1508 eprint.command swap$ *
1509 }
1510 if$
1511 }
1512
1513 FUNCTION {format.eprint}
1514 {
1515 eprint duplicate$ empty$
1516 { pop$ "" }
1517 {
1518 duplicate$
1519 ""
1520 archive duplicate$ empty$ { pop$ archiv.base } 'skip$ if$ *
1521 "/" *
1522 swap$ *
1523 "{" swap$ * "} " *
1524 swap$
1525 ""
1526 archivePrefix duplicate$ empty$ { pop$ "" } { ":" * } if$ *
1527 swap$ *
1528 primaryClass duplicate$ empty$ { pop$ "" } { " [" swap$ * "]" * } if$ *
1529 "{" swap$ * "} " *
1530 *
1531 eprint.command swap$ *
1532 }
1533 if$
1534 }
1535
1536 FUNCTION {format.translation}
1537 { translation duplicate$ empty$
1538 'skip$
1539 { ""
1540 "\translation{" * swap$ * "}" *
1541 punctuation.space 'punctuation.state :=
1542 }
1543 if$
1544 }
1545
1546 FUNCTION {format.url}
1547 {
1548 url duplicate$ empty$
1549 { pop$ "" }
1550 {
1551 "\url "
1552 "{" * swap$ * "}" *
1553 }
1554 if$
1555 }
1556
1557 INTEGERS { nameptr namesleft numnames }
1558
1559 FUNCTION {check.speaker}
1560 { key empty$ 'skip$
1561 { key nameptr int.to.str$ =
1562 {
1563 bolden
1564 }
1565 'skip$
1566 if$
1567 }
1568 if$
1569 }
1570
1571 STRINGS { bibinfo}
1572
1573 FUNCTION {format.names.fname}
1574 {
1575 control.author.initials {
1576 control.author.dotless {
1577 control.author.nospace {
1578 "f{}"
1579 } {
1580 "f{~}"
1581 } if$
1582 } {
1583 control.author.nospace {
1584 "f{.}."
1585 } {
1586 "f."
1587 } if$
1588 } if$
1589 } {
1590 "ff"
1591 } if$
1592 }
1593
1594 FUNCTION {bracify}
1595 {
1596 "{" swap$ * "}" *
1597 }
1598
1599 FUNCTION {name.comma}
1600 {
1601 control.author.nocomma 'skip$ { "," swap$ * } if$
1602 }
1603
1604 FUNCTION {format.names.format.onefont}
1605 {
1606 "{vv~}{ll}"
1607 nameptr #1 >
1608 control.author.first
1609 and
1610 control.author.reversed not
1611 or
1612 {
1613 control.author.initials {
1614 "f"
1615 control.author.dotless 'skip$ {
1616 "." *
1617 } if$
1618 "~" *
1619 } {
1620 "ff"
1621 } if$
1622 bracify
1623 swap$
1624 } {
1625 format.names.fname
1626 " " swap$ *
1627 name.comma
1628 bracify
1629 }
1630 if$
1631 "jj"
1632 " " swap$ *
1633 name.comma
1634 bracify
1635 control.author.jnrlst 'skip$ 'swap$ if$
1636 * *
1637 }
1638
1639 FUNCTION {format.names.onefont}
1640 {
1641 s nameptr format.names.format.onefont format.name$
1642 remove.dots
1643 bib.name.font
1644 }
1645
1646 FUNCTION {format.names.morfont}
1647 { s nameptr
1648 "{vv~}{ll}" format.name$ bib.name.font
1649 nameptr #1 >
1650 control.author.first
1651 and
1652 control.author.reversed not
1653 or
1654 {
1655 s nameptr
1656 control.author.initials {
1657 "f" % default: name + surname + comma junior
1658 } {
1659 "ff"
1660 } if$
1661 control.author.dotless 'skip$ {
1662 "." * % nm-init % Initials. + surname (J. F. Smith) control.author.initials
1663 } if$
1664 bracify
1665 format.name$ duplicate$ empty$ 'skip$
1666 { tie.or.space.prefix bib.fname.font swap$ * }
1667 if$
1668 swap$
1669 *
1670 s nameptr
1671 "{jj}" format.name$ duplicate$ empty$ 'skip$
1672 { bib.fname.font ", " swap$ * }
1673 if$
1674 } {
1675 "," *
1676 s nameptr
1677 format.names.fname
1678 "jj"
1679 " "
1680 name.comma
1681 control.author.jnrlst {
1682 swap$ * skip$
1683 } {
1684 skip$ * swap$
1685 } if$
1686 bracify swap$ bracify swap$
1687 *
1688 format.name$
1689 remove.dots
1690 duplicate$ empty$ 'skip$
1691 { bib.fname.font " " swap$ * }
1692 if$
1693 } if$
1694 *
1695 }
1696
1697 FUNCTION {names.punctuate}
1698 {
1699 "," *
1700 " " *
1701 }
1702 %<*!aipauth&!apsrmp>
1703
1704 FUNCTION {names.comma}
1705 {
1706 "," *
1707 }
1708 %</!aipauth&!apsrmp>
1709
1710 FUNCTION {format.names}
1711 { 'bibinfo :=
1712 duplicate$ empty$ { pop$ "" } {
1713 duplicate$ num.names$
1714 duplicate$ 'numnames :=
1715 'namesleft :=
1716 's :=
1717 #1 'nameptr :=
1718 ""
1719 { namesleft #0 > }
1720 {
1721 format.names.morfont
1722 bibinfo bibinfo.check
1723 type$ "presentation" =
1724 'check.speaker
1725 'skip$
1726 if$
1727 't :=
1728 nameptr #1 > not
1729 {
1730 t *
1731 } {
1732 namesleft #1 >
1733 {
1734 names.punctuate
1735 t *
1736 } {
1737 s nameptr "{ll}" format.name$ duplicate$ "others" =
1738 { 't := }
1739 { pop$ }
1740 if$
1741 %<*!apsrmp>
1742 numnames #2 >
1743 %<!aipauth> 'names.comma
1744 %<aipauth> 'names.punctuate
1745 'skip$
1746 if$
1747 %</!apsrmp>
1748 %<apsrmp> names.punctuate
1749 t "others" =
1750 {
1751 " " *
1752 bbl.etal
1753 emphasize
1754 *
1755 } {
1756 bbl.and
1757 %<aapmrev> space.word *
1758 %<aipauth> word.space * *
1759 %<aipnum> space.word *
1760 %<apsrev> space.word *
1761 %<apsrmp> word.space * *
1762 t *
1763 }
1764 if$
1765 }
1766 if$
1767 }
1768 if$
1769 nameptr #1 + 'nameptr :=
1770 namesleft #1 - 'namesleft :=
1771 }
1772 while$
1773 } if$
1774 }
1775
1776 FUNCTION {format.names.ed.onefont}
1777 {
1778 s nameptr
1779 control.author.initials {
1780 control.author.dotless {
1781 control.author.nospace {
1782 "{f{}~}{vv~}{ll}{ jj}" % nm-rvx|nm-rvcx
1783 } {
1784 "{f{~}~}{vv~}{ll}{ jj}" % nm-rv
1785 } if$
1786 } {
1787 control.author.nospace {
1788 "{f{.}.~}{vv~}{ll}{ jj}" % nm-rvv|nm-rvvc
1789 }{
1790 "{f.~}{vv~}{ll}{, jj}" % nm-init|nm-rev|nm-rev1
1791 } if$
1792 } if$
1793 } {
1794 "{ff~}{vv~}{ll}{, jj}"
1795 } if$
1796 format.name$
1797 remove.dots
1798 bib.name.font
1799 }
1800
1801 FUNCTION {format.names.ed.morfont}
1802 {
1803 control.author.reversed { %
1804 control.author.initials { %
1805 control.author.dotless { %
1806 s nameptr
1807 control.author.nospace { % nm-rvx nm-rvcx
1808 "{f{}}"
1809 } { % nm-rv
1810 "{f{~}}"
1811 } if$
1812 format.name$ duplicate$ empty$ 'skip$
1813 { tie.or.space.prefix bib.fname.font swap$ * }
1814 if$
1815 s nameptr
1816 "{vv~}{ll}" format.name$ bib.name.font *
1817 s nameptr
1818 "{jj}" format.name$
1819 remove.dots
1820 duplicate$ empty$ 'skip$
1821 { bib.fname.font " " swap$ * }
1822 if$
1823 } { % !control.author.dotless
1824 s nameptr
1825 control.author.nospace { % nm-rvv
1826 "{ff}"
1827 } { % nm-rev nm-rev1
1828 "{f.}"
1829 } if$
1830 format.name$ duplicate$ empty$ 'skip$
1831 { tie.or.space.prefix bib.fname.font swap$ * }
1832 if$
1833 s nameptr
1834 "{vv~}{ll}" format.name$ bib.name.font *
1835 s nameptr
1836 "{jj}" format.name$
1837 duplicate$ empty$ 'skip$
1838 { bib.fname.font ", " swap$ * }
1839 if$
1840 } if$
1841 } { % Full names !control.author.initials nm-revf nm-revv1
1842 s nameptr
1843 "{ff}"
1844 format.name$ duplicate$ empty$ 'skip$
1845 { tie.or.space.prefix bib.fname.font swap$ * }
1846 if$
1847 s nameptr
1848 "{vv~}{ll}" format.name$ bib.name.font *
1849 s nameptr
1850 "{jj}" format.name$
1851 duplicate$ empty$ 'skip$
1852 { bib.fname.font ", " swap$ * }
1853 if$
1854 } if$
1855 } { % !control.author.reversed nm-init
1856 s nameptr
1857 "{f.}"
1858 format.name$ duplicate$ empty$ 'skip$
1859 { tie.or.space.prefix bib.fname.font swap$ * }
1860 if$
1861 s nameptr
1862 "{vv~}{ll}" format.name$ bib.name.font *
1863 s nameptr
1864 "{jj}" format.name$
1865 duplicate$ empty$ 'skip$
1866 { bib.fname.font ", " swap$ * }
1867 if$
1868 } if$
1869 *
1870 }
1871
1872 FUNCTION {format.names.ed}
1873 {
1874 control.editor #0 > {
1875 format.names
1876 } {
1877 'bibinfo :=
1878 duplicate$ empty$ 'skip$ {
1879 's :=
1880 "" 't :=
1881 #1 'nameptr :=
1882 s num.names$ 'numnames :=
1883 numnames 'namesleft :=
1884 { namesleft #0 > }
1885 {
1886 format.names.ed.morfont
1887 bibinfo bibinfo.check
1888 't :=
1889 nameptr #1 >
1890 {
1891 namesleft #1 >
1892 {
1893 names.punctuate
1894 t *
1895 }{
1896 s nameptr "{ll}" format.name$ duplicate$ "others" =
1897 { 't := }
1898 { pop$ }
1899 if$
1900 numnames #2 >
1901 %<aapmrev> 'names.comma
1902 %<aipauth> 'names.punctuate
1903 %<aipnum> 'names.comma
1904 %<apsrev> 'names.comma
1905 %<apsrmp> 'names.punctuate
1906 'skip$
1907 if$
1908 t "others" =
1909 {
1910 " " * bbl.etal emphasize *
1911 }{
1912 bbl.and
1913 space.word * t *
1914 }
1915 if$
1916 }
1917 if$
1918 }
1919 't
1920 if$
1921 nameptr #1 + 'nameptr :=
1922 namesleft #1 - 'namesleft :=
1923 }
1924 while$
1925 } if$
1926 } if$
1927 }
1928
1929 FUNCTION {format.key}
1930 { empty$
1931 { key field.or.null }
1932 { "" }
1933 if$
1934 }
1935
1936 FUNCTION {format.authors}
1937 { author "author" format.names
1938 duplicate$ empty$ 'skip$
1939 { collaboration "collaboration" bibinfo.check
1940 duplicate$ empty$ 'skip$
1941 { " (" swap$ * ")" * }
1942 if$
1943 *
1944 }
1945 if$
1946 "author" 'bibfield :=
1947 }
1948
1949 FUNCTION {get.bbl.editor}
1950 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$
1951 }
1952
1953 FUNCTION {format.editors}
1954 { editor "editor" format.names duplicate$ empty$ 'skip$
1955 {
1956 "," *
1957 word.space *
1958 get.bbl.editor
1959 %<apsrmp> capitalize
1960 *
1961 }
1962 if$
1963 }
1964
1965 FUNCTION {format.isbn.output}
1966 {
1967 }
1968
1969 FUNCTION {format.issn.output}
1970 {
1971 }
1972
1973 FUNCTION {doi.base}
1974 {
1975 "https://doi.org/"
1976 }
1977
1978 FUNCTION {doi.base.command}
1979 {
1980 "\doibase "
1981 }
1982
1983 FUNCTION {noop.command}
1984 {
1985 "\href@noop "
1986 }
1987
1988 FUNCTION {href.command}
1989 {
1990 "\href "
1991 }
1992
1993 FUNCTION {link.tag.open}
1994 {
1995 doi duplicate$ empty$
1996 {
1997 pop$
1998 url duplicate$ empty$
1999 {
2000 pop$ "" noop.command
2001 }{
2002 href.command
2003 }
2004 if$
2005 }
2006 {
2007 "https://doi.org/" swap$ *
2008 href.command
2009 }
2010 if$
2011 "{" * swap$ * "} {" *
2012 }
2013
2014 FUNCTION {link.tag.shut}
2015 {
2016 "}"
2017 }
2018
2019 FUNCTION {link.open}
2020 {
2021 link.tag.open output.nopunct
2022 }
2023
2024 FUNCTION {link.shut}
2025 {
2026 link.tag.shut *
2027 }
2028
2029 FUNCTION {add.doi}
2030 {
2031 link.tag.open swap$ * link.tag.shut *
2032 }
2033
2034 FUNCTION {select.language}
2035 { duplicate$ empty$
2036 'pop$
2037 { language empty$
2038 'skip$
2039 { "{\selectlanguage {" language * "}" * swap$ * "}" * }
2040 if$
2041 }
2042 if$
2043 }
2044
2045 FUNCTION {format.note}
2046 {
2047 note empty$
2048 { "" }
2049 { note #1 #1 substring$
2050 duplicate$ "{" =
2051 'skip$
2052 {
2053 output.state after.word = output.state after.punctuation = or
2054 { "l" }
2055 { "u" }
2056 if$ change.case$
2057 }
2058 if$
2059 note #2 global.max$ substring$ * "note" bibinfo.check
2060 }
2061 if$
2062 }
2063
2064 FUNCTION {bbl.enquote}
2065 {
2066 "\enquote "
2067 }
2068
2069 FUNCTION {string.enquote}
2070 {
2071 punctuation.no 'punctuation.state :=
2072 non.stop {
2073 block.punctuation
2074 } { "" } if$
2075 swap$ pop$
2076 *
2077 bbl.enquote "{" * swap$ * "}" *
2078 word.space *
2079 }
2080
2081 FUNCTION {format.title}
2082 { title
2083 duplicate$ empty$ 'skip$ { "t" change.case$ } if$
2084 duplicate$ "title" bibinfo.check swap$
2085 duplicate$ empty$ 'pop$
2086 {
2087 punctuation.yes 'punctuation.state :=
2088 %<!apsrev> string.enquote
2089 %<apsrev> pop$
2090 select.language
2091 }
2092 if$
2093 }
2094
2095 FUNCTION {end.quote.title}
2096 { title empty$
2097 'skip$
2098 { before.all 'output.state := }
2099 if$
2100 }
2101
2102 FUNCTION {format.name.apply}
2103 {
2104 s nameptr
2105 "{vv~}{ll}"
2106 format.name$
2107 cite.name.font
2108 }
2109
2110 FUNCTION {format.full.names}
2111 {
2112 's :=
2113 "" 't :=
2114 #1 'nameptr :=
2115 s num.names$ 'numnames :=
2116 numnames 'namesleft :=
2117 { namesleft #0 > }
2118 { format.name.apply
2119 't :=
2120 nameptr #1 >
2121 {
2122 namesleft #1 >
2123 { ", " * t * }
2124 {
2125 s nameptr "{ll}" format.name$ duplicate$ "others" =
2126 {
2127 't :=
2128 }
2129 'pop$
2130 if$
2131 t "others" =
2132 {
2133 " " * bbl.etal
2134 emphasize *
2135 }{
2136 numnames #2 > { "," * }{ skip$ } if$
2137 bbl.and
2138 space.word * t *
2139 }
2140 if$
2141 }
2142 if$
2143 }
2144 't
2145 if$
2146 nameptr #1 + 'nameptr :=
2147 namesleft #1 - 'namesleft :=
2148 }
2149 while$
2150 }
2151
2152 FUNCTION {make.full.names}
2153 {
2154 key editor author
2155 type$ "proceedings" =
2156 type$ "book" =
2157 type$ "inbook" =
2158 or { pop$ }{ { pop$ "" }{ swap$ pop$ "" swap$ } if$ } if$
2159 duplicate$ empty$
2160 { pop$
2161 duplicate$ empty$
2162 { pop$
2163 duplicate$ empty$
2164 { pop$
2165 cite$ #1 #3 substring$
2166 }{
2167 skip$
2168 }
2169 if$
2170 }
2171 { swap$ pop$ format.full.names }
2172 if$
2173 }
2174 { swap$ pop$ swap$ pop$ format.full.names }
2175 if$
2176 }
2177
2178 FUNCTION {year.bibitem}
2179 {
2180 year duplicate$ empty$
2181 { pop$ ""
2182 %<apsrmp> "????" *
2183 }{
2184 skip$
2185 } if$
2186 extra.label *
2187 }
2188
2189 FUNCTION {output.bibitem}
2190 {
2191 newline$
2192 ""
2193 label
2194 * ")" *
2195 make.full.names duplicate$ short.list =
2196 { pop$ }{ * } if$
2197 bracify
2198 "[" swap$ * "]" *
2199 cite$ bracify "%" *
2200 *
2201 "\bibitem "
2202 swap$ *
2203 write$ newline$
2204 " "
2205 duplicate$ bbl.open * write$ newline$
2206 before.all 'output.state :=
2207 punctuation.yes 'punctuation.state :=
2208 }
2209
2210 FUNCTION {n.dashify}
2211 {
2212 't :=
2213 ""
2214 { t empty$ not }
2215 { t #1 #1 substring$ "-" =
2216 { t #1 #2 substring$ "--" = not
2217 { "--" *
2218 t #2 global.max$ substring$ 't :=
2219 }{
2220 { t #1 #1 substring$ "-" = }
2221 { "-" *
2222 t #2 global.max$ substring$ 't :=
2223 }
2224 while$
2225 }
2226 if$
2227 }{
2228 t #1 #1 substring$ *
2229 t #2 global.max$ substring$ 't :=
2230 }
2231 if$
2232 }
2233 while$
2234 }
2235
2236 FUNCTION {word.in}
2237 {
2238 bbl.in
2239 word.space *
2240 }
2241
2242 %<!apsrev>FUNCTION {date.encapsulate}
2243 %<apsrev>FUNCTION {parenthesize}
2244 {
2245 duplicate$ empty$
2246 'skip$
2247 {
2248 before.all 'output.state :=
2249 " (" swap$ * ")" *
2250 }
2251 if$
2252 }
2253
2254 FUNCTION {format.date}
2255 {
2256 year "year" bibinfo.check duplicate$ empty$
2257 {
2258 %<*apsrmp>
2259 "empty year in " cite$ * "; set to ????" * warning$
2260 pop$ "????"
2261 %</apsrmp>
2262 }
2263 'skip$
2264 if$
2265 extra.label *
2266 %<!apsrev> date.encapsulate
2267 %<apsrev> parenthesize
2268 }
2269
2270 FUNCTION {format.date.output.check}
2271 {
2272 format.date
2273 "year" output.check
2274 }
2275
2276 FUNCTION {format.date.output}
2277 {
2278 format.date.output.check
2279 }
2280
2281 FUNCTION {format.btitle}
2282 {
2283 booktitle duplicate$ empty$ { pop$
2284 title
2285 } 'skip$ if$
2286 "title" bibinfo.check
2287 duplicate$ empty$ 'skip$
2288 {
2289 emphasize
2290 select.language
2291 }
2292 if$
2293 }
2294
2295 FUNCTION {either.or.check}
2296 { empty$
2297 'pop$
2298 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
2299 if$
2300 }
2301
2302 FUNCTION {editor.check.book}
2303 { editor empty$ 'skip$
2304 {
2305 "can't use both author and editor fields in " cite$ *
2306 ": try using @inbook instead" *
2307 warning$
2308 }
2309 if$
2310 }
2311
2312 FUNCTION {format.bvolume}
2313 { volume duplicate$ empty$
2314 { pop$ "" }
2315 {
2316 "volume and number" number either.or.check
2317 bbl.volume
2318 capitalize
2319 swap$
2320 tie.or.space.prefix "volume" bibinfo.check * *
2321 series "series" bibinfo.check duplicate$ empty$ 'pop$
2322 {
2323 ", "
2324 * swap$ *
2325 }
2326 if$
2327 }
2328 if$
2329 }
2330
2331 FUNCTION {format.number}
2332 {
2333 bbl.number
2334 output.state after.word = output.state after.punctuation = or
2335 #1 or
2336 #0 and
2337 'skip$
2338 { capitalize }
2339 if$
2340 number tie.or.space.prefix "number" bibinfo.check * *
2341 }
2342
2343 FUNCTION {format.number.series}
2344 { volume empty$
2345 { number empty$
2346 { series field.or.null }
2347 {
2348 series empty$
2349 {
2350 number "number" bibinfo.check
2351 }{
2352 format.number
2353 series "series" bibinfo.check
2354 word.space * swap$ *
2355 }
2356 if$
2357 }
2358 if$
2359 }
2360 { "" }
2361 if$
2362 }
2363
2364 FUNCTION {is.num}
2365 { chr.to.int$
2366 duplicate$ "0" chr.to.int$ < not
2367 swap$ "9" chr.to.int$ > not and
2368 }
2369
2370 FUNCTION {extract.num}
2371 { duplicate$ 't :=
2372 "" 's :=
2373 { t empty$ not }
2374 { t #1 #1 substring$
2375 t #2 global.max$ substring$ 't :=
2376 duplicate$ is.num
2377 { s swap$ * 's := }
2378 { pop$ "" 't := }
2379 if$
2380 }
2381 while$
2382 s empty$
2383 'skip$
2384 { pop$ s }
2385 if$
2386 }
2387
2388 FUNCTION {convert.edition}
2389 { extract.num "l" change.case$ 's :=
2390 s "first" = s "1" = or
2391 { bbl.first 't := }
2392 { s "second" = s "2" = or
2393 { bbl.second 't := }
2394 { s "third" = s "3" = or
2395 { bbl.third 't := }
2396 { s "fourth" = s "4" = or
2397 { bbl.fourth 't := }
2398 { s "fifth" = s "5" = or
2399 { bbl.fifth 't := }
2400 { s #1 #1 substring$ is.num
2401 { s
2402 eng.ord
2403 't := }
2404 { edition 't := }
2405 if$
2406 }
2407 if$
2408 }
2409 if$
2410 }
2411 if$
2412 }
2413 if$
2414 }
2415 if$
2416 t
2417 }
2418
2419 FUNCTION {format.edition}
2420 { edition duplicate$ empty$ 'skip$
2421 {
2422 convert.edition
2423 output.state after.word = output.state after.punctuation = or
2424 { "l" }
2425 { "t" }
2426 if$ change.case$
2427 "edition" bibinfo.check
2428 word.space * bbl.edition *
2429 }
2430 if$
2431 }
2432
2433 INTEGERS { multiresult }
2434 FUNCTION {multi.page.check}
2435 { 't :=
2436 #0 'multiresult :=
2437 { multiresult not
2438 t empty$ not
2439 and
2440 }
2441 { t #1 #1 substring$
2442 duplicate$ "-" =
2443 swap$ duplicate$ "," =
2444 swap$ "+" =
2445 or or
2446 { #1 'multiresult := }
2447 { t #2 global.max$ substring$ 't := }
2448 if$
2449 }
2450 while$
2451 multiresult
2452 }
2453
2454 FUNCTION {format.pages}
2455 { pages duplicate$ empty$
2456 'skip$
2457 { duplicate$ multi.page.check
2458 {
2459 bbl.pages swap$
2460 n.dashify
2461 }{
2462 bbl.page swap$
2463 }
2464 if$
2465 tie.or.space.prefix
2466 "pages" bibinfo.check
2467 * *
2468 }
2469 if$
2470 }
2471
2472 FUNCTION {first.page}
2473 { 't :=
2474 ""
2475 { t empty$ not t #1 #1 substring$ "-" = not and }
2476 { t #1 #1 substring$ *
2477 t #2 global.max$ substring$ 't :=
2478 }
2479 while$
2480 }
2481
2482 FUNCTION {format.book.pages}
2483 {
2484 pages duplicate$ empty$ 'skip$
2485 {
2486 "pages" bibinfo.check word.space bbl.pages * *
2487 }
2488 if$
2489 }
2490
2491 FUNCTION {volnum.punct}
2492 {
2493 ","
2494 word.space *
2495 }
2496
2497 FUNCTION {format.journal.pages}
2498 { pages duplicate$ empty$ 'pop$
2499 { swap$ duplicate$ empty$
2500 { pop$ pop$ format.pages }
2501 { volnum.punct *
2502 swap$
2503 control.pages duplicate$ #0 < {
2504 pop$ pop$
2505 }{
2506 #0 >
2507 {
2508 n.dashify
2509 }{
2510 first.page
2511 } if$
2512 } if$
2513 "pages" bibinfo.check
2514 *
2515 }
2516 if$
2517 }
2518 if$
2519 }
2520
2521 FUNCTION {format.journal.eid}
2522 { eid "eid" bibinfo.check
2523 duplicate$ empty$ 'pop$
2524 { swap$ duplicate$ empty$ 'skip$
2525 { volnum.punct * }
2526 if$
2527 swap$ *
2528 }
2529 if$
2530 }
2531
2532 FUNCTION {eid.or.pages}
2533 {
2534 eid empty$
2535 { format.journal.pages }
2536 { format.journal.eid }
2537 if$
2538 }
2539
2540 FUNCTION {format.ser.vol.num}
2541 {
2542 series "series" bibinfo.check output
2543 volume field.or.null
2544 duplicate$ empty$ 'skip$
2545 {
2546 "volume" bibinfo.check
2547 }
2548 if$
2549 bolden
2550 %<*apsrmp>
2551 number "number" bibinfo.check duplicate$ empty$ 'skip$
2552 {
2553 swap$ duplicate$ empty$
2554 { "there's a number but no volume in " cite$ * warning$ }
2555 'skip$
2556 if$
2557 swap$
2558 "~(" swap$ * ")" *
2559 }
2560 if$ *
2561 %</apsrmp>
2562 }
2563
2564 %<*apsrev>
2565 FUNCTION {format.vol.num}
2566 {
2567 volume field.or.null
2568 duplicate$ empty$ 'skip$
2569 {
2570 "volume" bibinfo.check
2571 }
2572 if$
2573 bolden
2574 }
2575
2576 %</apsrev>
2577 FUNCTION {format.chapter.pages}
2578 { chapter empty$
2579 {
2580 %<!apsrmp> format.pages
2581 %<apsrmp> ""
2582 }
2583 { type empty$
2584 {
2585 bbl.chapter
2586 capitalize
2587 }{
2588 type
2589 capitalize
2590 "type" bibinfo.check
2591 }
2592 if$
2593 chapter tie.or.space.prefix
2594 "chapter" bibinfo.check
2595 * *
2596 %<*!apsrmp>
2597 pages empty$
2598 'skip$
2599 { ", " * format.pages * }
2600 if$
2601 %</!apsrmp>
2602 }
2603 if$
2604 }
2605
2606 FUNCTION {format.booktitle}
2607 {
2608 booktitle duplicate$ "booktitle" bibinfo.check swap$
2609 duplicate$ empty$ 'pop$
2610 {
2611 punctuation.yes 'punctuation.state :=
2612 pop$ emphasize
2613 select.language
2614 }
2615 if$
2616 }
2617
2618 FUNCTION {format.editor.in}
2619 {
2620 editor "editor" format.names.ed duplicate$ empty$ 'skip$
2621 {
2622 bbl.edby
2623 word.space * swap$ *
2624 }
2625 if$
2626 }
2627
2628 FUNCTION {output.article.booktitle}
2629 {
2630 format.booktitle
2631 "booktitle" 'bibfield :=
2632 output
2633 bookaddress "address" bibinfo.check duplicate$ empty$ 'pop$
2634 {
2635 "address" 'bibfield :=
2636 output.nonnull after.punctuation 'output.state :=
2637 }
2638 if$
2639 }
2640
2641 FUNCTION {format.in.ed.booktitle}
2642 {
2643 format.booktitle duplicate$ empty$ 'pop$
2644 {
2645 add.doi
2646 word.in swap$ * output.nonnull
2647 bookaddress "address" bibinfo.check output
2648 format.number.series "series and number" bibinfo.check output
2649 format.bvolume output
2650 format.editor.in "editor" bibinfo.check output
2651 }
2652 if$
2653 }
2654
2655 FUNCTION {format.in.ed.booktitle.inbook}
2656 {
2657 format.booktitle duplicate$ empty$ 'pop$
2658 {
2659 add.doi
2660 word.in swap$ * output.nonnull
2661 bookaddress "address" bibinfo.check output
2662 format.number.series "series and number" bibinfo.check output
2663 format.bvolume output
2664 author empty$ 'skip$
2665 { format.editor.in "editor" bibinfo.check output }
2666 if$
2667 }
2668 if$
2669 }
2670
2671 FUNCTION {format.thesis.type}
2672 { type duplicate$ empty$
2673 'pop$
2674 { swap$ pop$
2675 "t" change.case$ "type" bibinfo.check
2676 }
2677 if$
2678 }
2679
2680 FUNCTION {format.tr.number}
2681 { number "number" bibinfo.check
2682 type duplicate$ empty$
2683 { pop$ bbl.techrep }
2684 'skip$
2685 if$
2686 "type" bibinfo.check
2687 swap$ duplicate$ empty$
2688 { pop$ "t" change.case$ }
2689 { tie.or.space.prefix * * }
2690 if$
2691 }
2692
2693 FUNCTION {format.article.crossref}
2694 {
2695 word.in
2696 " \cite{" * crossref * "}" *
2697 }
2698
2699 FUNCTION {format.book.crossref}
2700 { volume duplicate$ empty$
2701 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
2702 pop$ word.in
2703 }
2704 { bbl.volume
2705 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
2706 }
2707 if$
2708 " \cite{" * crossref * "}" *
2709 }
2710
2711 FUNCTION {format.incoll.inproc.crossref}
2712 {
2713 word.in
2714 " \cite{" * crossref * "}" *
2715 }
2716
2717 FUNCTION {format.org.or.pub}
2718 { 't :=
2719 ""
2720 address "address" bibinfo.check
2721 duplicate$ empty$
2722 { pop$ t }
2723 { t duplicate$ empty$
2724 { pop$ }
2725 {
2726 "," word.space *
2727 * swap$ *
2728 }
2729 if$
2730 }
2731 if$
2732 *
2733 %<*!apsrmp>
2734 year duplicate$ empty$
2735 {
2736 "empty year in " cite$ *
2737 warning$
2738 pop$ ""
2739 }
2740 'skip$
2741 if$
2742 duplicate$ empty$
2743 { pop$ }
2744 {
2745 "year" bibinfo.check
2746 swap$
2747 duplicate$ empty$
2748 { pop$ }
2749 {
2750 "," *
2751 word.space *
2752 swap$ *
2753 }
2754 if$
2755 }
2756 if$
2757 %</!apsrmp>
2758 duplicate$ empty$ 'skip$ {
2759 ""
2760 "(" * swap$ * ")" *
2761 after.punctuation 'output.state :=
2762 punctuation.space 'punctuation.state :=
2763 } if$
2764 }
2765
2766 FUNCTION {format.publisher.address}
2767 { publisher "publisher" bibinfo.warn format.org.or.pub
2768 }
2769
2770 FUNCTION {format.organization.address}
2771 { organization "organization" bibinfo.check format.org.or.pub
2772 }
2773
2774 FUNCTION {format.organization.publisher.address}
2775 {
2776 publisher empty$
2777 { format.organization.address }
2778 { organization "organization" bibinfo.check output
2779 format.publisher.address
2780 }
2781 if$
2782 }
2783
2784 FUNCTION {format.school.address.output}
2785 {
2786 school "school" bibinfo.warn
2787 address "address" bibinfo.check
2788 duplicate$ empty$ 'skip$
2789 {
2790 swap$
2791 duplicate$ empty$ 'skip$
2792 {
2793 ", " *
2794 }
2795 if$
2796 swap$
2797 }
2798 if$
2799 *
2800 %<apsrmp> duplicate$ empty$ 'skip$ { "(" swap$ * ")" * } if$ after.punctuation 'output.state :=
2801 output
2802 }
2803
2804 FUNCTION {article.title.produce}
2805 {
2806 control.title duplicate$ #0 <
2807 { pop$
2808 }{
2809 format.title
2810 "title" 'bibfield :=
2811 swap$ #0 >
2812 {
2813 "title" output.check
2814 }{
2815 output
2816 } if$
2817 new.block.comma
2818 } if$
2819 }
2820
2821 FUNCTION {control}
2822 {
2823 }
2824
2825 FUNCTION {article}
2826 { output.bibitem
2827 format.authors
2828 booktitle empty$ {
2829 "author" output.check
2830 }{ output } if$
2831 author format.key output
2832 %<!apsrmp> new.block.comma
2833 %<apsrmp> format.date.output.check date.block
2834 article.title.produce
2835 output.article.booktitle
2836 crossref missing$
2837 %<apsrev>%% Handle special case of SISSA journals which require an issue number for unique citations and use volume/year interchangably
2838 {
2839 %<*!apsrev>
2840 link.open
2841 journal
2842 "journal" bibinfo.warn
2843 "journal" 'bibfield :=
2844 output
2845 add.blank
2846 format.ser.vol.num
2847 output
2848 eid.or.pages
2849 %<!apsrmp> format.date.output.check
2850 pages empty$ {
2851 doi output
2852 } 'skip$ if$
2853 link.shut
2854 %</!apsrev>
2855 %<*apsrev>
2856 journal "J. High Energy Phys." =
2857 journal "J. High Energ. Phys." = or
2858 journal "JHEP" = or
2859 journal "Journal of Cosmology and Astroparticle Physics" = or
2860 journal "J. Cosmol. Astropart. Phys." = or
2861 journal "JCAP" = or
2862 journal "Journal of Instrumentation" = or
2863 journal "J. Instrum." = or
2864 journal "JINST" = or
2865 journal "Journal of Statistical Mechanics" = or
2866 journal "J. of Stat. Mech." = or
2867 journal "J. Stat. Mech.: Theory Exp." = or
2868 journal "JSTAT" = or
2869 {
2870 link.open
2871 journal
2872 "journal" bibinfo.warn
2873 "journal" 'bibfield :=
2874 output
2875 add.blank
2876 format.vol.num output
2877 number parenthesize
2878 "number" bibinfo.warn
2879 "number" 'bibfield :=
2880 output
2881 eid.or.pages
2882 link.shut
2883 }
2884 {
2885 eid missing$
2886 pages missing$ and
2887 doi missing$ not and
2888 {
2889 journal
2890 "journal" bibinfo.warn
2891 "journal" 'bibfield :=
2892 output
2893 add.blank
2894 format.ser.vol.num
2895 output
2896 link.open
2897 doi output
2898 link.shut
2899 format.date.output.check
2900 }
2901 {
2902 link.open
2903 journal
2904 "journal" bibinfo.warn
2905 "journal" 'bibfield :=
2906 output
2907 add.blank
2908 format.ser.vol.num
2909 output
2910 eid.or.pages
2911 format.date.output.check
2912 link.shut
2913 } if$
2914 } if$
2915 %</apsrev>
2916 }{
2917 format.article.crossref output.nonnull
2918 %<!apsrmp> format.pages output
2919 %<apsrmp> eid.or.pages
2920 }
2921 if$
2922 %<!apsrev&!apsrmp> format.issn.output
2923 new.block.comma
2924 new.sentence.comma
2925 format.note output
2926 format.eprint.controlled output
2927 format.translation output
2928 fin.entry
2929 }
2930
2931 FUNCTION {book}
2932 { output.bibitem
2933 author empty$
2934 {
2935 format.editors "author and editor" output.check
2936 editor format.key output
2937 }{
2938 format.authors output.nonnull
2939 %% crossref missing$ { editor.check.book } 'skip$ if$
2940 }
2941 if$
2942 %<!apsrmp> new.block.comma
2943 %<apsrmp> format.date.output.check date.block
2944 link.open
2945 format.btitle
2946 "title" output.check
2947 link.shut
2948 format.edition output
2949 author empty$
2950 {
2951 }
2952 {
2953 format.editor.in output
2954 editor format.key output
2955 }
2956 if$
2957 format.number.series output
2958 crossref missing$
2959 {
2960 format.bvolume output
2961 new.block.comma
2962 format.publisher.address output
2963 }{
2964 new.block.comma
2965 format.book.crossref output.nonnull
2966 %<!apsrmp> format.date.output.check
2967 }
2968 if$
2969 format.isbn.output
2970 format.chapter.pages
2971 output
2972 new.block.comma
2973 new.sentence.comma
2974 format.note output
2975 format.eprint output
2976 fin.entry
2977 }
2978
2979 FUNCTION {booklet}
2980 { output.bibitem
2981 format.authors output
2982 author format.key output
2983 %<!apsrmp> new.block.comma
2984 %<apsrmp> format.date.output date.block
2985 link.open
2986 format.title
2987 "title" output.check
2988 link.shut
2989 new.block.comma
2990 howpublished "howpublished" bibinfo.check output
2991 address "address" bibinfo.check output
2992 %<!apsrmp> format.date.output
2993 format.isbn.output
2994 format.book.pages output
2995 new.block.comma
2996 new.sentence.comma
2997 format.note output
2998 format.eprint output
2999 fin.entry
3000 }
3001
3002 FUNCTION {footnote}
3003 { output.bibitem
3004 format.note output
3005 fin.entry
3006 }
3007
3008 FUNCTION {inbook}
3009 { output.bibitem
3010 author empty$
3011 {
3012 format.editors "editor" output.check
3013 editor format.key output
3014 }{
3015 format.authors output.nonnull
3016 author format.key output
3017 }
3018 if$
3019 %<!apsrmp> new.block.comma
3020 %<apsrmp> format.date.output.check date.block
3021
3022 format.title output
3023 new.block.comma
3024
3025 crossref missing$
3026 {
3027 format.in.ed.booktitle.inbook
3028 %<!apsrmp> format.publisher.address output
3029 format.chapter.pages
3030 %<!apsrmp> "chapter and pages"
3031 %<apsrmp> "chapter"
3032 output.check
3033 new.block.comma
3034 format.edition output
3035 new.block.comma
3036 %<apsrmp> format.publisher.address output
3037 }{
3038 format.chapter.pages
3039 %<!apsrmp> "chapter and pages"
3040 %<apsrmp> "chapter"
3041 output.check
3042 new.block.comma
3043 format.book.crossref output.nonnull
3044 %<!apsrmp> format.date.output.check
3045 }
3046 if$
3047 crossref missing$
3048 { format.isbn.output }
3049 'skip$
3050 if$
3051 %<apsrmp> format.pages "pages" output.check
3052 new.block.comma
3053 new.sentence.comma
3054 format.note output
3055 format.eprint output
3056 fin.entry
3057 }
3058
3059 FUNCTION {incollection}
3060 { output.bibitem
3061 format.authors "author" output.check
3062 author format.key output
3063 %<!apsrmp> new.block.comma
3064 %<apsrmp> format.date.output.check date.block
3065 article.title.produce
3066 crossref missing$
3067 {
3068 format.in.ed.booktitle
3069 %<!apsrmp> format.publisher.address output
3070 format.edition output
3071 format.chapter.pages output
3072 %<apsrmp> format.publisher.address output
3073 format.isbn.output
3074 }{
3075 format.incoll.inproc.crossref output.nonnull
3076 format.chapter.pages output
3077 }
3078 if$
3079 %<apsrmp> format.pages "pages" output.check
3080 new.block.comma
3081 new.sentence.comma
3082 format.note output
3083 format.eprint output
3084 fin.entry
3085 }
3086
3087 FUNCTION {inproceedings}
3088 { output.bibitem
3089 format.authors "author" output.check
3090 author format.key output
3091 %<!apsrmp> new.block.comma
3092 %<apsrmp> format.date.output.check date.block
3093 article.title.produce
3094 crossref missing$
3095 {
3096 format.in.ed.booktitle
3097 format.organization.publisher.address output
3098 %<!apsrmp> format.chapter.pages output
3099 format.isbn.output
3100 format.issn.output
3101 }{
3102 format.incoll.inproc.crossref output.nonnull
3103 %<!apsrmp> format.chapter.pages output
3104 }
3105 if$
3106 %<apsrmp> format.chapter.pages "chapter and pages" output.check
3107 %<apsrmp> format.pages "pages" output.check
3108 new.block.comma
3109 new.sentence.comma
3110 format.note output
3111 format.eprint output
3112 fin.entry
3113 }
3114
3115 FUNCTION {conference} { inproceedings }
3116 FUNCTION {manual}
3117 { output.bibitem
3118 format.authors output
3119 author format.key output
3120 %<!apsrmp> new.block.comma
3121 %<apsrmp> format.date.output date.block
3122 link.open
3123 format.btitle
3124 "title" output.check
3125 link.shut
3126 organization "organization" bibinfo.check output
3127 address "address" bibinfo.check output
3128 format.edition output
3129 %<!apsrmp> format.date.output
3130 new.block.comma
3131 new.sentence.comma
3132 format.note output
3133 format.eprint output
3134 fin.entry
3135 }
3136
3137 FUNCTION {mastersthesis}
3138 { output.bibitem
3139 format.authors "author" output.check
3140 author format.key output
3141 %<!apsrmp> new.block.comma
3142 %<apsrmp> format.date.output.check date.block
3143 format.btitle
3144 output
3145 new.block.comma
3146 link.open
3147 bbl.mthesis
3148 format.thesis.type
3149 output.nonnull
3150 link.shut
3151 format.school.address.output
3152 %<!apsrmp> format.date.output.check
3153 new.block.comma
3154 new.sentence.comma
3155 format.note output
3156 format.eprint output
3157 fin.entry
3158 }
3159
3160 FUNCTION {misc}
3161 { output.bibitem
3162 format.authors output
3163 author format.key output
3164 %<apsrmp> format.date.output
3165 %<!apsrmp> new.block.comma
3166 %<apsrmp> date.block
3167 link.open
3168 format.title
3169 output
3170 link.shut
3171 new.block.comma
3172 howpublished "howpublished" bibinfo.check output
3173 %<!apsrmp> format.date.output
3174 new.block.comma
3175 new.sentence.comma
3176 format.note output
3177 format.eprint output
3178 fin.entry
3179 }
3180
3181 FUNCTION {phdthesis}
3182 { output.bibitem
3183 format.authors "author" output.check
3184 author format.key output
3185 %<!apsrmp> new.block.comma
3186 %<apsrmp> format.date.output.check date.block
3187 format.btitle
3188 output
3189 new.block.comma
3190 link.open
3191 bbl.phdthesis
3192 format.thesis.type
3193 output.nonnull
3194 link.shut
3195 format.school.address.output
3196 %<!apsrmp> format.date.output.check
3197 new.block.comma
3198 new.sentence.comma
3199 format.note output
3200 format.eprint output
3201 fin.entry
3202 }
3203
3204 FUNCTION {presentation}
3205 { output.bibitem
3206 format.authors output
3207 author format.key output
3208 new.block.comma
3209 link.open
3210 format.title
3211 output
3212 link.shut
3213 new.block.comma
3214 format.organization.address "organization and address" output.check
3215 month "month" output.check
3216 year "year" output.check
3217 new.block.comma
3218 new.sentence.comma
3219 format.note output
3220 new.sentence
3221 type missing$ 'skip$
3222 {"(" type capitalize * ")" * output}
3223 if$
3224 fin.entry
3225 }
3226
3227 FUNCTION {proceedings}
3228 { output.bibitem
3229 format.editors output
3230 editor format.key output
3231 %<!apsrmp> new.block.comma
3232 %<apsrmp> format.date.output.check date.block
3233 link.open
3234 format.btitle
3235 "title" output.check
3236 link.shut
3237 bookaddress "address" bibinfo.check output
3238 format.number.series output
3239 format.bvolume output
3240 format.organization.publisher.address output
3241 format.isbn.output
3242 format.issn.output
3243 new.block.comma
3244 new.sentence.comma
3245 format.note output
3246 format.eprint output
3247 fin.entry
3248 }
3249
3250 FUNCTION {techreport}
3251 { output.bibitem
3252 format.authors "author" output.check
3253 author format.key output
3254 %<!apsrmp> new.block.comma
3255 %<apsrmp> format.date.output.check date.block
3256 link.open
3257 %<!apsrev&!apsrmp> format.title
3258 %<apsrev|apsrmp> format.btitle
3259 "title" output.check
3260 link.shut
3261 new.block.comma
3262 format.tr.number
3263 output.nonnull
3264 institution "institution" bibinfo.warn
3265 format.org.or.pub output
3266 new.block.comma
3267 new.sentence.comma
3268 format.note output
3269 format.eprint output
3270 fin.entry
3271 }
3272
3273 FUNCTION {unpublished}
3274 { output.bibitem
3275 format.authors "author" output.check
3276 author format.key output
3277 %<*!apsrev>
3278 %<!apsrmp> new.block.comma
3279 %<apsrmp> format.date.output date.block
3280 link.open
3281 format.title
3282 "title" output.check
3283 link.shut
3284 %</!apsrev>
3285 %<*apsrev>
3286 article.title.produce
3287 format.eprint output
3288 %</apsrev>
3289 %<!apsrmp> format.date.output
3290 new.block.comma
3291 new.sentence.comma
3292 format.note "note" output.check
3293 %<!apsrev> format.eprint output
3294 fin.entry
3295 }
3296
3297 FUNCTION {dataset}
3298 {
3299 output.bibitem
3300 format.authors "author" output.check
3301 author format.key output
3302 %<apsrmp> format.date.output date.block
3303 article.title.produce
3304 doi missing$
3305 url missing$ not and
3306 {
3307 link.open
3308 url "url" output.check
3309 link.shut
3310 }
3311 {
3312 link.open
3313 doi "doi" output.check
3314 link.shut
3315 } if$
3316 %<!apsrmp> format.date.output
3317 format.note output
3318 fin.entry
3319 }
3320
3321 FUNCTION {default.type} { misc }
3322
3323 READ
3324
3325 EXECUTE {control.init}
3326
3327 ITERATE {control.pass}
3328
3329 EXECUTE {control.check}
3330
3331 FUNCTION {sortify}
3332 { purify$
3333 "l" change.case$
3334 }
3335
3336 INTEGERS { len }
3337
3338 FUNCTION {chop.word}
3339 { 's :=
3340 'len :=
3341 s #1 len substring$ =
3342 { s len #1 + global.max$ substring$ }
3343 's
3344 if$
3345 }
3346
3347 FUNCTION {cite.name.font.apply}
3348 {
3349 word.space * bbl.etal
3350 emphasize
3351 *
3352 }
3353
3354 %<*!apsrev&!apsrmp>
3355 FUNCTION {format.lab.names}
3356 { 's :=
3357 "" 't :=
3358 #1 'nameptr :=
3359 s num.names$ 'numnames :=
3360 numnames 'namesleft :=
3361 { namesleft #0 > }
3362 {
3363 format.name.apply
3364 't :=
3365 nameptr #1 >
3366 {
3367 nameptr
3368 #2
3369 =
3370 numnames
3371 #3
3372 > and
3373 {
3374 "others" 't :=
3375 #1 'namesleft :=
3376 }
3377 'skip$
3378 if$
3379 namesleft #1 >
3380 { ", " * t * }
3381 {
3382 s nameptr "{ll}" format.name$ duplicate$ "others" =
3383 { 't := }
3384 { pop$ }
3385 if$
3386 t "others" =
3387 {
3388 cite.name.font.apply
3389 }{
3390 numnames #2 > { "," * } 'skip$ if$
3391 bbl.and
3392 space.word * t *
3393 }
3394 if$
3395 }
3396 if$
3397 }
3398 't
3399 if$
3400 nameptr #1 + 'nameptr :=
3401 namesleft #1 - 'namesleft :=
3402 }
3403 while$
3404 }
3405
3406 %</!apsrev&!apsrmp>
3407 %<*apsrev|apsrmp>
3408 FUNCTION {format.lab.names}
3409 { 's :=
3410 "" 't :=
3411 #1 'nameptr :=
3412 format.name.apply
3413 s num.names$ duplicate$
3414 #2 >
3415 { pop$
3416 cite.name.font.apply
3417 }{
3418 #2 <
3419 'skip$
3420 {
3421 s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
3422 {
3423 cite.name.font.apply
3424 }{
3425 bbl.and space.word *
3426 s #2 "{vv~}{ll}" format.name$
3427 cite.name.font
3428 *
3429 }
3430 if$
3431 }
3432 if$
3433 }
3434 if$
3435 }
3436
3437 %</apsrev|apsrmp>
3438 FUNCTION {author.key.label}
3439 { author empty$
3440 { key empty$
3441 { cite$ #1 #3 substring$ }
3442 'key
3443 if$
3444 }
3445 { author format.lab.names }
3446 if$
3447 }
3448
3449 FUNCTION {author.editor.key.label}
3450 { author empty$
3451 { editor empty$
3452 { key empty$
3453 { cite$ #1 #3 substring$ }
3454 'key
3455 if$
3456 }
3457 { editor format.lab.names }
3458 if$
3459 }
3460 { author format.lab.names }
3461 if$
3462 }
3463
3464 FUNCTION {editor.key.label}
3465 { editor empty$
3466 { key empty$
3467 { cite$ #1 #3 substring$ }
3468 'key
3469 if$
3470 }
3471 { editor format.lab.names }
3472 if$
3473 }
3474
3475 FUNCTION {calc.short.authors}
3476 { type$ "book" =
3477 type$ "inbook" =
3478 or
3479 'author.editor.key.label
3480 { type$ "proceedings" =
3481 'editor.key.label
3482 'author.key.label
3483 if$
3484 }
3485 if$
3486 'short.list :=
3487 }
3488
3489 FUNCTION {calc.label}
3490 {
3491 calc.short.authors
3492 short.list
3493 year duplicate$ empty$
3494 %<apsrev|apsrmp> short.list key field.or.null = or
3495 {
3496 pop$ ""
3497 %<apsrmp> "????" *
3498 }{
3499 control.year #0 > { purify$ #-1 #4 substring$ } 'skip$ if$
3500 }
3501 if$
3502 "(" swap$ *
3503 * 'label :=
3504 }
3505
3506 FUNCTION {sort.format.names}
3507 { 's :=
3508 #1 'nameptr :=
3509 ""
3510 s num.names$ 'numnames :=
3511 numnames 'namesleft :=
3512 { namesleft #0 > }
3513 { s nameptr
3514 "{ll{ }}"
3515 control.author.initials {
3516 "{ f{ }}" *
3517 }{
3518 "{ ff{ }}" *
3519 } if$
3520 "{ jj{ }}" *
3521 format.name$ 't :=
3522 nameptr #1 >
3523 {
3524 " " *
3525 namesleft #1 = t "others" = and
3526 { "zzzzz" * }
3527 {
3528 t sortify *
3529 }
3530 if$
3531 }
3532 { t sortify * }
3533 if$
3534 nameptr #1 + 'nameptr :=
3535 namesleft #1 - 'namesleft :=
3536 }
3537 while$
3538 }
3539
3540 FUNCTION {sort.format.title}
3541 { 't :=
3542 "A " #2
3543 "An " #3
3544 "The " #4 t chop.word
3545 chop.word
3546 chop.word
3547 sortify
3548 #1 global.max$ substring$
3549 }
3550
3551 FUNCTION {author.sort}
3552 { author empty$
3553 { key empty$
3554 { "to sort, need author or key in " cite$ * warning$
3555 ""
3556 }
3557 { key sortify }
3558 if$
3559 }
3560 { author sort.format.names }
3561 if$
3562 }
3563
3564 FUNCTION {author.editor.sort}
3565 { author empty$
3566 { editor empty$
3567 { key empty$
3568 { "to sort, need author, editor, or key in " cite$ * warning$
3569 ""
3570 }
3571 { key sortify }
3572 if$
3573 }
3574 { editor sort.format.names }
3575 if$
3576 }
3577 { author sort.format.names }
3578 if$
3579 }
3580
3581 FUNCTION {year.sort.key}
3582 {
3583 year
3584 }
3585
3586 FUNCTION {editor.sort}
3587 { editor empty$
3588 { key empty$
3589 { "to sort, need editor or key in " cite$ * warning$
3590 ""
3591 }
3592 { key sortify }
3593 if$
3594 }
3595 { editor sort.format.names }
3596 if$
3597 }
3598
3599 INTEGERS { seq.num }
3600
3601 FUNCTION {init.seq}
3602 { #0 'seq.num :=}
3603
3604 EXECUTE {init.seq}
3605
3606 FUNCTION {int.to.fix}
3607 { "000000000" swap$ int.to.str$ *
3608 #-1 #10 substring$
3609 }
3610
3611 FUNCTION {label.presort}
3612 {
3613 calc.label
3614 label sortify
3615 " "
3616 *
3617 %<*!aipauth&!apsrmp>
3618 seq.num #1 + 'seq.num :=
3619 seq.num int.to.fix
3620 %</!aipauth&!apsrmp>
3621 %<*aipauth|apsrmp>
3622 type$ "book" =
3623 type$ "inbook" =
3624 or
3625 'author.editor.sort
3626 { type$ "proceedings" =
3627 'editor.sort
3628 'author.sort
3629 if$
3630 }
3631 if$
3632 #1 entry.max$ substring$
3633 %</aipauth|apsrmp>
3634 'sort.label :=
3635 sort.label
3636 *
3637 " "
3638 *
3639 title field.or.null sort.format.title
3640 *
3641 #1 entry.max$ substring$
3642 'sort.key$ :=
3643 }
3644
3645 FUNCTION {presort.pass}
3646 { type$ "control" = 'control.presort 'label.presort if$
3647 }
3648
3649 ITERATE {presort.pass}
3650
3651 SORT
3652
3653 STRINGS { last.label next.extra }
3654
3655 INTEGERS { last.extra.num number.label }
3656
3657 FUNCTION {initialize.extra.label.stuff}
3658 { #0 int.to.chr$ 'last.label :=
3659 "" 'next.extra :=
3660 #0 'last.extra.num :=
3661 #0 'number.label :=
3662 }
3663
3664 FUNCTION {label.forward}
3665 {
3666 last.label label =
3667 { last.extra.num #1 + 'last.extra.num :=
3668 last.extra.num int.to.chr$ 'extra.label :=
3669 }
3670 { "a" chr.to.int$ 'last.extra.num :=
3671 "" 'extra.label :=
3672 label 'last.label :=
3673 }
3674 if$
3675 number.label #1 + 'number.label :=
3676 }
3677
3678 FUNCTION {label.reverse}
3679 { next.extra "b" =
3680 { "a" 'extra.label := }
3681 'skip$
3682 if$
3683 extra.label 'next.extra :=
3684 extra.label
3685 duplicate$ empty$
3686 'skip$
3687 { "{\natexlab{" swap$ * "}}" * }
3688 if$
3689 'extra.label :=
3690 label extra.label * 'label :=
3691 }
3692
3693 EXECUTE {initialize.extra.label.stuff}
3694
3695 FUNCTION {forward.pass}
3696 { type$ "control" = 'control.forward 'label.forward if$
3697 }
3698
3699 ITERATE {forward.pass}
3700
3701 FUNCTION {reverse.pass}
3702 { type$ "control" = 'control.reverse 'label.reverse if$
3703 }
3704
3705 REVERSE {reverse.pass}
3706
3707 FUNCTION {sortkey.sort}
3708 { sort.label
3709 " "
3710 *
3711 year.sort.key
3712 field.or.null sortify
3713 *
3714 " "
3715 *
3716 title field.or.null sort.format.title
3717 *
3718 #1 entry.max$ substring$
3719 'sort.key$ :=
3720 }
3721
3722 FUNCTION {bib.sort.pass}
3723 { type$ "control" = 'control.sort 'sortkey.sort if$
3724 }
3725
3726 ITERATE {bib.sort.pass}
3727
3728 SORT
3729
3730 FUNCTION {init.bib.eprint}
3731 {
3732 "\texttt {"
3733 pop$
3734 "\providecommand \url [0]{\begingroup\@sanitize@url \@url }%" write$ newline$
3735 "\providecommand \@url [1]{\endgroup\@href {#1}{" "}}%" bbl.url.prefix swap$ * * write$ newline$
3736 "\providecommand " " [0]{URL }%" bbl.url.prefix swap$ * * write$ newline$
3737 eprint.command "\providecommand " swap$ * "[0]{\href }%" * write$ newline$
3738 }
3739
3740 FUNCTION {init.bib.doi}
3741 {
3742 "\providecommand \doibase [0]{" doi.base "}%" * * write$ newline$
3743 }
3744
3745 FUNCTION {init.bib.hypertex}
3746 {
3747 "\providecommand " noop.command "[0]{\@secondoftwo}%" * * write$ newline$
3748 "\providecommand " href.command "[0]{\begingroup \@sanitize@url \@href}%" * * write$ newline$
3749 "\providecommand \@href[1]{\@@startlink{#1}\@@href}%" write$ newline$
3750 "\providecommand \@@href[1]{\endgroup#1\@@endlink}%" write$ newline$
3751 "\providecommand \@sanitize@url [0]{\catcode `\\12\catcode `\$12\catcode `\&12\catcode `\#12\catcode `\^12\catcode `\_12\catcode `\%12\relax}%" write$ newline$
3752 "\providecommand \@@startlink[1]{}%" write$ newline$
3753 "\providecommand \@@endlink[0]{}%" write$ newline$
3754 }
3755
3756 FUNCTION {init.bib.namefont}
3757 {
3758 "\providecommand \bibnamefont [1]{#1}%" write$ newline$
3759 "\providecommand \bibfnamefont [1]{#1}%" write$ newline$
3760 "\providecommand \citenamefont [1]{#1}%" write$ newline$
3761 }
3762
3763 FUNCTION {init.bib.quote}
3764 {
3765 "\providecommand " bbl.enquote * " [1]{" *
3766 "``" "''"
3767 "#1" swap$ "}%" * * * * write$ newline$
3768 }
3769
3770 FUNCTION {init.bib.ay}
3771 {
3772 "\providecommand \natexlab [1]{#1}%"
3773 write$ newline$
3774 }
3775
3776 FUNCTION {init.bib.bibinfo}
3777 {
3778 bibinfo.command "\providecommand " swap$ * " [0]{\@secondoftwo}%" * write$ newline$
3779 bibfield.command "\providecommand " swap$ * " [0]{\@secondoftwo}%" * write$ newline$
3780 }
3781
3782 FUNCTION {init.bib.lang}
3783 {
3784 "\providecommand \selectlanguage [0]{\@gobble}%" write$ newline$
3785 }
3786
3787 FUNCTION {init.bib.endbibitem}
3788 {
3789 "\providecommand " bbl.open * "[0]{}%" * write$ newline$
3790 "\providecommand \bibitemStop [0]{}%" write$ newline$
3791 "\providecommand \bibitemNoStop [0]{.\EOS\space}%" write$ newline$
3792 "\providecommand \EOS [0]{\spacefactor3000\relax}%" write$ newline$
3793 }
3794
3795 FUNCTION {init.bib.translation}
3796 {
3797 "\providecommand \translation [1]{[#1]}%" write$ newline$
3798 }
3799
3800 FUNCTION {warn.bib}
3801 {
3802 }
3803
3804 FUNCTION {init.bib}
3805 {
3806 warn.bib
3807 "\makeatletter" write$ newline$
3808 "\providecommand \@ifxundefined [1]{%" write$ newline$
3809 " \@ifx{#1\undefined}" write$ newline$
3810 "}%" write$ newline$
3811 "\providecommand \@ifnum [1]{%" write$ newline$
3812 " \ifnum #1\expandafter \@firstoftwo" write$ newline$
3813 " \else \expandafter \@secondoftwo" write$ newline$
3814 " \fi" write$ newline$
3815 "}%" write$ newline$
3816 "\providecommand \@ifx [1]{%" write$ newline$
3817 " \ifx #1\expandafter \@firstoftwo" write$ newline$
3818 " \else \expandafter \@secondoftwo" write$ newline$
3819 " \fi" write$ newline$
3820 "}%" write$ newline$
3821 init.bib.ay
3822 init.bib.quote
3823 init.bib.namefont
3824 init.bib.hypertex
3825 init.bib.eprint
3826 init.bib.doi
3827 init.bib.lang
3828 init.bib.bibinfo
3829 init.bib.translation
3830 init.bib.endbibitem
3831 "\providecommand " bbl.shut * " [1]{\csname bibitem#1\endcsname}%" * write$ newline$
3832 "\let\auto@bib@innerbib\@empty" write$ newline$
3833 "%</preamble>" write$
3834 }
3835
3836 FUNCTION {begin.bib}
3837 {
3838 id.bst diagn.cmntlog
3839 control.bib
3840 preamble$ empty$
3841 'skip$
3842 { preamble$ write$ newline$ }
3843 if$
3844 "\begin{thebibliography}{"
3845 number.label int.to.str$
3846 * "}%" *
3847 write$ newline$
3848 init.bib
3849 }
3850
3851 EXECUTE {begin.bib}
3852
3853 EXECUTE {init.state.consts}
3854
3855 ITERATE {call.type$}
3856
3857 FUNCTION {end.bib}
3858 { newline$
3859 "\end{thebibliography}%"
3860 write$ newline$
3861 }
3862
3863 EXECUTE {end.bib}
3864
3865 % \end{macrocode}
3866 %
3867 % \begin{macrocode}
3868 %</aapmrev|aipauth|aipnum|apsrev|apsrmp>
3869 % \end{macrocode}
3870 %
3871 % \endinput
3872 %
3873 % \Finale