Debian Codegraph @

texmf-dist/bibtex/bst/stellenbosch/ussagus.bst

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