Debian Codegraph @

texmf-dist/bibtex/bst/perception/perception.bst

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