Debian Codegraph @

texmf-dist/bibtex/bst/ajl/ajl.bst

raw
1 %%
2 %% This is file `ajl.bst',
3 %% generated with the docstrip utility AND THEN manually by David Nash 2014-05-11
4 %%
5 %% The original source files were:
6 %%
7 %% merlin.mbs (with options: `ay,har,seq-lab,nm-rvx,nm-rvv,nm-rev1,jnrlst,keyxyr,blkyear,dt-beg,yr-blk,yrp-x,note-yr,tit-qq,qt-s,qx,jxper,pp-last,num-xser,jnm-x,add-pub,pre-pub,doi,edparxc,blk-com,com-blank,pp,ed,xedn,amper,url,url-blk,nfss,')
8 %% ----------------------------------------
9 %% *** AJL ***
10 %%
11 %% Copyright 1994-2011 Patrick W Daly
12 % ===============================================================
13 % IMPORTANT NOTICE:
14 % This bibliographic style (bst) file has been generated from one or
15 % more master bibliographic style (mbs) files, listed above.
16 %
17 % This generated file can be redistributed and/or modified under the terms
18 % of the LaTeX Project Public License Distributed from CTAN
19 % archives in directory macros/latex/base/lppl.txt; either
20 % version 1 of the License, or any later version.
21 % ===============================================================
22 % Name and version information of the main mbs file:
23 % \ProvidesFile{merlin.mbs}[2011/11/18 4.33 (PWD, AO, DPC)]
24 % For use with BibTeX version 0.99a or later
25 %-------------------------------------------------------------------
26 % This bibliography style file is intended for texts in ENGLISH
27 % This is an author-year citation style bibliography. As such, it is
28 % non-standard LaTeX, and requires a special package file to function properly.
29 % Such a package is natbib.sty by Patrick W. Daly
30 % or: harvard.sty by Peter Williams and Thorsten Schnier
31 % The form of the bibitem entries is
32 % \harvarditem[Jones et al.]{Jones, Baker, and Smith}{1990}{key}...
33 %---------------------------------------------------------------------
34
35 ENTRY
36 { address
37 author
38 booktitle
39 chapter
40 doi
41 edition
42 editor
43 eid
44 howpublished
45 institution
46 journal
47 key
48 month
49 note
50 number
51 organization
52 pages
53 publisher
54 school
55 series
56 title
57 type
58 url
59 volume
60 year
61 }
62 {}
63 { label extra.label sort.label short.list }
64 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
65 FUNCTION {init.state.consts}
66 { #0 'before.all :=
67 #1 'mid.sentence :=
68 #2 'after.sentence :=
69 #3 'after.block :=
70 }
71 STRINGS { s t}
72 FUNCTION {output.nonnull}
73 { 's :=
74 output.state mid.sentence =
75 { " " * write$ }
76 { output.state after.block =
77 { add.period$ write$
78 newline$
79 "\newblock " write$
80 }
81 { output.state before.all =
82 'write$
83 { add.period$ " " * write$ }
84 if$
85 }
86 if$
87 mid.sentence 'output.state :=
88 }
89 if$
90 s
91 }
92 FUNCTION {output}
93 { duplicate$ empty$
94 'pop$
95 'output.nonnull
96 if$
97 }
98 FUNCTION {output.check}
99 { 't :=
100 duplicate$ empty$
101 { pop$ "empty " t * " in " * cite$ * warning$ }
102 'output.nonnull
103 if$
104 }
105 FUNCTION {fin.entry}
106 { add.period$
107 write$
108 newline$
109 }
110
111 FUNCTION {new.block}
112 { output.state before.all =
113 'skip$
114 { after.block 'output.state := }
115 if$
116 }
117 FUNCTION {new.sentence}
118 { output.state after.block =
119 'skip$
120 { output.state before.all =
121 'skip$
122 { after.sentence 'output.state := }
123 if$
124 }
125 if$
126 }
127 FUNCTION {add.blank}
128 { " " * before.all 'output.state :=
129 }
130
131 FUNCTION {date.block}
132 {
133 add.blank
134 }
135
136 FUNCTION {not}
137 { { #0 }
138 { #1 }
139 if$
140 }
141 FUNCTION {and}
142 { 'skip$
143 { pop$ #0 }
144 if$
145 }
146 FUNCTION {or}
147 { { pop$ #1 }
148 'skip$
149 if$
150 }
151 FUNCTION {non.stop}
152 { duplicate$
153 "}" * add.period$
154 #-1 #1 substring$ "." =
155 }
156
157 STRINGS {z}
158
159 FUNCTION {remove.dots}
160 { 'z :=
161 ""
162 { z empty$ not }
163 { z #1 #2 substring$
164 duplicate$ "\." =
165 { z #3 global.max$ substring$ 'z := * }
166 { pop$
167 z #1 #1 substring$
168 z #2 global.max$ substring$ 'z :=
169 duplicate$ "." = 'pop$
170 { * }
171 if$
172 }
173 if$
174 }
175 while$
176 }
177 FUNCTION {new.block.checkb}
178 { empty$
179 swap$ empty$
180 and
181 'skip$
182 'new.block
183 if$
184 }
185 FUNCTION {field.or.null}
186 { duplicate$ empty$
187 { pop$ "" }
188 'skip$
189 if$
190 }
191 FUNCTION {emphasize}
192 { duplicate$ empty$
193 { pop$ "" }
194 { "\emph{" swap$ * "}" * }
195 if$
196 }
197 FUNCTION {tie.or.space.prefix}
198 { duplicate$ text.length$ #3 <
199 { "~" }
200 { " " }
201 if$
202 swap$
203 }
204
205 FUNCTION {capitalize}
206 { "u" change.case$ "t" change.case$ }
207
208 FUNCTION {space.word}
209 { " " swap$ * " " * }
210 % Here are the language-specific definitions for explicit words.
211 % Each function has a name bbl.xxx where xxx is the English word.
212 % The language selected here is ENGLISH
213 FUNCTION {bbl.and}
214 { "and"}
215
216 FUNCTION {bbl.etal}
217 { "et~al." }
218
219 FUNCTION {bbl.editors}
220 { "eds" }
221
222 FUNCTION {bbl.editor}
223 { "ed." }
224
225 FUNCTION {bbl.edby}
226 { "edited by" }
227
228 FUNCTION {bbl.edition}
229 { "edition" }
230
231 FUNCTION {bbl.volume}
232 { "volume" }
233
234 FUNCTION {bbl.of}
235 { "of" }
236
237 FUNCTION {bbl.number}
238 { "number" }
239
240 FUNCTION {bbl.nr}
241 { "no." }
242
243 FUNCTION {bbl.in}
244 { "in" }
245
246 FUNCTION {bbl.pages}
247 { "pp." }
248
249 FUNCTION {bbl.page}
250 { "p." }
251
252 FUNCTION {bbl.chapter}
253 { "chapter" }
254
255 FUNCTION {bbl.techrep}
256 { "Technical Report" }
257
258 FUNCTION {bbl.mthesis}
259 { "Master's thesis" }
260
261 FUNCTION {bbl.phdthesis}
262 { "Ph.D. thesis" }
263
264 MACRO {jan} {"January"}
265
266 MACRO {feb} {"February"}
267
268 MACRO {mar} {"March"}
269
270 MACRO {apr} {"April"}
271
272 MACRO {may} {"May"}
273
274 MACRO {jun} {"June"}
275
276 MACRO {jul} {"July"}
277
278 MACRO {aug} {"August"}
279
280 MACRO {sep} {"September"}
281
282 MACRO {oct} {"October"}
283
284 MACRO {nov} {"November"}
285
286 MACRO {dec} {"December"}
287
288 MACRO {acmcs} {"ACM Computing Surveys"}
289
290 MACRO {acta} {"Acta Informatica"}
291
292 MACRO {cacm} {"Communications of the ACM"}
293
294 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
295
296 MACRO {ibmsj} {"IBM Systems Journal"}
297
298 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
299
300 MACRO {ieeetc} {"IEEE Transactions on Computers"}
301
302 MACRO {ieeetcad}
303 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
304
305 MACRO {ipl} {"Information Processing Letters"}
306
307 MACRO {jacm} {"Journal of the ACM"}
308
309 MACRO {jcss} {"Journal of Computer and System Sciences"}
310
311 MACRO {scp} {"Science of Computer Programming"}
312
313 MACRO {sicomp} {"SIAM Journal on Computing"}
314
315 MACRO {tocs} {"ACM Transactions on Computer Systems"}
316
317 MACRO {tods} {"ACM Transactions on Database Systems"}
318
319 MACRO {tog} {"ACM Transactions on Graphics"}
320
321 MACRO {toms} {"ACM Transactions on Mathematical Software"}
322
323 MACRO {toois} {"ACM Transactions on Office Information Systems"}
324
325 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
326
327 MACRO {tcs} {"Theoretical Computer Science"}
328 FUNCTION {bibinfo.check}
329 { swap$
330 duplicate$ missing$
331 {
332 pop$ pop$
333 ""
334 }
335 { duplicate$ empty$
336 {
337 swap$ pop$
338 }
339 { swap$
340 pop$
341 }
342 if$
343 }
344 if$
345 }
346 FUNCTION {bibinfo.warn}
347 { swap$
348 duplicate$ missing$
349 {
350 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
351 ""
352 }
353 { duplicate$ empty$
354 {
355 swap$ "empty " swap$ * " in " * cite$ * warning$
356 }
357 { swap$
358 pop$
359 }
360 if$
361 }
362 if$
363 }
364 FUNCTION {format.url}
365 {
366 url
367 duplicate$ empty$
368 { pop$ "" }
369 { "\urlprefix\url{" swap$ * "}" * }
370 if$
371 }
372
373 INTEGERS { nameptr namesleft numnames }
374
375
376 STRINGS { bibinfo}
377
378 FUNCTION {format.names}
379 { 'bibinfo :=
380 duplicate$ empty$ 'skip$ {
381 's :=
382 "" 't :=
383 #1 'nameptr :=
384 s num.names$ 'numnames :=
385 numnames 'namesleft :=
386 { namesleft #0 > }
387 { s nameptr
388 duplicate$ #1 >
389 { "{ f{}~}{vv~}{ll}{ jj}" }
390 { "{vv~}{ll}{ f{}}{ jj}" }
391 if$
392 format.name$
393 remove.dots
394 bibinfo bibinfo.check
395 't :=
396 nameptr #1 >
397 {
398 namesleft #1 >
399 { ", " * t * }
400 {
401 s nameptr "{ll}" format.name$ duplicate$ "others" =
402 { 't := }
403 { pop$ }
404 if$
405 numnames #2 >
406 { "," * }
407 'skip$
408 if$
409 t "others" =
410 {
411 " " * bbl.etal *
412 }
413 {
414 "\&"
415 space.word * t *
416 }
417 if$
418 }
419 if$
420 }
421 't
422 if$
423 nameptr #1 + 'nameptr :=
424 namesleft #1 - 'namesleft :=
425 }
426 while$
427 } if$
428 }
429 FUNCTION {format.names.ed}
430 {
431 'bibinfo :=
432 duplicate$ empty$ 'skip$ {
433 's :=
434 "" 't :=
435 #1 'nameptr :=
436 s num.names$ 'numnames :=
437 numnames 'namesleft :=
438 { namesleft #0 > }
439 { s nameptr
440 "{f{}~}{vv~}{ll}{, jj}"
441 format.name$
442 remove.dots
443 bibinfo bibinfo.check
444 't :=
445 nameptr #1 >
446 {
447 namesleft #1 >
448 { ", " * t * }
449 {
450 s nameptr "{ll}" format.name$ duplicate$ "others" =
451 { 't := }
452 { pop$ }
453 if$
454 numnames #2 >
455 { "," * }
456 'skip$
457 if$
458 t "others" =
459 {
460
461 " " * bbl.etal *
462 }
463 {
464 "\&"
465 space.word * t *
466 }
467 if$
468 }
469 if$
470 }
471 't
472 if$
473 nameptr #1 + 'nameptr :=
474 namesleft #1 - 'namesleft :=
475 }
476 while$
477 } if$
478 }
479 FUNCTION {format.key}
480 { empty$
481 { key field.or.null }
482 { "" }
483 if$
484 }
485
486 FUNCTION {format.authors}
487 { author "author" format.names
488 }
489 FUNCTION {get.bbl.editor}
490 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
491
492 FUNCTION {format.editors}
493 { editor "editor" format.names duplicate$ empty$ 'skip$
494 {
495 " " *
496 get.bbl.editor
497 "(" swap$ * ")" *
498 *
499 }
500 if$
501 }
502 FUNCTION {format.doi}
503 { doi empty$
504 { "" }
505 {
506 "\doi{" doi * "}" *
507 }
508 if$
509 }
510 FUNCTION {format.note}
511 {
512 note empty$
513 { "" }
514 { note #1 #1 substring$
515 duplicate$ "{" =
516 'skip$
517 { output.state mid.sentence =
518 { "l" }
519 { "u" }
520 if$
521 change.case$
522 }
523 if$
524 note #2 global.max$ substring$ * "note" bibinfo.check
525 }
526 if$
527 }
528
529 FUNCTION {format.title}
530 { title
531 duplicate$ empty$ 'skip$
532 { "t" change.case$ }
533 if$
534 "title" bibinfo.check
535 duplicate$ empty$ 'skip$
536 {
537 "\enquote{" swap$ *
538 "} " *
539 }
540 if$
541 }
542 FUNCTION {end.quote.title}
543 { title empty$
544 'skip$
545 { before.all 'output.state := }
546 if$
547 }
548 FUNCTION {format.full.names}
549 {'s :=
550 "" 't :=
551 #1 'nameptr :=
552 s num.names$ 'numnames :=
553 numnames 'namesleft :=
554 { namesleft #0 > }
555 { s nameptr
556 "{vv~}{ll}" format.name$
557 't :=
558 nameptr #1 >
559 {
560 namesleft #1 >
561 { ", " * t * }
562 {
563 s nameptr "{ll}" format.name$ duplicate$ "others" =
564 { 't := }
565 { pop$ }
566 if$
567 t "others" =
568 {
569 " " * bbl.etal *
570 }
571 {
572 numnames #2 >
573 { "," * }
574 'skip$
575 if$
576 "\&"
577 space.word * t *
578 }
579 if$
580 }
581 if$
582 }
583 't
584 if$
585 nameptr #1 + 'nameptr :=
586 namesleft #1 - 'namesleft :=
587 }
588 while$
589 }
590
591 FUNCTION {author.editor.key.full}
592 { author empty$
593 { editor empty$
594 { key empty$
595 { cite$ #1 #3 substring$ }
596 'key
597 if$
598 }
599 { editor format.full.names }
600 if$
601 }
602 { author format.full.names }
603 if$
604 }
605
606 FUNCTION {author.key.full}
607 { author empty$
608 { key empty$
609 { cite$ #1 #3 substring$ }
610 'key
611 if$
612 }
613 { author format.full.names }
614 if$
615 }
616
617 FUNCTION {editor.key.full}
618 { editor empty$
619 { key empty$
620 { cite$ #1 #3 substring$ }
621 'key
622 if$
623 }
624 { editor format.full.names }
625 if$
626 }
627
628 FUNCTION {make.full.names}
629 { type$ "book" =
630 type$ "inbook" =
631 or
632 'author.editor.key.full
633 { type$ "proceedings" =
634 'editor.key.full
635 'author.key.full
636 if$
637 }
638 if$
639 }
640
641 FUNCTION {output.bibitem}
642 { newline$
643 "\harvarditem" write$
644 make.full.names duplicate$ label =
645 'skip$
646 { "[" label * "]" * write$ }
647 if$
648 "{" swap$ * "}{" * write$
649 year duplicate$ empty$
650 { pop$ "" }
651 'skip$
652 if$
653 extra.label * "}{" * write$
654 cite$ write$
655 "}" write$
656 newline$
657 ""
658 before.all 'output.state :=
659 }
660
661 FUNCTION {n.dashify}
662 {
663 't :=
664 ""
665 { t empty$ not }
666 { t #1 #1 substring$ "-" =
667 { t #1 #2 substring$ "--" = not
668 { "--" *
669 t #2 global.max$ substring$ 't :=
670 }
671 { { t #1 #1 substring$ "-" = }
672 { "-" *
673 t #2 global.max$ substring$ 't :=
674 }
675 while$
676 }
677 if$
678 }
679 { t #1 #1 substring$ *
680 t #2 global.max$ substring$ 't :=
681 }
682 if$
683 }
684 while$
685 }
686
687 FUNCTION {word.in}
688 { bbl.in
689 " " * }
690
691 FUNCTION {format.date}
692 { year "year" bibinfo.check duplicate$ empty$
693 {
694 }
695 'skip$
696 if$
697 extra.label *
698 before.all 'output.state :=
699 " " swap$ *
700 }
701 FUNCTION {format.btitle}
702 { title "title" bibinfo.check
703 duplicate$ empty$ 'skip$
704 {
705 emphasize
706 }
707 if$
708 }
709 FUNCTION {either.or.check}
710 { empty$
711 'pop$
712 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
713 if$
714 }
715 FUNCTION {format.bvolume}
716 { volume empty$
717 { "" }
718 { bbl.volume volume tie.or.space.prefix
719 "volume" bibinfo.check * *
720 series "series" bibinfo.check
721 duplicate$ empty$ 'pop$
722 { swap$ bbl.of space.word * swap$
723 emphasize * }
724 if$
725 "volume and number" number either.or.check
726 }
727 if$
728 }
729 FUNCTION {format.number.series}
730 { volume empty$
731 { number empty$
732 { series field.or.null }
733 { series empty$
734 { number "number" bibinfo.check }
735 { output.state mid.sentence =
736 { bbl.number }
737 { bbl.number capitalize }
738 if$
739 number tie.or.space.prefix "number" bibinfo.check * *
740 bbl.in space.word *
741 series "series" bibinfo.check *
742 }
743 if$
744 }
745 if$
746 }
747 { "" }
748 if$
749 }
750
751 FUNCTION {format.edition}
752 { edition duplicate$ empty$ 'skip$
753 {
754 output.state mid.sentence =
755 { "l" }
756 { "t" }
757 if$ change.case$
758 "edition" bibinfo.check
759 " " * bbl.edition *
760 }
761 if$
762 }
763 INTEGERS { multiresult }
764 FUNCTION {multi.page.check}
765 { 't :=
766 #0 'multiresult :=
767 { multiresult not
768 t empty$ not
769 and
770 }
771 { t #1 #1 substring$
772 duplicate$ "-" =
773 swap$ duplicate$ "," =
774 swap$ "+" =
775 or or
776 { #1 'multiresult := }
777 { t #2 global.max$ substring$ 't := }
778 if$
779 }
780 while$
781 multiresult
782 }
783 FUNCTION {format.pages}
784 { pages duplicate$ empty$ 'skip$
785 { duplicate$ multi.page.check
786 {
787 bbl.pages swap$
788 n.dashify
789 }
790 {
791 bbl.page swap$
792 }
793 if$
794 tie.or.space.prefix
795 "pages" bibinfo.check
796 * *
797 }
798 if$
799 }
800 FUNCTION {format.journal.pages}
801 { pages duplicate$ empty$ 'pop$
802 { swap$ duplicate$ empty$
803 { pop$ pop$ format.pages }
804 {
805 ":" *
806 swap$
807 n.dashify
808 "pages" bibinfo.check
809 *
810 }
811 if$
812 }
813 if$
814 }
815 FUNCTION {format.journal.eid}
816 { eid "eid" bibinfo.check
817 duplicate$ empty$ 'pop$
818 { swap$ duplicate$ empty$ 'skip$
819 {
820 ":" *
821 }
822 if$
823 swap$ *
824 }
825 if$
826 }
827 FUNCTION {format.vol.num.pages}
828 { volume field.or.null
829 duplicate$ empty$ 'skip$
830 {
831 "volume" bibinfo.check
832 }
833 if$
834 number "number" bibinfo.check duplicate$ empty$ 'skip$
835 {
836 swap$ duplicate$ empty$
837 { "there's a number but no volume in " cite$ * warning$ }
838 'skip$
839 if$
840 swap$
841 "(" swap$ * ")" *
842 }
843 if$ *
844 }
845
846 FUNCTION {format.chapter.pages}
847 { chapter empty$
848 { "" }
849 { type empty$
850 { bbl.chapter }
851 { type "l" change.case$
852 "type" bibinfo.check
853 }
854 if$
855 chapter tie.or.space.prefix
856 "chapter" bibinfo.check
857 * *
858 }
859 if$
860 }
861
862 FUNCTION {format.booktitle}
863 {
864 booktitle "booktitle" bibinfo.check
865 emphasize
866 }
867 FUNCTION {format.in.ed.booktitle}
868 { format.booktitle duplicate$ empty$ 'skip$
869 {
870 editor "editor" format.names.ed duplicate$ empty$ 'pop$
871 {
872 " " *
873 get.bbl.editor
874 "(" swap$ * ") " *
875 * swap$
876 * }
877 if$
878 word.in swap$ *
879 }
880 if$
881 }
882 FUNCTION {format.thesis.type}
883 { type duplicate$ empty$
884 'pop$
885 { swap$ pop$
886 "t" change.case$ "type" bibinfo.check
887 }
888 if$
889 }
890 FUNCTION {format.tr.number}
891 { number "number" bibinfo.check
892 type duplicate$ empty$
893 { pop$ bbl.techrep }
894 'skip$
895 if$
896 "type" bibinfo.check
897 swap$ duplicate$ empty$
898 { pop$ "t" change.case$ }
899 { tie.or.space.prefix * * }
900 if$
901 }
902 FUNCTION {format.article.crossref}
903 {
904 word.in
905 " \cite{" * crossref * "}" *
906 }
907 FUNCTION {format.book.crossref}
908 { volume duplicate$ empty$
909 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
910 pop$ word.in
911 }
912 { bbl.volume
913 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
914 }
915 if$
916 " \cite{" * crossref * "}" *
917 }
918 FUNCTION {format.incoll.inproc.crossref}
919 {
920 word.in
921 " \cite{" * crossref * "}" *
922 }
923 FUNCTION {format.org.or.pub}
924 { 't :=
925 ""
926 address empty$ t empty$ and
927 'skip$
928 {
929 address "address" bibinfo.check *
930 t empty$
931 'skip$
932 { address empty$
933 'skip$
934 { ": " * }
935 if$
936 t *
937 }
938 if$
939 }
940 if$
941 }
942 FUNCTION {format.publisher.address}
943 { publisher "publisher" bibinfo.warn format.org.or.pub
944 }
945
946 FUNCTION {format.organization.address}
947 { organization "organization" bibinfo.check format.org.or.pub
948 }
949
950 FUNCTION {article}
951 { output.bibitem
952 format.authors "author" output.check
953 author format.key output
954 format.date "year" output.check
955 date.block
956 format.title "title" output.check
957 end.quote.title
958 crossref missing$
959 {
960 journal
961 remove.dots
962 "journal" bibinfo.check
963 emphasize
964 "journal" output.check
965 add.blank
966 format.vol.num.pages output
967 }
968 { format.article.crossref output.nonnull
969 }
970 if$
971 eid empty$
972 { format.journal.pages }
973 { format.journal.eid }
974 if$
975 format.doi output
976 format.url output
977 format.note output
978 fin.entry
979 }
980 FUNCTION {book}
981 { output.bibitem
982 author empty$
983 { format.editors "author and editor" output.check
984 editor format.key output
985 add.blank
986 }
987 { format.authors output.nonnull
988 crossref missing$
989 { "author and editor" editor either.or.check }
990 'skip$
991 if$
992 }
993 if$
994 format.date "year" output.check
995 date.block
996 format.btitle "title" output.check
997 crossref missing$
998 { format.bvolume output
999 format.number.series output
1000 format.publisher.address output
1001 }
1002 {
1003 format.book.crossref output.nonnull
1004 }
1005 if$
1006 format.edition output
1007 format.doi output
1008 format.url output
1009 format.note output
1010 fin.entry
1011 }
1012 FUNCTION {booklet}
1013 { output.bibitem
1014 format.authors output
1015 author format.key output
1016 format.date "year" output.check
1017 date.block
1018 format.title "title" output.check
1019 end.quote.title
1020 howpublished "howpublished" bibinfo.check output
1021 address "address" bibinfo.check output
1022 format.doi output
1023 format.url output
1024 format.note output
1025 fin.entry
1026 }
1027
1028 FUNCTION {inbook}
1029 { output.bibitem
1030 author empty$
1031 { format.editors "author and editor" output.check
1032 editor format.key output
1033 }
1034 { format.authors output.nonnull
1035 crossref missing$
1036 { "author and editor" editor either.or.check }
1037 'skip$
1038 if$
1039 }
1040 if$
1041 format.date "year" output.check
1042 date.block
1043 format.btitle "title" output.check
1044 crossref missing$
1045 {
1046 format.publisher.address output
1047 format.bvolume output
1048 format.chapter.pages "chapter and pages" output.check
1049 format.number.series output
1050 }
1051 {
1052 format.chapter.pages "chapter and pages" output.check
1053 format.book.crossref output.nonnull
1054 }
1055 if$
1056 format.edition output
1057 format.pages "pages" output.check
1058 format.doi output
1059 format.url output
1060 format.note output
1061 fin.entry
1062 }
1063
1064 FUNCTION {incollection}
1065 { output.bibitem
1066 format.authors "author" output.check
1067 author format.key output
1068 format.date "year" output.check
1069 date.block
1070 format.title "title" output.check
1071 end.quote.title
1072 crossref missing$
1073 { format.in.ed.booktitle "booktitle" output.check
1074 format.publisher.address output
1075 format.bvolume output
1076 format.number.series output
1077 format.chapter.pages output
1078 format.edition output
1079 }
1080 { format.incoll.inproc.crossref output.nonnull
1081 format.chapter.pages output
1082 }
1083 if$
1084 format.pages "pages" output.check
1085 format.doi output
1086 format.url output
1087 format.note output
1088 fin.entry
1089 }
1090 FUNCTION {inproceedings}
1091 { output.bibitem
1092 format.authors "author" output.check
1093 author format.key output
1094 format.date "year" output.check
1095 date.block
1096 format.title "title" output.check
1097 end.quote.title
1098 crossref missing$
1099 { format.in.ed.booktitle "booktitle" output.check
1100 publisher empty$
1101 { format.organization.address output }
1102 { organization "organization" bibinfo.check output
1103 format.publisher.address output
1104 }
1105 if$
1106 format.bvolume output
1107 format.number.series output
1108 }
1109 { format.incoll.inproc.crossref output.nonnull
1110 }
1111 if$
1112 format.pages "pages" output.check
1113 format.doi output
1114 format.url output
1115 format.note output
1116 fin.entry
1117 }
1118 FUNCTION {conference} { inproceedings }
1119 FUNCTION {manual}
1120 { output.bibitem
1121 format.authors output
1122 author format.key output
1123 format.date "year" output.check
1124 date.block
1125 format.btitle "title" output.check
1126 organization "organization" bibinfo.check output
1127 address "address" bibinfo.check output
1128 format.edition output
1129 format.doi output
1130 format.url output
1131 format.note output
1132 fin.entry
1133 }
1134
1135 FUNCTION {mastersthesis}
1136 { output.bibitem
1137 format.authors "author" output.check
1138 author format.key output
1139 format.date "year" output.check
1140 date.block
1141 format.btitle
1142 "title" output.check
1143 bbl.mthesis format.thesis.type output.nonnull
1144 school "school" bibinfo.warn output
1145 address "address" bibinfo.check output
1146 format.doi output
1147 format.url output
1148 format.note output
1149 fin.entry
1150 }
1151
1152 FUNCTION {misc}
1153 { output.bibitem
1154 format.authors output
1155 author format.key output
1156 format.date "year" output.check
1157 date.block
1158 format.title output
1159 end.quote.title
1160 howpublished "howpublished" bibinfo.check output
1161 format.doi output
1162 format.url output
1163 format.note output
1164 fin.entry
1165 }
1166 FUNCTION {phdthesis}
1167 { output.bibitem
1168 format.authors "author" output.check
1169 author format.key output
1170 format.date "year" output.check
1171 date.block
1172 format.btitle
1173 "title" output.check
1174 bbl.phdthesis format.thesis.type output.nonnull
1175 school "school" bibinfo.warn output
1176 address "address" bibinfo.check output
1177 format.doi output
1178 format.url output
1179 format.note output
1180 fin.entry
1181 }
1182
1183 FUNCTION {proceedings}
1184 { output.bibitem
1185 format.editors output
1186 editor format.key output
1187 format.date "year" output.check
1188 date.block
1189 format.btitle "title" output.check
1190 format.bvolume output
1191 format.number.series output
1192 publisher empty$
1193 { format.organization.address output }
1194 { organization "organization" bibinfo.check output
1195 format.publisher.address output
1196 }
1197 if$
1198 format.doi output
1199 format.url output
1200 format.note output
1201 fin.entry
1202 }
1203
1204 FUNCTION {techreport}
1205 { output.bibitem
1206 format.authors "author" output.check
1207 author format.key output
1208 format.date "year" output.check
1209 date.block
1210 format.title
1211 "title" output.check
1212 end.quote.title
1213 format.tr.number output.nonnull
1214 institution "institution" bibinfo.warn output
1215 address "address" bibinfo.check output
1216 format.doi output
1217 format.url output
1218 format.note output
1219 fin.entry
1220 }
1221
1222 FUNCTION {unpublished}
1223 { output.bibitem
1224 format.authors "author" output.check
1225 author format.key output
1226 format.date "year" output.check
1227 date.block
1228 format.title "title" output.check
1229 end.quote.title
1230 format.doi output
1231 format.url output
1232 format.note "note" output.check
1233 fin.entry
1234 }
1235
1236 FUNCTION {default.type} { misc }
1237 READ
1238 FUNCTION {sortify}
1239 { purify$
1240 "l" change.case$
1241 }
1242 INTEGERS { len }
1243 FUNCTION {chop.word}
1244 { 's :=
1245 'len :=
1246 s #1 len substring$ =
1247 { s len #1 + global.max$ substring$ }
1248 's
1249 if$
1250 }
1251 FUNCTION {format.lab.names}
1252 { 's :=
1253 "" 't :=
1254 s #1 "{vv~}{ll}" format.name$
1255 s num.names$ duplicate$
1256 #2 >
1257 { pop$
1258 " " * bbl.etal *
1259 }
1260 { #2 <
1261 'skip$
1262 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1263 {
1264 " " * bbl.etal *
1265 }
1266 { " \& " * s #2 "{vv~}{ll}" format.name$
1267 * }
1268 if$
1269 }
1270 if$
1271 }
1272 if$
1273 }
1274
1275 FUNCTION {author.key.label}
1276 { author empty$
1277 { key empty$
1278 { cite$ #1 #3 substring$ }
1279 'key
1280 if$
1281 }
1282 { author format.lab.names }
1283 if$
1284 }
1285
1286 FUNCTION {author.editor.key.label}
1287 { author empty$
1288 { editor empty$
1289 { key empty$
1290 { cite$ #1 #3 substring$ }
1291 'key
1292 if$
1293 }
1294 { editor format.lab.names }
1295 if$
1296 }
1297 { author format.lab.names }
1298 if$
1299 }
1300
1301 FUNCTION {editor.key.label}
1302 { editor empty$
1303 { key empty$
1304 { cite$ #1 #3 substring$ }
1305 'key
1306 if$
1307 }
1308 { editor format.lab.names }
1309 if$
1310 }
1311
1312 FUNCTION {calc.short.authors}
1313 { type$ "book" =
1314 type$ "inbook" =
1315 or
1316 'author.editor.key.label
1317 { type$ "proceedings" =
1318 'editor.key.label
1319 'author.key.label
1320 if$
1321 }
1322 if$
1323 'short.list :=
1324 }
1325
1326 FUNCTION {calc.label}
1327 { calc.short.authors
1328 short.list
1329 ", "
1330 *
1331 year duplicate$ empty$
1332 short.list key field.or.null = or
1333 { pop$ "" }
1334 'skip$
1335 if$
1336 *
1337 'label :=
1338 }
1339
1340 FUNCTION {calc.short.label}
1341 { calc.short.authors short.list
1342 'label :=
1343 }
1344 FUNCTION {sort.format.names}
1345 { 's :=
1346 #1 'nameptr :=
1347 ""
1348 s num.names$ 'numnames :=
1349 numnames 'namesleft :=
1350 { namesleft #0 > }
1351 { s nameptr
1352 "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}"
1353 format.name$ 't :=
1354 nameptr #1 >
1355 {
1356 " " *
1357 namesleft #1 = t "others" = and
1358 { "zzzzz" 't := }
1359 'skip$
1360 if$
1361 numnames #2 > nameptr #2 = and
1362 { "zz" * year field.or.null * " " *
1363 }
1364 'skip$
1365 if$
1366 t sortify *
1367 }
1368 { t sortify * }
1369 if$
1370 nameptr #1 + 'nameptr :=
1371 namesleft #1 - 'namesleft :=
1372 }
1373 while$
1374 }
1375
1376 FUNCTION {sort.format.title}
1377 { 't :=
1378 "A " #2
1379 "An " #3
1380 "The " #4 t chop.word
1381 chop.word
1382 chop.word
1383 sortify
1384 #1 global.max$ substring$
1385 }
1386 FUNCTION {author.sort}
1387 { author empty$
1388 { key empty$
1389 { "to sort, need author or key in " cite$ * warning$
1390 ""
1391 }
1392 { key sortify }
1393 if$
1394 }
1395 { author sort.format.names }
1396 if$
1397 }
1398 FUNCTION {author.editor.sort}
1399 { author empty$
1400 { editor empty$
1401 { key empty$
1402 { "to sort, need author, editor, or key in " cite$ * warning$
1403 ""
1404 }
1405 { key sortify }
1406 if$
1407 }
1408 { editor sort.format.names }
1409 if$
1410 }
1411 { author sort.format.names }
1412 if$
1413 }
1414 FUNCTION {editor.sort}
1415 { editor empty$
1416 { key empty$
1417 { "to sort, need editor or key in " cite$ * warning$
1418 ""
1419 }
1420 { key sortify }
1421 if$
1422 }
1423 { editor sort.format.names }
1424 if$
1425 }
1426 FUNCTION {presort}
1427 { calc.label
1428 label sortify
1429 " "
1430 *
1431 type$ "book" =
1432 type$ "inbook" =
1433 or
1434 'author.editor.sort
1435 { type$ "proceedings" =
1436 'editor.sort
1437 'author.sort
1438 if$
1439 }
1440 if$
1441 #1 entry.max$ substring$
1442 'sort.label :=
1443 sort.label
1444 *
1445 " "
1446 *
1447 title field.or.null
1448 sort.format.title
1449 *
1450 #1 entry.max$ substring$
1451 'sort.key$ :=
1452 }
1453
1454 ITERATE {presort}
1455 SORT
1456 STRINGS { last.label next.extra }
1457 INTEGERS { last.extra.num last.extra.num.extended last.extra.num.blank number.label }
1458 FUNCTION {initialize.extra.label.stuff}
1459 { #0 int.to.chr$ 'last.label :=
1460 "" 'next.extra :=
1461 #0 'last.extra.num :=
1462 "a" chr.to.int$ #1 - 'last.extra.num.blank :=
1463 last.extra.num.blank 'last.extra.num.extended :=
1464 #0 'number.label :=
1465 }
1466 FUNCTION {forward.pass}
1467 { last.label label =
1468 { last.extra.num #1 + 'last.extra.num :=
1469 last.extra.num "z" chr.to.int$ >
1470 { "a" chr.to.int$ 'last.extra.num :=
1471 last.extra.num.extended #1 + 'last.extra.num.extended :=
1472 }
1473 'skip$
1474 if$
1475 last.extra.num.extended last.extra.num.blank >
1476 { last.extra.num.extended int.to.chr$
1477 last.extra.num int.to.chr$
1478 * 'extra.label := }
1479 { last.extra.num int.to.chr$ 'extra.label := }
1480 if$
1481 }
1482 { "a" chr.to.int$ 'last.extra.num :=
1483 "" 'extra.label :=
1484 label 'last.label :=
1485 }
1486 if$
1487 number.label #1 + 'number.label :=
1488 }
1489 FUNCTION {reverse.pass}
1490 { next.extra "b" =
1491 { "a" 'extra.label := }
1492 'skip$
1493 if$
1494 extra.label 'next.extra :=
1495 extra.label
1496 duplicate$ empty$
1497 'skip$
1498 { "{\natexlab{" swap$ * "}}" * }
1499 if$
1500 'extra.label :=
1501 }
1502 EXECUTE {initialize.extra.label.stuff}
1503 ITERATE {forward.pass}
1504 REVERSE {reverse.pass}
1505 FUNCTION {bib.sort.order}
1506 { sort.label
1507 " "
1508 *
1509 year field.or.null sortify
1510 *
1511 " "
1512 *
1513 title field.or.null
1514 sort.format.title
1515 *
1516 #1 entry.max$ substring$
1517 'sort.key$ :=
1518 calc.short.label
1519 }
1520 ITERATE {bib.sort.order}
1521 SORT
1522 FUNCTION {begin.bib}
1523 { preamble$ empty$
1524 'skip$
1525 { preamble$ write$ newline$ }
1526 if$
1527 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1528 write$ newline$
1529 "\newcommand{\enquote}[1]{`#1'}"
1530 write$ newline$
1531 "\providecommand{\natexlab}[1]{#1}"
1532 write$ newline$
1533 "{\catcode`\|=0\catcode`\#=12\catcode`\@=11\catcode`\\=12" write$ newline$
1534 "|immediate|write|@auxout{\expandafter\ifx\csname natexlab\endcsname\relax\gdef\natexlab#1{#1}\fi}}"
1535 write$ newline$
1536 "\providecommand{\url}[1]{\texttt{#1}}"
1537 write$ newline$
1538 "\providecommand{\urlprefix}{URL }"
1539 write$ newline$
1540 "\expandafter\ifx\csname urlstyle\endcsname\relax"
1541 write$ newline$
1542 " \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else"
1543 write$ newline$
1544 " \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi"
1545 write$ newline$
1546 }
1547 EXECUTE {begin.bib}
1548 EXECUTE {init.state.consts}
1549 ITERATE {call.type$}
1550 FUNCTION {end.bib}
1551 { newline$
1552 "\end{thebibliography}" write$ newline$
1553 }
1554 EXECUTE {end.bib}
1555 %% End of customized bst file
1556 %%
1557 %% End of file `ajl.bst'.