Debian Codegraph @

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

raw
1 % BibTeX bibliography style `jpc' for J. Phys. Chem.
2 % 8/9/93 Joerg-R. Hill
3 % no output of 'title' for 'article', 'book', 'inbook', 'incollection'
4 % no output of 'note' except in 'unpublished'
5 %
6 % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
7 % Copyright (C) 1985, all rights reserved.
8 % Copying of this file is authorized only if either
9 % (1) you make absolutely no changes to your copy, including name, or
10 % (2) if you do make changes, you name it something other than
11 % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
12 % This restriction helps ensure that all standard styles are identical.
13 % The file btxbst.doc has the documentation for this style.
14 %
15 % Fixed article, book references 11/10/92---CLF
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 INTEGERS { nameptr namesleft numnames }
228
229 FUNCTION {format.names}
230 { 's :=
231 #1 'nameptr :=
232 s num.names$ 'numnames :=
233 numnames 'namesleft :=
234 { namesleft #0 > }
235 { s nameptr "{vv~}{ll}{, jj}{, f}." format.name$ 't :=
236 nameptr #1 >
237 { namesleft #1 >
238 { author.or.editor #1 =
239 { "; " * t * }
240 { ", " * t * }
241 if$
242 }
243 { t "others" =
244 { " et~al." * }
245 { author.or.editor #1 =
246 { "; " * t * }
247 { ", " * t * }
248 if$
249 }
250 if$
251 }
252 if$
253 }
254 't
255 if$
256 nameptr #1 + 'nameptr :=
257 namesleft #1 - 'namesleft :=
258 }
259 while$
260 }
261
262 FUNCTION {format.authors}
263 { author empty$
264 { "" }
265 { #1 'author.or.editor :=
266 author format.names }
267 if$
268 }
269
270 FUNCTION {format.editors}
271 { editor empty$
272 { "" }
273 { #2 'author.or.editor :=
274 editor format.names
275 editor num.names$ #1 >
276 { ", Eds." * }
277 { ", Ed." * }
278 if$
279 }
280 if$
281 }
282
283 FUNCTION {format.title}
284 { title empty$
285 { "" }
286 { title "t" change.case$ }
287 if$
288 }
289
290 FUNCTION {n.dashify}
291 { 't :=
292 ""
293 { t empty$ not }
294 { t #1 #1 substring$ "-" =
295 { t #1 #2 substring$ "--" = not
296 { "--" *
297 t #2 global.max$ substring$ 't :=
298 }
299 { { t #1 #1 substring$ "-" = }
300 { "-" *
301 t #2 global.max$ substring$ 't :=
302 }
303 while$
304 }
305 if$
306 }
307 { t #1 #1 substring$ *
308 t #2 global.max$ substring$ 't :=
309 }
310 if$
311 }
312 while$
313 }
314
315 FUNCTION {format.date}
316 { year empty$
317 { month empty$
318 { "" }
319 { "there's a month but no year in " cite$ * warning$
320 month
321 }
322 if$
323 }
324 { month empty$
325 { year boldface }
326 { month " " * year boldface }
327 if$
328 }
329 if$
330 }
331
332 FUNCTION {format.bdate}
333 { year empty$
334 { "there's no year in " cite$ * warning$ }
335 'year
336 if$
337 }
338
339 FUNCTION {format.btitle}
340 { title emphasize
341 }
342
343 FUNCTION {tie.or.space.connect}
344 { duplicate$ text.length$ #3 <
345 { "~" }
346 { " " }
347 if$
348 swap$ * *
349 }
350
351 FUNCTION {either.or.check}
352 { empty$
353 'pop$
354 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
355 if$
356 }
357
358 FUNCTION {format.bvolume}
359 { volume empty$
360 { "" }
361 { "Vol. " volume tie.or.space.connect
362 series empty$
363 'skip$
364 { " of " * series emphasize * }
365 if$
366 "volume and number" number either.or.check
367 }
368 if$
369 }
370
371 FUNCTION {format.number.series}
372 { volume empty$
373 { number empty$
374 { series field.or.null }
375 { output.state mid.sentence =
376 { "number" }
377 { "Number" }
378 if$
379 number tie.or.space.connect
380 series empty$
381 { "there's a number but no series in " cite$ * warning$ }
382 { " in " * series * }
383 if$
384 }
385 if$
386 }
387 { "" }
388 if$
389 }
390
391 FUNCTION {format.edition}
392 { edition empty$
393 { "" }
394 { output.state mid.sentence =
395 { edition "l" change.case$ " ed." * }
396 { edition "t" change.case$ " ed." * }
397 if$
398 }
399 if$
400 }
401
402 INTEGERS { multiresult }
403
404 FUNCTION {multi.page.check}
405 { 't :=
406 #0 'multiresult :=
407 { multiresult not
408 t empty$ not
409 and
410 }
411 { t #1 #1 substring$
412 duplicate$ "-" =
413 swap$ duplicate$ "," =
414 swap$ "+" =
415 or or
416 { #1 'multiresult := }
417 { t #2 global.max$ substring$ 't := }
418 if$
419 }
420 while$
421 multiresult
422 }
423
424 FUNCTION {format.pages}
425 { pages empty$
426 { "" }
427 { pages multi.page.check
428 { "pages" pages n.dashify tie.or.space.connect }
429 { "page" pages tie.or.space.connect }
430 if$
431 }
432 if$
433 }
434
435 FUNCTION {format.vol.num.pages}
436 { volume emphasize field.or.null
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 " format.editors * ", " * booktitle emphasize * }
478 if$
479 }
480 if$
481 }
482
483 FUNCTION {format.in.booktitle.ed}
484 { booktitle empty$
485 { "" }
486 { editor empty$
487 { "In " booktitle emphasize * }
488 { "In " booktitle emphasize * "; " * format.editors * }
489 if$
490 }
491 if$
492 }
493
494 FUNCTION {format.pub.address}
495 { publisher empty$
496 { "" }
497 { address empty$
498 { publisher }
499 { publisher ": " * address *}
500 if$
501 }
502 if$
503 }
504
505 FUNCTION {empty.misc.check}
506 { author empty$ title empty$ howpublished empty$
507 month empty$ year empty$ note empty$
508 and and and and and
509 { "all relevant fields are empty in " cite$ * warning$ }
510 'skip$
511 if$
512 }
513
514 FUNCTION {format.thesis.type}
515 { type empty$
516 'skip$
517 { pop$
518 type "t" change.case$
519 }
520 if$
521 }
522
523 FUNCTION {format.tr.number}
524 { type empty$
525 { "Technical Report" }
526 'type
527 if$
528 number empty$
529 { "t" change.case$ }
530 { number tie.or.space.connect }
531 if$
532 }
533
534 FUNCTION {format.article.crossref}
535 { key empty$
536 { journal empty$
537 { "need key or journal for " cite$ * " to crossref " * crossref *
538 warning$
539 ""
540 }
541 { "In {\em " journal * "\/}" * }
542 if$
543 }
544 { "In " key * }
545 if$
546 " \cite{" * crossref * "}" *
547 }
548
549 FUNCTION {format.crossref.editor}
550 { editor #1 "{vv~}{ll}" format.name$
551 editor num.names$ duplicate$
552 #2 >
553 { pop$ " et~al." * }
554 { #2 <
555 'skip$
556 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
557 { " et~al." * }
558 { " and " * editor #2 "{vv~}{ll}" format.name$ * }
559 if$
560 }
561 if$
562 }
563 if$
564 }
565
566 FUNCTION {format.book.crossref}
567 { volume empty$
568 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
569 "In "
570 }
571 { "Volume" volume tie.or.space.connect
572 " of " *
573 }
574 if$
575 editor empty$
576 editor field.or.null author field.or.null =
577 or
578 { key empty$
579 { series empty$
580 { "need editor, key, or series for " cite$ * " to crossref " *
581 crossref * warning$
582 "" *
583 }
584 { "{\em " * series * "\/}" * }
585 if$
586 }
587 { key * }
588 if$
589 }
590 { format.crossref.editor * }
591 if$
592 " \cite{" * crossref * "}" *
593 }
594
595 FUNCTION {format.incoll.inproc.crossref}
596 { editor empty$
597 editor field.or.null author field.or.null =
598 or
599 { key empty$
600 { booktitle empty$
601 { "need editor, key, or booktitle for " cite$ * " to crossref " *
602 crossref * warning$
603 ""
604 }
605 { "In {\em " booktitle * "\/}" * }
606 if$
607 }
608 { "In " key * }
609 if$
610 }
611 { "In " format.crossref.editor * }
612 if$
613 " \cite{" * crossref * "}" *
614 }
615
616 FUNCTION {article}
617 { output.bibitem
618 format.authors "author" output.check new.item
619 crossref missing$
620 { journal emphasize "journal" output.check new.item
621 format.date "year" output.check
622 format.vol.num.pages output
623 }
624 { format.article.crossref output.nonnull
625 format.pages output
626 }
627 if$
628 fin.entry
629 }
630
631 FUNCTION {book}
632 { output.bibitem
633 author empty$
634 { format.editors "author and editor" output.check new.item }
635 { format.authors output.nonnull new.item
636 crossref missing$
637 { "author and editor" editor either.or.check }
638 'skip$
639 if$
640 }
641 if$
642 format.btitle "title" output.check
643 crossref missing$
644 { format.bvolume output
645 format.number.series output
646 new.block
647 format.pub.address "publisher" output.check
648 }
649 { format.book.crossref output.nonnull }
650 if$
651 format.edition output
652 format.bdate "year" output.check
653 new.block
654 fin.entry
655 }
656
657 FUNCTION {booklet}
658 { output.bibitem
659 format.authors output new.item
660 format.title "title" output.check
661 howpublished address new.block.checkb
662 howpublished output
663 address output
664 format.date output
665 new.block
666 fin.entry
667 }
668
669 FUNCTION {inbook}
670 { output.bibitem
671 author empty$
672 { format.editors "author and editor" output.check new.item }
673 { format.authors output.nonnull new.item }
674 if$
675 format.in.booktitle.ed "title" output.check
676 new.block
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 new.block
694 fin.entry
695 }
696
697 FUNCTION {incollection}
698 { output.bibitem
699 format.authors "author" output.check new.item
700 crossref missing$
701 { format.in.booktitle.ed "booktitle" output.check
702 format.bvolume output
703 format.number.series output
704 new.block
705 format.pub.address "publisher" output.check
706 format.edition output
707 format.bdate "year" output.check
708 new.block
709 format.chapter.pages output
710 }
711 { format.incoll.inproc.crossref output.nonnull
712 format.chapter.pages output
713 }
714 if$
715 new.block
716 fin.entry
717 }
718
719 FUNCTION {inproceedings}
720 { output.bibitem
721 format.authors "author" output.check new.item
722 crossref missing$
723 { format.in.ed.booktitle "booktitle" output.check
724 format.bvolume output
725 format.number.series output
726 format.pages output
727 address empty$
728 { organization publisher new.sentence.checkb
729 organization output
730 publisher output
731 format.bdate "year" output.check
732 }
733 { address output.nonnull
734 format.bdate "year" output.check
735 new.sentence
736 organization output
737 publisher output
738 }
739 if$
740 }
741 { format.incoll.inproc.crossref output.nonnull
742 format.pages output
743 }
744 if$
745 new.block
746 fin.entry
747 }
748
749 FUNCTION {conference} { inproceedings }
750
751 FUNCTION {manual}
752 { output.bibitem
753 format.title "title" output.check new.sentence
754 author empty$
755 { organization empty$
756 'skip$
757 { organization output.nonnull
758 address output
759 }
760 if$
761 }
762 { format.authors output.nonnull new.item }
763 if$
764 author empty$
765 { organization empty$
766 { address new.block.checka
767 address output
768 }
769 'skip$
770 if$
771 }
772 { organization address new.block.checkb
773 organization output
774 address output
775 }
776 if$
777 format.edition output
778 format.date output
779 new.block
780 fin.entry
781 }
782
783 FUNCTION {mastersthesis}
784 { output.bibitem
785 format.authors "author" output.check new.item
786 format.title "title" output.check new.item
787 "Master's thesis" format.thesis.type output.nonnull
788 school "school" output.check
789 address output
790 format.date "year" output.check
791 new.block
792 fin.entry
793 }
794
795 FUNCTION {misc}
796 { output.bibitem
797 format.title output
798 new.sentence
799 format.authors output new.item
800 howpublished new.item.checka
801 howpublished output
802 format.date output
803 new.block
804 fin.entry
805 empty.misc.check
806 }
807
808 FUNCTION {phdthesis}
809 { output.bibitem
810 format.authors "author" output.check new.item
811 format.btitle "title" output.check new.item
812 "PhD thesis" format.thesis.type output.nonnull
813 school "school" output.check
814 address output
815 format.date "year" output.check
816 new.block
817 fin.entry
818 }
819
820 FUNCTION {proceedings}
821 { output.bibitem
822 editor empty$
823 { organization output }
824 { format.editors output.nonnull new.item }
825 if$
826 new.block
827 format.btitle "title" output.check
828 format.bvolume output
829 format.number.series output
830 address empty$
831 { editor empty$
832 { publisher new.sentence.checka }
833 { organization publisher new.sentence.checkb
834 organization output
835 }
836 if$
837 publisher output
838 format.date "year" output.check
839 }
840 { address output.nonnull
841 format.date "year" output.check
842 new.sentence
843 editor empty$
844 'skip$
845 { organization output }
846 if$
847 publisher output
848 }
849 if$
850 new.block
851 fin.entry
852 }
853
854 FUNCTION {techreport}
855 { output.bibitem
856 format.authors "author" output.check new.item
857 format.title "title" output.check new.item
858 format.tr.number output.nonnull
859 institution "institution" output.check
860 address output
861 format.date "year" output.check
862 new.block
863 fin.entry
864 }
865
866 FUNCTION {unpublished}
867 { output.bibitem
868 format.authors "author" output.check new.item
869 % format.title "title" output.check new.item
870 note "note" output.check
871 format.date output
872 fin.entry
873 }
874
875 FUNCTION {default.type} { misc }
876
877 MACRO {jan} {"January"}
878
879 MACRO {feb} {"February"}
880
881 MACRO {mar} {"March"}
882
883 MACRO {apr} {"April"}
884
885 MACRO {may} {"May"}
886
887 MACRO {jun} {"June"}
888
889 MACRO {jul} {"July"}
890
891 MACRO {aug} {"August"}
892
893 MACRO {sep} {"September"}
894
895 MACRO {oct} {"October"}
896
897 MACRO {nov} {"November"}
898
899 MACRO {dec} {"December"}
900
901 MACRO {bbrc} {"Biochem. Biophys. Res. Commun."}
902
903 MACRO {jacs} {"J. Amer. Chem. Soc."}
904
905 MACRO {jbc} {"J. Biol. Chem."}
906
907 MACRO {pnas} {"Proc. Natl. Acad. Sci."}
908
909 MACRO {jmb} {"J. Mol. Biol."}
910
911 MACRO {embo} {"EMBO J."}
912
913 MACRO {tibs} {"Trends Biochem. Sci."}
914
915 MACRO {protsfg} {"Proteins: Struct. Func. Gen."}
916
917 MACRO {ieeetcad}
918 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
919
920 MACRO {ipl} {"Information Processing Letters"}
921
922 MACRO {jacm} {"Journal of the ACM"}
923
924 MACRO {jcss} {"Journal of Computer and System Sciences"}
925
926 MACRO {scp} {"Science of Computer Programming"}
927
928 MACRO {sicomp} {"SIAM Journal on Computing"}
929
930 MACRO {tocs} {"ACM Transactions on Computer Systems"}
931
932 MACRO {tods} {"ACM Transactions on Database Systems"}
933
934 MACRO {tog} {"ACM Transactions on Graphics"}
935
936 MACRO {toms} {"ACM Transactions on Mathematical Software"}
937
938 MACRO {toois} {"ACM Transactions on Office Information Systems"}
939
940 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
941
942 MACRO {tcs} {"Theoretical Computer Science"}
943
944 READ
945
946 STRINGS { longest.label }
947
948 INTEGERS { number.label longest.label.width }
949
950 FUNCTION {initialize.longest.label}
951 { "" 'longest.label :=
952 #1 'number.label :=
953 #0 'longest.label.width :=
954 }
955
956 FUNCTION {longest.label.pass}
957 { number.label int.to.str$ 'label :=
958 number.label #1 + 'number.label :=
959 label width$ longest.label.width >
960 { label 'longest.label :=
961 label width$ 'longest.label.width :=
962 }
963 'skip$
964 if$
965 }
966
967 EXECUTE {initialize.longest.label}
968
969 ITERATE {longest.label.pass}
970
971 FUNCTION {begin.bib}
972 { preamble$ empty$
973 'skip$
974 { preamble$ write$ newline$ }
975 if$
976 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
977 }
978
979 EXECUTE {begin.bib}
980
981 EXECUTE {init.state.consts}
982
983 ITERATE {call.type$}
984
985 FUNCTION {end.bib}
986 { newline$
987 "\end{thebibliography}" write$ newline$
988 }
989
990 EXECUTE {end.bib}