Debian Codegraph @

texmf-dist/bibtex/bst/stellenbosch/usmeg-n.bst

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