Debian Codegraph @

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

raw
1 %%% journal "Applied Economics" (apecon)
2 %%% bibliography style for use with LaTeX2e
3 %%% version: 1.0 (14 April 2008)
4 %%% license: LaTeX Project Public License (see below)
5 %%% This file was created with makebst (see below) and modified
6 %%% by Arne Henningsen.
7 %%% Note: This is an unofficial style file that may not fully comply
8 %%% with the reference guidelines of "Applied Economics" 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 %%% This BibTeX style should be used with the corresponding
15 %%% LaTeX class "apecon" (apecon.cls).
16 %%% Otherwise, the following line has to be added to the LaTeX preamble:
17 %%% \usepackage[authoryear]{natbib}
18 %%%
19 %%
20 %% This is file `apecon.bst',
21 %% generated with the docstrip utility.
22 %%
23 %% The original source files were:
24 %%
25 %% merlin.mbs (with options: `ay,nat,nm-rev,jnrlst,keyxyr,dt-beg,yr-par,yrp-x,note-yr,vol-bf,vnum-x,volp-com,num-xser,pre-pub,edpar,bkedcap,edby,edbyw,edcap,blk-com,pp,ed,abr,xedn,and-xcom,etal-it,em-it,nfss,')
26 %% ----------------------------------------
27 %% *** BibTeX style for the journal 'Applied Economics' ***
28 %%
29 %% Copyright 1994-2004 Patrick W Daly
30 % ===============================================================
31 % IMPORTANT NOTICE:
32 % This bibliographic style (bst) file has been generated from one or
33 % more master bibliographic style (mbs) files, listed above.
34 %
35 % This generated file can be redistributed and/or modified under the terms
36 % of the LaTeX Project Public License Distributed from CTAN
37 % archives in directory macros/latex/base/lppl.txt; either
38 % version 1 of the License, or any later version.
39 % ===============================================================
40 % Name and version information of the main mbs file:
41 % \ProvidesFile{merlin.mbs}[2004/02/09 4.13 (PWD, AO, DPC)]
42 % For use with BibTeX version 0.99a or later
43 %-------------------------------------------------------------------
44 % This bibliography style file is intended for texts in ENGLISH
45 % This is an author-year citation style bibliography. As such, it is
46 % non-standard LaTeX, and requires a special package file to function properly.
47 % Such a package is natbib.sty by Patrick W. Daly
48 % The form of the \bibitem entries is
49 % \bibitem[Jones et al.(1990)]{key}...
50 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
51 % The essential feature is that the label (the part in brackets) consists
52 % of the author names, as they should appear in the citation, with the year
53 % in parentheses following. There must be no space before the opening
54 % parenthesis!
55 % With natbib v5.3, a full list of authors may also follow the year.
56 % In natbib.sty, it is possible to define the type of enclosures that is
57 % really wanted (brackets or parentheses), but in either case, there must
58 % be parentheses in the label.
59 % The \cite command functions as follows:
60 % \citet{key} ==>> Jones et al. (1990)
61 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
62 % \citep{key} ==>> (Jones et al., 1990)
63 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
64 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
65 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
66 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
67 % \citeauthor{key} ==>> Jones et al.
68 % \citeauthor*{key} ==>> Jones, Baker, and Smith
69 % \citeyear{key} ==>> 1990
70 %---------------------------------------------------------------------
71
72 ENTRY
73 { address
74 author
75 booktitle
76 chapter
77 edition
78 editor
79 eid
80 howpublished
81 institution
82 journal
83 key
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 add.blank
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 {bolden}
207 { duplicate$ empty$
208 { pop$ "" }
209 { "\textbf{" swap$ * "}" * }
210 if$
211 }
212 FUNCTION {tie.or.space.prefix}
213 { duplicate$ text.length$ #3 <
214 { "~" }
215 { " " }
216 if$
217 swap$
218 }
219
220 FUNCTION {capitalize}
221 { "u" change.case$ "t" change.case$ }
222
223 FUNCTION {space.word}
224 { " " swap$ * " " * }
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 { "edn." }
245
246 FUNCTION {bbl.volume}
247 { "vol." }
248
249 FUNCTION {bbl.of}
250 { "of" }
251
252 FUNCTION {bbl.number}
253 { "no." }
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 { "chap." }
269
270 FUNCTION {bbl.techrep}
271 { "Tech. Rep." }
272
273 FUNCTION {bbl.mthesis}
274 { "Master's thesis" }
275
276 FUNCTION {bbl.phdthesis}
277 { "Ph.D. thesis" }
278
279 MACRO {jan} {"Jan."}
280
281 MACRO {feb} {"Feb."}
282
283 MACRO {mar} {"Mar."}
284
285 MACRO {apr} {"Apr."}
286
287 MACRO {may} {"May"}
288
289 MACRO {jun} {"Jun."}
290
291 MACRO {jul} {"Jul."}
292
293 MACRO {aug} {"Aug."}
294
295 MACRO {sep} {"Sep."}
296
297 MACRO {oct} {"Oct."}
298
299 MACRO {nov} {"Nov."}
300
301 MACRO {dec} {"Dec."}
302
303 MACRO {acmcs} {"ACM Computing Surveys"}
304
305 MACRO {acta} {"Acta Informatica"}
306
307 MACRO {cacm} {"Communications of the ACM"}
308
309 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
310
311 MACRO {ibmsj} {"IBM Systems Journal"}
312
313 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
314
315 MACRO {ieeetc} {"IEEE Transactions on Computers"}
316
317 MACRO {ieeetcad}
318 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
319
320 MACRO {ipl} {"Information Processing Letters"}
321
322 MACRO {jacm} {"Journal of the ACM"}
323
324 MACRO {jcss} {"Journal of Computer and System Sciences"}
325
326 MACRO {scp} {"Science of Computer Programming"}
327
328 MACRO {sicomp} {"SIAM Journal on Computing"}
329
330 MACRO {tocs} {"ACM Transactions on Computer Systems"}
331
332 MACRO {tods} {"ACM Transactions on Database Systems"}
333
334 MACRO {tog} {"ACM Transactions on Graphics"}
335
336 MACRO {toms} {"ACM Transactions on Mathematical Software"}
337
338 MACRO {toois} {"ACM Transactions on Office Information Systems"}
339
340 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
341
342 MACRO {tcs} {"Theoretical Computer Science"}
343 FUNCTION {bibinfo.check}
344 { swap$
345 duplicate$ missing$
346 {
347 pop$ pop$
348 ""
349 }
350 { duplicate$ empty$
351 {
352 swap$ pop$
353 }
354 { swap$
355 pop$
356 }
357 if$
358 }
359 if$
360 }
361 FUNCTION {bibinfo.warn}
362 { swap$
363 duplicate$ missing$
364 {
365 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
366 ""
367 }
368 { duplicate$ empty$
369 {
370 swap$ "empty " swap$ * " in " * cite$ * warning$
371 }
372 { swap$
373 pop$
374 }
375 if$
376 }
377 if$
378 }
379 STRINGS { bibinfo}
380 INTEGERS { nameptr namesleft numnames }
381
382 FUNCTION {format.names}
383 { 'bibinfo :=
384 duplicate$ empty$ 'skip$ {
385 's :=
386 "" 't :=
387 #1 'nameptr :=
388 s num.names$ 'numnames :=
389 numnames 'namesleft :=
390 { namesleft #0 > }
391 { s nameptr
392 "{vv~}{ll}{, f.}{, jj}"
393 format.name$
394 bibinfo bibinfo.check
395 't :=
396 nameptr #1 >
397 {
398 namesleft #1 >
399 { ", " * t * }
400 {
401 s nameptr "{ll}" format.name$ duplicate$ "others" =
402 { 't := }
403 { pop$ }
404 if$
405 t "others" =
406 {
407 " " * bbl.etal emphasize *
408 }
409 {
410 bbl.and
411 space.word * t *
412 }
413 if$
414 }
415 if$
416 }
417 't
418 if$
419 nameptr #1 + 'nameptr :=
420 namesleft #1 - 'namesleft :=
421 }
422 while$
423 } if$
424 }
425 FUNCTION {format.names.ed}
426 {
427 'bibinfo :=
428 duplicate$ empty$ 'skip$ {
429 's :=
430 "" 't :=
431 #1 'nameptr :=
432 s num.names$ 'numnames :=
433 numnames 'namesleft :=
434 { namesleft #0 > }
435 { s nameptr
436 "{f.~}{vv~}{ll}{, jj}"
437 format.name$
438 bibinfo bibinfo.check
439 't :=
440 nameptr #1 >
441 {
442 namesleft #1 >
443 { ", " * t * }
444 {
445 s nameptr "{ll}" format.name$ duplicate$ "others" =
446 { 't := }
447 { pop$ }
448 if$
449 t "others" =
450 {
451
452 " " * bbl.etal emphasize *
453 }
454 {
455 bbl.and
456 space.word * t *
457 }
458 if$
459 }
460 if$
461 }
462 't
463 if$
464 nameptr #1 + 'nameptr :=
465 namesleft #1 - 'namesleft :=
466 }
467 while$
468 } if$
469 }
470 FUNCTION {format.key}
471 { empty$
472 { key field.or.null }
473 { "" }
474 if$
475 }
476
477 FUNCTION {format.authors}
478 { author "author" format.names
479 }
480 FUNCTION {get.bbl.editor}
481 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
482
483 FUNCTION {format.editors}
484 { editor "editor" format.names duplicate$ empty$ 'skip$
485 {
486 " " *
487 get.bbl.editor
488 capitalize
489 "(" swap$ * ")" *
490 *
491 }
492 if$
493 }
494 FUNCTION {format.note}
495 {
496 note empty$
497 { "" }
498 { note #1 #1 substring$
499 duplicate$ "{" =
500 'skip$
501 { output.state mid.sentence =
502 { "l" }
503 { "u" }
504 if$
505 change.case$
506 }
507 if$
508 note #2 global.max$ substring$ * "note" bibinfo.check
509 }
510 if$
511 }
512
513 FUNCTION {format.title}
514 { title
515 duplicate$ empty$ 'skip$
516 { "t" change.case$ }
517 if$
518 "title" bibinfo.check
519 }
520 FUNCTION {format.full.names}
521 {'s :=
522 "" 't :=
523 #1 'nameptr :=
524 s num.names$ 'numnames :=
525 numnames 'namesleft :=
526 { namesleft #0 > }
527 { s nameptr
528 "{vv~}{ll}" format.name$
529 't :=
530 nameptr #1 >
531 {
532 namesleft #1 >
533 { ", " * t * }
534 {
535 s nameptr "{ll}" format.name$ duplicate$ "others" =
536 { 't := }
537 { pop$ }
538 if$
539 t "others" =
540 {
541 " " * bbl.etal emphasize *
542 }
543 {
544 bbl.and
545 space.word * t *
546 }
547 if$
548 }
549 if$
550 }
551 't
552 if$
553 nameptr #1 + 'nameptr :=
554 namesleft #1 - 'namesleft :=
555 }
556 while$
557 }
558
559 FUNCTION {author.editor.key.full}
560 { author empty$
561 { editor empty$
562 { key empty$
563 { cite$ #1 #3 substring$ }
564 'key
565 if$
566 }
567 { editor format.full.names }
568 if$
569 }
570 { author format.full.names }
571 if$
572 }
573
574 FUNCTION {author.key.full}
575 { author empty$
576 { key empty$
577 { cite$ #1 #3 substring$ }
578 'key
579 if$
580 }
581 { author format.full.names }
582 if$
583 }
584
585 FUNCTION {editor.key.full}
586 { editor empty$
587 { key empty$
588 { cite$ #1 #3 substring$ }
589 'key
590 if$
591 }
592 { editor format.full.names }
593 if$
594 }
595
596 FUNCTION {make.full.names}
597 { type$ "book" =
598 type$ "inbook" =
599 or
600 'author.editor.key.full
601 { type$ "proceedings" =
602 'editor.key.full
603 'author.key.full
604 if$
605 }
606 if$
607 }
608
609 FUNCTION {output.bibitem}
610 { newline$
611 "\bibitem[{" write$
612 label write$
613 ")" make.full.names duplicate$ short.list =
614 { pop$ }
615 { * }
616 if$
617 "}]{" * write$
618 cite$ write$
619 "}" write$
620 newline$
621 ""
622 before.all 'output.state :=
623 }
624
625 FUNCTION {n.dashify}
626 {
627 't :=
628 ""
629 { t empty$ not }
630 { t #1 #1 substring$ "-" =
631 { t #1 #2 substring$ "--" = not
632 { "--" *
633 t #2 global.max$ substring$ 't :=
634 }
635 { { t #1 #1 substring$ "-" = }
636 { "-" *
637 t #2 global.max$ substring$ 't :=
638 }
639 while$
640 }
641 if$
642 }
643 { t #1 #1 substring$ *
644 t #2 global.max$ substring$ 't :=
645 }
646 if$
647 }
648 while$
649 }
650
651 FUNCTION {word.in}
652 { bbl.in
653 " " * }
654
655 FUNCTION {format.date}
656 { year "year" bibinfo.check duplicate$ empty$
657 {
658 "empty year in " cite$ * "; set to ????" * warning$
659 pop$ "????"
660 }
661 'skip$
662 if$
663 extra.label *
664 before.all 'output.state :=
665 " (" swap$ * ")" *
666 }
667 FUNCTION {format.btitle}
668 { title "title" bibinfo.check
669 duplicate$ empty$ 'skip$
670 {
671 emphasize
672 }
673 if$
674 }
675 FUNCTION {either.or.check}
676 { empty$
677 'pop$
678 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
679 if$
680 }
681 FUNCTION {format.bvolume}
682 { volume empty$
683 { "" }
684 { bbl.volume volume tie.or.space.prefix
685 "volume" bibinfo.check * *
686 series "series" bibinfo.check
687 duplicate$ empty$ 'pop$
688 { swap$ bbl.of space.word * swap$
689 emphasize * }
690 if$
691 "volume and number" number either.or.check
692 }
693 if$
694 }
695 FUNCTION {format.number.series}
696 { volume empty$
697 { number empty$
698 { series field.or.null }
699 { series empty$
700 { number "number" bibinfo.check }
701 { output.state mid.sentence =
702 { bbl.number }
703 { bbl.number capitalize }
704 if$
705 number tie.or.space.prefix "number" bibinfo.check * *
706 bbl.in space.word *
707 series "series" bibinfo.check *
708 }
709 if$
710 }
711 if$
712 }
713 { "" }
714 if$
715 }
716
717 FUNCTION {format.edition}
718 { edition duplicate$ empty$ 'skip$
719 {
720 output.state mid.sentence =
721 { "l" }
722 { "t" }
723 if$ change.case$
724 "edition" bibinfo.check
725 " " * bbl.edition *
726 }
727 if$
728 }
729 INTEGERS { multiresult }
730 FUNCTION {multi.page.check}
731 { 't :=
732 #0 'multiresult :=
733 { multiresult not
734 t empty$ not
735 and
736 }
737 { t #1 #1 substring$
738 duplicate$ "-" =
739 swap$ duplicate$ "," =
740 swap$ "+" =
741 or or
742 { #1 'multiresult := }
743 { t #2 global.max$ substring$ 't := }
744 if$
745 }
746 while$
747 multiresult
748 }
749 FUNCTION {format.pages}
750 { pages duplicate$ empty$ 'skip$
751 { duplicate$ multi.page.check
752 {
753 bbl.pages swap$
754 n.dashify
755 }
756 {
757 bbl.page swap$
758 }
759 if$
760 tie.or.space.prefix
761 "pages" bibinfo.check
762 * *
763 }
764 if$
765 }
766 FUNCTION {format.journal.pages}
767 { pages duplicate$ empty$ 'pop$
768 { swap$ duplicate$ empty$
769 { pop$ pop$ format.pages }
770 {
771 ", " *
772 swap$
773 n.dashify
774 "pages" bibinfo.check
775 *
776 }
777 if$
778 }
779 if$
780 }
781 FUNCTION {format.journal.eid}
782 { eid "eid" bibinfo.check
783 duplicate$ empty$ 'pop$
784 { swap$ duplicate$ empty$ 'skip$
785 {
786 ", " *
787 }
788 if$
789 swap$ *
790 }
791 if$
792 }
793 FUNCTION {format.vol.num.pages}
794 { volume field.or.null
795 duplicate$ empty$ 'skip$
796 {
797 "volume" bibinfo.check
798 }
799 if$
800 bolden
801 eid empty$
802 { format.journal.pages }
803 { format.journal.eid }
804 if$
805 }
806
807 FUNCTION {format.chapter.pages}
808 { chapter empty$
809 'format.pages
810 { type empty$
811 { bbl.chapter }
812 { type "l" change.case$
813 "type" bibinfo.check
814 }
815 if$
816 chapter tie.or.space.prefix
817 "chapter" bibinfo.check
818 * *
819 pages empty$
820 'skip$
821 { ", " * format.pages * }
822 if$
823 }
824 if$
825 }
826
827 FUNCTION {format.booktitle}
828 {
829 booktitle "booktitle" bibinfo.check
830 emphasize
831 }
832 FUNCTION {format.in.ed.booktitle}
833 { format.booktitle duplicate$ empty$ 'skip$
834 {
835 editor "editor" format.names.ed duplicate$ empty$ 'pop$
836 {
837 get.bbl.editor
838 capitalize
839 "(" swap$ * ")" *
840 " " * swap$ *
841 swap$
842 " " * swap$
843 * }
844 if$
845 word.in swap$ *
846 }
847 if$
848 }
849 FUNCTION {format.thesis.type}
850 { type duplicate$ empty$
851 'pop$
852 { swap$ pop$
853 "t" change.case$ "type" bibinfo.check
854 }
855 if$
856 }
857 FUNCTION {format.tr.number}
858 { number "number" bibinfo.check
859 type duplicate$ empty$
860 { pop$ bbl.techrep }
861 'skip$
862 if$
863 "type" bibinfo.check
864 swap$ duplicate$ empty$
865 { pop$ "t" change.case$ }
866 { tie.or.space.prefix * * }
867 if$
868 }
869 FUNCTION {format.article.crossref}
870 {
871 word.in
872 " \cite{" * crossref * "}" *
873 }
874 FUNCTION {format.book.crossref}
875 { volume duplicate$ empty$
876 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
877 pop$ word.in
878 }
879 { bbl.volume
880 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
881 }
882 if$
883 " \cite{" * crossref * "}" *
884 }
885 FUNCTION {format.incoll.inproc.crossref}
886 {
887 word.in
888 " \cite{" * crossref * "}" *
889 }
890 FUNCTION {format.org.or.pub}
891 { 't :=
892 ""
893 address empty$ t empty$ and
894 'skip$
895 {
896 t empty$
897 { address "address" bibinfo.check *
898 }
899 { t *
900 address empty$
901 'skip$
902 { ", " * address "address" bibinfo.check * }
903 if$
904 }
905 if$
906 }
907 if$
908 }
909 FUNCTION {format.publisher.address}
910 { publisher "publisher" bibinfo.warn format.org.or.pub
911 }
912
913 FUNCTION {format.organization.address}
914 { organization "organization" bibinfo.check format.org.or.pub
915 }
916
917 FUNCTION {article}
918 { output.bibitem
919 format.authors "author" output.check
920 author format.key output
921 format.date "year" output.check
922 date.block
923 format.title "title" output.check
924 crossref missing$
925 {
926 journal
927 "journal" bibinfo.check
928 emphasize
929 "journal" output.check
930 format.vol.num.pages output
931 }
932 { format.article.crossref output.nonnull
933 format.pages output
934 }
935 if$
936 format.note output
937 fin.entry
938 }
939 FUNCTION {book}
940 { output.bibitem
941 author empty$
942 { format.editors "author and editor" output.check
943 editor format.key output
944 }
945 { format.authors output.nonnull
946 crossref missing$
947 { "author and editor" editor either.or.check }
948 'skip$
949 if$
950 }
951 if$
952 format.date "year" output.check
953 date.block
954 format.btitle "title" output.check
955 crossref missing$
956 { format.bvolume output
957 format.number.series output
958 format.publisher.address output
959 }
960 {
961 format.book.crossref output.nonnull
962 }
963 if$
964 format.edition output
965 format.note output
966 fin.entry
967 }
968 FUNCTION {booklet}
969 { output.bibitem
970 format.authors output
971 author format.key output
972 format.date "year" output.check
973 date.block
974 format.title "title" output.check
975 howpublished "howpublished" bibinfo.check output
976 address "address" bibinfo.check output
977 format.note output
978 fin.entry
979 }
980
981 FUNCTION {inbook}
982 { output.bibitem
983 author empty$
984 { format.editors "author and editor" output.check
985 editor format.key output
986 }
987 { format.authors output.nonnull
988 crossref missing$
989 { "author and editor" editor either.or.check }
990 'skip$
991 if$
992 }
993 if$
994 format.date "year" output.check
995 date.block
996 format.btitle "title" output.check
997 crossref missing$
998 {
999 format.publisher.address output
1000 format.bvolume output
1001 format.chapter.pages "chapter and pages" output.check
1002 format.number.series output
1003 }
1004 {
1005 format.chapter.pages "chapter and pages" output.check
1006 format.book.crossref output.nonnull
1007 }
1008 if$
1009 format.edition output
1010 format.note output
1011 fin.entry
1012 }
1013
1014 FUNCTION {incollection}
1015 { output.bibitem
1016 format.authors "author" output.check
1017 author format.key output
1018 format.date "year" output.check
1019 date.block
1020 format.title "title" output.check
1021 crossref missing$
1022 { format.in.ed.booktitle "booktitle" output.check
1023 format.publisher.address output
1024 format.bvolume output
1025 format.number.series output
1026 format.chapter.pages output
1027 format.edition output
1028 }
1029 { format.incoll.inproc.crossref output.nonnull
1030 format.chapter.pages output
1031 }
1032 if$
1033 format.note output
1034 fin.entry
1035 }
1036 FUNCTION {inproceedings}
1037 { output.bibitem
1038 format.authors "author" output.check
1039 author format.key output
1040 format.date "year" output.check
1041 date.block
1042 format.title "title" output.check
1043 crossref missing$
1044 { format.in.ed.booktitle "booktitle" output.check
1045 publisher empty$
1046 { format.organization.address output }
1047 { organization "organization" bibinfo.check output
1048 format.publisher.address output
1049 }
1050 if$
1051 format.bvolume output
1052 format.number.series output
1053 format.pages output
1054 }
1055 { format.incoll.inproc.crossref output.nonnull
1056 format.pages output
1057 }
1058 if$
1059 format.note output
1060 fin.entry
1061 }
1062 FUNCTION {conference} { inproceedings }
1063 FUNCTION {manual}
1064 { output.bibitem
1065 format.authors output
1066 author format.key output
1067 format.date "year" output.check
1068 date.block
1069 format.btitle "title" output.check
1070 organization "organization" bibinfo.check output
1071 address "address" bibinfo.check output
1072 format.edition output
1073 format.note output
1074 fin.entry
1075 }
1076
1077 FUNCTION {mastersthesis}
1078 { output.bibitem
1079 format.authors "author" output.check
1080 author format.key output
1081 format.date "year" output.check
1082 date.block
1083 format.btitle
1084 "title" output.check
1085 bbl.mthesis format.thesis.type output.nonnull
1086 school "school" bibinfo.warn output
1087 address "address" bibinfo.check output
1088 format.note output
1089 fin.entry
1090 }
1091
1092 FUNCTION {misc}
1093 { output.bibitem
1094 format.authors output
1095 author format.key output
1096 format.date "year" output.check
1097 date.block
1098 format.title output
1099 howpublished "howpublished" bibinfo.check output
1100 format.note output
1101 fin.entry
1102 }
1103 FUNCTION {phdthesis}
1104 { output.bibitem
1105 format.authors "author" output.check
1106 author format.key output
1107 format.date "year" output.check
1108 date.block
1109 format.btitle
1110 "title" output.check
1111 bbl.phdthesis format.thesis.type output.nonnull
1112 school "school" bibinfo.warn output
1113 address "address" bibinfo.check output
1114 format.note output
1115 fin.entry
1116 }
1117
1118 FUNCTION {proceedings}
1119 { output.bibitem
1120 format.editors output
1121 editor format.key output
1122 format.date "year" output.check
1123 date.block
1124 format.btitle "title" output.check
1125 format.bvolume output
1126 format.number.series output
1127 publisher empty$
1128 { format.organization.address output }
1129 { organization "organization" bibinfo.check output
1130 format.publisher.address output
1131 }
1132 if$
1133 format.note output
1134 fin.entry
1135 }
1136
1137 FUNCTION {techreport}
1138 { output.bibitem
1139 format.authors "author" output.check
1140 author format.key output
1141 format.date "year" output.check
1142 date.block
1143 format.title
1144 "title" output.check
1145 format.tr.number output.nonnull
1146 institution "institution" bibinfo.warn output
1147 address "address" bibinfo.check output
1148 format.note output
1149 fin.entry
1150 }
1151
1152 FUNCTION {unpublished}
1153 { output.bibitem
1154 format.authors "author" output.check
1155 author format.key output
1156 format.date "year" output.check
1157 date.block
1158 format.title "title" output.check
1159 format.note "note" output.check
1160 fin.entry
1161 }
1162
1163 FUNCTION {default.type} { misc }
1164 READ
1165 FUNCTION {sortify}
1166 { purify$
1167 "l" change.case$
1168 }
1169 INTEGERS { len }
1170 FUNCTION {chop.word}
1171 { 's :=
1172 'len :=
1173 s #1 len substring$ =
1174 { s len #1 + global.max$ substring$ }
1175 's
1176 if$
1177 }
1178 FUNCTION {format.lab.names}
1179 { 's :=
1180 "" 't :=
1181 s #1 "{vv~}{ll}" format.name$
1182 s num.names$ duplicate$
1183 #2 >
1184 { pop$
1185 " " * bbl.etal emphasize *
1186 }
1187 { #2 <
1188 'skip$
1189 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1190 {
1191 " " * bbl.etal emphasize *
1192 }
1193 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
1194 * }
1195 if$
1196 }
1197 if$
1198 }
1199 if$
1200 }
1201
1202 FUNCTION {author.key.label}
1203 { author empty$
1204 { key empty$
1205 { cite$ #1 #3 substring$ }
1206 'key
1207 if$
1208 }
1209 { author format.lab.names }
1210 if$
1211 }
1212
1213 FUNCTION {author.editor.key.label}
1214 { author empty$
1215 { editor empty$
1216 { key empty$
1217 { cite$ #1 #3 substring$ }
1218 'key
1219 if$
1220 }
1221 { editor format.lab.names }
1222 if$
1223 }
1224 { author format.lab.names }
1225 if$
1226 }
1227
1228 FUNCTION {editor.key.label}
1229 { editor empty$
1230 { key empty$
1231 { cite$ #1 #3 substring$ }
1232 'key
1233 if$
1234 }
1235 { editor format.lab.names }
1236 if$
1237 }
1238
1239 FUNCTION {calc.short.authors}
1240 { type$ "book" =
1241 type$ "inbook" =
1242 or
1243 'author.editor.key.label
1244 { type$ "proceedings" =
1245 'editor.key.label
1246 'author.key.label
1247 if$
1248 }
1249 if$
1250 'short.list :=
1251 }
1252
1253 FUNCTION {calc.label}
1254 { calc.short.authors
1255 short.list
1256 "("
1257 *
1258 year duplicate$ empty$
1259 short.list key field.or.null = or
1260 { pop$ "" }
1261 'skip$
1262 if$
1263 *
1264 'label :=
1265 }
1266
1267 FUNCTION {sort.format.names}
1268 { 's :=
1269 #1 'nameptr :=
1270 ""
1271 s num.names$ 'numnames :=
1272 numnames 'namesleft :=
1273 { namesleft #0 > }
1274 { s nameptr
1275 "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}"
1276 format.name$ 't :=
1277 nameptr #1 >
1278 {
1279 " " *
1280 namesleft #1 = t "others" = and
1281 { "zzzzz" * }
1282 { t sortify * }
1283 if$
1284 }
1285 { t sortify * }
1286 if$
1287 nameptr #1 + 'nameptr :=
1288 namesleft #1 - 'namesleft :=
1289 }
1290 while$
1291 }
1292
1293 FUNCTION {sort.format.title}
1294 { 't :=
1295 "A " #2
1296 "An " #3
1297 "The " #4 t chop.word
1298 chop.word
1299 chop.word
1300 sortify
1301 #1 global.max$ substring$
1302 }
1303 FUNCTION {author.sort}
1304 { author empty$
1305 { key empty$
1306 { "to sort, need author or key in " cite$ * warning$
1307 ""
1308 }
1309 { key sortify }
1310 if$
1311 }
1312 { author sort.format.names }
1313 if$
1314 }
1315 FUNCTION {author.editor.sort}
1316 { author empty$
1317 { editor empty$
1318 { key empty$
1319 { "to sort, need author, editor, or key in " cite$ * warning$
1320 ""
1321 }
1322 { key sortify }
1323 if$
1324 }
1325 { editor sort.format.names }
1326 if$
1327 }
1328 { author sort.format.names }
1329 if$
1330 }
1331 FUNCTION {editor.sort}
1332 { editor empty$
1333 { key empty$
1334 { "to sort, need editor or key in " cite$ * warning$
1335 ""
1336 }
1337 { key sortify }
1338 if$
1339 }
1340 { editor sort.format.names }
1341 if$
1342 }
1343 FUNCTION {presort}
1344 { calc.label
1345 label sortify
1346 " "
1347 *
1348 type$ "book" =
1349 type$ "inbook" =
1350 or
1351 'author.editor.sort
1352 { type$ "proceedings" =
1353 'editor.sort
1354 'author.sort
1355 if$
1356 }
1357 if$
1358 #1 entry.max$ substring$
1359 'sort.label :=
1360 sort.label
1361 *
1362 " "
1363 *
1364 title field.or.null
1365 sort.format.title
1366 *
1367 #1 entry.max$ substring$
1368 'sort.key$ :=
1369 }
1370
1371 ITERATE {presort}
1372 SORT
1373 STRINGS { last.label next.extra }
1374 INTEGERS { last.extra.num number.label }
1375 FUNCTION {initialize.extra.label.stuff}
1376 { #0 int.to.chr$ 'last.label :=
1377 "" 'next.extra :=
1378 #0 'last.extra.num :=
1379 #0 'number.label :=
1380 }
1381 FUNCTION {forward.pass}
1382 { last.label label =
1383 { last.extra.num #1 + 'last.extra.num :=
1384 last.extra.num int.to.chr$ 'extra.label :=
1385 }
1386 { "a" chr.to.int$ 'last.extra.num :=
1387 "" 'extra.label :=
1388 label 'last.label :=
1389 }
1390 if$
1391 number.label #1 + 'number.label :=
1392 }
1393 FUNCTION {reverse.pass}
1394 { next.extra "b" =
1395 { "a" 'extra.label := }
1396 'skip$
1397 if$
1398 extra.label 'next.extra :=
1399 extra.label
1400 duplicate$ empty$
1401 'skip$
1402 { "{\natexlab{" swap$ * "}}" * }
1403 if$
1404 'extra.label :=
1405 label extra.label * 'label :=
1406 }
1407 EXECUTE {initialize.extra.label.stuff}
1408 ITERATE {forward.pass}
1409 REVERSE {reverse.pass}
1410 FUNCTION {bib.sort.order}
1411 { sort.label
1412 " "
1413 *
1414 year field.or.null sortify
1415 *
1416 " "
1417 *
1418 title field.or.null
1419 sort.format.title
1420 *
1421 #1 entry.max$ substring$
1422 'sort.key$ :=
1423 }
1424 ITERATE {bib.sort.order}
1425 SORT
1426 FUNCTION {begin.bib}
1427 { preamble$ empty$
1428 'skip$
1429 { preamble$ write$ newline$ }
1430 if$
1431 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1432 write$ newline$
1433 "\providecommand{\natexlab}[1]{#1}"
1434 write$ newline$
1435 }
1436 EXECUTE {begin.bib}
1437 EXECUTE {init.state.consts}
1438 ITERATE {call.type$}
1439 FUNCTION {end.bib}
1440 { newline$
1441 "\end{thebibliography}" write$ newline$
1442 }
1443 EXECUTE {end.bib}
1444 %% End of customized bst file
1445 %%
1446 %% End of file `apecon.bst'.