Debian Codegraph @

texmf-dist/bibtex/bst/ieeepes/ieeepes.bst

raw
1 %%%%% ieeepes.bst
2 %
3 % Bibliography Style file for articles according to IEEE instructions
4 % [email protected] <22-JUN-93>
5 % modified from unsrt.bib. Contributions by Richard H. Roy
6 %
7 % Modified by Volker Kuhlmann <[email protected]>, 14 Nov 95
8 % Spelled out month names. Added some IEEE macros.
9 %
10
11 ENTRY
12 { address
13 author
14 booktitle
15 chapter
16 edition
17 editor
18 howpublished
19 institution
20 journal
21 key
22 month
23 note
24 number
25 organization
26 pages
27 publisher
28 school
29 series
30 title
31 type
32 volume
33 year
34 }
35 {}
36 { label }
37
38 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
39
40 FUNCTION {init.state.consts}
41 { #0 'before.all :=
42 #1 'mid.sentence :=
43 #2 'after.sentence :=
44 #3 'after.block :=
45 }
46
47 STRINGS { s t }
48
49 FUNCTION {output.nonnull}
50 { 's :=
51 output.state mid.sentence =
52 { ", " * write$ }
53 { output.state after.block =
54 % next line commented out by rhr and changed to write comma
55 % { add.period$ write$
56 { ", " * write$
57 newline$
58 "\newblock " write$
59 }
60 { output.state before.all =
61 'write$
62 { add.period$ " " * write$ }
63 if$
64 }
65 if$
66 mid.sentence 'output.state :=
67 }
68 if$
69 s
70 }
71
72 FUNCTION {output}
73 { duplicate$ empty$
74 'pop$
75 'output.nonnull
76 if$
77 }
78
79 FUNCTION {output.check}
80 { 't :=
81 duplicate$ empty$
82 { pop$ "empty " t * " in " * cite$ * warning$ }
83 'output.nonnull
84 if$
85 }
86
87 FUNCTION {output.bibitem}
88 { newline$
89 "\bibitem{" write$
90 cite$ write$
91 "}" write$
92 newline$
93 ""
94 before.all 'output.state :=
95 }
96
97 FUNCTION {fin.entry}
98 { add.period$
99 write$
100 newline$
101 }
102
103 % 5/24/89 rhr
104 % modified fin.entry function - prints note field after body of entry
105 %FUNCTION {fin.entry}
106 %{ add.period$
107 % note empty$
108 % 'write$
109 % { "\par\bgroup\parindent=0em " * annote * "\par\egroup " * write$
110 % }
111 % if$
112 % newline$
113 %}
114
115 FUNCTION {new.block}
116 { output.state before.all =
117 'skip$
118 { after.block 'output.state := }
119 if$
120 }
121
122 FUNCTION {new.sentence}
123 { output.state after.block =
124 'skip$
125 { output.state before.all =
126 'skip$
127 { after.sentence 'output.state := }
128 if$
129 }
130 if$
131 }
132
133 FUNCTION {not}
134 { { #0 }
135 { #1 }
136 if$
137 }
138
139 FUNCTION {and}
140 { 'skip$
141 { pop$ #0 }
142 if$
143 }
144
145 FUNCTION {or}
146 { { pop$ #1 }
147 'skip$
148 if$
149 }
150
151 FUNCTION {new.block.checka}
152 { empty$
153 'skip$
154 'new.block
155 if$
156 }
157
158 FUNCTION {new.block.checkb}
159 { empty$
160 swap$ empty$
161 and
162 'skip$
163 'new.block
164 if$
165 }
166
167 FUNCTION {new.sentence.checka}
168 { empty$
169 'skip$
170 'new.sentence
171 if$
172 }
173
174 FUNCTION {new.sentence.checkb}
175 { empty$
176 swap$ empty$
177 and
178 'skip$
179 'new.sentence
180 if$
181 }
182
183 FUNCTION {field.or.null}
184 { duplicate$ empty$
185 { pop$ "" }
186 'skip$
187 if$
188 }
189
190 FUNCTION {emphasize}
191 { duplicate$ empty$
192 { pop$ "" }
193 { "{\em " swap$ * "}" * }
194 if$
195 }
196
197 FUNCTION {boldface}
198 { duplicate$ empty$
199 { pop$ "" }
200 { "{\bf " swap$ * "}" * }
201 if$
202 }
203
204 %FUNCTION {boldface}
205 %{ 's swap$ :=
206 % s "" =
207 % { "" }
208 % { "{\bf " s * "}" * }
209 % if$
210 %}
211 %
212 INTEGERS { nameptr namesleft numnames }
213
214 FUNCTION {format.names}
215 { 's :=
216 #1 'nameptr :=
217 s num.names$ 'numnames :=
218 numnames 'namesleft :=
219 { namesleft #0 > }
220 { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
221 nameptr #1 >
222 { namesleft #1 >
223 { ", " * t * }
224 { numnames #2 >
225 { "," * }
226 'skip$
227 if$
228 t "others" =
229 { " et~al." * }
230 { " and " * t * }
231 if$
232 }
233 if$
234 }
235 't
236 if$
237 nameptr #1 + 'nameptr :=
238 namesleft #1 - 'namesleft :=
239 }
240 while$
241 }
242
243 FUNCTION {format.authors}
244 { author empty$
245 { "" }
246 { author format.names }
247 if$
248 }
249
250 FUNCTION {format.editors}
251 { editor empty$
252 { "" }
253 { editor format.names
254 editor num.names$ #1 >
255 { ", Eds." * }
256 { ", Ed." * }
257 if$
258 }
259 if$
260 }
261
262 FUNCTION {format.title}
263 { title empty$
264 { "" }
265 { "``" title "t" change.case$ * }
266 if$
267 }
268
269 FUNCTION {n.dashify}
270 { 't :=
271 ""
272 { t empty$ not }
273 { t #1 #1 substring$ "-" =
274 { t #1 #2 substring$ "--" = not
275 { "--" *
276 t #2 global.max$ substring$ 't :=
277 }
278 { { t #1 #1 substring$ "-" = }
279 { "-" *
280 t #2 global.max$ substring$ 't :=
281 }
282 while$
283 }
284 if$
285 }
286 { t #1 #1 substring$ *
287 t #2 global.max$ substring$ 't :=
288 }
289 if$
290 }
291 while$
292 }
293
294 FUNCTION {format.date}
295 { year empty$
296 { month empty$
297 { "" }
298 { "there's a month but no year in " cite$ * warning$
299 month
300 }
301 if$
302 }
303 { month empty$
304 'year
305 { month " " * year * }
306 if$
307 }
308 if$
309 }
310
311 % FUNCTION {format.date}
312 % { year empty$
313 % 'year
314 % { " " year * }
315 % if$
316 % }
317
318 FUNCTION {format.btitle}
319 { title emphasize
320 }
321
322 FUNCTION {tie.or.space.connect}
323 { duplicate$ text.length$ #3 <
324 { "~" }
325 { " " }
326 if$
327 swap$ * *
328 }
329
330 FUNCTION {either.or.check}
331 { empty$
332 'pop$
333 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
334 if$
335 }
336
337 FUNCTION {format.bvolume}
338 { volume empty$
339 { "" }
340 { "vol." volume tie.or.space.connect
341 series empty$
342 'skip$
343 { " of " * series emphasize * }
344 if$
345 "volume and number" number either.or.check
346 }
347 if$
348 }
349
350 FUNCTION {format.number.series}
351 { volume empty$
352 { number empty$
353 { series field.or.null }
354 { output.state mid.sentence =
355 { "number" }
356 { "Number" }
357 if$
358 number tie.or.space.connect
359 series empty$
360 { "there's a number but no series in " cite$ * warning$ }
361 { " in " * series * }
362 if$
363 }
364 if$
365 }
366 { "" }
367 if$
368 }
369
370 FUNCTION {format.edition}
371 { edition empty$
372 { "" }
373 { output.state mid.sentence =
374 { edition "l" change.case$ " edition" * }
375 { edition "t" change.case$ " edition" * }
376 if$
377 }
378 if$
379 }
380
381 INTEGERS { multiresult }
382
383 FUNCTION {multi.page.check}
384 { 't :=
385 #0 'multiresult :=
386 { multiresult not
387 t empty$ not
388 and
389 }
390 { t #1 #1 substring$
391 duplicate$ "-" =
392 swap$ duplicate$ "," =
393 swap$ "+" =
394 or or
395 { #1 'multiresult := }
396 { t #2 global.max$ substring$ 't := }
397 if$
398 }
399 while$
400 multiresult
401 }
402
403 FUNCTION {format.pages}
404 { pages empty$
405 { "" }
406 { pages multi.page.check
407 { "pp." pages n.dashify tie.or.space.connect }
408 { "p." pages tie.or.space.connect }
409 if$
410 }
411 if$
412 }
413
414 FUNCTION {format.vol.num.pages}
415 {
416 volume empty$
417 {"" }
418 {"vol. " volume *}
419 if$
420 number empty$
421 'skip$
422 {", no. " number * *}
423 if$
424 pages empty$
425 'skip$
426 { duplicate$ empty$
427 { pop$ format.pages }
428 { ", pp. " * pages n.dashify * }
429 if$
430 }
431 if$
432 }
433
434 %FUNCTION {format.vol.num.pages}
435 %%boldface added 3/17/87 rhr
436 %{ volume field.or.null boldface
437 % number empty$
438 % 'skip$
439 % { "(" number * ")" * *
440 % volume empty$
441 % { "there's a number but no volume in " cite$ * warning$ }
442 % 'skip$
443 % if$
444 % }
445 % if$
446 % pages empty$
447 % 'skip$
448 % { duplicate$ empty$
449 % { pop$ format.pages }
450 % { ":" * pages n.dashify * }
451 % if$
452 % }
453 % if$
454 %}
455
456 FUNCTION {format.chapter.pages}
457 { chapter empty$
458 'format.pages
459 { type empty$
460 { "chapter" }
461 { type "l" change.case$ }
462 if$
463 chapter tie.or.space.connect
464 pages empty$
465 'skip$
466 { ", " * format.pages * }
467 if$
468 }
469 if$
470 }
471
472 FUNCTION {format.in.ed.booktitle}
473 { booktitle empty$
474 { "" }
475 { editor empty$
476 { "in " booktitle emphasize * }
477 { "in " booktitle emphasize * ", " * format.editors * }
478 if$
479 }
480 if$
481 }
482
483 FUNCTION {empty.misc.check}
484 { author empty$ title empty$ howpublished empty$
485 month empty$ year empty$ note empty$
486 and and and and and
487 { "all relevant fields are empty in " cite$ * warning$ }
488 'skip$
489 if$
490 }
491
492 FUNCTION {format.thesis.type}
493 { type empty$
494 'skip$
495 { pop$
496 type "t" change.case$
497 }
498 if$
499 }
500
501 FUNCTION {format.tr.number}
502 { type empty$
503 { "Tech. {R}ep." }
504 'type
505 if$
506 number empty$
507 { "t" change.case$ }
508 { number tie.or.space.connect }
509 if$
510 }
511
512 FUNCTION {format.article.crossref}
513 { key empty$
514 { journal empty$
515 { "need key or journal for " cite$ * " to crossref " * crossref *
516 warning$
517 ""
518 }
519 { "In {\em " journal * "\/}" * }
520 if$
521 }
522 { "In " key * }
523 if$
524 " \cite{" * crossref * "}" *
525 }
526
527 FUNCTION {format.crossref.editor}
528 { editor #1 "{vv~}{ll}" format.name$
529 editor num.names$ duplicate$
530 #2 >
531 { pop$ " et~al." * }
532 { #2 <
533 'skip$
534 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
535 { " et~al." * }
536 { " and " * editor #2 "{vv~}{ll}" format.name$ * }
537 if$
538 }
539 if$
540 }
541 if$
542 }
543
544 FUNCTION {format.book.crossref}
545 { volume empty$
546 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
547 "In "
548 }
549 { "vol." volume tie.or.space.connect
550 " of " *
551 }
552 if$
553 editor empty$
554 editor field.or.null author field.or.null =
555 or
556 { key empty$
557 { series empty$
558 { "need editor, key, or series for " cite$ * " to crossref " *
559 crossref * warning$
560 "" *
561 }
562 { "{\em " * series * "\/}" * }
563 if$
564 }
565 { key * }
566 if$
567 }
568 { format.crossref.editor * }
569 if$
570 " \cite{" * crossref * "}" *
571 }
572
573 FUNCTION {format.incoll.inproc.crossref}
574 { editor empty$
575 editor field.or.null author field.or.null =
576 or
577 { key empty$
578 { booktitle empty$
579 { "need editor, key, or booktitle for " cite$ * " to crossref " *
580 crossref * warning$
581 ""
582 }
583 { "In {\em " booktitle * "\/}" * }
584 if$
585 }
586 { "In " key * }
587 if$
588 }
589 { "In " format.crossref.editor * }
590 if$
591 " \cite{" * crossref * "}" *
592 }
593
594 FUNCTION {article}
595 { output.bibitem
596 format.authors "author" output.check
597 new.block
598 format.title "''" * "title" output.check
599 new.block
600 crossref missing$
601 { journal emphasize "journal" output.check
602 format.vol.num.pages output
603 format.date "year" output.check
604 }
605 { format.article.crossref output.nonnull
606 format.pages output
607 }
608 if$
609 new.block
610 note output
611 fin.entry
612 }
613
614 FUNCTION {book}
615 { output.bibitem
616 author empty$
617 { format.editors "author and editor" output.check }
618 { format.authors output.nonnull
619 crossref missing$
620 { "author and editor" editor either.or.check }
621 'skip$
622 if$
623 }
624 if$
625 new.block
626 format.btitle "title" output.check
627 crossref missing$
628 { format.bvolume output
629 new.block
630 format.number.series output
631 new.sentence
632 publisher "publisher" output.check
633 address output
634 }
635 { new.block
636 format.book.crossref output.nonnull
637 }
638 if$
639 format.edition output
640 format.date "year" output.check
641 new.block
642 note output
643 fin.entry
644 }
645
646 FUNCTION {booklet}
647 { output.bibitem
648 format.authors output
649 new.block
650 format.title "''" * "title" output.check
651 howpublished address new.block.checkb
652 howpublished output
653 address output
654 format.date output
655 new.block
656 note output
657 fin.entry
658 }
659
660 FUNCTION {inbook}
661 { output.bibitem
662 author empty$
663 { format.editors "author and editor" output.check }
664 { format.authors output.nonnull
665 crossref missing$
666 { "author and editor" editor either.or.check }
667 'skip$
668 if$
669 }
670 if$
671 new.block
672 format.btitle "title" output.check
673 crossref missing$
674 { format.bvolume output
675 format.chapter.pages "chapter and pages" output.check
676 new.block
677 format.number.series output
678 new.sentence
679 publisher "publisher" output.check
680 address output
681 }
682 { format.chapter.pages "chapter and pages" output.check
683 new.block
684 format.book.crossref output.nonnull
685 }
686 if$
687 format.edition output
688 format.date "year" output.check
689 new.block
690 note output
691 fin.entry
692 }
693
694 FUNCTION {incollection}
695 { output.bibitem
696 format.authors "author" output.check
697 new.block
698 format.title "''" * "title" output.check
699 new.block
700 crossref missing$
701 { format.in.ed.booktitle "booktitle" output.check
702 format.bvolume output
703 format.number.series output
704 format.chapter.pages output
705 new.sentence
706 publisher "publisher" output.check
707 address output
708 format.edition output
709 format.date "year" output.check
710 }
711 { format.incoll.inproc.crossref output.nonnull
712 format.chapter.pages output
713 }
714 if$
715 new.block
716 note output
717 fin.entry
718 }
719
720 FUNCTION {inproceedings}
721 { output.bibitem
722 format.authors "author" output.check
723 new.block
724 format.title "''" * "title" output.check
725 new.block
726 crossref missing$
727 { format.in.ed.booktitle "booktitle" output.check
728 address empty$
729 { organization publisher new.sentence.checkb
730 organization output
731 format.date "year" output.check
732 }
733 { address output.nonnull
734 format.date "year" output.check
735 organization output
736 }
737 if$
738 format.bvolume output
739 format.number.series output
740 format.pages output
741 publisher output
742 }
743 { format.incoll.inproc.crossref output.nonnull
744 format.pages output
745 }
746 if$
747 new.block
748 note output
749 fin.entry
750 }
751
752 FUNCTION {conference} { inproceedings }
753
754 FUNCTION {manual}
755 { output.bibitem
756 author empty$
757 { organization empty$
758 'skip$
759 { organization output.nonnull
760 address output
761 }
762 if$
763 }
764 { format.authors output.nonnull }
765 if$
766 new.block
767 format.btitle "title" output.check
768 author empty$
769 { organization empty$
770 { address new.block.checka
771 address output
772 }
773 'skip$
774 if$
775 }
776 { organization address new.block.checkb
777 organization output
778 address output
779 }
780 if$
781 format.edition output
782 format.date output
783 new.block
784 note output
785 fin.entry
786 }
787
788 FUNCTION {mastersthesis}
789 { output.bibitem
790 format.authors "author" output.check
791 new.block
792 format.title "''" * "title" output.check
793 new.block
794 "Master's thesis" format.thesis.type output.nonnull
795 school "school" output.check
796 address output
797 format.date "year" output.check
798 new.block
799 note output
800 fin.entry
801 }
802
803 FUNCTION {misc}
804 { output.bibitem
805 format.authors output
806 title howpublished new.block.checkb
807 format.title "''" * output
808 howpublished new.block.checka
809 howpublished output
810 format.date output
811 new.block
812 note output
813 fin.entry
814 empty.misc.check
815 }
816
817 FUNCTION {phdthesis}
818 { output.bibitem
819 format.authors "author" output.check
820 new.block
821 format.btitle "title" output.check
822 new.block
823 "PhD thesis" format.thesis.type output.nonnull
824 school "school" output.check
825 address output
826 format.date "year" output.check
827 new.block
828 note output
829 fin.entry
830 }
831
832 FUNCTION {proceedings}
833 { output.bibitem
834 editor empty$
835 { organization output }
836 { format.editors output.nonnull }
837 if$
838 new.block
839 format.btitle "title" output.check
840 format.bvolume output
841 format.number.series output
842 address empty$
843 { editor empty$
844 { publisher new.sentence.checka }
845 { organization publisher new.sentence.checkb
846 organization output
847 }
848 if$
849 publisher output
850 format.date "year" output.check
851 }
852 { address output.nonnull
853 format.date "year" output.check
854 new.sentence
855 editor empty$
856 'skip$
857 { organization output }
858 if$
859 publisher output
860 }
861 if$
862 new.block
863 note output
864 fin.entry
865 }
866
867 FUNCTION {techreport}
868 { output.bibitem
869 format.authors "author" output.check
870 new.block
871 format.title "''" * "title" output.check
872 new.block
873 format.tr.number output.nonnull
874 institution "institution" output.check
875 address output
876 format.date "year" output.check
877 new.block
878 note output
879 fin.entry
880 }
881
882 FUNCTION {unpublished}
883 { output.bibitem
884 format.authors "author" output.check
885 new.block
886 format.title "''" * "title" output.check
887 new.block
888 note "note" output.check
889 format.date output
890 fin.entry
891 }
892
893 FUNCTION {default.type} { misc }
894
895 MACRO {jan} {"January"}
896
897 MACRO {feb} {"February"}
898
899 MACRO {mar} {"March"}
900
901 MACRO {apr} {"April"}
902
903 MACRO {may} {"May"}
904
905 MACRO {jun} {"June"}
906
907 MACRO {jul} {"July"}
908
909 MACRO {aug} {"August"}
910
911 MACRO {sep} {"September"}
912
913 MACRO {oct} {"October"}
914
915 MACRO {nov} {"November"}
916
917 MACRO {dec} {"December"}
918
919 MACRO {acmcs} {"ACM Computing Surveys"}
920
921 MACRO {acta} {"Acta Informatica"}
922
923 MACRO {cacm} {"Communications of the ACM"}
924
925 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
926
927 MACRO {ibmsj} {"IBM Systems Journal"}
928
929 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
930
931 MACRO {ieeetc} {"IEEE Transactions on Computers"}
932
933 %% VK:
934 MACRO {ieeepes} {"IEEE Power Engineering Society"}
935 MACRO {ieeetec} {"IEEE Transactions on Energy Conversion"}
936 MACRO {ieeetpd} {"IEEE Transactions on Power Delivery"}
937 MACRO {ieeetps} {"IEEE Transactions on Power Systems"}
938
939 MACRO {ieeetcad}
940 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
941
942 MACRO {ipl} {"Information Processing Letters"}
943
944 MACRO {jacm} {"Journal of the ACM"}
945
946 MACRO {jcss} {"Journal of Computer and System Sciences"}
947
948 MACRO {scp} {"Science of Computer Programming"}
949
950 MACRO {sicomp} {"SIAM Journal on Computing"}
951
952 MACRO {tocs} {"ACM Transactions on Computer Systems"}
953
954 MACRO {tods} {"ACM Transactions on Database Systems"}
955
956 MACRO {tog} {"ACM Transactions on Graphics"}
957
958 MACRO {toms} {"ACM Transactions on Mathematical Software"}
959
960 MACRO {toois} {"ACM Transactions on Office Information Systems"}
961
962 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
963
964 MACRO {tcs} {"Theoretical Computer Science"}
965
966 READ
967
968 STRINGS { longest.label }
969
970 INTEGERS { number.label longest.label.width }
971
972 FUNCTION {initialize.longest.label}
973 { "" 'longest.label :=
974 #1 'number.label :=
975 #0 'longest.label.width :=
976 }
977
978 FUNCTION {longest.label.pass}
979 { number.label int.to.str$ 'label :=
980 number.label #1 + 'number.label :=
981 label width$ longest.label.width >
982 { label 'longest.label :=
983 label width$ 'longest.label.width :=
984 }
985 'skip$
986 if$
987 }
988
989 EXECUTE {initialize.longest.label}
990
991 ITERATE {longest.label.pass}
992
993 FUNCTION {begin.bib}
994 { preamble$ empty$
995 'skip$
996 { preamble$ write$ newline$ }
997 if$
998 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
999 }
1000
1001 EXECUTE {begin.bib}
1002
1003 EXECUTE {init.state.consts}
1004
1005 ITERATE {call.type$}
1006
1007 FUNCTION {end.bib}
1008 { newline$
1009 "\end{thebibliography}" write$ newline$
1010 }
1011
1012 EXECUTE {end.bib}
1013
1014 %%%%% EOF ieeepes.bst