Debian Codegraph @

texmf-dist/bibtex/bst/lion-msc/lion-msc.bst

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