Debian Codegraph @

texmf-dist/bibtex/bst/economic/tandfx.bst

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