Debian Codegraph @

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

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