Debian Codegraph @

texmf-dist/bibtex/bst/stellenbosch-2/stb-bib-eng-a.bst

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