Debian Codegraph @

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

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