Debian Codegraph @

texmf-dist/bibtex/bst/bath-bst/bath.bst

raw
1 %%
2 %% This is file `bath.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% bath-bst.dtx (with options: `bst1')
8 %% ----------------------------------------------------------------
9 %% bath-bst --- Harvard referencing style as recommended by the University of Bath Library
10 %% Author: Alex Ball
11 %% E-mail: [email protected]
12 %% License: Released under the LaTeX Project Public License v1.3c or later
13 %% See: http://www.latex-project.org/lppl.txt
14 %% ----------------------------------------------------------------
15 %%
16 ENTRY
17 { address
18 archive
19 author
20 booktitle
21 casenumber
22 chapter
23 doi
24 edition
25 editor
26 eid
27 entrysubtype
28 eprint
29 eventyear
30 howpublished
31 institution
32 journal
33 key
34 keywords
35 language
36 library
37 month
38 nameaddon
39 note
40 number
41 options
42 organization
43 pages
44 publisher
45 pubstate
46 school
47 series
48 shortauthor
49 shorteditor
50 sortyear
51 title
52 titleaddon
53 translator
54 type
55 url
56 urldate
57 urlyear
58 userb
59 venue
60 version
61 volume
62 year
63 }
64 { cite.initials disamb.names }
65 { label label.source extra.label sort.label short.list }
66 INTEGERS {
67 output.state before.all mid.clause mid.sentence after.sentence after.block
68 online.shown
69 }
70 FUNCTION {init.state.consts}
71 { #0 'before.all :=
72 #1 'mid.clause :=
73 #2 'mid.sentence :=
74 #3 'after.sentence :=
75 #4 'after.block :=
76 }
77 STRINGS { s t field abbrev }
78 FUNCTION {output.nonnull}
79 { 's :=
80 output.state mid.sentence =
81 { ", " * write$ }
82 { output.state after.sentence =
83 { add.period$ " " * write$ }
84 { output.state before.all =
85 'write$
86 { output.state mid.clause =
87 { " " * write$ }
88 { add.period$ write$
89 newline$
90 "\newblock " write$
91 }
92 if$
93 }
94 if$
95 }
96 if$
97 mid.sentence 'output.state :=
98 }
99 if$
100 s
101 }
102 FUNCTION {end.clause}
103 { output.state mid.clause =
104 { mid.sentence 'output.state := }
105 'skip$
106 if$
107 }
108 FUNCTION {output}
109 { duplicate$ empty$
110 { pop$ end.clause }
111 'output.nonnull
112 if$
113 }
114 FUNCTION {output.check}
115 { 't :=
116 duplicate$ empty$
117 { pop$ "empty " t * " in " * cite$ * warning$
118 end.clause
119 }
120 'output.nonnull
121 if$
122 }
123 FUNCTION {new.block}
124 { output.state before.all =
125 'skip$
126 { after.block 'output.state := }
127 if$
128 }
129 FUNCTION {new.sentence}
130 { output.state after.block =
131 'skip$
132 { output.state before.all =
133 'skip$
134 { after.sentence 'output.state := }
135 if$
136 }
137 if$
138 }
139 FUNCTION {continue.clause}
140 { output.state after.sentence =
141 'skip$
142 { output.state after.block =
143 'skip$
144 { output.state before.all =
145 'skip$
146 { mid.clause 'output.state := }
147 if$
148 }
149 if$
150 }
151 if$
152 }
153 FUNCTION {date.block}
154 { new.block
155 }
156 FUNCTION {bibinfo.check}
157 { swap$
158 duplicate$ missing$
159 { pop$ pop$
160 ""
161 }
162 { duplicate$ empty$
163 { swap$ pop$
164 }
165 { swap$
166 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
167 }
168 if$
169 }
170 if$
171 }
172 FUNCTION {bibinfo.warn}
173 { swap$
174 duplicate$ missing$
175 { swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
176 ""
177 }
178 { duplicate$ empty$
179 { swap$ "empty " swap$ * " in " * cite$ * warning$
180 }
181 { swap$
182 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
183 }
184 if$
185 }
186 if$
187 }
188 FUNCTION {fin.entry}
189 { add.period$
190 write$
191 newline$
192 }
193
194 FUNCTION {not}
195 { { #0 }
196 { #1 }
197 if$
198 }
199 FUNCTION {and}
200 { 'skip$
201 { pop$ #0 }
202 if$
203 }
204 FUNCTION {or}
205 { { pop$ #1 }
206 'skip$
207 if$
208 }
209 FUNCTION {new.block.checkb}
210 { empty$
211 swap$ empty$
212 and
213 'skip$
214 'new.block
215 if$
216 }
217 FUNCTION {field.or.null}
218 { duplicate$ empty$
219 { pop$ "" }
220 'skip$
221 if$
222 }
223 FUNCTION {emphasize}
224 { duplicate$ empty$
225 { pop$ "" }
226 { "\emph{" swap$ * "}" * }
227 if$
228 }
229 FUNCTION {tie.or.space.prefix}
230 { duplicate$ text.length$ #3 <
231 { "~" }
232 { " " }
233 if$
234 swap$
235 }
236 FUNCTION {capitalize}
237 { "u" change.case$ "t" change.case$ }
238 FUNCTION {space.word}
239 { " " swap$ * " " * }
240 FUNCTION {either.or.check}
241 { empty$
242 'pop$
243 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
244 if$
245 }
246 FUNCTION {is.online}
247 { online.shown
248 { #0 }
249 { url empty$
250 doi empty$ and
251 urldate empty$ and
252 urlyear empty$ and
253 { type$ "online" =
254 { #1 }
255 { #0 }
256 if$
257 }
258 { #1 }
259 if$
260 }
261 if$
262 }
263 FUNCTION {bbl.and}
264 { "and"}
265
266 FUNCTION {bbl.byeditor}
267 { "Ed. by" }
268
269 FUNCTION {bbl.etal}
270 { "et~al." }
271
272 FUNCTION {bbl.editors}
273 { "eds" }
274
275 FUNCTION {bbl.editor}
276 { "ed." }
277
278 FUNCTION {bbl.edby}
279 { "edited by" }
280
281 FUNCTION {bbl.translator}
282 { "Trans." }
283
284 FUNCTION {bbl.edition}
285 { "ed." }
286
287 FUNCTION {bbl.volume}
288 { "vol." }
289
290 FUNCTION {bbl.of}
291 { "of" }
292
293 FUNCTION {bbl.number}
294 { "no." }
295
296 FUNCTION {bbl.nr}
297 { "no." }
298
299 FUNCTION {bbl.in}
300 { "in" }
301
302 FUNCTION {bbl.pages}
303 { "pp." }
304
305 FUNCTION {bbl.page}
306 { "p." }
307
308 FUNCTION {bbl.chapter}
309 { "chap." }
310
311 FUNCTION {bbl.techrep}
312 { "Tech. Rep." }
313
314 FUNCTION {bbl.mthesis}
315 { "Master's thesis" }
316
317 FUNCTION {bbl.phdthesis}
318 { "Ph.D. thesis" }
319
320 FUNCTION {bbl.first}
321 { "1st" }
322
323 FUNCTION {bbl.second}
324 { "2nd" }
325
326 FUNCTION {bbl.third}
327 { "3rd" }
328
329 FUNCTION {bbl.fourth}
330 { "4th" }
331
332 FUNCTION {bbl.fifth}
333 { "5th" }
334
335 FUNCTION {bbl.st}
336 { "st" }
337
338 FUNCTION {bbl.nd}
339 { "nd" }
340
341 FUNCTION {bbl.rd}
342 { "rd" }
343
344 FUNCTION {bbl.th}
345 { "th" }
346
347 FUNCTION {bbl.commission}
348 { "Commission Decision" }
349
350 FUNCTION {bbl.online}
351 { "[Online]" }
352
353 FUNCTION {bbl.nodate}
354 { "n.d." }
355
356 FUNCTION {bbl.inpreparation}
357 { "preprint" }
358
359 FUNCTION {bbl.submitted}
360 { "preprint" }
361
362 FUNCTION {bbl.inpress}
363 { "in press" }
364
365 FUNCTION {bbl.unpublished}
366 { "Unpublished" }
367
368 MACRO {jan} {"January"}
369
370 MACRO {feb} {"February"}
371
372 MACRO {mar} {"March"}
373
374 MACRO {apr} {"April"}
375
376 MACRO {may} {"May"}
377
378 MACRO {jun} {"June"}
379
380 MACRO {jul} {"July"}
381
382 MACRO {aug} {"August"}
383
384 MACRO {sep} {"September"}
385
386 MACRO {oct} {"October"}
387
388 MACRO {nov} {"November"}
389
390 MACRO {dec} {"December"}
391
392 FUNCTION {eng.ord}
393 { duplicate$ "1" swap$ *
394 #-2 #1 substring$ "1" =
395 { bbl.th * }
396 { duplicate$ #-1 #1 substring$
397 duplicate$ "1" =
398 { pop$ bbl.st * }
399 { duplicate$ "2" =
400 { pop$ bbl.nd * }
401 { "3" =
402 { bbl.rd * }
403 { bbl.th * }
404 if$
405 }
406 if$
407 }
408 if$
409 }
410 if$
411 }
412 FUNCTION {word.in}
413 { bbl.in capitalize
414 ":" *
415 " " * }
416
417 INTEGERS { nameptr namesleft numnames }
418 FUNCTION {format.full.names}
419 { 's :=
420 "" 't :=
421 #1 'nameptr :=
422 s num.names$ 'numnames :=
423 numnames 'namesleft :=
424 { namesleft #0 > }
425 { s nameptr
426 duplicate$ #1 =
427 cite.initials
428 and
429 { "{ll}{, jj}{, f{.}.}{~vv}" }
430 { "{ll}" }
431 if$
432 format.name$
433 't :=
434 nameptr #1 >
435 { namesleft #1 >
436 { ", " * t * }
437 { s nameptr "{ll}" format.name$ duplicate$ "others" =
438 { 't := }
439 { pop$ }
440 if$
441 t "others" =
442 { " " * bbl.etal *
443 }
444 { bbl.and
445 space.word * t *
446 }
447 if$
448 }
449 if$
450 }
451 't
452 if$
453 nameptr #1 + 'nameptr :=
454 namesleft #1 - 'namesleft :=
455 }
456 while$
457 }
458 FUNCTION {author.editor.key.full}
459 { shortauthor empty$
460 { author empty$
461 { shorteditor empty$
462 { editor empty$
463 { key empty$
464 { cite$ #1 #3 substring$ }
465 'key
466 if$
467 }
468 { editor format.full.names }
469 if$
470 }
471 { shorteditor format.full.names }
472 if$
473 }
474 { author format.full.names }
475 if$
476 }
477 { shortauthor format.full.names }
478 if$
479 }
480 FUNCTION {editor.key.full}
481 { shorteditor empty$
482 { editor empty$
483 { key empty$
484 { cite$ #1 #3 substring$ }
485 'key
486 if$
487 }
488 { editor format.full.names }
489 if$
490 }
491 { shorteditor format.full.names }
492 if$
493 }
494 FUNCTION {author.key.full}
495 { shortauthor empty$
496 { author empty$
497 { key empty$
498 { cite$ #1 #3 substring$ }
499 'key
500 if$
501 }
502 { author format.full.names }
503 if$
504 }
505 { shortauthor format.full.names }
506 if$
507 }
508 FUNCTION {make.full.names}
509 { type$ "book" =
510 type$ "inbook" =
511 or
512 'author.editor.key.full
513 { type$ "proceedings" =
514 'editor.key.full
515 'author.key.full
516 if$
517 }
518 if$
519 }
520 FUNCTION {format.lab.names}
521 { 's :=
522 "" 't :=
523 #1 'nameptr :=
524 s num.names$ 'numnames :=
525 numnames 'namesleft :=
526 { namesleft #0 > }
527 { s nameptr
528 duplicate$ #1 =
529 cite.initials
530 and
531 { "{ll}{, jj}{, f{.}.}{~vv}" }
532 { "{ll}" }
533 if$
534 format.name$
535 't :=
536 nameptr #1 >
537 { nameptr #2 disamb.names + =
538 numnames #3 > and
539 { "others" 't :=
540 #1 'namesleft := }
541 'skip$
542 if$
543 namesleft #1 >
544 { ", " * t * }
545 { s nameptr "{ll}" format.name$ duplicate$ "others" =
546 { 't := }
547 { pop$ }
548 if$
549 t "others" =
550 { " " * bbl.etal *
551 }
552 { bbl.and
553 space.word * t *
554 }
555 if$
556 }
557 if$
558 }
559 't
560 if$
561 nameptr #1 + 'nameptr :=
562 namesleft #1 - 'namesleft :=
563 }
564 while$
565 }
566 FUNCTION {title.label}
567 { title
568 duplicate$ 'label.source :=
569 "t" change.case$
570 type$ duplicate$
571 "book" = swap$
572 "collection" =
573 or
574 'emphasize
575 {
576 type$ duplicate$
577 "techreport" = swap$
578 "report" =
579 or
580 'emphasize
581 {
582 type$ duplicate$ duplicate$ duplicate$
583 duplicate$ duplicate$ duplicate$ duplicate$
584 "manual" = swap$
585 "dataset" =
586 or swap$
587 "electronic" =
588 or swap$
589 "online" =
590 or swap$
591 "patent" =
592 or swap$
593 "software" =
594 or swap$
595 "standard" =
596 or swap$
597 "www" =
598 or
599 'emphasize
600 {
601 type$ duplicate$ duplicate$ duplicate$ duplicate$
602 "booklet" = swap$
603 "audio" =
604 or swap$
605 "movie" =
606 or swap$
607 "music" =
608 or swap$
609 "video" =
610 or
611 { type duplicate$ empty$
612 { pop$ emphasize }
613 { duplicate$ "TV" = swap$ "Radio" = or
614 'skip$
615 'emphasize
616 if$
617 }
618 if$
619 }
620 {
621 type$ "image" =
622 'emphasize
623 {
624 type$ "jurisdiction" =
625 'emphasize
626 {
627 type$ "legislation" =
628 { journal empty$
629 'emphasize
630 'skip$
631 if$
632 }
633 {
634 type$ "proceedings" =
635 'emphasize
636 {
637 type$ "unpublished" =
638 booktitle empty$
639 and
640 'emphasize
641 {}
642 if$
643 } if$
644 } if$
645 } if$
646 } if$
647 } if$
648 } if$
649 } if$
650 } if$
651 }
652 FUNCTION {author.editor.key.label}
653 { shortauthor empty$
654 { author empty$
655 { shorteditor empty$
656 { editor empty$
657 { key empty$
658 { title empty$
659 { cite$
660 duplicate$ 'label.source :=
661 #1 #3 substring$
662 }
663 'title.label
664 if$
665 }
666 { key
667 duplicate$ 'label.source :=
668 }
669 if$
670 }
671 { editor
672 duplicate$ 'label.source :=
673 format.lab.names
674 }
675 if$
676 }
677 { shorteditor
678 duplicate$ 'label.source :=
679 format.lab.names
680 }
681 if$
682 }
683 { author
684 duplicate$ 'label.source :=
685 format.lab.names
686 }
687 if$
688 }
689 { shortauthor
690 duplicate$ 'label.source :=
691 format.lab.names
692 }
693 if$
694 }
695 FUNCTION {editor.key.label}
696 { shorteditor empty$
697 { editor empty$
698 { key empty$
699 { title empty$
700 { cite$
701 duplicate$ 'label.source :=
702 #1 #3 substring$
703 }
704 'title.label
705 if$
706 }
707 { key
708 duplicate$ 'label.source :=
709 }
710 if$
711 }
712 { editor
713 duplicate$ 'label.source :=
714 format.lab.names
715 }
716 if$
717 }
718 { shorteditor
719 duplicate$ 'label.source :=
720 format.lab.names
721 }
722 if$
723 }
724 FUNCTION {author.key.label}
725 { shortauthor empty$
726 { author empty$
727 { key empty$
728 { type$ "inreference" =
729 booktitle empty$ not
730 and
731 { booktitle
732 duplicate$ 'label.source :=
733 }
734 { title empty$
735 { cite$
736 duplicate$ 'label.source :=
737 #1 #3 substring$
738 }
739 'title.label
740 if$
741 }
742 if$
743 }
744 { key
745 duplicate$ 'label.source :=
746 }
747 if$
748 }
749 { author
750 duplicate$ 'label.source :=
751 format.lab.names
752 }
753 if$
754 }
755 { shortauthor
756 duplicate$ 'label.source :=
757 format.lab.names
758 }
759 if$
760 }
761 FUNCTION {calc.short.authors}
762 { type$ "book" =
763 type$ "inbook" =
764 or
765 'author.editor.key.label
766 { type$ "proceedings" =
767 'editor.key.label
768 'author.key.label
769 if$
770 }
771 if$
772 'short.list :=
773 }
774 FUNCTION {format.names}
775 { 'field :=
776 duplicate$ empty$
777 'skip$
778 { 's :=
779 "" 't :=
780 #1 'nameptr :=
781 s num.names$ 'numnames :=
782 numnames 'namesleft :=
783 { namesleft #0 > }
784 { s nameptr
785 "{ll}{, jj}{, f{.}.}{~vv}"
786 format.name$
787 field bibinfo.check
788 't :=
789 nameptr #1 >
790 { namesleft #1 >
791 { ", " * t * }
792 { s nameptr "{ll}" format.name$ duplicate$ "others" =
793 { 't := }
794 { pop$ }
795 if$
796 t "others" =
797 { " " * bbl.etal *
798 }
799 { bbl.and
800 space.word * t *
801 }
802 if$
803 }
804 if$
805 }
806 't
807 if$
808 nameptr #1 + 'nameptr :=
809 namesleft #1 - 'namesleft :=
810 }
811 while$
812 }
813 if$
814 }
815 FUNCTION {format.names.short}
816 { 'field :=
817 duplicate$ empty$
818 { pop$ field format.names }
819 { 'abbrev :=
820 duplicate$ empty$
821 'skip$
822 { 's :=
823 "" 't :=
824 #1 'nameptr :=
825 s num.names$ duplicate$ 'numnames :=
826 abbrev num.names$ =
827 { numnames 'namesleft :=
828 { namesleft #0 > }
829 { abbrev nameptr "{ll}{, jj}{, f{.}.}{~vv}" format.name$
830 't :=
831 s nameptr "{ll}{, jj}{, f{.}.}{~vv}" format.name$
832 duplicate$ t =
833 { field bibinfo.check 't := }
834 { " (" swap$ * ")" *
835 t field bibinfo.check swap$ *
836 't :=
837 }
838 if$
839 nameptr #1 >
840 { namesleft #1 >
841 { ", " * t * }
842 { s nameptr "{ll}" format.name$ duplicate$ "others" =
843 { 't := }
844 { pop$ }
845 if$
846 t "others" =
847 { " " * bbl.etal *
848 }
849 { bbl.and
850 space.word * t *
851 }
852 if$
853 }
854 if$
855 }
856 't
857 if$
858 nameptr #1 + 'nameptr :=
859 namesleft #1 - 'namesleft :=
860 }
861 while$
862 }
863 { s field format.names }
864 if$
865 }
866 if$
867 }
868 if$
869 }
870 FUNCTION {format.names.ed}
871 { 'field :=
872 duplicate$ empty$
873 'skip$
874 { 's :=
875 "" 't :=
876 #1 'nameptr :=
877 s num.names$ 'numnames :=
878 numnames 'namesleft :=
879 { namesleft #0 > }
880 { s nameptr
881 "{f{.}.~}{vv~}{ll}{ jj}"
882 format.name$
883 field bibinfo.check
884 't :=
885 nameptr #1 >
886 { namesleft #1 >
887 { ", " * t * }
888 { s nameptr "{ll}" format.name$ duplicate$ "others" =
889 { 't := }
890 { pop$ }
891 if$
892 t "others" =
893 { " " * bbl.etal *
894 }
895 { bbl.and
896 space.word * t *
897 }
898 if$
899 }
900 if$
901 }
902 't
903 if$
904 nameptr #1 + 'nameptr :=
905 namesleft #1 - 'namesleft :=
906 }
907 while$
908 }
909 if$
910 }
911 FUNCTION {format.authors}
912 { author shortauthor "author" format.names.short
913 }
914 FUNCTION {format.byeditors}
915 { editor "editor" format.names.ed duplicate$ empty$ 'skip$
916 { bbl.byeditor
917 " " *
918 swap$ *
919 }
920 if$
921 }
922 FUNCTION {get.bbl.editor}
923 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
924 FUNCTION {format.editors}
925 { editor shorteditor "editor" format.names.short duplicate$ empty$ 'skip$
926 { "," *
927 " " *
928 get.bbl.editor
929 *
930 }
931 if$
932 }
933 FUNCTION {format.translators}
934 { translator "translator" format.names.ed duplicate$ empty$ 'skip$
935 { "," *
936 " " *
937 bbl.translator *
938 "(" swap$ *
939 ")" *
940 }
941 if$
942 }
943 FUNCTION {format.key}
944 { empty$
945 { key field.or.null }
946 { "" }
947 if$
948 nameaddon duplicate$ empty$
949 'pop$
950 { swap$ duplicate$ empty$
951 'skip$
952 { " " * }
953 if$
954 swap$ "[" swap$ * * "]" *
955 continue.clause
956 }
957 if$
958 }
959 FUNCTION {select.language}
960 { duplicate$ empty$
961 'pop$
962 { language empty$
963 'skip$
964 { "{\selectlanguage{" language * "}" * swap$ * "}" * }
965 if$
966 }
967 if$
968 }
969 FUNCTION {format.title}
970 { title
971 duplicate$ empty$ 'skip$
972 { "t" change.case$ }
973 if$
974 "title" bibinfo.check
975 duplicate$ empty$
976 'skip$
977 { select.language }
978 if$
979 }
980 FUNCTION {format.btitle}
981 { title
982 duplicate$ empty$ 'skip$
983 { "t" change.case$ }
984 if$
985 "title" bibinfo.check
986 duplicate$ empty$
987 'skip$
988 { emphasize select.language }
989 if$
990 }
991 FUNCTION {format.avtitle}
992 { title
993 duplicate$ empty$ 'skip$
994 { "t" change.case$ }
995 if$
996 "title" bibinfo.check
997 duplicate$ empty$
998 'skip$
999 { type duplicate$ empty$
1000 { pop$ emphasize }
1001 { duplicate$ "TV" = swap$ "Radio" = or
1002 'skip$
1003 'emphasize
1004 if$
1005 }
1006 if$
1007 select.language
1008 }
1009 if$
1010 }
1011 FUNCTION {format.titleaddon}
1012 { titleaddon
1013 duplicate$ empty$ 'skip$
1014 { "titleaddon" bibinfo.check }
1015 if$
1016 }
1017 FUNCTION {format.version}
1018 { version
1019 duplicate$ empty$ 'skip$
1020 { "(v." swap$ *
1021 "version" bibinfo.check
1022 ")" *
1023 }
1024 if$
1025 }
1026 FUNCTION {print.labeltitle.addenda}
1027 { continue.clause
1028 online.shown
1029 'skip$
1030 { format.version output
1031 continue.clause
1032 format.titleaddon output
1033 #1 'online.shown :=
1034 }
1035 if$
1036 }
1037 FUNCTION {print.title.addenda}
1038 { continue.clause
1039 online.shown
1040 'skip$
1041 { format.version output
1042 continue.clause
1043 format.titleaddon output
1044 #1 'online.shown :=
1045 }
1046 if$
1047 continue.clause
1048 type$ "reference" =
1049 { format.byeditors output }
1050 'skip$
1051 if$
1052 format.translators output
1053 }
1054 FUNCTION {format.label.booktitle}
1055 { booktitle
1056 duplicate$ empty$ 'skip$
1057 { "t" change.case$ }
1058 if$
1059 "booktitle" bibinfo.check
1060 }
1061 FUNCTION {format.booktitle}
1062 { format.label.booktitle
1063 emphasize
1064 }
1065 FUNCTION {format.in.ed.booktitle}
1066 { format.booktitle
1067 duplicate$ empty$
1068 'skip$
1069 {
1070 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1071 { "," *
1072 " " *
1073 get.bbl.editor add.period$
1074 " " *
1075 * swap$
1076 *
1077 word.in swap$ *
1078 }
1079 if$
1080 }
1081 if$
1082 }
1083 FUNCTION {legal.journal.shape}
1084 { duplicate$ "OJ" =
1085 'emphasize
1086 'skip$
1087 if$
1088 }
1089 FUNCTION {nodate.check}
1090 {
1091 skip$
1092 }
1093 FUNCTION {format.date}
1094 { year "year" bibinfo.check nodate.check
1095 extra.label *
1096 }
1097 FUNCTION {format.date.brackets}
1098 { format.date
1099 "[" swap$ * "]" *
1100 }
1101 FUNCTION {format.date.parens}
1102 { format.date
1103 "(" swap$ * ")" *
1104 }
1105 FUNCTION {format.jur.date.essential}
1106 { options field.or.null "scottish-style" =
1107 keywords field.or.null "sc" =
1108 or
1109 { end.clause format.date }
1110 'format.date.brackets
1111 if$
1112 }
1113 FUNCTION {format.jur.date}
1114 { institution empty$
1115 number empty$
1116 or
1117 { journal field.or.null 's :=
1118 s "OJ" =
1119 s "ECR" =
1120 or
1121 'format.date.brackets
1122 { options field.or.null "year-essential=false" =
1123 'format.date.parens
1124 { volume empty$
1125 'format.jur.date.essential
1126 { options field.or.null "year-essential=true" =
1127 'format.jur.date.essential
1128 'format.date.parens
1129 if$
1130 }
1131 if$
1132 }
1133 if$
1134 }
1135 if$
1136 }
1137 { end.clause format.date }
1138 if$
1139 }
1140 FUNCTION {format.eu.date}
1141 { journal field.or.null 's :=
1142 s "OJ" =
1143 s "ECR" =
1144 or
1145 'format.date.brackets
1146 'format.date
1147 if$
1148 }
1149 FUNCTION {format.series}
1150 { series
1151 duplicate$ empty$ 'skip$
1152 { "t" change.case$ }
1153 if$
1154 "series" bibinfo.check
1155 }
1156 FUNCTION {format.bvolume}
1157 { volume empty$
1158 { "" }
1159 { bbl.volume volume tie.or.space.prefix
1160 "volume" bibinfo.check * *
1161 format.series
1162 duplicate$ empty$ 'pop$
1163 { emphasize ", " * swap$ * }
1164 if$
1165 "volume and number" number either.or.check
1166 }
1167 if$
1168 }
1169 FUNCTION {format.number.series}
1170 { volume empty$
1171 { number empty$
1172 { series field.or.null }
1173 { series empty$
1174 { number "number" bibinfo.check }
1175 { format.series
1176 number tie.or.space.prefix "number" bibinfo.check * *
1177 }
1178 if$
1179 }
1180 if$
1181 }
1182 { "" }
1183 if$
1184 }
1185 FUNCTION {format.series.episode}
1186 { series
1187 duplicate$ empty$
1188 'skip$
1189 { "t" change.case$ }
1190 if$
1191 "series" bibinfo.check emphasize
1192 number "number" bibinfo.check emphasize
1193 duplicate$ empty$
1194 { * }
1195 { swap$
1196 duplicate$ empty$
1197 { * }
1198 { ", " * swap$ * }
1199 if$
1200 }
1201 if$
1202 }
1203 FUNCTION {is.num}
1204 { chr.to.int$
1205 duplicate$ "0" chr.to.int$ < not
1206 swap$ "9" chr.to.int$ > not and
1207 }
1208 FUNCTION {extract.num}
1209 { duplicate$ 't :=
1210 "" 's :=
1211 { t empty$ not }
1212 { t #1 #1 substring$
1213 t #2 global.max$ substring$ 't :=
1214 duplicate$ is.num
1215 { s swap$ * 's := }
1216 { pop$ "" 't := }
1217 if$
1218 }
1219 while$
1220 s empty$
1221 'skip$
1222 { pop$ s }
1223 if$
1224 }
1225 FUNCTION {convert.edition}
1226 { extract.num "l" change.case$ 's :=
1227 s "first" = s "1" = or
1228 { bbl.first 't := }
1229 { s "second" = s "2" = or
1230 { bbl.second 't := }
1231 { s "third" = s "3" = or
1232 { bbl.third 't := }
1233 { s "fourth" = s "4" = or
1234 { bbl.fourth 't := }
1235 { s "fifth" = s "5" = or
1236 { bbl.fifth 't := }
1237 { s #1 #1 substring$ is.num
1238 { s eng.ord 't := }
1239 { edition 't := }
1240 if$
1241 }
1242 if$
1243 }
1244 if$
1245 }
1246 if$
1247 }
1248 if$
1249 }
1250 if$
1251 t
1252 }
1253 FUNCTION {format.edition}
1254 { edition duplicate$ empty$ 'skip$
1255 { convert.edition
1256 output.state mid.sentence =
1257 { "l" }
1258 { "t" }
1259 if$ change.case$
1260 "edition" bibinfo.check
1261 " " * bbl.edition *
1262 }
1263 if$
1264 }
1265 FUNCTION {format.thesis.type}
1266 { type duplicate$ empty$
1267 'pop$
1268 { swap$ pop$
1269 "t" change.case$ "type" bibinfo.check
1270 }
1271 if$
1272 }
1273 FUNCTION {add.cmd.number}
1274 { ". " swap$ "number" bibinfo.check *
1275 }
1276 FUNCTION {format.legr.number}
1277 { series field.or.null 's :=
1278 s "C" =
1279 'add.cmd.number
1280 { s "Cd" =
1281 'add.cmd.number
1282 { s "Cmd" =
1283 'add.cmd.number
1284 { s "Cmnd" =
1285 'add.cmd.number
1286 { s "Cm" =
1287 'add.cmd.number
1288 { s purify$ #1 #3 substring$ 't :=
1289 t "HL " =
1290 { ", (" swap$
1291 "number" bibinfo.check *
1292 ")" *
1293 }
1294 { ", " swap$
1295 "number" bibinfo.check *
1296 }
1297 if$
1298 }
1299 if$
1300 }
1301 if$
1302 }
1303 if$
1304 }
1305 if$
1306 }
1307 if$
1308 }
1309 FUNCTION {format.tr.number}
1310 { series duplicate$ empty$
1311 { pop$
1312 type duplicate$ empty$
1313 { pop$
1314 number duplicate$ empty$
1315 { pop$ ""
1316 }
1317 { "(" swap$
1318 "number" bibinfo.check
1319 * ")" *
1320 }
1321 if$
1322 }
1323 { "(" swap$
1324 "t" change.case$ "type" bibinfo.check
1325 *
1326 number duplicate$ empty$
1327 'pop$
1328 { tie.or.space.prefix
1329 "number" bibinfo.check
1330 * *
1331 }
1332 if$
1333 ")" *
1334 }
1335 if$
1336 }
1337 { "t" change.case$ "(" swap$ *
1338 type duplicate$ empty$
1339 { pop$
1340 number duplicate$ empty$
1341 'pop$
1342 { format.legr.number * }
1343 if$
1344 }
1345 { "t" change.case$ "type" bibinfo.check
1346 *
1347 number duplicate$ empty$
1348 'pop$
1349 { tie.or.space.prefix
1350 "number" bibinfo.check
1351 * *
1352 }
1353 if$
1354 }
1355 if$
1356 ")" *
1357 continue.clause
1358 }
1359 if$
1360 }
1361 FUNCTION {format.manual.number}
1362 { series duplicate$ empty$
1363 { pop$
1364 type duplicate$ empty$
1365 { pop$
1366 number duplicate$ empty$
1367 { pop$ ""
1368 }
1369 { "number" bibinfo.check
1370 }
1371 if$
1372 }
1373 { "t" change.case$ "type" bibinfo.check
1374 number duplicate$ empty$
1375 'pop$
1376 { tie.or.space.prefix
1377 "number" bibinfo.check
1378 * *
1379 }
1380 if$
1381 }
1382 if$
1383 }
1384 { "t" change.case$
1385 number duplicate$ empty$
1386 'pop$
1387 { "number" bibinfo.check
1388 ", " swap$ * *
1389 }
1390 if$
1391 type duplicate$ empty$
1392 'pop$
1393 { ". " swap$ *
1394 "t" change.case$ "type" bibinfo.check
1395 *
1396 }
1397 if$
1398 }
1399 if$
1400 }
1401 FUNCTION {format.chapter}
1402 { chapter duplicate$ empty$
1403 { pop$ "" }
1404 { "chapter" bibinfo.check
1405 "c." swap$ *
1406 }
1407 if$
1408 }
1409 FUNCTION {format.series.number.chapter}
1410 { series duplicate$ empty$
1411 { pop$ "(" }
1412 { "series" bibinfo.check
1413 "(" swap$ *
1414 }
1415 if$
1416 type duplicate$ empty$
1417 { pop$
1418 number duplicate$ empty$
1419 'pop$
1420 { "number" bibinfo.check
1421 swap$ duplicate$ "(" =
1422 { swap$ * }
1423 { ", " * swap$ * }
1424 if$
1425 }
1426 if$
1427 chapter duplicate$ empty$
1428 'pop$
1429 { "chapter" bibinfo.check
1430 swap$ duplicate$ "(" =
1431 { swap$ * }
1432 { ", c." * swap$ * }
1433 if$
1434 }
1435 if$
1436 }
1437 { "type" bibinfo.check
1438 swap$ duplicate$ "(" =
1439 { swap$ * }
1440 { ", " * swap$ * }
1441 if$
1442 number duplicate$ empty$
1443 { pop$
1444 chapter duplicate$ empty$
1445 'pop$
1446 { "chapter" bibinfo.check
1447 " c." swap$ * *
1448 }
1449 if$
1450 }
1451 { "number" bibinfo.check
1452 " " swap$ * *
1453 chapter duplicate$ empty$
1454 'pop$
1455 { "chapter" bibinfo.check
1456 ", c." swap$ * *
1457 }
1458 if$
1459 }
1460 if$
1461 }
1462 if$
1463 ")" *
1464 duplicate$ "()" =
1465 { pop$ "" }
1466 'skip$
1467 if$
1468 }
1469 FUNCTION {format.case.number}
1470 { number field.or.null 's :=
1471 s empty$
1472 { casenumber field.or.null 's := }
1473 'skip$
1474 if$
1475 s empty$
1476 { "" }
1477 { institution field.or.null duplicate$ empty$
1478 { pop$
1479 s "number" bibinfo.check
1480 "(" swap$ * ")" *
1481 }
1482 { "Commission" =
1483 { userb field.or.null 's :=
1484 s empty$
1485 { casenumber field.or.null 's := }
1486 'skip$
1487 if$
1488 s duplicate$ empty$
1489 { "" }
1490 { "(" swap$ * ")" * " " }
1491 if$
1492 number duplicate$ empty$
1493 { pop$ pop$ }
1494 { bbl.commission " " *
1495 swap$ * * *
1496 }
1497 if$
1498 }
1499 { "" }
1500 if$
1501 }
1502 if$
1503 }
1504 if$
1505 }
1506 FUNCTION {case.check}
1507 { institution duplicate$ empty$
1508 { pop$ continue.clause }
1509 { "Commission" =
1510 'continue.clause
1511 'new.block
1512 if$
1513 }
1514 if$
1515 }
1516 FUNCTION {eu.case.check}
1517 { journal field.or.null "OJ" =
1518 number empty$ not
1519 or
1520 casenumber empty$ not
1521 or
1522 'continue.clause
1523 'new.block
1524 if$
1525 }
1526 FUNCTION {format.note}
1527 { note empty$
1528 { "" }
1529 { note #1 #1 substring$
1530 duplicate$ "{" =
1531 'skip$
1532 { output.state mid.sentence =
1533 output.state mid.clause =
1534 or
1535 { "l" }
1536 { "u" }
1537 if$
1538 change.case$
1539 }
1540 if$
1541 note #2 global.max$ substring$ * "note" bibinfo.check
1542 }
1543 if$
1544 }
1545 FUNCTION {prepend.address}
1546 { 't :=
1547 ""
1548 address empty$ t empty$ and
1549 'skip$
1550 { address "address" bibinfo.check *
1551 t empty$
1552 'skip$
1553 { address empty$
1554 'skip$
1555 { ": " * }
1556 if$
1557 t *
1558 }
1559 if$
1560 }
1561 if$
1562 }
1563 FUNCTION {format.publisher.address}
1564 { publisher "publisher" bibinfo.warn prepend.address
1565 }
1566 FUNCTION {format.organization.address}
1567 { publisher empty$
1568 { organization "organization" bibinfo.check prepend.address }
1569 { publisher "publisher" bibinfo.warn prepend.address
1570 organization duplicate$ empty$
1571 'pop$
1572 { "organization" bibinfo.check ". " * swap$ * }
1573 if$
1574 }
1575 if$
1576 }
1577 FUNCTION {format.institution.address}
1578 { publisher empty$
1579 { institution "institution" bibinfo.check prepend.address }
1580 { publisher "publisher" bibinfo.warn prepend.address
1581 institution duplicate$ empty$
1582 'pop$
1583 { "institution" bibinfo.check ". " * swap$ * }
1584 if$
1585 }
1586 if$
1587 }
1588 FUNCTION {format.library}
1589 { library "library" bibinfo.check
1590 emphasize
1591 }
1592 FUNCTION {format.img.library}
1593 { library "library" bibinfo.check
1594 }
1595 FUNCTION {format.img.library.address}
1596 { library duplicate$ empty$
1597 { pop$
1598 institution duplicate$ empty$
1599 'skip$
1600 { "institution" bibinfo.check }
1601 if$
1602 }
1603 { "library" bibinfo.check }
1604 if$
1605 duplicate$ empty$
1606 { address "address" bibinfo.check * }
1607 { address duplicate$ empty$
1608 'pop$
1609 { "address" bibinfo.check
1610 swap$ ", " * swap$ *
1611 }
1612 if$
1613 }
1614 if$
1615 }
1616 FUNCTION {format.pub.org.lib.address}
1617 { publisher duplicate$ empty$
1618 { pop$
1619 organization duplicate$ empty$
1620 { pop$
1621 format.img.library.address }
1622 { "organization" bibinfo.check
1623 library empty$
1624 { prepend.address }
1625 { ". " *
1626 format.img.library.address *
1627 }
1628 if$
1629 }
1630 if$
1631 }
1632 { "publisher" bibinfo.warn prepend.address
1633 library empty$
1634 'skip$
1635 { ". " *
1636 format.img.library *
1637 }
1638 if$
1639 }
1640 if$
1641 }
1642
1643 INTEGERS { multiresult }
1644 FUNCTION {multi.page.check}
1645 { 't :=
1646 #0 'multiresult :=
1647 { multiresult not
1648 t empty$ not
1649 and
1650 }
1651 { t #1 #1 substring$
1652 duplicate$ "-" =
1653 swap$ duplicate$ "," =
1654 swap$ "+" =
1655 or or
1656 { #1 'multiresult := }
1657 { t #2 global.max$ substring$ 't := }
1658 if$
1659 }
1660 while$
1661 multiresult
1662 }
1663 FUNCTION {n.dashify}
1664 { 't :=
1665 ""
1666 { t empty$ not }
1667 { t #1 #1 substring$ "-" =
1668 { t #1 #2 substring$ "--" = not
1669 { "--" *
1670 t #2 global.max$ substring$ 't :=
1671 }
1672 { { t #1 #1 substring$ "-" = }
1673 { "-" *
1674 t #2 global.max$ substring$ 't :=
1675 }
1676 while$
1677 }
1678 if$
1679 }
1680 { t #1 #1 substring$ *
1681 t #2 global.max$ substring$ 't :=
1682 }
1683 if$
1684 }
1685 while$
1686 }
1687 FUNCTION {format.pages}
1688 { pages duplicate$ empty$ 'skip$
1689 { duplicate$ multi.page.check
1690 { bbl.pages swap$
1691 n.dashify
1692 }
1693 { bbl.page swap$
1694 }
1695 if$
1696 "pages" bibinfo.check
1697 *
1698 }
1699 if$
1700 }
1701 FUNCTION {format.journal.pages}
1702 { pages duplicate$ empty$ 'pop$
1703 { swap$ duplicate$ empty$
1704 { pop$ pop$ format.pages }
1705 { ", " *
1706 swap$
1707 n.dashify
1708 pages multi.page.check
1709 'bbl.pages
1710 'bbl.page
1711 if$
1712 swap$
1713 "pages" bibinfo.check
1714 * *
1715 }
1716 if$
1717 }
1718 if$
1719 }
1720 FUNCTION {format.journal.eid}
1721 { eid "eid" bibinfo.check
1722 duplicate$ empty$ 'pop$
1723 { swap$ duplicate$ empty$ 'skip$
1724 { ", " *
1725 }
1726 if$
1727 swap$ *
1728 }
1729 if$
1730 }
1731 FUNCTION {format.vol.num}
1732 { volume field.or.null duplicate$ empty$
1733 'skip$
1734 { "volume" bibinfo.check
1735 }
1736 if$
1737 number "number" bibinfo.check duplicate$ empty$
1738 'skip$
1739 { swap$ duplicate$ empty$
1740 { "there's a number but no volume in " cite$ * warning$ }
1741 'skip$
1742 if$
1743 swap$
1744 "(" swap$ * ")" *
1745 }
1746 if$
1747 }
1748 FUNCTION {format.vol.num.pages}
1749 { pubstate field.or.null
1750 duplicate$ "inpress" =
1751 { pop$ bbl.inpress }
1752 { duplicate$ "submitted" =
1753 { pop$ bbl.submitted }
1754 { duplicate$ "inpreparation" =
1755 { pop$ bbl.inpreparation }
1756 { pop$ "" }
1757 if$
1758 }
1759 if$
1760 }
1761 if$
1762 duplicate$ empty$
1763 { pop$
1764 format.vol.num *
1765 eventyear field.or.null duplicate$ empty$
1766 { pop$
1767 month "month" bibinfo.check duplicate$ empty$
1768 'pop$
1769 { swap$ duplicate$ empty$
1770 'pop$
1771 { ", " * swap$ * }
1772 if$
1773 }
1774 if$
1775 }
1776 { swap$ duplicate$ empty$
1777 'pop$
1778 { ", " * swap$ * }
1779 if$
1780 }
1781 if$
1782 eid empty$
1783 { format.journal.pages }
1784 { format.journal.eid }
1785 if$
1786 }
1787 'skip$
1788 if$
1789 }
1790 FUNCTION {format.chapter.pages}
1791 { chapter empty$
1792 'format.pages
1793 { type empty$
1794 { bbl.chapter }
1795 { type "l" change.case$
1796 "type" bibinfo.check
1797 }
1798 if$
1799 chapter tie.or.space.prefix
1800 "chapter" bibinfo.check
1801 * *
1802 pages empty$
1803 'skip$
1804 { ", " * format.pages * }
1805 if$
1806 }
1807 if$
1808 }
1809
1810 FUNCTION {format.journal.series.vol.pages}
1811 { journal field.or.null
1812 duplicate$ "OJ" =
1813 { "journal" bibinfo.check
1814 emphasize
1815 series empty$
1816 volume empty$
1817 and
1818 pages empty$
1819 and
1820 'skip$
1821 { " " * }
1822 if$
1823 format.series
1824 volume "volume" bibinfo.check *
1825 duplicate$ empty$
1826 'skip$
1827 { pages field.or.null duplicate$ empty$
1828 'skip$
1829 { "/" swap$ *
1830 }
1831 if$ *
1832 }
1833 if$ *
1834 }
1835 { duplicate$ "ECR" =
1836 { "journal" bibinfo.check
1837 volume "volume" bibinfo.check
1838 duplicate$ empty$
1839 'skip$
1840 { " " swap$ * "--" * * }
1841 if$
1842 }
1843 { "journal" bibinfo.check
1844 volume "volume" bibinfo.check
1845 duplicate$ empty$
1846 'pop$
1847 { " " * swap$ * }
1848 if$
1849 pages empty$
1850 eid empty$
1851 and
1852 'skip$
1853 { " " * }
1854 if$
1855 }
1856 if$
1857 }
1858 if$
1859 eid empty$
1860 { pages "pages" bibinfo.check * }
1861 { eid "eid" bibinfo.check * }
1862 if$
1863 }
1864 FUNCTION {format.inst.journal.series.vol.pages}
1865 { institution duplicate$ empty$
1866 { pop$ format.journal.series.vol.pages }
1867 { duplicate$ "Commission" =
1868 { pop$ format.journal.series.vol.pages }
1869 { number duplicate$ empty$
1870 { pop$ casenumber duplicate$ empty$
1871 'skip$
1872 { "casenumber" bibinfo.check
1873 ", " swap$ * *
1874 }
1875 if$
1876 }
1877 { "number" bibinfo.check
1878 ", " swap$ * *
1879 }
1880 if$
1881 output new.sentence
1882 journal "t" change.case$
1883 "journal" bibinfo.check
1884 emphasize output
1885 volume field.or.null
1886 duplicate$ empty$ 'skip$
1887 { "volume" bibinfo.check
1888 }
1889 if$
1890 eventyear field.or.null duplicate$ empty$
1891 { pop$
1892 month "month" bibinfo.check duplicate$ empty$
1893 'pop$
1894 { swap$ duplicate$ empty$
1895 'pop$
1896 { ", " * swap$ * }
1897 if$
1898 }
1899 if$
1900 }
1901 { swap$ duplicate$ empty$
1902 'pop$
1903 { ", " * swap$ * }
1904 if$
1905 }
1906 if$
1907 eid empty$
1908 { format.journal.pages }
1909 { format.journal.eid }
1910 if$
1911 }
1912 if$
1913 }
1914 if$
1915 }
1916 FUNCTION {format.eprint}
1917 { eprint duplicate$ empty$
1918 'skip$
1919 { "\eprint"
1920 archive empty$
1921 'skip$
1922 { "[" * archive * "]" * }
1923 if$
1924 "{" * swap$ * "}" *
1925 }
1926 if$
1927 }
1928 FUNCTION {format.url}
1929 { doi empty$
1930 { url }
1931 { "https://doi.org/" doi * }
1932 if$
1933 duplicate$ empty$
1934 { pop$ "" }
1935 { "\urlprefix\url{" swap$ * "}" * }
1936 if$
1937 duplicate$ empty$
1938 urlyear empty$ not
1939 urldate empty$ not
1940 or
1941 and
1942 { library duplicate$ empty$
1943 'pop$
1944 { "\urlprefix{}" swap$ * * }
1945 if$
1946 }
1947 'skip$
1948 if$
1949 urlyear empty$
1950 { urldate empty$
1951 'skip$
1952 { " [\urldateprefix{}" * urldate * "]" * }
1953 if$
1954 }
1955 { " [\urldateprefix{}" * urlyear * "]" * }
1956 if$
1957 }
1958 FUNCTION {format.article.crossref}
1959 { word.in
1960 " \cite{" * crossref * "}" *
1961 }
1962 FUNCTION {format.incoll.inproc.crossref}
1963 { word.in
1964 " \cite{" * crossref * "}" *
1965 }
1966 FUNCTION {format.book.crossref}
1967 { volume duplicate$ empty$
1968 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1969 pop$ word.in
1970 }
1971 { bbl.volume
1972 capitalize
1973 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1974 }
1975 if$
1976 " \cite{" * crossref * "}" *
1977 }
1978
1979 FUNCTION {calc.label}
1980 { calc.short.authors
1981 short.list
1982 "("
1983 *
1984 year nodate.check duplicate$ empty$
1985 { pop$ "" }
1986 'skip$
1987 if$
1988 *
1989 'label :=
1990 }
1991 FUNCTION {output.bibitem}
1992 { newline$
1993 "\bibitem[{" write$
1994 label write$
1995 ")" make.full.names duplicate$ short.list =
1996 { pop$ }
1997 { * }
1998 if$
1999 "}]{" * write$
2000 cite$ write$
2001 "}" write$
2002 newline$
2003 ""
2004 #0 'online.shown :=
2005 before.all 'output.state :=
2006 }
2007 FUNCTION {article}
2008 { output.bibitem
2009 format.authors "author" output.check
2010 author format.key output
2011 format.date "year" output.check
2012 date.block
2013 format.title "title" output.check
2014 print.title.addenda
2015 new.block
2016 crossref missing$
2017 { journal "t" change.case$
2018 "journal" bibinfo.check
2019 emphasize
2020 "journal" output.check
2021 format.vol.num.pages output
2022 }
2023 { format.article.crossref output.nonnull
2024 format.pages output
2025 }
2026 if$
2027 new.block
2028 format.note output
2029 new.block
2030 format.eprint output
2031 format.url output
2032 fin.entry
2033 }
2034 FUNCTION {book}
2035 { output.bibitem
2036 author empty$
2037 { editor empty$
2038 type$ "reference" =
2039 or
2040 { type$ "reference" =
2041 { format.title "title" output.check }
2042 { format.btitle "title" output.check }
2043 if$
2044 print.labeltitle.addenda
2045 format.date "year" output.check
2046 year empty$ 'skip$ { date.block } if$
2047 print.title.addenda
2048 }
2049 { format.editors "author and editor" output.check
2050 format.date "year" output.check
2051 date.block
2052 format.btitle "title" output.check
2053 print.title.addenda
2054 }
2055 if$
2056 }
2057 { format.authors output.nonnull
2058 crossref missing$
2059 { "author and editor" editor either.or.check }
2060 'skip$
2061 if$
2062 format.date "year" output.check
2063 date.block
2064 format.btitle "title" output.check
2065 print.title.addenda
2066 }
2067 if$
2068 new.block
2069 format.edition output
2070 edition empty$
2071 { mid.sentence 'output.state := }
2072 'new.block
2073 if$
2074 format.bvolume output
2075 format.number.series output
2076 new.block
2077 format.note output
2078 crossref missing$
2079 { keywords field.or.null "uksi" =
2080 { mid.sentence 'output.state := }
2081 { new.sentence }
2082 if$
2083 format.publisher.address output
2084 }
2085 { new.block
2086 format.book.crossref output.nonnull
2087 }
2088 if$
2089 new.block
2090 format.eprint output
2091 format.url output
2092 fin.entry
2093 }
2094 FUNCTION {booklet}
2095 { output.bibitem
2096 author empty$
2097 { format.avtitle "title" output.check
2098 print.labeltitle.addenda
2099 format.date "year" output.check
2100 year empty$ 'skip$ { date.block } if$
2101 print.title.addenda
2102 }
2103 { format.authors output
2104 author format.key output
2105 format.date "year" output.check
2106 date.block
2107 format.avtitle "title" output.check
2108 print.title.addenda
2109 }
2110 if$
2111 new.block
2112 format.series.episode output
2113 new.block
2114 type "type" bibinfo.check output
2115 new.block
2116 howpublished "howpublished" bibinfo.check output
2117 new.block
2118 format.note output
2119 publisher empty$ 'skip$
2120 { new.block}
2121 if$
2122 format.publisher.address output
2123 new.block
2124 format.eprint output
2125 format.url output
2126 fin.entry
2127 }
2128 FUNCTION {inbook}
2129 { output.bibitem
2130 author empty$
2131 { format.title "title" output.check
2132 print.labeltitle.addenda
2133 format.date "year" output.check
2134 year empty$ 'skip$ { date.block } if$
2135 print.title.addenda
2136 }
2137 { format.authors output.nonnull
2138 format.date "year" output.check
2139 date.block
2140 format.title "title" output.check
2141 print.title.addenda
2142 }
2143 if$
2144 new.block
2145 crossref missing$
2146 { format.in.ed.booktitle "booktitle" output.check
2147 new.block
2148 format.edition output
2149 edition empty$
2150 { mid.sentence 'output.state := }
2151 'new.block
2152 if$
2153 format.bvolume output
2154 format.number.series output
2155 new.block
2156 format.note output
2157 new.block
2158 format.publisher.address output
2159 format.chapter.pages output
2160 }
2161 { format.note output
2162 new.block
2163 format.incoll.inproc.crossref output.nonnull
2164 format.chapter.pages output
2165 }
2166 if$
2167 new.block
2168 format.eprint output
2169 format.url output
2170 fin.entry
2171 }
2172 FUNCTION {incollection}
2173 { output.bibitem
2174 author empty$
2175 { type$ "inreference" =
2176 { format.label.booktitle output}
2177 { format.title "title" output.check
2178 print.labeltitle.addenda
2179 }
2180 if$
2181 format.date "year" output.check
2182 year empty$ 'skip$ { date.block } if$
2183 type$ "inreference" =
2184 'skip$
2185 { print.title.addenda }
2186 if$
2187 }
2188 { format.authors output.nonnull
2189 format.date "year" output.check
2190 date.block
2191 format.title "title" output.check
2192 print.title.addenda
2193 }
2194 if$
2195 new.block
2196 crossref missing$
2197 { type$ "inreference" =
2198 author empty$
2199 and
2200 { format.byeditors output }
2201 { format.in.ed.booktitle "booktitle" output.check }
2202 if$
2203 new.block
2204 format.edition output
2205 type$ "inreference" =
2206 author empty$
2207 and
2208 { new.block
2209 format.btitle "title" output.check
2210 print.title.addenda
2211 new.block
2212 }
2213 { edition empty$
2214 { mid.sentence 'output.state := }
2215 'new.block
2216 if$
2217 }
2218 if$
2219 format.bvolume output
2220 format.number.series output
2221 new.block
2222 format.note output
2223 new.block
2224 format.publisher.address output
2225 format.chapter.pages output
2226 }
2227 { format.note output
2228 new.block
2229 format.incoll.inproc.crossref output.nonnull
2230 format.chapter.pages output
2231 }
2232 if$
2233 new.block
2234 format.eprint output
2235 format.url output
2236 fin.entry
2237 }
2238 FUNCTION {inproceedings}
2239 { output.bibitem
2240 format.authors "author" output.check
2241 author format.key output
2242 format.date "year" output.check
2243 date.block
2244 format.title "title" output.check
2245 print.title.addenda
2246 new.block
2247 crossref missing$
2248 { format.in.ed.booktitle "booktitle" output.check
2249 format.bvolume output
2250 format.number.series output
2251 eventyear output
2252 venue output
2253 format.note output
2254 new.sentence
2255 publisher empty$
2256 { format.organization.address output }
2257 { organization "organization" bibinfo.check output
2258 format.publisher.address output
2259 }
2260 if$
2261 format.pages output
2262 }
2263 { format.note output
2264 new.block
2265 format.incoll.inproc.crossref output.nonnull
2266 format.pages output
2267 }
2268 if$
2269 new.block
2270 format.eprint output
2271 format.url output
2272 fin.entry
2273 }
2274 FUNCTION {conference} { inproceedings }
2275 FUNCTION {jurisdiction}
2276 { output.bibitem
2277 author empty$
2278 { format.btitle "title" output.check
2279 continue.clause
2280 format.case.number output
2281 continue.clause
2282 print.labeltitle.addenda
2283 continue.clause
2284 format.jur.date "year" output.check
2285 year empty$ 'skip$ { case.check } if$
2286 print.title.addenda
2287 }
2288 { format.authors output
2289 author format.key output
2290 format.jur.date "year" output.check
2291 date.block
2292 continue.clause
2293 format.btitle "title" output.check
2294 print.labeltitle.addenda
2295 print.title.addenda
2296 }
2297 if$
2298 case.check
2299 format.note output
2300 note empty$
2301 'case.check
2302 'new.block
2303 if$
2304 crossref missing$
2305 { continue.clause
2306 format.inst.journal.series.vol.pages output
2307 }
2308 { format.article.crossref output.nonnull
2309 format.pages output
2310 }
2311 if$
2312 new.block
2313 format.eprint output
2314 format.url output
2315 fin.entry
2316 }
2317 FUNCTION {uklegislation}
2318 { output.bibitem
2319 author empty$
2320 { format.btitle "title" output.check
2321 print.labeltitle.addenda
2322 continue.clause
2323 format.date emphasize "year" output.check
2324 print.title.addenda
2325 }
2326 { format.authors output
2327 author format.key output
2328 format.date "year" output.check
2329 date.block
2330 continue.clause
2331 format.btitle "title" output.check
2332 print.labeltitle.addenda
2333 print.title.addenda
2334 }
2335 if$
2336 entrysubtype field.or.null "secondary" =
2337 { number "number" bibinfo.check output }
2338 { series empty$ type empty$ and
2339 { number empty$
2340 { format.chapter output }
2341 { continue.clause
2342 format.series.number.chapter output
2343 }
2344 if$
2345 }
2346 { chapter empty$
2347 { new.block }
2348 { continue.clause }
2349 if$
2350 format.series.number.chapter output
2351 }
2352 if$
2353 }
2354 if$
2355 note empty$
2356 'skip$
2357 { new.block
2358 format.note output
2359 new.block
2360 }
2361 if$
2362 publisher empty$ 'skip$
2363 { entrysubtype field.or.null "secondary" =
2364 'skip$
2365 { new.block }
2366 if$
2367 format.publisher.address output
2368 }
2369 if$
2370 new.block
2371 format.eprint output
2372 format.url output
2373 fin.entry
2374 }
2375 FUNCTION {eulegislation}
2376 { output.bibitem
2377 author empty$
2378 { format.title "title" output.check
2379 print.labeltitle.addenda
2380 continue.clause
2381 format.eu.date "year" output.check
2382 print.title.addenda
2383 }
2384 { format.authors output
2385 author format.key output
2386 format.eu.date "year" output.check
2387 date.block
2388 continue.clause
2389 format.title "title" output.check
2390 print.labeltitle.addenda
2391 print.title.addenda
2392 }
2393 if$
2394 eu.case.check
2395 format.note output
2396 note empty$
2397 'eu.case.check
2398 'new.block
2399 if$
2400 crossref missing$
2401 { continue.clause
2402 format.journal.series.vol.pages output
2403 }
2404 { format.article.crossref output.nonnull
2405 format.pages output
2406 }
2407 if$
2408 new.block
2409 format.eprint output
2410 format.url output
2411 fin.entry
2412 }
2413 FUNCTION {legislation}
2414 { journal empty$
2415 'uklegislation
2416 'eulegislation
2417 if$
2418 }
2419 FUNCTION {legal}
2420 { entrysubtype field.or.null
2421 "parliamentary" =
2422 'article
2423 'article
2424 if$
2425 }
2426 FUNCTION {manual}
2427 { output.bibitem
2428 author empty$
2429 { format.btitle "title" output.check
2430 print.labeltitle.addenda
2431 format.date "year" output.check
2432 year empty$ 'skip$ { date.block } if$
2433 print.title.addenda
2434 }
2435 { format.authors output
2436 author format.key output
2437 format.date "year" output.check
2438 date.block
2439 format.btitle "title" output.check
2440 print.title.addenda
2441 }
2442 if$
2443 month "month" bibinfo.check output
2444 format.edition output
2445 new.block
2446 format.manual.number output
2447 new.block
2448 format.note format.journal.pages output
2449 new.block
2450 format.library output
2451 organization address new.block.checkb
2452 format.organization.address output
2453 new.block
2454 format.eprint output
2455 format.url output
2456 fin.entry
2457 }
2458 FUNCTION {image}
2459 { output.bibitem
2460 author empty$
2461 { format.btitle "title" output.check
2462 print.labeltitle.addenda
2463 format.date "year" output.check
2464 year empty$ 'skip$ { date.block } if$
2465 print.title.addenda
2466 }
2467 { format.authors output
2468 author format.key output
2469 format.date "year" output.check
2470 date.block
2471 format.btitle "title" output.check
2472 print.title.addenda
2473 }
2474 if$
2475 format.edition output
2476 new.block
2477 format.note output
2478 new.block
2479 format.manual.number output
2480 new.block
2481 format.pub.org.lib.address output
2482 new.block
2483 format.eprint output
2484 format.url output
2485 fin.entry
2486 }
2487 FUNCTION {mastersthesis}
2488 { output.bibitem
2489 format.authors "author" output.check
2490 author format.key output
2491 format.date "year" output.check
2492 date.block
2493 format.btitle "title" output.check
2494 print.title.addenda
2495 new.block
2496 format.note output
2497 new.block
2498 bbl.mthesis format.thesis.type output.nonnull
2499 new.block
2500 school "school" bibinfo.warn output
2501 address "address" bibinfo.check output
2502 new.block
2503 format.eprint output
2504 format.url output
2505 fin.entry
2506 }
2507 FUNCTION {misc}
2508 { output.bibitem
2509 author empty$
2510 { format.title "title" output.check
2511 print.labeltitle.addenda
2512 format.date "year" output.check
2513 year empty$ 'skip$ { date.block } if$
2514 print.title.addenda
2515 }
2516 { format.authors output
2517 author format.key output
2518 format.date "year" output.check
2519 date.block
2520 format.title "title" output.check
2521 print.title.addenda
2522 }
2523 if$
2524 new.block
2525 howpublished "howpublished" bibinfo.check output
2526 new.block
2527 format.note output
2528 new.block
2529 format.eprint output
2530 format.url output
2531 fin.entry
2532 }
2533 FUNCTION {phdthesis}
2534 { output.bibitem
2535 format.authors "author" output.check
2536 author format.key output
2537 format.date "year" output.check
2538 date.block
2539 format.btitle "title" output.check
2540 print.title.addenda
2541 new.block
2542 format.note output
2543 new.block
2544 bbl.phdthesis format.thesis.type output.nonnull
2545 new.block
2546 school "school" bibinfo.warn output
2547 address "address" bibinfo.check output
2548 new.block
2549 format.eprint output
2550 format.url output
2551 fin.entry
2552 }
2553 FUNCTION {proceedings}
2554 { output.bibitem
2555 editor empty$
2556 { format.btitle "title" output.check
2557 print.labeltitle.addenda
2558 format.date "year" output.check
2559 year empty$ 'skip$ { date.block } if$
2560 print.title.addenda
2561 }
2562 { format.editors output
2563 editor format.key output
2564 format.date "year" output.check
2565 date.block
2566 format.btitle "title" output.check
2567 print.title.addenda
2568 }
2569 if$
2570 format.bvolume output
2571 format.number.series output
2572 eventyear output
2573 venue output
2574 format.note output
2575 new.sentence
2576 publisher empty$
2577 { format.organization.address output }
2578 { organization "organization" bibinfo.check output
2579 format.publisher.address output
2580 }
2581 if$
2582 new.block
2583 format.eprint output
2584 format.url output
2585 fin.entry
2586 }
2587 FUNCTION {techreport}
2588 { output.bibitem
2589 author empty$
2590 { format.btitle "title" output.check
2591 print.labeltitle.addenda
2592 format.date "year" output.check
2593 year empty$ 'skip$ { date.block } if$
2594 print.title.addenda
2595 }
2596 { format.authors output
2597 author format.key output
2598 format.date "year" output.check
2599 date.block
2600 format.btitle "title" output.check
2601 print.title.addenda
2602 }
2603 if$
2604 new.block
2605 format.tr.number output
2606 new.block
2607 library empty$
2608 'skip$
2609 { format.note output
2610 new.block
2611 }
2612 if$
2613 publisher empty$
2614 { format.institution.address output }
2615 { institution "institution" bibinfo.check output
2616 format.publisher.address output
2617 }
2618 if$
2619 new.block
2620 library empty$
2621 { format.note output }
2622 { format.library output }
2623 if$
2624 new.block
2625 format.eprint output
2626 format.url output
2627 fin.entry
2628 }
2629 FUNCTION {unpublished}
2630 { output.bibitem
2631 author empty$
2632 { booktitle empty$ 'format.btitle 'format.title if$ "title" output.check
2633 print.labeltitle.addenda
2634 format.date "year" output.check
2635 year empty$ 'skip$ { date.block } if$
2636 print.title.addenda
2637 }
2638 { format.authors output
2639 author format.key output
2640 format.date "year" output.check
2641 date.block
2642 booktitle empty$ 'format.btitle 'format.title if$ "title" output.check
2643 print.title.addenda
2644 }
2645 if$
2646 new.block
2647 format.in.ed.booktitle output
2648 new.block
2649 howpublished "howpublished" bibinfo.check output
2650 new.block
2651 format.note output
2652 new.block
2653 bbl.unpublished output
2654 new.block
2655 format.eprint output
2656 format.url output
2657 fin.entry
2658 }
2659
2660 FUNCTION {letter}
2661 { journal empty$
2662 'unpublished
2663 'article
2664 if$
2665 }
2666 FUNCTION {collection} { book }
2667 FUNCTION {reference} { book }
2668 FUNCTION {inreference} { incollection }
2669 FUNCTION {audio} { booklet }
2670 FUNCTION {movie} { booklet }
2671 FUNCTION {music} { booklet }
2672 FUNCTION {video} { booklet }
2673 FUNCTION {dataset} { manual }
2674 FUNCTION {electronic} { manual }
2675 FUNCTION {online} { manual }
2676 FUNCTION {patent} { manual }
2677 FUNCTION {software} { manual }
2678 FUNCTION {standard} { manual }
2679 FUNCTION {www} { manual }
2680 FUNCTION {thesis} { phdthesis }
2681 FUNCTION {report} { techreport }
2682 FUNCTION {default.type} { misc }
2683
2684 READ
2685 FUNCTION {sortify}
2686 { purify$
2687 "l" change.case$
2688 }
2689 INTEGERS { len }
2690 FUNCTION {chop.word}
2691 { 's :=
2692 'len :=
2693 s #1 len substring$ =
2694 { s len #1 + global.max$ substring$ }
2695 's
2696 if$
2697 }
2698 FUNCTION {sort.format.names}
2699 { 's :=
2700 #1 'nameptr :=
2701 ""
2702 s num.names$ 'numnames :=
2703 numnames 'namesleft :=
2704 { namesleft #0 > }
2705 { s nameptr
2706 "{ll{ }}{ f{ }}{ jj{ }}{ vv{}}"
2707 format.name$ 't :=
2708 nameptr #1 >
2709 { " " *
2710 namesleft #1 =
2711 t "others" =
2712 and
2713 { "zzzzz" 't := }
2714 'skip$
2715 if$
2716 t sortify *
2717 }
2718 { t sortify * }
2719 if$
2720 nameptr #1 + 'nameptr :=
2721 namesleft #1 - 'namesleft :=
2722 }
2723 while$
2724 }
2725 FUNCTION {sort.format.title}
2726 { 't :=
2727 "A " #2
2728 "An " #3
2729 "The " #4 t chop.word
2730 chop.word
2731 chop.word
2732 sortify
2733 #1 global.max$ substring$
2734 }
2735 FUNCTION {author.editor.sort}
2736 { shortauthor empty$
2737 { author empty$
2738 { shorteditor empty$
2739 { editor empty$
2740 { title empty$
2741 { key empty$
2742 { "to sort, need author, editor, title, or key in "
2743 cite$ * warning$
2744 ""
2745 }
2746 { key sortify }
2747 if$
2748 }
2749 { title sort.format.title }
2750 if$
2751 }
2752 { editor sort.format.names }
2753 if$
2754 }
2755 { shorteditor num.names$ editor num.names$ =
2756 { shorteditor sort.format.names }
2757 { editor sort.format.names }
2758 if$
2759 }
2760 if$
2761 }
2762 { author sort.format.names }
2763 if$
2764 }
2765 { shortauthor num.names$ author num.names$ =
2766 { shortauthor sort.format.names }
2767 { author sort.format.names }
2768 if$
2769 }
2770 if$
2771 }
2772 FUNCTION {editor.sort}
2773 { shorteditor empty$
2774 { editor empty$
2775 { title empty$
2776 { key empty$
2777 { "to sort, need editor, title, or key in " cite$ * warning$
2778 ""
2779 }
2780 { key sortify }
2781 if$
2782 }
2783 { title sort.format.title }
2784 if$
2785 }
2786 { editor sort.format.names }
2787 if$
2788 }
2789 { shorteditor num.names$ editor num.names$ =
2790 { shorteditor sort.format.names }
2791 { editor sort.format.names }
2792 if$
2793 }
2794 if$
2795 }
2796 FUNCTION {author.sort}
2797 { shortauthor empty$
2798 { author empty$
2799 { type$ "inreference" =
2800 booktitle empty$ not
2801 and
2802 { booktitle sort.format.title }
2803 { title empty$
2804 { key empty$
2805 { "to sort, need author, title, or key in " cite$ * warning$
2806 ""
2807 }
2808 { key sortify }
2809 if$
2810 }
2811 { title sort.format.title }
2812 if$
2813 }
2814 if$
2815 }
2816 { author sort.format.names }
2817 if$
2818 }
2819 { shortauthor num.names$ author num.names$ =
2820 { shortauthor sort.format.names }
2821 { author sort.format.names }
2822 if$
2823 }
2824 if$
2825 }
2826 FUNCTION {presort}
2827 { type$ "book" =
2828 type$ "inbook" =
2829 or
2830 'author.editor.sort
2831 { type$ "proceedings" =
2832 'editor.sort
2833 'author.sort
2834 if$
2835 }
2836 if$
2837 #1 entry.max$ substring$
2838 duplicate$ 'sort.label :=
2839 " "
2840 *
2841 calc.label
2842 label sortify
2843 *
2844 " "
2845 *
2846 title field.or.null
2847 sort.format.title
2848 *
2849 #1 entry.max$ substring$
2850 'sort.key$ :=
2851 }
2852
2853 ITERATE {presort}
2854 SORT
2855 INTEGERS { cite.initials.old disamb.names.old }
2856 STRINGS { name1f name1f.old name1g name1g.old name name.old }
2857 FUNCTION {is.label.source}
2858 { duplicate$ empty$
2859 { pop$ #0 }
2860 { label.source =
2861 { #1 }
2862 { #0 }
2863 if$
2864 }
2865 if$
2866 }
2867 FUNCTION {initialize.init.stuff}
2868 { "yyyy" 'name1f.old :=
2869 "yyyy" 'name1g.old :=
2870 "yyyy" 'name.old :=
2871 #0 'cite.initials.old :=
2872 #0 'disamb.names.old :=
2873 }
2874 FUNCTION {end.loop.init}
2875 { name1f 'name1f.old :=
2876 name1g 'name1g.old :=
2877 cite.initials 'cite.initials.old :=
2878 disamb.names 'disamb.names.old :=
2879 }
2880 FUNCTION {has.no.init}
2881 { duplicate$ duplicate$
2882 'name1f.old :=
2883 'name1g.old :=
2884 'name.old :=
2885 #0 'cite.initials.old :=
2886 #0 'disamb.names.old :=
2887 }
2888 FUNCTION {cmp.names}
2889 { 's :=
2890 #1 'nameptr :=
2891 disamb.names.old
2892 s num.names$ 'numnames :=
2893 name.old num.names$ duplicate$ numnames <
2894 { 'numnames := }
2895 'pop$
2896 if$
2897 numnames 'namesleft :=
2898 { namesleft #0 > }
2899 { s nameptr "{ll}" format.name$
2900 name.old nameptr "{ll}" format.name$
2901 =
2902 'skip$
2903 { nameptr #1 -
2904 duplicate$ disamb.names >
2905 { swap$ pop$ }
2906 'pop$
2907 if$
2908 #1 'namesleft :=
2909 }
2910 if$
2911 nameptr #1 + 'nameptr :=
2912 namesleft #1 - 'namesleft :=
2913 }
2914 while$
2915 }
2916 FUNCTION {check.cite.init}
2917 { 'name :=
2918 name #1 "{ll}" format.name$ 'name1f :=
2919 name #1 "{f.{.}}{ jj}{ vv}" format.name$ 'name1g :=
2920 name1f name1f.old =
2921 { name1g name1g.old =
2922 { cite.initials.old 'cite.initials :=
2923 name num.names$ #3 >
2924 { name cmp.names }
2925 { #0 }
2926 if$
2927 duplicate$
2928 'disamb.names :=
2929 'disamb.names.old :=
2930 presort
2931 }
2932 { #1 'cite.initials :=
2933 presort
2934 end.loop.init
2935 }
2936 if$
2937 }
2938 { end.loop.init }
2939 if$
2940 name 'name.old :=
2941 }
2942 FUNCTION {check.cite.head}
2943 { author duplicate$ is.label.source
2944 { check.cite.init }
2945 { pop$
2946 editor duplicate$ is.label.source
2947 { check.cite.init }
2948 { pop$
2949 shortauthor duplicate$ is.label.source
2950 { duplicate$ num.names$ author num.names$ =
2951 { check.cite.init }
2952 { pop$
2953 author check.cite.init
2954 }
2955 if$
2956 }
2957 { pop$
2958 shorteditor duplicate$ is.label.source
2959 { duplicate$ num.names$ editor num.names$ =
2960 { check.cite.init }
2961 { pop$
2962 editor check.cite.init
2963 }
2964 if$
2965 }
2966 { pop$
2967 label.source has.no.init
2968 }
2969 if$
2970 }
2971 if$
2972 }
2973 if$
2974 }
2975 if$
2976 }
2977 EXECUTE {initialize.init.stuff}
2978 ITERATE {check.cite.head}
2979 EXECUTE {initialize.init.stuff}
2980 REVERSE {check.cite.head}
2981 SORT
2982 INTEGERS { last.extra.num last.extra.num.extended last.extra.num.blank number.label }
2983 STRINGS { last.label next.extra }
2984 FUNCTION {last.char}
2985 { #1 'len :=
2986 { duplicate$ duplicate$ #1 len substring$ = not }
2987 { len #1 + 'len := }
2988 while$
2989 len #1 substring$
2990 }
2991 FUNCTION {initialize.extra.label.stuff}
2992 { #0 int.to.chr$ 'last.label :=
2993 "" 'next.extra :=
2994 #0 'last.extra.num :=
2995 "a" chr.to.int$ #1 - 'last.extra.num.blank :=
2996 last.extra.num.blank 'last.extra.num.extended :=
2997 #0 'number.label :=
2998 }
2999 FUNCTION {forward.pass}
3000 { last.label label =
3001 { last.extra.num #1 + 'last.extra.num :=
3002 last.extra.num "z" chr.to.int$ >
3003 { "a" chr.to.int$ 'last.extra.num :=
3004 last.extra.num.extended #1 + 'last.extra.num.extended :=
3005 }
3006 'skip$
3007 if$
3008 last.extra.num.extended last.extra.num.blank >
3009 { last.extra.num.extended int.to.chr$
3010 last.extra.num int.to.chr$ *
3011 }
3012 { last.extra.num int.to.chr$ }
3013 if$
3014 label last.char chr.to.int$
3015 duplicate$ "/" chr.to.int$ >
3016 swap$ ":" chr.to.int$ < and
3017 'skip$
3018 { "~" swap$ * }
3019 if$
3020 'extra.label :=
3021 }
3022 { "a" chr.to.int$ 'last.extra.num :=
3023 "" 'extra.label :=
3024 label 'last.label :=
3025 }
3026 if$
3027 number.label #1 + 'number.label :=
3028 }
3029 FUNCTION {reverse.pass}
3030 { next.extra "b" =
3031 { "a" 'extra.label := }
3032 { next.extra "~b" =
3033 { "~a" 'extra.label := }
3034 'skip$
3035 if$
3036 }
3037 if$
3038 extra.label 'next.extra :=
3039 extra.label
3040 duplicate$ empty$
3041 'skip$
3042 { "{\natexlab{" swap$ * "}}" * }
3043 if$
3044 'extra.label :=
3045 label extra.label * 'label :=
3046 }
3047 EXECUTE {initialize.extra.label.stuff}
3048 ITERATE {forward.pass}
3049 REVERSE {reverse.pass}
3050 FUNCTION {bib.sort.order}
3051 { sort.label
3052 " "
3053 *
3054 year field.or.null sortify
3055 *
3056 " "
3057 *
3058 title field.or.null
3059 sort.format.title
3060 *
3061 #1 entry.max$ substring$
3062 'sort.key$ :=
3063 }
3064 ITERATE {bib.sort.order}
3065 SORT
3066 FUNCTION {begin.bib}
3067 { preamble$ empty$
3068 'skip$
3069 { preamble$ write$ newline$ }
3070 if$
3071 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
3072 write$ newline$
3073 "\providecommand{\natexlab}[1]{#1}"
3074 write$ newline$
3075 "\providecommand{\url}[1]{\texttt{#1}}"
3076 write$ newline$
3077 "\providecommand{\urlprefix}{Available from: }"
3078 write$ newline$
3079 "\providecommand{\urldateprefix}{Accessed }"
3080 write$ newline$
3081 "\providecommand{\selectlanguage}[1]{\relax}"
3082 write$ newline$
3083 "\providecommand{\bibinfo}[2]{#2}"
3084 write$ newline$
3085 "\providecommand{\eprint}[2][]{\url{#2}}"
3086 write$ newline$
3087 }
3088 EXECUTE {begin.bib}
3089 EXECUTE {init.state.consts}
3090 ITERATE {call.type$}
3091 FUNCTION {end.bib}
3092 { newline$
3093 "\end{thebibliography}" write$ newline$
3094 }
3095 EXECUTE {end.bib}
3096 %%
3097 %% Copyright (C) 2016-2026 by University of Bath
3098 %%
3099 %% End of file `bath.bst'.