Debian Codegraph @

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

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