Debian Codegraph @

texmf-dist/bibtex/bst/chem-journal/revcompchem.bst

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