Debian Codegraph @

texmf-dist/bibtex/bst/rsc/angew.bst

raw
1 %%
2 %% This is file `angew.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% rsc.dtx (with options: `bst,angew')
8 %% ----------------------------------------------------------------
9 %% rsc --- BibTeX styles for Royal Society of Chemistry and Wiley
10 %% journals
11 %% E-mail: [email protected]
12 %% Released under the LaTeX Project Public License v1.3c or later
13 %% See http://www.latex-project.org/lppl.txt
14 %% ----------------------------------------------------------------
15 %%
16 ENTRY
17 { address
18 author
19 booktitle
20 chapter
21 ctrl-use-title
22 ctrl-etal-number
23 ctrl-link-doi
24 ctrl-use-doi-all
25 doi
26 edition
27 editor
28 howpublished
29 institution
30 journal
31 key
32 note
33 number
34 organization
35 pages
36 publisher
37 school
38 series
39 title
40 type
41 url
42 volume
43 year
44 }
45 {}
46 { label
47 extra.label
48 short.list
49 }
50
51 INTEGERS { output.state before.all mid.sentence }
52 INTEGERS { after.sentence after.block after.item }
53 INTEGERS { author.or.editor }
54
55 FUNCTION {init.state.consts}
56 { #0 'before.all :=
57 #1 'mid.sentence :=
58 #2 'after.sentence :=
59 #3 'after.block :=
60 #4 'after.item :=
61 }
62
63 INTEGERS { is.use.title etal.number use.doi.all link.doi }
64
65 %% #0 turns off the display of the title for articles
66 %% #1 enables
67 FUNCTION {default.is.use.title} { #0 }
68
69 %% The number of names that force "et al." to be used
70 FUNCTION {default.etal.number} { #0 }
71
72 %% #0 turns off the display of the DOI for articles
73 %% #1 enables
74 FUNCTION {default.use.doi.all} { #0 }
75
76 %% #0 turns off hyperlinks for DOI
77 %% #1 enables
78 FUNCTION {default.link.doi} { #0 }
79
80 FUNCTION {add.comma}
81 { ", " * }
82
83 STRINGS { s t }
84
85 FUNCTION {output.nonnull}
86 { 's :=
87 output.state mid.sentence =
88 { add.comma write$ }
89 { output.state after.block =
90 { add.comma write$
91 newline$
92 "\newblock " write$
93 }
94 { output.state before.all =
95 'write$
96 { output.state after.item =
97 { " " * write$ }
98 { add.period$ " " * write$ }
99 if$
100 }
101 if$
102 }
103 if$
104 mid.sentence 'output.state :=
105 }
106 if$
107 s
108 }
109
110 FUNCTION {output}
111 { duplicate$ empty$
112 'pop$
113 'output.nonnull
114 if$
115 }
116
117 FUNCTION {output.check}
118 { 't :=
119 duplicate$ empty$
120 { pop$ "Empty " t * " in " * cite$ * warning$ }
121 'output.nonnull
122 if$
123 }
124
125 INTEGERS { would.add.period.textlen }
126
127 FUNCTION {would.add.period}
128 { duplicate$
129 add.period$
130 text.length$
131 'would.add.period.textlen :=
132 duplicate$
133 text.length$
134 would.add.period.textlen =
135 { #0 }
136 { #1 }
137 if$
138 }
139
140 FUNCTION {fin.entry}
141 { would.add.period
142 { "\relax" * write$ newline$
143 "\mciteBstWouldAddEndPuncttrue" write$ newline$
144 "\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}"
145 write$ newline$
146 "{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax"
147 }
148 { "\relax" * write$ newline$
149 "\mciteBstWouldAddEndPunctfalse" write$ newline$
150 "\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}"
151 write$ newline$
152 "{}{\mcitedefaultseppunct}\relax"
153 }
154 if$
155 write$
156 newline$
157 "\EndOfBibitem" write$
158 }
159
160 FUNCTION {not}
161 { { #0 }
162 { #1 }
163 if$
164 }
165
166 FUNCTION {and}
167 { 'skip$
168 { pop$ #0 }
169 if$
170 }
171
172 FUNCTION {or}
173 { { pop$ #1 }
174 'skip$
175 if$
176 }
177
178 FUNCTION {field.or.null}
179 { duplicate$ empty$
180 { pop$ "" }
181 'skip$
182 if$
183 }
184
185 FUNCTION {emphasize}
186 { duplicate$ empty$
187 { pop$ "" }
188 { "\emph{" swap$ * "}" * }
189 if$
190 }
191
192 FUNCTION {boldface}
193 { duplicate$ empty$
194 { pop$ "" }
195 { "\textbf{" swap$ * "}" * }
196 if$
197 }
198
199 FUNCTION {paren}
200 { duplicate$ empty$
201 { pop$ "" }
202 { "(" swap$ * ")" * }
203 if$
204 }
205
206 FUNCTION {bbl.and}
207 { "and" }
208
209 FUNCTION {bbl.chapter}
210 { "Chapter" }
211
212 FUNCTION {bbl.doi}
213 { "DOI" }
214
215 FUNCTION {bbl.editor}
216 { "Ed.:" }
217
218 FUNCTION {bbl.editors}
219 { "Eds.:" }
220
221 FUNCTION {bbl.edition}
222 { "ed." }
223
224 FUNCTION {bbl.etal}
225 { "et~al." emphasize }
226
227 FUNCTION {bbl.in}
228 { "in" }
229
230 FUNCTION {bbl.inpress}
231 { "in press" }
232
233 FUNCTION {bbl.msc}
234 { "MSc thesis" }
235
236 FUNCTION {bbl.page}
237 { "p." }
238
239 FUNCTION {bbl.pages}
240 { "pp." }
241
242 FUNCTION {bbl.phd}
243 { "PhD thesis" }
244
245 FUNCTION {bbl.submitted}
246 { "submitted for publication" }
247
248 FUNCTION {bbl.techreport}
249 { "Technical Report" }
250
251 FUNCTION {bbl.volume}
252 { "Vol." }
253
254 FUNCTION {bbl.first}
255 { "1st" }
256
257 FUNCTION {bbl.second}
258 { "2nd" }
259
260 FUNCTION {bbl.third}
261 { "3rd" }
262
263 FUNCTION {bbl.fourth}
264 { "4th" }
265
266 FUNCTION {bbl.fifth}
267 { "5th" }
268
269 FUNCTION {bbl.st}
270 { "st" }
271
272 FUNCTION {bbl.nd}
273 { "nd" }
274
275 FUNCTION {bbl.rd}
276 { "rd" }
277
278 FUNCTION {bbl.th}
279 { "th" }
280
281 FUNCTION {eng.ord}
282 { duplicate$ "1" swap$ *
283 #-2 #1 substring$ "1" =
284 { bbl.th * }
285 { duplicate$ #-1 #1 substring$
286 duplicate$ "1" =
287 { pop$ bbl.st * }
288 { duplicate$ "2" =
289 { pop$ bbl.nd * }
290 { "3" =
291 { bbl.rd * }
292 { bbl.th * }
293 if$
294 }
295 if$
296 }
297 if$
298 }
299 if$
300 }
301
302 INTEGERS{ l }
303
304 FUNCTION{string.length}
305 { #1 'l :=
306 { duplicate$ duplicate$ #1 l substring$ = not }
307 { l #1 + 'l := }
308 while$
309 pop$ l
310 }
311
312 STRINGS{replace find text}
313
314 INTEGERS{find_length}
315
316 FUNCTION{find.replace}
317 { 'replace :=
318 'find :=
319 'text :=
320 find string.length 'find_length :=
321 ""
322 { text empty$ not }
323 { text #1 find_length substring$ find =
324 { replace *
325 text #1 find_length + global.max$ substring$ 'text :=
326 }
327 { text #1 #1 substring$ *
328 text #2 global.max$ substring$ 'text :=
329 }
330 if$
331 }
332 while$
333 }
334
335 FUNCTION {chr.to.value}
336 { chr.to.int$ #48 -
337 duplicate$ duplicate$
338 #0 < swap$ #9 > or
339 { #48 + int.to.chr$
340 " is not a number..." *
341 warning$
342 pop$ #0
343 }
344 {}
345 if$
346 }
347
348 FUNCTION{is.a.digit}
349 { duplicate$ "" =
350 {pop$ #0}
351 {chr.to.int$ #48 - duplicate$
352 #0 < swap$ #9 > or not}
353 if$
354 }
355
356 FUNCTION{is.a.number}
357 {
358 { duplicate$ #1 #1 substring$ is.a.digit }
359 {#2 global.max$ substring$}
360 while$
361 "" =
362 }
363
364 FUNCTION {extract.num}
365 { duplicate$ 't :=
366 "" 's :=
367 { t empty$ not }
368 { t #1 #1 substring$
369 t #2 global.max$ substring$ 't :=
370 duplicate$ is.a.number
371 { s swap$ * 's := }
372 { pop$ "" 't := }
373 if$
374 }
375 while$
376 s empty$
377 'skip$
378 { pop$ s }
379 if$
380 }
381
382 FUNCTION {bibinfo.check}
383 { swap$
384 duplicate$ missing$
385 { pop$ pop$
386 ""
387 }
388 { duplicate$ empty$
389 {
390 swap$ pop$
391 }
392 { swap$
393 pop$
394 }
395 if$
396 }
397 if$
398 }
399
400 FUNCTION {convert.edition}
401 { extract.num "l" change.case$ 's :=
402 s "first" = s "1" = or
403 { bbl.first 't := }
404 { s "second" = s "2" = or
405 { bbl.second 't := }
406 { s "third" = s "3" = or
407 { bbl.third 't := }
408 { s "fourth" = s "4" = or
409 { bbl.fourth 't := }
410 { s "fifth" = s "5" = or
411 { bbl.fifth 't := }
412 { s #1 #1 substring$ is.a.number
413 { s eng.ord 't := }
414 { edition 't := }
415 if$
416 }
417 if$
418 }
419 if$
420 }
421 if$
422 }
423 if$
424 }
425 if$
426 t
427 }
428
429 FUNCTION {tie.or.space.connect}
430 { duplicate$ text.length$ #3 <
431 { "~" }
432 { " " }
433 if$
434 swap$ * *
435 }
436
437 FUNCTION {space.connect}
438 { " " swap$ * * }
439
440 INTEGERS { nameptr namesleft numnames }
441
442 FUNCTION {format.names}
443 { 's :=
444 #1 'nameptr :=
445 s num.names$ 'numnames :=
446 numnames 'namesleft :=
447 numnames etal.number > etal.number #0 > and
448 { s #1 "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
449 t bbl.etal space.connect
450 }
451 {
452 { namesleft #0 > }
453 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
454 nameptr #1 >
455 { namesleft #1 >
456 { add.comma t * }
457 { numnames #2 >
458 { "" * }
459 'skip$
460 if$
461 t "others" =
462 { bbl.etal space.connect }
463 { add.comma t * }
464 if$
465 }
466 if$
467 }
468 't
469 if$
470 nameptr #1 + 'nameptr :=
471 namesleft #1 - 'namesleft :=
472 }
473 while$
474 }
475 if$
476 }
477
478 FUNCTION {format.authors}
479 { author empty$
480 { "" }
481 { #1 'author.or.editor :=
482 author format.names }
483 if$
484 }
485
486 FUNCTION {strip.comma}
487 { duplicate$
488 string.length 'find_length :=
489 duplicate$
490 find_length #1 - #1 substring$
491 "," =
492 { #1 find_length #2 - substring$
493 " " *
494 }
495 'skip$
496 if$
497 }
498
499 FUNCTION {format.editors}
500 { editor empty$
501 { "" }
502 { #2 'author.or.editor :=
503 strip.comma
504 editor num.names$ #1 >
505 { bbl.editors }
506 { bbl.editor }
507 if$
508 " " *
509 editor format.names * paren
510 }
511 if$
512 }
513
514 FUNCTION {format.doi}
515 { use.doi.all
516 { doi empty$
517 'skip$
518 {
519 link.doi
520 {
521 "\href{http://dx.doi.org/"
522 doi *
523 "}{" *
524 bbl.doi doi tie.or.space.connect *
525 "}" *
526 }
527 { bbl.doi doi tie.or.space.connect }
528 if$
529 output
530 }
531 if$
532 }
533 'skip$
534 if$
535 }
536
537 FUNCTION {n.separate.multi}
538 { 't :=
539 ""
540 #0 'numnames :=
541 t text.length$ #4 > t is.a.number and
542 {
543 { t empty$ not }
544 { t #-1 #1 substring$ is.a.number
545 { numnames #1 + 'numnames := }
546 { #0 'numnames := }
547 if$
548 t #-1 #1 substring$ swap$ *
549 t #-2 global.max$ substring$ 't :=
550 numnames #4 =
551 { duplicate$ #1 #1 substring$ swap$
552 #2 global.max$ substring$
553 "\," swap$ * *
554 #1 'numnames :=
555 }
556 'skip$
557 if$
558 }
559 while$
560 }
561 { t swap$ * }
562 if$
563 }
564
565 FUNCTION {format.bvolume}
566 { volume empty$
567 { "" }
568 { bbl.volume volume tie.or.space.connect }
569 if$
570 }
571
572 FUNCTION {format.cvolume}
573 { volume empty$
574 { "" }
575 {
576 bbl.volume volume tie.or.space.connect
577 series empty$
578 'skip$
579 { " of " * series * }
580 if$
581 }
582 if$
583 }
584
585 FUNCTION {format.title.noemph}
586 { 't :=
587 t empty$
588 { "" }
589 { t }
590 if$
591 }
592
593 FUNCTION {format.title}
594 { 't :=
595 t empty$
596 { "" }
597 { t emphasize }
598 if$
599 }
600
601 FUNCTION {format.url}
602 { url empty$
603 { "" }
604 { "\url{" url * "}" * }
605 if$
606 }
607
608 FUNCTION {format.title.vol}
609 { 't :=
610 t empty$
611 { "" }
612 { t emphasize }
613 if$
614 volume empty$
615 'skip$
616 { format.bvolume emphasize
617 swap$ add.comma swap$ *
618 }
619 if$
620 }
621
622 FUNCTION {format.full.names}
623 {'s :=
624 #1 'nameptr :=
625 s num.names$ 'numnames :=
626 numnames 'namesleft :=
627 { namesleft #0 > }
628 { s nameptr
629 "{vv~}{ll}" format.name$ 't :=
630 nameptr #1 >
631 {
632 namesleft #1 >
633 { ", " * t * }
634 {
635 numnames #2 >
636 { "," * }
637 'skip$
638 if$
639 t "others" =
640 { bbl.etal * }
641 { bbl.and space.connect t space.connect }
642 if$
643 }
644 if$
645 }
646 't
647 if$
648 nameptr #1 + 'nameptr :=
649 namesleft #1 - 'namesleft :=
650 }
651 while$
652 }
653
654 FUNCTION {author.editor.full}
655 { author empty$
656 { editor empty$
657 { "" }
658 { editor format.full.names }
659 if$
660 }
661 { author format.full.names }
662 if$
663 }
664
665 FUNCTION {author.full}
666 { author empty$
667 { "" }
668 { author format.full.names }
669 if$
670 }
671
672 FUNCTION {editor.full}
673 { editor empty$
674 { "" }
675 { editor format.full.names }
676 if$
677 }
678
679 FUNCTION {make.full.names}
680 { type$ "book" =
681 type$ "inbook" =
682 or
683 'author.editor.full
684 { type$ "proceedings" =
685 'editor.full
686 'author.full
687 if$
688 }
689 if$
690 }
691
692 FUNCTION {output.bibitem} { newline$
693 "\bibitem[" write$
694 label write$
695 ")" make.full.names duplicate$ short.list =
696 { pop$ }
697 { * }
698 if$
699 "]{" * write$
700 cite$ write$
701 "}" write$
702 newline$
703 ""
704 before.all 'output.state :=
705 }
706
707 FUNCTION {n.dashify} { 't :=
708 ""
709 { t empty$ not }
710 { t #1 #1 substring$ "-" =
711 { t #1 #2 substring$ "--" = not
712 { "--" *
713 t #2 global.max$ substring$ 't :=
714 }
715 { { t #1 #1 substring$ "-" = }
716 { "-" *
717 t #2 global.max$ substring$ 't :=
718 }
719 while$
720 }
721 if$
722 }
723 { t #1 #1 substring$ *
724 t #2 global.max$ substring$ 't :=
725 }
726 if$
727 }
728 while$
729 }
730
731 FUNCTION {format.date}
732 { year empty$
733 { "" }
734 { year boldface }
735 if$
736 }
737
738 FUNCTION {format.bdate}
739 { year empty$
740 { "There's no year in " cite$ * warning$ }
741 { year boldface }
742 if$
743 }
744
745 FUNCTION {either.or.check}
746 { empty$
747 'pop$
748 { "Can't use both " swap$ * " fields in "
749 * cite$ * warning$ }
750 if$
751 }
752
753 FUNCTION {format.edition}
754 { edition duplicate$ empty$
755 'skip$
756 { convert.edition
757 bbl.edition bibinfo.check
758 " " * bbl.edition *
759 }
760 if$
761 }
762
763 INTEGERS { multiresult }
764
765 FUNCTION {multi.page.check}
766 { 't :=
767 #0 'multiresult :=
768 { multiresult not
769 t empty$ not
770 and
771 }
772 { t #1 #1 substring$
773 duplicate$ "-" =
774 swap$ duplicate$ "," =
775 swap$ "+" =
776 or or
777 { #1 'multiresult := }
778 { t #2 global.max$ substring$ 't := }
779 if$
780 }
781 while$
782 multiresult
783 }
784
785 FUNCTION {format.pages}
786 { pages empty$
787 { "" }
788 { pages multi.page.check
789 { bbl.pages pages n.dashify tie.or.space.connect }
790 { bbl.page pages tie.or.space.connect }
791 if$
792 }
793 if$
794 }
795
796 FUNCTION {format.pages.required}
797 { pages empty$
798 { ""
799 "There are no page numbers for " cite$ * warning$
800 output
801 }
802 { pages multi.page.check
803 { bbl.pages pages n.dashify tie.or.space.connect }
804 { bbl.page pages tie.or.space.connect }
805 if$
806 }
807 if$
808 }
809
810 FUNCTION {format.pages.nopp}
811 { pages empty$
812 { ""
813 "There are no page numbers for " cite$ * warning$
814 output
815 }
816 { pages multi.page.check
817 { pages n.dashify space.connect }
818 { pages space.connect }
819 if$
820 }
821 if$
822 }
823
824 FUNCTION {format.pages.patent}
825 { pages empty$
826 { "There is no patent number for " cite$ * warning$ }
827 { pages multi.page.check
828 { pages n.dashify }
829 { pages }
830 if$
831 }
832 if$
833 }
834
835 FUNCTION {format.vol.pages}
836 { volume emphasize field.or.null
837 duplicate$ empty$
838 { pop$ format.pages.required }
839 { add.comma pages n.dashify * }
840 if$
841 }
842
843 FUNCTION {format.chapter.pages}
844 { chapter empty$
845 'format.pages
846 { type empty$
847 { bbl.chapter }
848 { type "l" change.case$ }
849 if$
850 chapter tie.or.space.connect
851 pages empty$
852 'skip$
853 { add.comma format.pages * }
854 if$
855 }
856 if$
857 }
858
859 FUNCTION {format.title.in}
860 { 's :=
861 after.item 'output.state :=
862 s empty$
863 { "" }
864 { editor empty$
865 { bbl.in s format.title space.connect }
866 { bbl.in s format.title space.connect
867 add.comma format.editors *
868 }
869 if$
870 }
871 if$
872 }
873
874 FUNCTION {format.title.vol.in}
875 { 's :=
876 after.item 'output.state :=
877 s empty$
878 { "" }
879 { editor empty$
880 { bbl.in s format.title.vol space.connect }
881 { bbl.in s format.title.vol space.connect
882 add.comma format.editors *
883 }
884 if$
885 }
886 if$
887 }
888
889 FUNCTION {format.pub.address}
890 { publisher empty$
891 { "" }
892 { address empty$
893 { publisher }
894 { publisher add.comma address *}
895 if$
896 }
897 if$
898 }
899
900 FUNCTION {empty.misc.check}
901 { author empty$ title empty$ howpublished empty$
902 year empty$ note empty$ url empty$
903 and and and and and
904 { "all relevant fields are empty in " cite$ * warning$ }
905 'skip$
906 if$
907 }
908
909 FUNCTION {empty.doi.note}
910 { doi empty$ note empty$ and
911 { "Need either a note or DOI for " cite$ * warning$ }
912 'skip$
913 if$
914 }
915
916 FUNCTION {format.thesis.type}
917 { type empty$
918 'skip$
919 { pop$
920 type emphasize
921 }
922 if$
923 }
924
925 FUNCTION {article}
926 { output.bibitem
927 format.authors "author" output.check
928 is.use.title
929 { title format.title.noemph "title" output.check }
930 'skip$
931 if$
932
933 journal "," "" find.replace emphasize
934 "journal" output.check
935 after.item 'output.state :=
936 format.date "year" output.check
937 volume empty$
938 { "" format.pages.nopp output }
939 { format.vol.pages output }
940 if$
941 format.doi
942 fin.entry
943 }
944
945 FUNCTION {book}
946 { output.bibitem
947 author empty$
948 { title format.title.vol "title" output.check
949 editor empty$
950 { "Need either an author or editor for "
951 cite$ * warning$ }
952 { "" format.editors * "editor" output.check }
953 if$
954 }
955 { format.authors output
956 "author and editor" editor either.or.check
957 title format.title.vol "title" output.check
958 }
959 if$
960 format.pub.address "publisher" output.check
961 format.edition output
962 format.bdate "year" output.check
963 pages empty$
964 'skip$
965 { format.pages output }
966 if$
967 format.doi
968 fin.entry
969 }
970
971 FUNCTION {booklet}
972 { output.bibitem
973 format.authors output
974 title format.title "title" output.check
975 howpublished output
976 address output
977 format.date output
978 format.doi
979 fin.entry
980 }
981
982 FUNCTION {inbook}
983 { output.bibitem
984 author empty$
985 { title format.title.vol "title" output.check
986 editor empty$
987 { "Need at least an author or an editor for "
988 cite$ * warning$ }
989 { "" format.editors * "editor" output.check }
990 if$
991 }
992 { format.authors output
993 title format.title.vol.in "title" output.check
994 }
995 if$
996 format.pub.address "publisher" output.check
997 format.edition output
998 format.bdate "year" output.check
999 format.chapter.pages "chapter and pages" output.check
1000 format.doi
1001 fin.entry
1002 }
1003
1004 FUNCTION {incollection}
1005 { output.bibitem
1006 author empty$
1007 { booktitle format.title.vol "booktitle" output.check
1008 editor empty$
1009 { "Need at least an author or an editor for "
1010 cite$ * warning$ }
1011 { "" format.editors * "editor" output.check }
1012 if$
1013 }
1014 { format.authors output
1015 booktitle format.title.vol.in "booktitle" output.check
1016 }
1017 if$
1018 format.pub.address "publisher" output.check
1019 format.edition output
1020 format.bdate "year" output.check
1021 format.chapter.pages "chapter and pages" output.check
1022 format.doi
1023 fin.entry
1024 }
1025
1026 FUNCTION {inpress}
1027 { output.bibitem
1028 format.authors "author" output.check
1029 journal emphasize "journal" output.check
1030 bbl.inpress output
1031 format.doi
1032 fin.entry
1033 }
1034
1035 FUNCTION {inproceedings}
1036 { output.bibitem
1037 format.authors "author" output.check
1038 booktitle format.title "booktitle" output.check
1039 address output
1040 format.date "year" output.check
1041 pages empty$
1042 'skip$
1043 { format.pages output }
1044 if$
1045 format.doi
1046 fin.entry
1047 }
1048
1049 FUNCTION {manual}
1050 { output.bibitem
1051 author empty$
1052 { organization empty$
1053 'skip$
1054 { organization output
1055 address output
1056 }
1057 if$
1058 }
1059 { format.authors output }
1060 if$
1061 title format.title.noemph "title" output.check
1062 author empty$
1063 { organization empty$
1064 { address output }
1065 'skip$
1066 if$
1067 }
1068 { organization output
1069 address output
1070 }
1071 if$
1072 format.edition output
1073 format.date output
1074 format.doi
1075 fin.entry
1076 }
1077
1078 FUNCTION {mastersthesis}
1079 { output.bibitem
1080 format.authors "author" output.check
1081 bbl.msc format.thesis.type output
1082 school "school" output.check
1083 address output
1084 format.date "year" output.check
1085 format.doi
1086 fin.entry
1087 }
1088
1089 FUNCTION {misc}
1090 { output.bibitem
1091 format.authors output
1092 title empty$
1093 'skip$
1094 { title format.title output }
1095 if$
1096 howpublished output
1097 format.date output
1098 format.url output
1099 note output
1100 format.doi
1101 fin.entry
1102 empty.misc.check
1103 }
1104
1105 FUNCTION {patent}
1106 { output.bibitem
1107 organization empty$
1108 { format.authors "author and organization" output.check }
1109 { author empty$
1110 { organization }
1111 { format.authors organization paren space.connect }
1112 if$
1113 "author and organization" output.check
1114 }
1115 if$
1116 journal emphasize "journal" output.check
1117 format.pages.patent "pages" output.check
1118 format.date "year" output.check
1119 format.doi
1120 fin.entry
1121 }
1122
1123 FUNCTION {phdthesis}
1124 { output.bibitem
1125 format.authors "author" output.check
1126 bbl.phd format.thesis.type output
1127 school "school" output.check
1128 address output
1129 format.date "year" output.check
1130 format.doi
1131 fin.entry
1132 }
1133
1134 FUNCTION {proceedings}
1135 { output.bibitem
1136 title format.title "title" output.check
1137 address output
1138 format.date "year" output.check
1139 pages empty$
1140 'skip$
1141 { format.pages output }
1142 if$
1143 format.doi
1144 fin.entry
1145 }
1146
1147 FUNCTION {techreport}
1148 { output.bibitem
1149 format.authors "author" output.check
1150 title format.title "title" output.check
1151 institution
1152 type empty$
1153 'bbl.techreport
1154 'type
1155 if$
1156 space.connect
1157 number empty$
1158 { "t" change.case$ }
1159 { number tie.or.space.connect }
1160 if$
1161 output
1162 format.pub.address output
1163 format.date "year" output.check
1164 format.doi
1165 fin.entry
1166 }
1167
1168 FUNCTION {unpublished}
1169 { output.bibitem
1170 format.authors "author" output.check
1171 journal empty$
1172 'skip$
1173 { journal emphasize "journal" output.check }
1174 if$
1175 doi empty$
1176 { note output }
1177 {
1178 bbl.doi doi tie.or.space.connect output
1179 }
1180 if$
1181 fin.entry
1182 empty.doi.note
1183 }
1184
1185 INTEGERS { a b }
1186
1187 FUNCTION {mult}
1188 { 'a :=
1189 'b :=
1190 b #0 <
1191 {#-1 #0 b - 'b :=}
1192 {#1}
1193 if$
1194 #0
1195 {b #0 >}
1196 { a +
1197 b #1 - 'b :=
1198 }
1199 while$
1200 swap$
1201 'skip$
1202 {#0 swap$ -}
1203 if$
1204 }
1205
1206 FUNCTION {str.to.int.aux}
1207 { {duplicate$ empty$ not}
1208 { swap$ #10 mult 'a :=
1209 duplicate$ #1 #1 substring$
1210 chr.to.value a +
1211 swap$
1212 #2 global.max$ substring$
1213 }
1214 while$
1215 pop$
1216 }
1217
1218 FUNCTION {str.to.int}
1219 { duplicate$ #1 #1 substring$ "-" =
1220 {#1 swap$ #2 global.max$ substring$}
1221 {#0 swap$}
1222 if$
1223 #0 swap$ str.to.int.aux
1224 swap$
1225 {#0 swap$ -}
1226 {}
1227 if$
1228 }
1229
1230 FUNCTION {yes.no.to.int}
1231 { "l" change.case$ duplicate$
1232 "yes" =
1233 { pop$ #1 }
1234 { duplicate$ "no" =
1235 { pop$ #0 }
1236 { "unknown Boolean " quote$ * swap$ * quote$ *
1237 " in " * cite$ * warning$
1238 #0
1239 }
1240 if$
1241 }
1242 if$
1243 }
1244
1245 FUNCTION {Control}
1246 { ctrl-use-title
1247 empty$
1248 { skip$ }
1249 { ctrl-use-title
1250 yes.no.to.int
1251 'is.use.title := }
1252 if$
1253 ctrl-etal-number
1254 empty$
1255 { skip$ }
1256 { ctrl-etal-number
1257 str.to.int
1258 'etal.number := }
1259 if$
1260 ctrl-use-doi-all
1261 empty$
1262 { skip$ }
1263 { ctrl-use-doi-all
1264 yes.no.to.int
1265 'use.doi.all := }
1266 if$
1267 ctrl-link-doi
1268 empty$
1269 { skip$ }
1270 { ctrl-link-doi
1271 yes.no.to.int
1272 'link.doi := }
1273 if$
1274 }
1275
1276 FUNCTION {conference} {inproceedings}
1277
1278 FUNCTION {other} {patent}
1279
1280 FUNCTION {default.type} {misc}
1281
1282 MACRO {jan} {"January"}
1283 MACRO {feb} {"February"}
1284 MACRO {mar} {"March"}
1285 MACRO {apr} {"April"}
1286 MACRO {may} {"May"}
1287 MACRO {jun} {"June"}
1288 MACRO {jul} {"July"}
1289 MACRO {aug} {"August"}
1290 MACRO {sep} {"September"}
1291 MACRO {oct} {"October"}
1292 MACRO {nov} {"November"}
1293 MACRO {dec} {"December"}
1294
1295 READ
1296
1297 FUNCTION {initialize.controls}
1298 { default.is.use.title 'is.use.title :=
1299 default.etal.number 'etal.number :=
1300 default.use.doi.all 'use.doi.all :=
1301 default.link.doi 'link.doi :=
1302 }
1303
1304 INTEGERS { len }
1305
1306 FUNCTION {chop.word}
1307 { 's :=
1308 'len :=
1309 s #1 len substring$ =
1310 { s len #1 + global.max$ substring$ }
1311 's
1312 if$
1313 }
1314
1315 FUNCTION {format.lab.names}
1316 { 's :=
1317 s #1 "{vv~}{ll}" format.name$
1318 s num.names$ duplicate$
1319 #2 >
1320 { pop$ bbl.etal space.connect }
1321 { #2 <
1322 'skip$
1323 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1324 { bbl.etal space.connect }
1325 { bbl.and space.connect s #2 "{vv~}{ll}"
1326 format.name$ space.connect }
1327 if$
1328 }
1329 if$
1330 }
1331 if$
1332 }
1333
1334 FUNCTION {author.key.label}
1335 { author empty$
1336 { key empty$
1337 { cite$ #1 #3 substring$ }
1338 'key
1339 if$
1340 }
1341 { author format.lab.names }
1342 if$
1343 }
1344
1345 FUNCTION {author.editor.key.label}
1346 { author empty$
1347 { editor empty$
1348 { key empty$
1349 { cite$ #1 #3 substring$ }
1350 'key
1351 if$
1352 }
1353 { editor format.lab.names }
1354 if$
1355 }
1356 { author format.lab.names }
1357 if$
1358 }
1359
1360 FUNCTION {author.key.organization.label}
1361 { author empty$
1362 { key empty$
1363 { organization empty$
1364 { cite$ #1 #3 substring$ }
1365 { "The " #4 organization chop.word #3
1366 text.prefix$ }
1367 if$
1368 }
1369 'key
1370 if$
1371 }
1372 { author format.lab.names }
1373 if$
1374 }
1375
1376 FUNCTION {editor.key.organization.label}
1377 { editor empty$
1378 { key empty$
1379 { organization empty$
1380 { cite$ #1 #3 substring$ }
1381 { "The " #4 organization chop.word #3
1382 text.prefix$ }
1383 if$
1384 }
1385 'key
1386 if$
1387 }
1388 { editor format.lab.names }
1389 if$
1390 }
1391
1392 FUNCTION {calc.short.authors}
1393 { type$ "book" =
1394 type$ "inbook" =
1395 or
1396 'author.editor.key.label
1397 { type$ "proceedings" =
1398 'editor.key.organization.label
1399 { type$ "manual" =
1400 'author.key.organization.label
1401 'author.key.label
1402 if$
1403 }
1404 if$
1405 }
1406 if$
1407 'short.list :=
1408 }
1409
1410 FUNCTION {calc.label}
1411 { calc.short.authors
1412 short.list
1413 "("
1414 *
1415 year duplicate$ empty$
1416 short.list key field.or.null = or
1417 { pop$ "" }
1418 'skip$
1419 if$
1420 *
1421 'label :=
1422 }
1423
1424 ITERATE {calc.label}
1425
1426 STRINGS { longest.label last.label next.extra }
1427
1428 INTEGERS { longest.label.width last.extra.num number.label }
1429
1430 FUNCTION {initialize.longest.label}
1431 { "" 'longest.label :=
1432 #0 int.to.chr$ 'last.label :=
1433 "" 'next.extra :=
1434 #0 'longest.label.width :=
1435 #0 'last.extra.num :=
1436 #0 'number.label :=
1437 }
1438
1439 FUNCTION {forward.pass}
1440 { last.label label =
1441 { last.extra.num #1 + 'last.extra.num :=
1442 last.extra.num int.to.chr$ 'extra.label :=
1443 }
1444 { "a" chr.to.int$ 'last.extra.num :=
1445 "" 'extra.label :=
1446 label 'last.label :=
1447 }
1448 if$
1449 number.label #1 + 'number.label :=
1450 }
1451
1452 EXECUTE {initialize.longest.label}
1453
1454 ITERATE {forward.pass}
1455
1456 FUNCTION {begin.bib}
1457 {
1458 "rsc 2016/08/22 v3.1f" top$
1459 preamble$ empty$
1460 'skip$
1461 { preamble$ write$ newline$ }
1462 if$
1463 "\providecommand*{\mcitethebibliography}{\thebibliography}"
1464 write$ newline$
1465 "\csname @ifundefined\endcsname{endmcitethebibliography}"
1466 write$ newline$
1467 "{\let\endmcitethebibliography\endthebibliography}{}"
1468 write$ newline$
1469 "\begin{mcitethebibliography}{" number.label int.to.str$ * "}" *
1470 write$ newline$
1471 "\providecommand*{\natexlab}[1]{#1}"
1472 write$ newline$
1473 "\providecommand*{\mciteSetBstSublistMode}[1]{}"
1474 write$ newline$
1475 "\providecommand*{\mciteSetBstMaxWidthForm}[2]{}"
1476 write$ newline$
1477 "\providecommand*{\mciteBstWouldAddEndPuncttrue}"
1478 write$ newline$
1479 " {\def\EndOfBibitem{\unskip.}}"
1480 write$ newline$
1481 "\providecommand*{\mciteBstWouldAddEndPunctfalse}"
1482 write$ newline$
1483 " {\let\EndOfBibitem\relax}"
1484 write$ newline$
1485 "\providecommand*{\mciteSetBstMidEndSepPunct}[3]{}"
1486 write$ newline$
1487 "\providecommand*{\mciteSetBstSublistLabelBeginEnd}[3]{}"
1488 write$ newline$
1489 "\providecommand*{\EndOfBibitem}{}"
1490 write$ newline$
1491 "\mciteSetBstSublistMode{f}"
1492 write$ newline$
1493 "\mciteSetBstMaxWidthForm{subitem}"
1494 write$ newline$
1495 "{\alph{mcitesubitemcount})}"
1496 write$ newline$
1497 "\mciteSetBstSublistLabelBeginEnd{\mcitemaxwidthsubitemform\space}"
1498 write$ newline$
1499 "{\relax}{\relax}"
1500 write$ newline$
1501 }
1502
1503 EXECUTE {begin.bib}
1504
1505 EXECUTE {init.state.consts}
1506
1507 ITERATE {call.type$}
1508
1509 FUNCTION {end.bib}
1510 { newline$
1511 "\end{mcitethebibliography}" write$ newline$
1512 }
1513
1514 EXECUTE {end.bib}
1515 %%
1516 %% Copyright (C) 2006-2009,2011,2013,2016 by
1517 %% Joseph Wright <[email protected]>
1518 %%
1519 %% It may be distributed and/or modified under the conditions of
1520 %% the LaTeX Project Public License (LPPL), either version 1.3c of
1521 %% this license or (at your option) any later version. The latest
1522 %% version of this license is in the file:
1523 %%
1524 %% http://www.latex-project.org/lppl.txt
1525 %%
1526 %% This work is "maintained" (as per LPPL maintenance status) by
1527 %% Joseph Wright.
1528 %%
1529 %% This work consists of the file rsc.dtx
1530 %% and the derived files rsc.pdf,
1531 %% rsc.ins,
1532 %% rsc.sty,
1533 %% rsc.bib and
1534 %% rsc-demo.tex.
1535 %%
1536 %%
1537 %%
1538 %% End of file `angew.bst'.