Debian Codegraph @

texmf-dist/bibtex/bst/revtex/aapmrev4-2.bst

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