Debian Codegraph @

texmf-dist/bibtex/bst/hc/hc-en.bst

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