Debian Codegraph @

texmf-dist/bibtex/bst/aastex/aasjournalv7.bst

raw
1 %% aasjournalv7.bst March 4, 2025
2 %%
3 %% Revision 1.19: Aptara
4 %% Modified to include first initials for inline citations.
5 %% Full titles can be called via that "longbib" style option in
6 %% aastex7.cls. This version should only be used with v7+.
7 %%
8 %% AASJournal.bst June 3, 2019
9 %%
10 %% Revision 1.18 2019/6/3 Amy Hendrickson
11 %% Took out `v' preceding version number in @misc
12 %%
13 %% Rewrote format.pid to implement this precedence:
14 %% if doi, print that, if eprint print that, if neither
15 %% and there is a url, use the url
16
17 %% Took out format.url output generally because it is included in format.pid,
18 %% so undesirable to call for it a second time.
19
20 %%
21 %% Revision 1.17 2019/3/15 Amy Hendrickson
22 %% Added DOI to every field where format.url was found. Kept format.url in case
23 %% it is needed.
24 %%
25
26 %% Revision 1.16 2017/10/26 Amy Hendrickson
27 %% `url' only active when used in misc
28 %%
29 %% `note' is disabled in all cases; as is adsnote and adsurl.
30 %%
31 %% Repair to @misc call to aaspublisher to prevent `, ,'
32 %% when there is no publisher listed.
33 %%
34 %% Make correct hyperlinked content for doi, ascl, and arXiv;
35 %% changed definition of FUNCTION {format.eprint} to compare
36 %% archivePrefix with "arXiv" and when they match do
37 %% ' {new.block "\doarXiv{" eprint * "}" * }
38 %% otherwise do
39 %% ' {new.block "\doeprint{" eprint * "}" * }
40 %%
41 %% \dodoi, \doarXiv and \doeprint definitions are sent to the top of the .bbl file
42 %% with commands found in FUNCTION {begin.bib}.
43 %%
44 %% bbl.version no longer used, could be deleted.
45 %%
46 %% Version number is added when author enters: version = {number}, only in `misc'
47 %%
48 %% Removed `format.doi output' in {article} because in
49 %% combination with { format.pid output } we could get double doi entries
50 %% in the bibliography.
51 %%
52 %% Rewrote format.pid so that we can check to see if we have a doi number; in
53 %% which case we use that and suppress the arXiv and eprint combination. However,
54 %% we do Not eliminate the url field if the author has entered it.
55 %%
56 %% Deleted format.miscversion and made a simplified way to produce version in @misc
57 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58 %% Revision 1.16 2024/02/01 Technology Team (Aptara)
59 %% 1. Added first initial in text citation with author name i.e Donati,~J. {et~al.}(2020) instead of Donati,~J.-F. {et~al.}(2020)
60 %% 2. Added Article title field in article type refernces.
61
62 %% Revision 1.15 2016/10/5 Amy Hendrickson
63 %% Changed bbl.version so that there is no longer a trailing `.'
64
65 %% Revision 1.14 2016/9/14 Amy Hendrickson
66 %% Added URL field
67
68 %% Revision 1.13 2016/8/9 Amy Hendrickson
69 %% Change to presort and bibsort to get multiple entries with same author/year
70 %% combination to be ordered in bibliography in same order as \cite{}s entered in text.
71
72 %% Revision 1.12 2016/2/11 Amy Hendrickson
73 %% Changes to @misc function to specifications by Dr. August Muench.
74 %% Made comma appear between title and publisher whether or not there is a version number.
75
76 %% Revision 1.11 2015/12/31 Amy Hendrickson
77 %% Changes to @misc function to specifications by Dr. August Muench.
78 %% Added version and publisher fields.
79
80 %% Revision 1.10 2013/03/11 13:01:55 alberto
81 %% Reworked code to use format.pid for articles without proper
82 %% pagination which then leads the system to use either an eprint
83 %% id or a DOI; this will solve most problems with citing early
84 %% access articles (no volume of page available, but online).
85 %% Removed bibliography count from preamble since it seems to
86 %% confuse some versions of latex.
87 %%
88 %% Revision 1.9 2013/2/19 Erik Tollerud <[email protected]>
89 %% fixes for spurious error messages due to rev 1.8 changes
90 %% also fixed missing publisher field printing in "book"
91 %%
92 %% Revision 1.8 2013/01/10 16:31:34 alberto
93 %% Added proper formatting of arXiv eprint entries output by ADS
94 %% (these are article records, but the eprint id is printed only
95 %% if no traditional page number is available). Also added support
96 %% for ASCL entries under the "misc" category.
97 %%
98 %% Revision 1.7 2011/11/21 13:10:12 alberto
99 %% Implemented new ApJ formatting rules: for papers with more than
100 %% 5 authors, print first 3 followed by "et al."
101 %%
102 %% Revision 1.6 2009/05/18 15:13:02 alberto
103 %% Fixed sorting of references with truncated lists of authors
104 %% in sort.format.names
105 %% Fix courtesy of Stephen Fegan <[email protected]>
106 %%
107 %% Revision 1.5 2009/03/19 13:15:11 alberto
108 %% Truncate \bibitem entries with more than 8 authors.
109 %% Fix courtesy of Craig Wiegert <[email protected]>
110 %% and Andrew R. Marble <[email protected]>
111 %%
112 %% Revision 1.4 2002/06/18 16:37:48 alberto
113 %% Add comma after first author in two-author reference
114 %% Fix courtesy of Tim Robishaw <[email protected]>
115 %%
116 %% Revision 1.3 2000/04/20 22:17:50 jbaker
117 %% Fixed INBOOK bug, now works essentially like BOOK.
118 %%
119 %% Revision 1.2 1998/08/30 22:35:45 jbaker
120 %% Added RCS keywords.
121 %%
122 %% 1998/08/12 J Baker
123 %% Tweaked by hand to get correct results for ApJ. Added functions from
124 %% astrobib.
125
126
127 %%
128 %% This originally was file `apj.bst',
129 %% generated with the docstrip utility.
130 %%
131 %% The original source files were:
132 %%
133 %% merlin.mbs (with options: `,ay,nat,nm-rev,nmdash,dt-beg,yr-per,note-yr,atit-u,jtit-x,jttl-rm,thtit-a,vnum-x,volp-com,jpg-1,pp-last,btit-rm,add-pub,pub-par,pre-edn,edby,edbyx,blk-com,fin-bare,ppx,ed,abr,ord,jabr,amper,em-x')
134 %% ----------------------------------------
135 %% *** Bibliographic Style for ApJ ***
136 %%
137 %-------------------------------------------------------------------
138 % The original source file contains the following version information:
139 % \ProvidesFile{merlin.mbs}[1998/02/25 3.85a (PWD)]
140 %
141 % NOTICE:
142 % This file may be used for non-profit purposes.
143 % It may not be distributed in exchange for money,
144 % other than distribution costs.
145 %
146 % The author provides it `as is' and does not guarantee it in any way.
147 %
148 % Copyright (C) 1994-98 Patrick W. Daly
149 %-------------------------------------------------------------------
150 % For use with BibTeX version 0.99a or later
151 %-------------------------------------------------------------------
152 % This bibliography style file is intended for texts in ENGLISH
153 % This is an author-year citation style bibliography. As such, it is
154 % non-standard LaTeX, and requires a special package file to function properly.
155 % Such a package is natbib.sty by Patrick W. Daly
156 % The form of the \bibitem entries is
157 % \bibitem[Jones et al.(1990)]{key}...
158 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
159 % The essential feature is that the label (the part in brackets) consists
160 % of the author names, as they should appear in the citation, with the year
161 % in parentheses following. There must be no space before the opening
162 % parenthesis!
163 % With natbib v5.3, a full list of authors may also follow the year.
164 % In natbib.sty, it is possible to define the type of enclosures that is
165 % really wanted (brackets or parentheses), but in either case, there must
166 % be parentheses in the label.
167 % The \cite command functions as follows:
168 % \citet{key} ==>> Jones et al. (1990)
169 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
170 % \citep{key} ==>> (Jones et al., 1990)
171 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
172 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
173 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
174 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
175 % \citeauthor{key} ==>> Jones et al.
176 % \citeauthor*{key} ==>> Jones, Baker, and Smith
177 % \citeyear{key} ==>> 1990
178 %---------------------------------------------------------------------
179
180 ENTRY
181 { address
182 archivePrefix
183 author
184 booktitle
185 chapter
186 doi
187 edition
188 editor
189 eprint
190 howpublished
191 institution
192 journal
193 key
194 month
195 number
196 organization
197 pages
198 publisher
199 school
200 series
201 title
202 misctitle
203 type
204 volume
205 year
206 version
207 url
208 }
209 {}
210 { label extra.label sort.label short.list }
211
212 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
213
214 FUNCTION {init.state.consts}
215 { #0 'before.all :=
216 #1 'mid.sentence :=
217 #2 'after.sentence :=
218 #3 'after.block :=
219 }
220
221 STRINGS { s t }
222
223 FUNCTION {output.nonnull}
224 { 's :=
225 output.state mid.sentence =
226 { ", " * write$ }
227 { output.state after.block =
228 { add.period$ write$
229 newline$
230 "\newblock " write$
231 }
232 { output.state before.all =
233 'write$
234 { add.period$ " " * write$ }
235 if$
236 }
237 if$
238 mid.sentence 'output.state :=
239 }
240 if$
241 s
242 }
243
244 FUNCTION {output}
245 { duplicate$ empty$
246 'pop$
247 'output.nonnull
248 if$
249 }
250
251 FUNCTION {output.check}
252 { 't :=
253 duplicate$ empty$
254 { pop$ "empty " t * " in " * cite$ * warning$ }
255 'output.nonnull
256 if$
257 }
258
259 FUNCTION {fin.entry}
260 { duplicate$ empty$
261 'pop$
262 'write$
263 if$
264 newline$
265 }
266
267 FUNCTION {new.block}
268 { output.state before.all =
269 'skip$
270 { after.block 'output.state := }
271 if$
272 }
273
274 FUNCTION {new.sentence}
275 { output.state after.block =
276 'skip$
277 { output.state before.all =
278 'skip$
279 { after.sentence 'output.state := }
280 if$
281 }
282 if$
283 }
284
285 FUNCTION {add.blank}
286 { " " * before.all 'output.state :=
287 }
288
289 FUNCTION {add.comma}
290 { "," * }
291
292
293 FUNCTION {date.block}
294 {
295 skip$
296 }
297
298 FUNCTION {not}
299 { { #0 }
300 { #1 }
301 if$
302 }
303
304 FUNCTION {and}
305 { 'skip$
306 { pop$ #0 }
307 if$
308 }
309
310 FUNCTION {or}
311 { { pop$ #1 }
312 'skip$
313 if$
314 }
315
316 FUNCTION {new.block.checkb}
317 { empty$
318 swap$ empty$
319 and
320 'skip$
321 'new.block
322 if$
323 }
324
325 FUNCTION {field.or.null}
326 { duplicate$ empty$
327 { pop$ "" }
328 'skip$
329 if$
330 }
331
332 FUNCTION {remove.irrelevant.period.comma}
333 { 's :=
334 s empty$
335 { "" }
336 { s #-1 #3 substring$ "?,'" =
337 s #-1 #3 substring$ "?.'" = or
338 { s #-3 global.max$ substring$ "'" * }
339 { s #-1 #4 substring$ "?,''" =
340 s #-1 #4 substring$ "?.''" = or
341 { s #-4 global.max$ substring$ "''" * }
342 { s #-1 #2 substring$ "?," =
343 s #-1 #2 substring$ "?." = or
344 { s #-2 global.max$ substring$ "" * }
345 { s #-1 #3 substring$ "?,~" =
346 s #-1 #3 substring$ "?.~" = or
347 { s #-4 global.max$ substring$ "?~" * }
348 's
349 if$
350 }
351 if$
352 }
353 if$
354 }
355 if$
356 }
357 if$
358 }
359
360 FUNCTION {bibinfo.check}
361 { swap$
362 duplicate$ missing$
363 {
364 pop$ pop$
365 ""
366 }
367 { duplicate$ empty$
368 {
369 swap$ pop$
370 }
371 { swap$
372 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
373 }
374 if$
375 }
376 if$
377 }
378
379
380 FUNCTION {emphasize}
381 { skip$ }
382
383 FUNCTION {capitalize}
384 { "u" change.case$ "t" change.case$ }
385
386 FUNCTION {space.word}
387 { " " swap$ * " " * }
388
389 % Here are the language-specific definitions for explicit words.
390 % Each function has a name bbl.xxx where xxx is the English word.
391 % The language selected here is ENGLISH
392 FUNCTION {bbl.and}
393 { "and"}
394
395 FUNCTION {bbl.editors}
396 { "eds." }
397
398 FUNCTION {bbl.editor}
399 { "ed." }
400
401 FUNCTION {bbl.edby}
402 { "edited by" }
403
404 FUNCTION {bbl.edition}
405 { "edn." }
406
407 FUNCTION {bbl.volume}
408 { "Vol." }
409
410 FUNCTION {bbl.version}
411 { "" }
412
413 FUNCTION {bbl.of}
414 { "of" }
415
416 FUNCTION {bbl.number}
417 { "no." }
418
419 FUNCTION {bbl.nr}
420 { "no." }
421
422 FUNCTION {bbl.in}
423 { "in" }
424
425 FUNCTION {bbl.pages}
426 { "" }
427
428 FUNCTION {bbl.page}
429 { "" }
430
431 FUNCTION {bbl.chapter}
432 { "Ch." }
433
434 FUNCTION {bbl.techrep}
435 { "Tech. Rep." }
436
437 FUNCTION {bbl.mthesis}
438 { "Master's thesis" }
439
440 FUNCTION {bbl.phdthesis}
441 { "PhD thesis" }
442
443 FUNCTION {bbl.first}
444 { "1st" }
445
446 FUNCTION {bbl.second}
447 { "2nd" }
448
449 FUNCTION {bbl.third}
450 { "3rd" }
451
452 FUNCTION {bbl.fourth}
453 { "4th" }
454
455 FUNCTION {bbl.fifth}
456 { "5th" }
457
458 FUNCTION {bbl.st}
459 { "st" }
460
461 FUNCTION {bbl.nd}
462 { "nd" }
463
464 FUNCTION {bbl.rd}
465 { "rd" }
466
467 FUNCTION {bbl.th}
468 { "th" }
469
470 MACRO {jan} {"Jan."}
471
472 MACRO {feb} {"Feb."}
473
474 MACRO {mar} {"Mar."}
475
476 MACRO {apr} {"Apr."}
477
478 MACRO {may} {"May"}
479
480 MACRO {jun} {"Jun."}
481
482 MACRO {jul} {"Jul."}
483
484 MACRO {aug} {"Aug."}
485
486 MACRO {sep} {"Sep."}
487
488 MACRO {oct} {"Oct."}
489
490 MACRO {nov} {"Nov."}
491
492 MACRO {dec} {"Dec."}
493
494 FUNCTION {eng.ord}
495 { duplicate$ "1" swap$ *
496 #-2 #1 substring$ "1" =
497 { bbl.th * }
498 { duplicate$ #-1 #1 substring$
499 duplicate$ "1" =
500 { pop$ bbl.st * }
501 { duplicate$ "2" =
502 { pop$ bbl.nd * }
503 { "3" =
504 { bbl.rd * }
505 { bbl.th * }
506 if$
507 }
508 if$
509 }
510 if$
511 }
512 if$
513 }
514
515 INTEGERS { nameptr namesleft numnames numtrunc }
516
517 FUNCTION {format.names}
518 { 's :=
519 #0 'numtrunc :=
520 #1 'nameptr :=
521 s num.names$ 'numnames :=
522 numnames 'namesleft :=
523 numnames #5 >
524 { #3 'numtrunc := }
525 {}
526 if$
527 { namesleft #0 > }
528 { s nameptr
529 "{vv~}{ll}{, jj}{, f.}" format.name$
530 't :=
531 nameptr #1 >
532 {
533 nameptr #1 - numtrunc =
534 {
535 #1 'namesleft :=
536 "others" 't :=
537 }
538 {}
539 if$
540
541 namesleft #1 >
542 { ", " * t * }
543 {
544 numnames #1 >
545 { "," * }
546 'skip$
547 if$
548 s nameptr "{ll}" format.name$ duplicate$ "others" =
549 { 't := }
550 { pop$ }
551 if$
552 t "others" =
553 {
554 " {et~al.}" *
555 }
556 { " \& " * t * }
557 if$
558 }
559 if$
560 }
561 't
562 if$
563 nameptr #1 + 'nameptr :=
564 namesleft #1 - 'namesleft :=
565 }
566 while$
567 }
568
569 FUNCTION {format.names.ed}
570 { 's :=
571 #1 'nameptr :=
572 s num.names$ 'numnames :=
573 numnames 'namesleft :=
574 { namesleft #0 > }
575 { s nameptr
576 "{f.~}{vv~}{ll}{, jj}"
577 format.name$
578 't :=
579 nameptr #1 >
580 {
581 namesleft #1 >
582 { ", " * t * }
583 {
584 numnames #2 >
585 { "," * }
586 'skip$
587 if$
588 s nameptr "{ll}" format.name$ duplicate$ "others" =
589 { 't := }
590 { pop$ }
591 if$
592 t "others" =
593 {
594 " {et~al.}" *
595 }
596 { " \& " * t * }
597 if$
598 }
599 if$
600 }
601 't
602 if$
603 nameptr #1 + 'nameptr :=
604 namesleft #1 - 'namesleft :=
605 }
606 while$
607 }
608
609 FUNCTION {format.key}
610 { empty$
611 { key field.or.null }
612 { "" }
613 if$
614 }
615
616 FUNCTION {format.authors}
617 { author empty$
618 { "" }
619 { author format.names }
620 if$
621 }
622
623 FUNCTION {format.editors}
624 { editor empty$
625 { "" }
626 { editor format.names
627 editor num.names$ #1 >
628 { ", " * bbl.editors * }
629 { ", " * bbl.editor * }
630 if$
631 }
632 if$
633 }
634
635 FUNCTION {format.in.editors}
636 { editor empty$
637 { "" }
638 { editor format.names.ed
639 }
640 if$
641 }
642
643
644
645 FUNCTION {format.title}
646 { title empty$
647 { "" }
648 { title add.comma remove.irrelevant.period.comma "title" bibinfo.check }
649 if$
650 }
651
652 FUNCTION {format.title.misc}
653 { title empty$
654 { "" }
655 { title add.comma remove.irrelevant.period.comma }
656 if$
657 }
658
659 FUNCTION {format.full.names}
660 {'s :=
661 #1 'nameptr :=
662 s num.names$ 'numnames :=
663 numnames 'namesleft :=
664 { namesleft #0 > }
665 { s nameptr
666 "{vv~}{ll}" format.name$
667 't :=
668 nameptr #1 >
669 {
670 namesleft #1 >
671 { ", " * t * }
672 {
673 numnames #2 >
674 { "," * }
675 'skip$
676 if$
677 s nameptr "{ll}" format.name$ duplicate$ "others" =
678 { 't := }
679 { pop$ }
680 if$
681 t "others" =
682 {
683 " {et~al.}" *
684 }
685 { " \& " * t * }
686 if$
687 }
688 if$
689 }
690 't
691 if$
692 nameptr #1 + 'nameptr :=
693 namesleft #1 - 'namesleft :=
694 }
695 while$
696 }
697
698 FUNCTION {author.editor.key.full}
699 { author empty$
700 { editor empty$
701 { key empty$
702 { cite$ #1 #3 substring$ }
703 'key
704 if$
705 }
706 { editor format.full.names }
707 if$
708 }
709 { author format.full.names }
710 if$
711 }
712
713 FUNCTION {author.key.full}
714 { author empty$
715 { key empty$
716 { cite$ #1 #3 substring$ }
717 'key
718 if$
719 }
720 { author format.full.names }
721 if$
722 }
723
724 FUNCTION {editor.key.full}
725 { editor empty$
726 { key empty$
727 { cite$ #1 #3 substring$ }
728 'key
729 if$
730 }
731 { editor format.full.names }
732 if$
733 }
734
735 FUNCTION {make.full.names}
736 { type$ "book" =
737 type$ "inbook" =
738 or
739 'author.editor.key.full
740 { type$ "proceedings" =
741 'editor.key.full
742 'author.key.full
743 if$
744 }
745 if$
746 }
747
748 FUNCTION {output.bibitem}
749 { newline$
750 "% type= " write$ type$ write$
751 newline$
752 "\bibitem[{" write$
753 label write$
754 ")" make.full.names duplicate$ short.list =
755 { pop$ }
756 { * }
757 if$
758 "}]{" * write$
759 cite$ write$
760 "}" write$
761 newline$
762 ""
763 before.all 'output.state :=
764 }
765
766
767 FUNCTION {format.url}
768 { url empty$
769 { "" }
770 { new.block "\url{" url * "}" * }
771 if$
772 }
773
774 FUNCTION {format.eprint}
775 { eprint empty$
776 { "" }
777 { archivePrefix empty$
778 { "" }
779 { archivePrefix "arXiv" =
780 {new.block "\doarXiv{" eprint * "}" * }
781 {new.block "\doeprint{" eprint * "}" * }
782 if$}
783 if$
784 }
785 if$
786 }
787
788 % Formats a persistent identifier (PID)
789 % (typically a DOI or an eprint id)
790 % You can easily swap the order of which PID
791 % gets picked
792 %
793
794 FUNCTION {format.doi}
795 { doi empty$
796 { "" }
797 { "\dodoi{" doi * "}" * }
798 if$
799 }
800
801 FUNCTION {format.pid}
802 { doi empty$
803 {eprint empty$
804 { url empty$
805 { "" }
806 { format.url }
807 if$}
808 { format.eprint }
809 if$}
810 { format.doi }
811 if$
812 }
813
814 FUNCTION {n.dashify}
815 {
816 't :=
817 ""
818 { t empty$ not }
819 { t #1 #1 substring$ "-" =
820 { t #1 #2 substring$ "--" = not
821 { "--" *
822 t #2 global.max$ substring$ 't :=
823 }
824 { { t #1 #1 substring$ "-" = }
825 { "-" *
826 t #2 global.max$ substring$ 't :=
827 }
828 while$
829 }
830 if$
831 }
832 { t #1 #1 substring$ *
833 t #2 global.max$ substring$ 't :=
834 }
835 if$
836 }
837 while$
838 }
839
840 FUNCTION {word.in}
841 { bbl.in
842 " " * }
843
844 FUNCTION {format.date}
845 { year duplicate$ empty$
846 { "empty year in " cite$ * "; set to ????" * warning$
847 pop$ "????" }
848 'skip$
849 if$
850 extra.label *
851 before.all 'output.state :=
852 after.sentence 'output.state :=
853 }
854
855 FUNCTION {format.btitle}
856 { title
857 }
858
859 FUNCTION {tie.or.space.connect}
860 { duplicate$ text.length$ #3 <
861 { "~" }
862 { " " }
863 if$
864 swap$ * *
865 }
866
867 FUNCTION {either.or.check}
868 { empty$
869 'pop$
870 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
871 if$
872 }
873
874 FUNCTION {format.bvolume}
875 { volume empty$
876 { "" }
877 { bbl.volume volume tie.or.space.connect
878 series empty$
879 'skip$
880 { bbl.of space.word * series emphasize * }
881 if$
882 "volume and number" number either.or.check
883 }
884 if$
885 }
886
887 FUNCTION {format.number.series}
888 { volume empty$
889 { number empty$
890 { series field.or.null }
891 { output.state mid.sentence =
892 { bbl.number }
893 { bbl.number capitalize }
894 if$
895 number tie.or.space.connect
896 series empty$
897 { "there's a number but no series in " cite$ * warning$ }
898 { bbl.in space.word * series * }
899 if$
900 }
901 if$
902 }
903 { "" }
904 if$
905 }
906
907 FUNCTION {is.num}
908 { chr.to.int$
909 duplicate$ "0" chr.to.int$ < not
910 swap$ "9" chr.to.int$ > not and
911 }
912
913 FUNCTION {extract.num}
914 { duplicate$ 't :=
915 "" 's :=
916 { t empty$ not }
917 { t #1 #1 substring$
918 t #2 global.max$ substring$ 't :=
919 duplicate$ is.num
920 { s swap$ * 's := }
921 { pop$ "" 't := }
922 if$
923 }
924 while$
925 s empty$
926 'skip$
927 { pop$ s }
928 if$
929 }
930
931 FUNCTION {convert.edition}
932 { edition extract.num "l" change.case$ 's :=
933 s "first" = s "1" = or
934 { bbl.first 't := }
935 { s "second" = s "2" = or
936 { bbl.second 't := }
937 { s "third" = s "3" = or
938 { bbl.third 't := }
939 { s "fourth" = s "4" = or
940 { bbl.fourth 't := }
941 { s "fifth" = s "5" = or
942 { bbl.fifth 't := }
943 { s #1 #1 substring$ is.num
944 { s eng.ord 't := }
945 { edition 't := }
946 if$
947 }
948 if$
949 }
950 if$
951 }
952 if$
953 }
954 if$
955 }
956 if$
957 t
958 }
959
960 FUNCTION {format.edition}
961 { edition empty$
962 { "" }
963 { output.state mid.sentence =
964 { convert.edition "l" change.case$ " " * bbl.edition * }
965 { convert.edition "t" change.case$ " " * bbl.edition * }
966 if$
967 }
968 if$
969 }
970
971 INTEGERS { multiresult }
972
973 FUNCTION {multi.page.check}
974 { 't :=
975 #0 'multiresult :=
976 { multiresult not
977 t empty$ not
978 and
979 }
980 { t #1 #1 substring$
981 duplicate$ "-" =
982 swap$ duplicate$ "," =
983 swap$ "+" =
984 or or
985 { #1 'multiresult := }
986 { t #2 global.max$ substring$ 't := }
987 if$
988 }
989 while$
990 multiresult
991 }
992
993 FUNCTION {format.pages}
994 { pages empty$
995 { "" }
996 { pages multi.page.check
997 % { bbl.pages pages n.dashify tie.or.space.connect }
998 % { bbl.page pages tie.or.space.connect }
999 { pages n.dashify }
1000 { pages }
1001 if$
1002 }
1003 if$
1004 }
1005
1006 FUNCTION {first.page}
1007 { 't :=
1008 ""
1009 { t empty$ not t #1 #1 substring$ "-" = not and }
1010 { t #1 #1 substring$ *
1011 t #2 global.max$ substring$ 't :=
1012 }
1013 while$
1014 }
1015
1016 FUNCTION {format.journal.pages}
1017 { pages empty$
1018 'skip$
1019 { duplicate$ empty$
1020 { pop$ format.pages }
1021 {
1022 ", " *
1023 pages first.page *
1024 }
1025 if$
1026 }
1027 if$
1028 }
1029
1030
1031 FUNCTION {format.vol.num.pages}
1032 { volume field.or.null
1033 }
1034
1035 FUNCTION {format.chapter.pages}
1036 { chapter empty$
1037 { "" }
1038 { type empty$
1039 { bbl.chapter }
1040 { type "l" change.case$ }
1041 if$
1042 chapter tie.or.space.connect
1043 }
1044 if$
1045 }
1046
1047 FUNCTION {format.in.ed.booktitle}
1048 { booktitle empty$
1049 { "" }
1050 { editor empty$
1051 { word.in booktitle emphasize * }
1052 { word.in booktitle emphasize *
1053 ", " *
1054 editor num.names$ #1 >
1055 { bbl.editors }
1056 { bbl.editor }
1057 if$
1058 * " " *
1059 format.in.editors *
1060 }
1061 if$
1062 }
1063 if$
1064 }
1065
1066 FUNCTION {format.thesis.type}
1067 { type empty$
1068 'skip$
1069 { pop$
1070 type "t" change.case$
1071 }
1072 if$
1073 }
1074
1075 FUNCTION {format.tr.number}
1076 { type empty$
1077 { bbl.techrep }
1078 'type
1079 if$
1080 number empty$
1081 { "t" change.case$ }
1082 { number tie.or.space.connect }
1083 if$
1084 }
1085
1086 FUNCTION {format.article.crossref}
1087 {
1088 word.in
1089 " \cite{" * crossref * "}" *
1090 }
1091
1092 FUNCTION {format.book.crossref}
1093 { volume empty$
1094 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1095 word.in
1096 }
1097 { bbl.volume volume tie.or.space.connect
1098 bbl.of space.word *
1099 }
1100 if$
1101 " \cite{" * crossref * "}" *
1102 }
1103
1104 FUNCTION {format.incoll.inproc.crossref}
1105 {
1106 word.in
1107 " \cite{" * crossref * "}" *
1108 }
1109
1110 FUNCTION {format.publisher}
1111 { publisher empty$
1112 { "empty publisher in " cite$ * warning$ }
1113 'skip$
1114 if$
1115 ""
1116 address empty$ publisher empty$ and
1117 'skip$
1118 {
1119 add.blank "(" *
1120 address empty$
1121 'skip$
1122 { address * }
1123 if$
1124 publisher empty$
1125 'skip$
1126 { address empty$
1127 'skip$
1128 { ": " * }
1129 if$
1130 publisher *
1131 }
1132 if$
1133 ")" *
1134 }
1135 if$
1136 output
1137 }
1138
1139 FUNCTION {format.aaspublisher}
1140 { publisher empty$
1141 { "empty publisher in " cite$ * warning$ }
1142 'skip$
1143 if$
1144 ""
1145 address empty$ publisher empty$ and
1146 'skip$
1147 {
1148 add.blank "" *
1149 address empty$
1150 'skip$
1151 { address * }
1152 if$
1153 publisher empty$
1154 'skip$
1155 { address empty$
1156 'skip$
1157 { ": " * }
1158 if$
1159 publisher *
1160 }
1161 if$
1162 "" *
1163 }
1164 if$
1165 output
1166 }
1167
1168
1169
1170 STRINGS {oldname}
1171
1172 FUNCTION {name.or.dash}
1173 { 's :=
1174 oldname empty$
1175 { s 'oldname := s }
1176 { s oldname =
1177 { "---" }
1178 { s 'oldname := s }
1179 if$
1180 }
1181 if$
1182 }
1183
1184 %%%%%%%% Functions added from astrobib
1185
1186 FUNCTION {format.edn.btitle} % Title should be on stack.
1187 { duplicate$ empty$ edition empty$ or
1188 'skip$
1189 { ", " * format.edition * }
1190 if$
1191 }
1192
1193 FUNCTION {format.ed.booktitle} % The title should be on the stack.
1194 { duplicate$ empty$
1195 { "no book title in " cite$ * warning$ "" pop$ }
1196 { editor empty$
1197 author empty$ or % Empty author means editor already given.
1198 'format.edn.btitle
1199 { format.edn.btitle ", " * bbl.editor * " " * format.in.editors * }
1200 if$
1201 }
1202 if$
1203 }
1204
1205 FUNCTION {format.full.book.spec} % The title should be on the stack.
1206 { series empty$
1207 { format.ed.booktitle
1208 volume empty$
1209 { number empty$
1210 'skip$
1211 { " there's a number but no series in " cite$ * warning$
1212 " No." number tie.or.space.connect * }
1213 if$
1214 }
1215 { ", Vol." volume tie.or.space.connect *
1216 number empty$
1217 'skip$
1218 {"Both volume and number fields in " * cite$ * warning$ }
1219 if$
1220 }
1221 if$
1222 }
1223 { volume empty$
1224 { format.ed.booktitle ", " * series *
1225 number empty$
1226 'skip$
1227 { " No." number tie.or.space.connect * }
1228 if$
1229 }
1230 { series ", Vol." volume tie.or.space.connect *
1231 ", " * swap$ format.ed.booktitle *
1232 number empty$
1233 'skip$
1234 {"Both volume and number fields in " * cite$ * warning$ }
1235 if$
1236 }
1237 if$
1238 }
1239 if$
1240 }
1241
1242 %%%%%%% End of functions from astrobib
1243
1244 FUNCTION {article}
1245 { output.bibitem
1246 format.authors "author" output.check
1247 author format.key output
1248 % name.or.dash
1249 format.date "year" output.check
1250 format.title "title" output.check
1251 add.blank
1252 crossref missing$
1253 { journal
1254 "journal" output.check
1255 format.vol.num.pages output
1256 }
1257 { format.article.crossref output.nonnull
1258 format.pages output
1259 }
1260 if$
1261 pages empty$
1262 'skip$
1263 { format.journal.pages }
1264 if$
1265 format.pid output
1266 fin.entry
1267 }
1268
1269 FUNCTION {book}
1270 { output.bibitem
1271 author empty$
1272 { format.editors "author and editor" output.check
1273 editor format.key output
1274 %name.or.dash
1275 }
1276 { format.authors output.nonnull
1277 %name.or.dash
1278 crossref missing$
1279 { "author and editor" editor either.or.check }
1280 'skip$
1281 if$
1282 }
1283 if$
1284 format.date "year" output.check
1285 date.block
1286 title format.full.book.spec output
1287 % format.btitle "title" output.check
1288 % crossref missing$
1289 % { format.bvolume output
1290 % format.number.series output
1291 % format.edition output
1292 format.publisher
1293 % }
1294 % {
1295 % format.book.crossref output.nonnull
1296 % }
1297 % if$
1298 format.pages output
1299 format.pid output
1300 fin.entry
1301 }
1302
1303 FUNCTION {booklet}
1304 { output.bibitem
1305 format.authors output
1306 author format.key output
1307 %name.or.dash
1308 format.date "year" output.check
1309 date.block
1310 format.title "title" output.check
1311 howpublished output
1312 address output
1313 format.pid output
1314 fin.entry
1315 }
1316
1317 FUNCTION {inbook}
1318 { output.bibitem
1319 author empty$
1320 { format.editors "author and editor" output.check
1321 editor format.key output
1322 %name.or.dash
1323 }
1324 { format.authors output.nonnull
1325 %name.or.dash
1326 crossref missing$
1327 { "author and editor" editor either.or.check }
1328 'skip$
1329 if$
1330 }
1331 if$
1332 format.date "year" output.check
1333 date.block
1334 title format.full.book.spec output
1335 % format.btitle "title" output.check
1336 % crossref missing$
1337 % {
1338 % format.bvolume output
1339 % format.chapter.pages "chapter and pages" output.check
1340 % format.number.series output
1341 % format.edition output
1342 format.publisher
1343 % }
1344 % {
1345 % format.chapter.pages "chapter and pages" output.check
1346 % format.book.crossref output.nonnull
1347 % }
1348 % if$
1349 format.pages "pages" output.check
1350 format.pid output
1351 fin.entry
1352 }
1353
1354 FUNCTION {incollection}
1355 { output.bibitem
1356 format.authors "author" output.check
1357 author format.key output
1358 %name.or.dash
1359 format.date "year" output.check
1360 date.block
1361 format.title "title" output.check
1362 add.blank
1363 bbl.in " " * booktitle format.full.book.spec * output
1364 % crossref missing$
1365 % { format.in.ed.booktitle "booktitle" output.check
1366 % format.bvolume output
1367 % format.number.series output
1368 % format.edition output
1369 % format.chapter.pages output
1370 format.publisher
1371 % }
1372 % { format.incoll.inproc.crossref output.nonnull
1373 % format.chapter.pages output
1374 % }
1375 % if$
1376 format.pages "pages" output.check
1377 format.pid output
1378 fin.entry
1379 }
1380
1381 FUNCTION {inproceedings}
1382 { output.bibitem
1383 format.authors "author" output.check
1384 author format.key output % added
1385 format.date "year" output.check
1386 date.block
1387 format.title "title" output.check
1388 add.blank
1389 bbl.in " " * booktitle format.full.book.spec * output
1390 % crossref missing$
1391 % { format.in.ed.booktitle "booktitle" output.check
1392 % format.bvolume output
1393 % format.number.series output
1394 publisher empty$
1395 { organization output
1396 address output
1397 }
1398 { organization output
1399 format.publisher
1400 }
1401 if$
1402 % }
1403 % { format.incoll.inproc.crossref output.nonnull
1404 % }
1405 % if$
1406 format.pages output
1407 format.pid output
1408 fin.entry
1409 }
1410
1411 FUNCTION {conference} { inproceedings }
1412
1413
1414 FUNCTION {manual}
1415 { output.bibitem
1416 format.authors output
1417 author format.key output
1418 %name.or.dash
1419 format.date "year" output.check
1420 date.block
1421 format.btitle "title" output.check
1422 format.edition output
1423 organization output
1424 address output
1425 format.pid output
1426 fin.entry
1427 }
1428
1429 FUNCTION {mastersthesis}
1430 { output.bibitem
1431 format.authors "author" output.check
1432 author format.key output
1433 %name.or.dash
1434 format.date "year" output.check
1435 date.block
1436 % format.title "title" output.check
1437 bbl.mthesis format.thesis.type output.nonnull
1438 school "school" output.check
1439 address output
1440 format.pid output
1441 fin.entry
1442 }
1443
1444 FUNCTION {misc}
1445 {output.bibitem
1446 format.authors output
1447 author format.key output
1448 %name.or.dash
1449 format.date "year" output.check
1450 date.block
1451 %% new
1452 format.title.misc output
1453 %% new
1454 version empty$
1455 'skip$
1456 {add.blank bbl.version version * output}
1457 if$
1458 %%
1459 howpublished output
1460 publisher empty$
1461 {add.blank}
1462 {format.aaspublisher}
1463 if$
1464 format.pid output
1465 fin.entry
1466 }
1467
1468 FUNCTION {phdthesis}
1469 { output.bibitem
1470 format.authors "author" output.check
1471 author format.key output
1472 %name.or.dash
1473 format.date "year" output.check
1474 date.block
1475 format.title "title" output.check
1476 add.blank
1477 bbl.phdthesis format.thesis.type output.nonnull
1478 school "school" output.check
1479 address output
1480 format.pid output
1481 fin.entry
1482 }
1483
1484 FUNCTION {proceedings}
1485 { output.bibitem
1486 editor empty$
1487 { organization output
1488 organization format.key output }
1489 { format.editors output }
1490 if$
1491 % format.editors output
1492 % editor format.key output
1493 %name.or.dash
1494 format.date "year" output.check
1495 date.block
1496 title format.full.book.spec output
1497 % format.btitle "title" output.check
1498 % format.bvolume output
1499 % format.number.series output
1500 publisher empty$ not % No need for warning if no pub.
1501 { format.publisher }
1502 { editor empty$ % For empty editor, organization was already given.
1503 'skip$
1504 { organization output }
1505 if$
1506 address output
1507 }
1508 if$
1509 % address output
1510 % organization output
1511 % publisher output
1512 format.pages output
1513 format.pid output
1514 fin.entry
1515 }
1516
1517 FUNCTION {techreport}
1518 { output.bibitem
1519 format.authors "author" output.check
1520 author format.key output
1521 %name.or.dash
1522 format.date "year" output.check
1523 date.block
1524 format.title.misc "title" output.check
1525 add.blank
1526 format.tr.number output.nonnull
1527 institution "institution" output.check
1528 address output
1529 format.pid output
1530 fin.entry
1531 }
1532
1533 FUNCTION {unpublished}
1534 { output.bibitem
1535 format.authors "author" output.check
1536 author format.key output
1537 %name.or.dash
1538 format.date "year" output.check
1539 date.block
1540 format.title "title" output.check
1541 add.blank
1542 format.pid output
1543 fin.entry
1544 }
1545
1546 FUNCTION {default.type} { misc }
1547
1548 READ
1549
1550 FUNCTION {sortify}
1551 { purify$
1552 "l" change.case$
1553 }
1554
1555 INTEGERS { len }
1556
1557 FUNCTION {chop.word}
1558 { 's :=
1559 'len :=
1560 s #1 len substring$ =
1561 { s len #1 + global.max$ substring$ }
1562 's
1563 if$
1564 }
1565
1566 STRINGS {z}
1567
1568
1569 FUNCTION {first.initial}
1570 { 'z :=
1571 ""
1572 { z empty$ not z #1 #1 substring$ "." = not and }
1573 { z #1 #1 substring$ *
1574 z #2 global.max$ substring$ 'z :=
1575 }
1576 while$
1577 z empty$
1578 'skip$
1579 { add.period$ "~" * }
1580 if$
1581 }
1582
1583
1584 FUNCTION {forname.format.string}
1585 { "{f.}" }
1586
1587 FUNCTION {surname.format.string}
1588 { "{vv~}{ll}" }
1589
1590
1591 FUNCTION {jnrname.format.string}
1592 { "{, jj}" }
1593
1594 INTEGERS { labnameptr }
1595
1596 FUNCTION {format.lab.names}
1597 { 's :=
1598 #1 'labnameptr :=
1599 s labnameptr forname.format.string format.name$ add.blank%first.initial
1600 s labnameptr surname.format.string format.name$ *
1601 s num.names$ duplicate$
1602 #2 >
1603 { pop$
1604 " {et~al.}" *
1605 }
1606 { #2 <
1607 'skip$
1608 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1609 {
1610 " {et~al.}" *
1611 }
1612 { " \& " *
1613 #2 'labnameptr :=
1614 s labnameptr forname.format.string format.name$ add.blank%first.initial
1615 s labnameptr surname.format.string format.name$ *
1616 * }
1617 if$
1618 }
1619 if$
1620 }
1621 if$
1622 }
1623
1624 FUNCTION {author.key.label}
1625 { author empty$
1626 { key empty$
1627 { cite$ #1 #3 substring$ }
1628 'key
1629 if$
1630 }
1631 { author format.lab.names }
1632 if$
1633 }
1634
1635 FUNCTION {author.editor.key.label}
1636 { author empty$
1637 { editor empty$
1638 { key empty$
1639 { cite$ #1 #3 substring$ }
1640 'key
1641 if$
1642 }
1643 { editor format.lab.names }
1644 if$
1645 }
1646 { author format.lab.names }
1647 if$
1648 }
1649
1650 FUNCTION {editor.key.label}
1651 { editor empty$
1652 { key empty$
1653 { cite$ #1 #3 substring$ }
1654 'key
1655 if$
1656 }
1657 { editor format.lab.names }
1658 if$
1659 }
1660
1661 FUNCTION {calc.short.authors}
1662 { type$ "book" =
1663 type$ "inbook" =
1664 or
1665 'author.editor.key.label
1666 { type$ "proceedings" =
1667 'editor.key.label
1668 'author.key.label
1669 if$
1670 }
1671 if$
1672 'short.list :=
1673 }
1674
1675 FUNCTION {calc.label}
1676 { calc.short.authors
1677 short.list
1678 "("
1679 *
1680 year duplicate$ empty$
1681 { pop$ "????" }
1682 'skip$
1683 if$
1684 *
1685 'label :=
1686 }
1687
1688 FUNCTION {sort.format.names}
1689 { 's :=
1690 #1 'nameptr :=
1691 ""
1692 s num.names$ 'numnames :=
1693 numnames #8 >
1694 { s nameptr
1695 "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}"
1696 format.name$ 't :=
1697 t sortify *
1698 " " *
1699 "zzzzz" *
1700 }
1701 { numnames 'namesleft :=
1702 { namesleft #0 > }
1703 { s nameptr
1704 "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}"
1705 format.name$ 't :=
1706 nameptr #1 >
1707 {
1708 " " *
1709 namesleft #1 = t "others" = and
1710 { "zzzzz" * }
1711 { t sortify * }
1712 if$
1713 }
1714 { t sortify * }
1715 if$
1716 nameptr #1 + 'nameptr :=
1717 namesleft #1 - 'namesleft :=
1718 }
1719 while$
1720 }
1721 if$
1722 }
1723
1724 FUNCTION {sort.format.title}
1725 { 't :=
1726 "A " #2
1727 "An " #3
1728 "The " #4 t chop.word
1729 chop.word
1730 chop.word
1731 sortify
1732 #1 global.max$ substring$
1733 }
1734
1735 FUNCTION {author.sort}
1736 { author empty$
1737 { key empty$
1738 { "to sort, need author or key in " cite$ * warning$
1739 ""
1740 }
1741 { key sortify }
1742 if$
1743 }
1744 { author sort.format.names }
1745 if$
1746 }
1747
1748 FUNCTION {author.editor.sort}
1749 { author empty$
1750 { editor empty$
1751 { key empty$
1752 { "to sort, need author, editor, or key in " cite$ * warning$
1753 ""
1754 }
1755 { key sortify }
1756 if$
1757 }
1758 { editor sort.format.names }
1759 if$
1760 }
1761 { author sort.format.names }
1762 if$
1763 }
1764
1765 FUNCTION {editor.sort}
1766 { editor empty$
1767 { key empty$
1768 { "to sort, need editor or key in " cite$ * warning$
1769 ""
1770 }
1771 { key sortify }
1772 if$
1773 }
1774 { editor sort.format.names }
1775 if$
1776 }
1777
1778 FUNCTION {presort}
1779 { calc.label
1780 label sortify
1781 " "
1782 *
1783 type$ "book" =
1784 type$ "inbook" =
1785 or
1786 'author.editor.sort
1787 { type$ "proceedings" =
1788 'editor.sort
1789 'author.sort
1790 if$
1791 }
1792 if$
1793 #1 entry.max$ substring$
1794 'sort.label :=
1795 sort.label
1796 *
1797 " "
1798 *
1799 %% August 2016
1800 %% commenting out this combination gets the cites right but references wrong
1801 %% title field.or.null
1802 %% sort.format.title
1803 %% *
1804 %%
1805 %% with only this line on, we get cites right but references wrong
1806 sort.format.title
1807 #1 entry.max$ substring$
1808 'sort.key$ :=
1809 }
1810
1811 ITERATE {presort}
1812
1813 SORT
1814
1815 STRINGS { last.label next.extra }
1816
1817 INTEGERS { last.extra.num number.label }
1818
1819 FUNCTION {initialize.extra.label.stuff}
1820 { #0 int.to.chr$ 'last.label :=
1821 "" 'next.extra :=
1822 #0 'last.extra.num :=
1823 #0 'number.label :=
1824 }
1825
1826 FUNCTION {forward.pass}
1827 { last.label label =
1828 { last.extra.num #1 + 'last.extra.num :=
1829 last.extra.num int.to.chr$ 'extra.label :=
1830 }
1831 { "a" chr.to.int$ 'last.extra.num :=
1832 "" 'extra.label :=
1833 label 'last.label :=
1834 }
1835 if$
1836 number.label #1 + 'number.label :=
1837 }
1838
1839 FUNCTION {reverse.pass}
1840 { next.extra "b" =
1841 { "a" 'extra.label := }
1842 'skip$
1843 if$
1844 extra.label 'next.extra :=
1845 extra.label
1846 duplicate$ empty$
1847 'skip$
1848 { "{\natexlab{" swap$ * "}}" * }
1849 if$
1850 'extra.label :=
1851 label extra.label * 'label :=
1852 }
1853
1854 EXECUTE {initialize.extra.label.stuff}
1855
1856 ITERATE {forward.pass}
1857
1858 REVERSE {reverse.pass}
1859
1860 FUNCTION {bib.sort.order}
1861 { sort.label
1862 " "
1863 *
1864 year field.or.null sortify
1865 *
1866 " "
1867 *
1868 %% Commented out August 2016, so that multiple indentical author/year
1869 %% combinations are entered in the order that \cite{}s are found in text.
1870 % title field.or.null
1871 % sort.format.title
1872 % *
1873 #1 entry.max$ substring$
1874 'sort.key$ :=
1875 }
1876
1877 ITERATE {bib.sort.order}
1878
1879 SORT
1880
1881 FUNCTION {begin.bib}
1882 { preamble$ empty$
1883 'skip$
1884 { preamble$ write$ newline$ }
1885 if$
1886 "\begin{thebibliography}{}"
1887 write$ newline$
1888 "\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi"
1889 write$ newline$
1890 "\providecommand{\url}[1]{\href{#1}{#1}}"
1891 write$ newline$
1892 "\providecommand{\dodoi}[1]{doi:~\href{http://doi.org/#1}{\nolinkurl{#1}}}"
1893 write$ newline$
1894 "\providecommand{\doeprint}[1]{\href{http://ascl.net/#1}{\nolinkurl{http://ascl.net/#1}}}"
1895 write$ newline$
1896 "\providecommand{\doarXiv}[1]{\href{https://arxiv.org/abs/#1}{\nolinkurl{https://arxiv.org/abs/#1}}}"
1897 write$ newline$
1898 }
1899
1900
1901 EXECUTE {begin.bib}
1902
1903 EXECUTE {init.state.consts}
1904
1905 ITERATE {call.type$}
1906
1907 FUNCTION {end.bib}
1908 { newline$
1909 "\end{thebibliography}" write$ newline$
1910 }
1911
1912 EXECUTE {end.bib}
1913 %% End of customized bst file
1914 %%
1915 %% End of file `aasjournal.bst'.