Debian Codegraph @

texmf-dist/bibtex/bst/resphilosophica/resphilosophica.bst

raw
1 %%
2 %% This is file `resphilosophica.bst',
3 %% generated with the docstrip utility and then
4 %% manually patched by Boris Veytsman
5 %%
6 %% Copyright 2012--2015 Boris Veytsman (patches and changes)
7 %%
8 %% The original source files were:
9 %%
10 %% merlin.mbs (with options: `ay,nat,nm-revv1,keyxyr,dt-beg,yr-per,yrp-per,note-yr,tit-qq,atit-u,vnum-sp,volp-sp,num-xser,jnm-x,bkpg-x,add-pub,url-doi,edby,ppx,ed,abr,ord,etal-xc,url,url-nt,nfss,')
11 %% ----------------------------------------
12 %% *** Chicago Manual of Style Author-Date ***
13 %%
14 %% Copyright 1994-2011 Patrick W Daly
15 %
16 % This ile can be redistributed and/or modified under the terms
17 % of the LaTeX Project Public License Distributed from CTAN
18 % archives in directory macros/latex/base/lppl.txt; either
19 % version 1 of the License, or any later version.
20 % ===============================================================
21 % Name and version information of the main mbs file:
22 % \ProvidesFile{merlin.mbs}[2011/11/18 4.33 (PWD, AO, DPC)]
23 % For use with BibTeX version 0.99a or later
24 %-------------------------------------------------------------------
25 % This bibliography style file is intended for texts in ENGLISH
26 % This is an author-year citation style bibliography. As such, it is
27 % non-standard LaTeX, and requires a special package file to function properly.
28 % Such a package is natbib.sty by Patrick W. Daly
29 % The form of the \bibitem entries is
30 % \bibitem[Jones et al.(1990)]{key}...
31 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
32 % The essential feature is that the label (the part in brackets) consists
33 % of the author names, as they should appear in the citation, with the year
34 % in parentheses following. There must be no space before the opening
35 % parenthesis!
36 % With natbib v5.3, a full list of authors may also follow the year.
37 % In natbib.sty, it is possible to define the type of enclosures that is
38 % really wanted (brackets or parentheses), but in either case, there must
39 % be parentheses in the label.
40 % The \cite command functions as follows:
41 % \citet{key} ==>> Jones et al. (1990)
42 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
43 % \citep{key} ==>> (Jones et al., 1990)
44 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
45 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
46 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
47 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., 1990, p. 32)
48 % \citeauthor{key} ==>> Jones et al.
49 % \citeauthor*{key} ==>> Jones, Baker, and Smith
50 % \citeyear{key} ==>> 1990
51 %---------------------------------------------------------------------
52
53 ENTRY
54 { address
55 author
56 booktitle
57 chapter
58 doi
59 edition
60 editor
61 eid
62 howpublished
63 institution
64 journal
65 key
66 month
67 note
68 number
69 organization
70 pages
71 publisher
72 school
73 series
74 title
75 titlenote
76 type
77 url
78 volume
79 year
80 }
81 {}
82 { label extra.label sort.label short.list }
83 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
84 FUNCTION {init.state.consts}
85 { #0 'before.all :=
86 #1 'mid.sentence :=
87 #2 'after.sentence :=
88 #3 'after.block :=
89 }
90 STRINGS { s t}
91 FUNCTION {output.nonnull}
92 { 's :=
93 output.state mid.sentence =
94 { "\checkcomma{} " * write$ }
95 { output.state after.block =
96 { add.period$ write$
97 newline$
98 "\newblock " write$
99 }
100 { output.state before.all =
101 'write$
102 { add.period$ " " * write$ }
103 if$
104 }
105 if$
106 mid.sentence 'output.state :=
107 }
108 if$
109 s
110 }
111 FUNCTION {output}
112 { duplicate$ empty$
113 'pop$
114 'output.nonnull
115 if$
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 FUNCTION {new.block}
126 { output.state before.all =
127 'skip$
128 { after.block 'output.state := }
129 if$
130 }
131 FUNCTION {new.sentence}
132 { output.state after.block =
133 'skip$
134 { output.state before.all =
135 'skip$
136 { after.sentence 'output.state := }
137 if$
138 }
139 if$
140 }
141 FUNCTION {add.blank}
142 { " " * before.all 'output.state :=
143 }
144
145 FUNCTION {date.block}
146 {
147 new.block
148 }
149
150 FUNCTION {not}
151 { { #0 }
152 { #1 }
153 if$
154 }
155 FUNCTION {and}
156 { 'skip$
157 { pop$ #0 }
158 if$
159 }
160 FUNCTION {or}
161 { { pop$ #1 }
162 'skip$
163 if$
164 }
165 FUNCTION {non.stop}
166 { duplicate$
167 "}" * add.period$
168 #-1 #1 substring$ "." =
169 }
170
171 FUNCTION {new.block.checkb}
172 { empty$
173 swap$ empty$
174 and
175 'skip$
176 'new.block
177 if$
178 }
179 FUNCTION {field.or.null}
180 { duplicate$ empty$
181 { pop$ "" }
182 'skip$
183 if$
184 }
185 FUNCTION {emphasize}
186 { duplicate$ empty$
187 { pop$ "" }
188 { "\emph{" swap$ * "}" * }
189 if$
190 }
191 FUNCTION {tie.or.space.prefix}
192 { duplicate$ text.length$ #3 <
193 { "~" }
194 { " " }
195 if$
196 swap$
197 }
198
199 FUNCTION {capitalize}
200 { "u" change.case$ "t" change.case$ }
201
202 FUNCTION {space.word}
203 { " " swap$ * " " * }
204 % Here are the language-specific definitions for explicit words.
205 % Each function has a name bbl.xxx where xxx is the English word.
206 % The language selected here is ENGLISH
207 FUNCTION {bbl.and}
208 { "and"}
209
210 FUNCTION {bbl.etal}
211 { "et~al." }
212
213 FUNCTION {bbl.editors}
214 { "eds." }
215
216 FUNCTION {bbl.editor}
217 { "ed." }
218
219 FUNCTION {bbl.edby}
220 { "edited by" }
221
222 FUNCTION {bbl.edition}
223 { "edn." }
224
225 FUNCTION {bbl.volume}
226 { "Vol." }
227
228 FUNCTION {bbl.of}
229 { "of" }
230
231 FUNCTION {bbl.number}
232 { "no." }
233
234 FUNCTION {bbl.nr}
235 { "no." }
236
237 FUNCTION {bbl.in}
238 { "in" }
239
240 FUNCTION {bbl.pages}
241 { "" }
242
243 FUNCTION {bbl.page}
244 { "" }
245
246 FUNCTION {bbl.chapter}
247 { "chap." }
248
249 FUNCTION {bbl.techrep}
250 { "Tech. Rep." }
251
252 FUNCTION {bbl.mthesis}
253 { "Master's thesis" }
254
255 FUNCTION {bbl.phdthesis}
256 { "Ph.D. thesis" }
257
258 FUNCTION {bbl.first}
259 { "1st" }
260
261 FUNCTION {bbl.second}
262 { "2nd" }
263
264 FUNCTION {bbl.third}
265 { "3rd" }
266
267 FUNCTION {bbl.fourth}
268 { "4th" }
269
270 FUNCTION {bbl.fifth}
271 { "5th" }
272
273 FUNCTION {bbl.st}
274 { "st" }
275
276 FUNCTION {bbl.nd}
277 { "nd" }
278
279 FUNCTION {bbl.rd}
280 { "rd" }
281
282 FUNCTION {bbl.th}
283 { "th" }
284
285 MACRO {jan} {"Jan."}
286
287 MACRO {feb} {"Feb."}
288
289 MACRO {mar} {"Mar."}
290
291 MACRO {apr} {"Apr."}
292
293 MACRO {may} {"May"}
294
295 MACRO {jun} {"Jun."}
296
297 MACRO {jul} {"Jul."}
298
299 MACRO {aug} {"Aug."}
300
301 MACRO {sep} {"Sep."}
302
303 MACRO {oct} {"Oct."}
304
305 MACRO {nov} {"Nov."}
306
307 MACRO {dec} {"Dec."}
308
309 FUNCTION {eng.ord}
310 { duplicate$ "1" swap$ *
311 #-2 #1 substring$ "1" =
312 { bbl.th * }
313 { duplicate$ #-1 #1 substring$
314 duplicate$ "1" =
315 { pop$ bbl.st * }
316 { duplicate$ "2" =
317 { pop$ bbl.nd * }
318 { "3" =
319 { bbl.rd * }
320 { bbl.th * }
321 if$
322 }
323 if$
324 }
325 if$
326 }
327 if$
328 }
329
330 MACRO {acmcs} {"ACM Computing Surveys"}
331
332 MACRO {acta} {"Acta Informatica"}
333
334 MACRO {cacm} {"Communications of the ACM"}
335
336 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
337
338 MACRO {ibmsj} {"IBM Systems Journal"}
339
340 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
341
342 MACRO {ieeetc} {"IEEE Transactions on Computers"}
343
344 MACRO {ieeetcad}
345 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
346
347 MACRO {ipl} {"Information Processing Letters"}
348
349 MACRO {jacm} {"Journal of the ACM"}
350
351 MACRO {jcss} {"Journal of Computer and System Sciences"}
352
353 MACRO {scp} {"Science of Computer Programming"}
354
355 MACRO {sicomp} {"SIAM Journal on Computing"}
356
357 MACRO {tocs} {"ACM Transactions on Computer Systems"}
358
359 MACRO {tods} {"ACM Transactions on Database Systems"}
360
361 MACRO {tog} {"ACM Transactions on Graphics"}
362
363 MACRO {toms} {"ACM Transactions on Mathematical Software"}
364
365 MACRO {toois} {"ACM Transactions on Office Information Systems"}
366
367 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
368
369 MACRO {tcs} {"Theoretical Computer Science"}
370 FUNCTION {bibinfo.check}
371 { swap$
372 duplicate$ missing$
373 {
374 pop$ pop$
375 ""
376 }
377 { duplicate$ empty$
378 {
379 swap$ pop$
380 }
381 { swap$
382 pop$
383 }
384 if$
385 }
386 if$
387 }
388 FUNCTION {bibinfo.warn}
389 { swap$
390 duplicate$ missing$
391 {
392 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
393 ""
394 }
395 { duplicate$ empty$
396 {
397 swap$ "empty " swap$ * " in " * cite$ * warning$
398 }
399 { swap$
400 pop$
401 }
402 if$
403 }
404 if$
405 }
406 INTEGERS { nameptr namesleft numnames }
407
408
409 STRINGS { bibinfo}
410
411 FUNCTION {format.names}
412 { 'bibinfo :=
413 duplicate$ empty$ 'skip$ {
414 's :=
415 "" 't :=
416 #1 'nameptr :=
417 s num.names$ 'numnames :=
418 numnames 'namesleft :=
419 { namesleft #0 > }
420 { s nameptr
421 duplicate$ #1 >
422 { "{ff~}{vv~}{ll}{, jj}" }
423 { "{vv~}{ll}{, jj}{, ff}" }
424 if$
425 format.name$
426 bibinfo bibinfo.check
427 't :=
428 nameptr #1 >
429 {
430 namesleft #1 >
431 { ", " * t * }
432 {
433 s nameptr "{ll}" format.name$ duplicate$ "others" =
434 { 't := }
435 { pop$ }
436 if$
437 numnames #2 >
438 t "others" = not and
439 { "," * }
440 'skip$
441 if$
442 t "others" =
443 {
444 " " * bbl.etal *
445 }
446 {
447 bbl.and
448 space.word * t *
449 }
450 if$
451 }
452 if$
453 }
454 't
455 if$
456 nameptr #1 + 'nameptr :=
457 namesleft #1 - 'namesleft :=
458 }
459 while$
460 } if$
461 }
462 FUNCTION {format.names.ed}
463 {
464 'bibinfo :=
465 duplicate$ empty$ 'skip$ {
466 's :=
467 "" 't :=
468 #1 'nameptr :=
469 s num.names$ 'numnames :=
470 numnames 'namesleft :=
471 { namesleft #0 > }
472 { s nameptr
473 "{ff~}{vv~}{ll}{, jj}"
474 format.name$
475 bibinfo bibinfo.check
476 't :=
477 nameptr #1 >
478 {
479 namesleft #1 >
480 { ", " * t * }
481 {
482 s nameptr "{ll}" format.name$ duplicate$ "others" =
483 { 't := }
484 { pop$ }
485 if$
486 numnames #2 >
487 t "others" = not and
488 { "," * }
489 'skip$
490 if$
491 t "others" =
492 {
493
494 " " * bbl.etal *
495 }
496 {
497 bbl.and
498 space.word * t *
499 }
500 if$
501 }
502 if$
503 }
504 't
505 if$
506 nameptr #1 + 'nameptr :=
507 namesleft #1 - 'namesleft :=
508 }
509 while$
510 } if$
511 }
512 FUNCTION {format.key}
513 { empty$
514 { key field.or.null }
515 { "" }
516 if$
517 }
518
519 FUNCTION {format.authors}
520 { author "author" format.names
521 }
522 FUNCTION {get.bbl.editor}
523 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
524
525 FUNCTION {format.editors}
526 { editor "editor" format.names duplicate$ empty$ 'skip$
527 {
528 "," *
529 " " *
530 get.bbl.editor
531 *
532 }
533 if$
534 }
535
536
537
538 %
539 % We print url only if (1) it is NOT a doi, or (2) doi is empty
540 %
541
542 FUNCTION {format.note}
543 {
544 new.sentence
545 note empty$
546 { "" }
547 { note #1 #1 substring$
548 duplicate$ "{" =
549 'skip$
550 { output.state mid.sentence =
551 { "l" }
552 { "u" }
553 if$
554 change.case$
555 }
556 if$
557 note #2 global.max$ substring$ * "note" bibinfo.check
558 }
559 if$
560 }
561
562
563
564 FUNCTION {format.title}
565 { title
566 "title" bibinfo.check
567 duplicate$ empty$ 'skip$
568 {
569 "\enquote{" swap$ *
570 add.period$ "}" *
571 }
572 if$
573 }
574 FUNCTION {format.full.names}
575 {'s :=
576 "" 't :=
577 #1 'nameptr :=
578 s num.names$ 'numnames :=
579 numnames 'namesleft :=
580 { namesleft #0 > }
581 { s nameptr
582 "{vv~}{ll}" format.name$
583 't :=
584 nameptr #1 >
585 {
586 namesleft #1 >
587 { ", " * t * }
588 {
589 s nameptr "{ll}" format.name$ duplicate$ "others" =
590 { 't := }
591 { pop$ }
592 if$
593 t "others" =
594 {
595 " " * bbl.etal *
596 }
597 {
598 numnames #2 >
599 { "," * }
600 'skip$
601 if$
602 bbl.and
603 space.word * t *
604 }
605 if$
606 }
607 if$
608 }
609 't
610 if$
611 nameptr #1 + 'nameptr :=
612 namesleft #1 - 'namesleft :=
613 }
614 while$
615 }
616
617 FUNCTION {author.editor.key.full}
618 { author empty$
619 { editor empty$
620 { key empty$
621 { cite$ #1 #3 substring$ }
622 'key
623 if$
624 }
625 { editor format.full.names }
626 if$
627 }
628 { author format.full.names }
629 if$
630 }
631
632 FUNCTION {author.key.full}
633 { author empty$
634 { key empty$
635 { cite$ #1 #3 substring$ }
636 'key
637 if$
638 }
639 { author format.full.names }
640 if$
641 }
642
643 FUNCTION {editor.key.full}
644 { editor empty$
645 { key empty$
646 { cite$ #1 #3 substring$ }
647 'key
648 if$
649 }
650 { editor format.full.names }
651 if$
652 }
653
654 FUNCTION {make.full.names}
655 { type$ "book" =
656 type$ "inbook" =
657 or
658 'author.editor.key.full
659 { type$ "proceedings" =
660 'editor.key.full
661 'author.key.full
662 if$
663 }
664 if$
665 }
666
667 FUNCTION {output.bibitem}
668 { newline$
669 "\bibitem[{" write$
670 label write$
671 ")" make.full.names duplicate$ short.list =
672 { pop$ }
673 { * }
674 if$
675 "}]{" * write$
676 cite$ write$
677 "}" write$
678 newline$
679 ""
680 before.all 'output.state :=
681 }
682
683 FUNCTION {n.dashify}
684 {
685 't :=
686 ""
687 { t empty$ not }
688 { t #1 #1 substring$ "-" =
689 { t #1 #2 substring$ "--" = not
690 { "--" *
691 t #2 global.max$ substring$ 't :=
692 }
693 { { t #1 #1 substring$ "-" = }
694 { "-" *
695 t #2 global.max$ substring$ 't :=
696 }
697 while$
698 }
699 if$
700 }
701 { t #1 #1 substring$ *
702 t #2 global.max$ substring$ 't :=
703 }
704 if$
705 }
706 while$
707 }
708
709 FUNCTION {word.in}
710 { bbl.in capitalize
711 " " * }
712
713 FUNCTION {format.date}
714 { year "year" bibinfo.check duplicate$ empty$
715 {
716 "empty year in " cite$ * "; set to ????" * warning$
717 pop$ "????"
718 }
719 'skip$
720 if$
721 extra.label *
722 before.all 'output.state :=
723 after.sentence 'output.state :=
724 }
725 FUNCTION {format.btitle}
726 { title "title" bibinfo.check
727 duplicate$ empty$ 'skip$
728 {
729 emphasize
730 }
731 if$
732 }
733 FUNCTION {either.or.check}
734 { empty$
735 'pop$
736 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
737 if$
738 }
739 FUNCTION {format.bvolume}
740 { volume empty$
741 { "" }
742 { bbl.volume volume tie.or.space.prefix
743 "volume" bibinfo.check * *
744 series "series" bibinfo.check
745 duplicate$ empty$ 'pop$
746 { swap$ bbl.of space.word * swap$
747 emphasize * }
748 if$
749 "volume and number" number either.or.check
750 }
751 if$
752 }
753 FUNCTION {format.number.series}
754 { volume empty$
755 { number empty$
756 { series field.or.null }
757 { series empty$
758 { number "number" bibinfo.check }
759 { output.state mid.sentence =
760 { bbl.number }
761 { bbl.number capitalize }
762 if$
763 number tie.or.space.prefix "number" bibinfo.check * *
764 bbl.in space.word *
765 series "series" bibinfo.check *
766 }
767 if$
768 }
769 if$
770 }
771 { "" }
772 if$
773 }
774 FUNCTION {is.num}
775 { chr.to.int$
776 duplicate$ "0" chr.to.int$ < not
777 swap$ "9" chr.to.int$ > not and
778 }
779
780 FUNCTION {extract.num}
781 { duplicate$ 't :=
782 "" 's :=
783 { t empty$ not }
784 { t #1 #1 substring$
785 t #2 global.max$ substring$ 't :=
786 duplicate$ is.num
787 { s swap$ * 's := }
788 { pop$ "" 't := }
789 if$
790 }
791 while$
792 s empty$
793 'skip$
794 { pop$ s }
795 if$
796 }
797
798 FUNCTION {convert.edition}
799 { extract.num "l" change.case$ 's :=
800 s "first" = s "1" = or
801 { bbl.first 't := }
802 { s "second" = s "2" = or
803 { bbl.second 't := }
804 { s "third" = s "3" = or
805 { bbl.third 't := }
806 { s "fourth" = s "4" = or
807 { bbl.fourth 't := }
808 { s "fifth" = s "5" = or
809 { bbl.fifth 't := }
810 { s #1 #1 substring$ is.num
811 { s eng.ord 't := }
812 { edition 't := }
813 if$
814 }
815 if$
816 }
817 if$
818 }
819 if$
820 }
821 if$
822 }
823 if$
824 t
825 }
826
827 FUNCTION {format.edition}
828 { edition duplicate$ empty$ 'skip$
829 {
830 convert.edition
831 output.state mid.sentence =
832 { "l" }
833 { "t" }
834 if$ change.case$
835 "edition" bibinfo.check
836 " " * bbl.edition *
837 }
838 if$
839 }
840 INTEGERS { multiresult }
841 FUNCTION {multi.page.check}
842 { 't :=
843 #0 'multiresult :=
844 { multiresult not
845 t empty$ not
846 and
847 }
848 { t #1 #1 substring$
849 duplicate$ "-" =
850 swap$ duplicate$ "\checkcomma{}" =
851 swap$ "+" =
852 or or
853 { #1 'multiresult := }
854 { t #2 global.max$ substring$ 't := }
855 if$
856 }
857 while$
858 multiresult
859 }
860 FUNCTION {format.pages}
861 { pages duplicate$ empty$ 'skip$
862 { duplicate$ multi.page.check
863 {
864 n.dashify
865 }
866 {
867 }
868 if$
869 "pages" bibinfo.check
870 }
871 if$
872 }
873 FUNCTION {format.journal.pages}
874 { pages duplicate$ empty$ 'pop$
875 { swap$ duplicate$ empty$
876 { pop$ pop$ format.pages }
877 {
878 ": " *
879 swap$
880 n.dashify
881 "pages" bibinfo.check
882 *
883 }
884 if$
885 }
886 if$
887 }
888 FUNCTION {format.journal.eid}
889 { eid "eid" bibinfo.check
890 duplicate$ empty$ 'pop$
891 { swap$ duplicate$ empty$ 'skip$
892 {
893 ": " *
894 }
895 if$
896 swap$ *
897 }
898 if$
899 }
900 FUNCTION {format.vol.num.pages}
901 { volume field.or.null
902 duplicate$ empty$ 'skip$
903 {
904 "volume" bibinfo.check
905 }
906 if$
907 number "number" bibinfo.check duplicate$ empty$ 'skip$
908 {
909 swap$ duplicate$ empty$
910 { "there's a number but no volume in " cite$ * warning$ }
911 'skip$
912 if$
913 swap$
914 "~(" swap$ * ")" *
915 }
916 if$ *
917 eid empty$
918 { format.journal.pages }
919 { format.journal.eid }
920 if$
921 }
922
923 FUNCTION {format.chapter.pages}
924 { chapter empty$
925 'format.pages
926 { type empty$
927 { bbl.chapter }
928 { type "l" change.case$
929 "type" bibinfo.check
930 }
931 if$
932 chapter tie.or.space.prefix
933 "chapter" bibinfo.check
934 * *
935 pages empty$
936 'skip$
937 { "\checkcomma{} " * format.pages * }
938 if$
939 }
940 if$
941 }
942
943 FUNCTION {format.booktitle}
944 {
945 booktitle "booktitle" bibinfo.check
946 emphasize
947 }
948 FUNCTION {format.in.ed.booktitle}
949 { format.booktitle duplicate$ empty$ 'skip$
950 {
951 format.edition duplicate$ empty$ 'pop$
952 {
953 "\checkcomma{} " swap$ * *
954 }
955 if$
956 editor "editor" format.names.ed duplicate$ empty$ 'pop$
957 {
958 bbl.edby
959 " " * swap$ *
960 swap$
961 "\checkcomma{}" *
962 " " * swap$
963 * }
964 if$
965 word.in swap$ *
966 }
967 if$
968 }
969 FUNCTION {format.thesis.type}
970 { type duplicate$ empty$
971 'pop$
972 { swap$ pop$
973 "t" change.case$ "type" bibinfo.check
974 }
975 if$
976 }
977 FUNCTION {format.tr.number}
978 { number "number" bibinfo.check
979 type duplicate$ empty$
980 { pop$ bbl.techrep }
981 'skip$
982 if$
983 "type" bibinfo.check
984 swap$ duplicate$ empty$
985 { pop$ "t" change.case$ }
986 { tie.or.space.prefix * * }
987 if$
988 }
989 FUNCTION {format.article.crossref}
990 {
991 word.in
992 " \cite{" * crossref * "}" *
993 }
994 FUNCTION {format.book.crossref}
995 { volume duplicate$ empty$
996 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
997 pop$ word.in
998 }
999 { bbl.volume
1000 capitalize
1001 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1002 }
1003 if$
1004 " \cite{" * crossref * "}" *
1005 }
1006 FUNCTION {format.incoll.inproc.crossref}
1007 {
1008 word.in
1009 " \cite{" * crossref * "}" *
1010 }
1011 FUNCTION {format.org.or.pub}
1012 { 't :=
1013 ""
1014 address empty$ t empty$ and
1015 'skip$
1016 {
1017 address "address" bibinfo.check *
1018 t empty$
1019 'skip$
1020 { address empty$
1021 'skip$
1022 { ": " * }
1023 if$
1024 t *
1025 }
1026 if$
1027 }
1028 if$
1029 }
1030 FUNCTION {format.publisher.address}
1031 { publisher "publisher" bibinfo.warn format.org.or.pub
1032 }
1033
1034 FUNCTION {format.organization.address}
1035 { organization "organization" bibinfo.check format.org.or.pub
1036 }
1037
1038 %%
1039 %% We put a \midpenalty before URLs and stretchable glue to encourage
1040 %% splitting off urls and ragged right previous line.
1041 %%
1042 FUNCTION {format.doi.url}
1043 {
1044 new.sentence
1045 doi empty$
1046 { url empty$
1047 {""}
1048 { "\hspace*{0pt plus 0.0001fil}\nolinebreak[2]\urlprefix\url{" url * "}" * }
1049 if$
1050 }
1051 { "\hspace*{0pt plus 0.0001fil}\nolinebreak[2]\doi{" doi * "}" * }
1052 if$
1053 }
1054
1055 FUNCTION {fin.entry}
1056 { add.period$
1057 write$
1058 newline$
1059 format.doi.url
1060 write$
1061 newline$
1062 }
1063
1064
1065 FUNCTION {article}
1066 { output.bibitem
1067 format.authors "author" output.check
1068 author format.key output
1069 format.date "year" output.check
1070 date.block
1071 format.title "title" output.check
1072 titlenote empty$
1073 'skip$
1074 { new.sentence
1075 titlenote output }
1076 if$
1077 new.block
1078 crossref missing$
1079 {
1080 journal
1081 "journal" bibinfo.check
1082 emphasize
1083 "journal" output.check
1084 add.blank
1085 format.vol.num.pages output
1086 }
1087 { format.article.crossref output.nonnull
1088 format.pages output
1089 }
1090 if$
1091 new.block
1092 format.note output
1093 fin.entry
1094 }
1095 FUNCTION {book}
1096 { output.bibitem
1097 author empty$
1098 { format.editors "author and editor" output.check
1099 editor format.key output
1100 }
1101 { format.authors output.nonnull
1102 crossref missing$
1103 { "author and editor" editor either.or.check }
1104 'skip$
1105 if$
1106 }
1107 if$
1108 format.date "year" output.check
1109 date.block
1110 format.btitle "title" output.check
1111 edition empty$
1112 'skip$
1113 {new.sentence
1114 format.edition output}
1115 if$
1116 crossref missing$
1117 { new.sentence
1118 format.bvolume output
1119 new.block
1120 format.number.series output
1121 titlenote empty$
1122 'skip$
1123 { new.sentence
1124 titlenote output }
1125 if$
1126 new.sentence
1127 format.publisher.address output
1128 }
1129 {
1130 new.block
1131 format.book.crossref output.nonnull
1132 }
1133 if$
1134 new.sentence
1135 new.block
1136 format.note output
1137 fin.entry
1138 }
1139 FUNCTION {booklet}
1140 { output.bibitem
1141 format.authors output
1142 author format.key output
1143 format.date "year" output.check
1144 date.block
1145 format.title "title" output.check
1146 titlenote empty$
1147 'skip$
1148 { new.sentence
1149 titlenote output }
1150 if$
1151 new.block
1152 howpublished "howpublished" bibinfo.check output
1153 address "address" bibinfo.check output
1154 new.block
1155 format.note output
1156 fin.entry
1157 }
1158
1159 FUNCTION {inbook}
1160 { output.bibitem
1161 author empty$
1162 { format.editors "author and editor" output.check
1163 editor format.key output
1164 }
1165 { format.authors output.nonnull
1166 crossref missing$
1167 { "author and editor" editor either.or.check }
1168 'skip$
1169 if$
1170 }
1171 if$
1172 format.date "year" output.check
1173 date.block
1174 format.btitle "title" output.check
1175 edition empty$
1176 'skip$
1177 {new.sentence
1178 format.edition output}
1179 if$
1180 crossref missing$
1181 {
1182 new.sentence
1183 format.bvolume output
1184 format.chapter.pages "chapter and pages" output.check
1185 new.block
1186 format.number.series output
1187 titlenote empty$
1188 'skip$
1189 { new.sentence
1190 titlenote output }
1191 if$
1192 new.sentence
1193 format.publisher.address output
1194 }
1195 {
1196 format.chapter.pages "chapter and pages" output.check
1197 new.block
1198 format.book.crossref output.nonnull
1199 }
1200 if$
1201 new.block
1202 format.note output
1203 fin.entry
1204 }
1205
1206 FUNCTION {incollection}
1207 { output.bibitem
1208 format.authors "author" output.check
1209 author format.key output
1210 format.date "year" output.check
1211 date.block
1212 format.title "title" output.check
1213 new.block
1214 crossref missing$
1215 { format.in.ed.booktitle "booktitle" output.check
1216 format.bvolume output
1217 format.number.series output
1218 titlenote empty$
1219 'skip$
1220 { new.sentence
1221 titlenote output }
1222 if$
1223 format.chapter.pages output
1224 new.sentence
1225 format.publisher.address output
1226 }
1227 { format.incoll.inproc.crossref output.nonnull
1228 format.bvolume output
1229 titlenote empty$
1230 'skip$
1231 { new.sentence
1232 titlenote output }
1233 if$
1234 format.chapter.pages output
1235 }
1236 if$
1237 new.block
1238 format.note output
1239 fin.entry
1240 }
1241
1242 FUNCTION {inloosecollection}
1243 { output.bibitem
1244 format.authors "author" output.check
1245 author format.key output
1246 format.date "year" output.check
1247 date.block
1248 format.btitle "title" output.check
1249 new.block
1250 crossref missing$
1251 { format.in.ed.booktitle "booktitle" output.check
1252 format.bvolume output
1253 format.number.series output
1254 titlenote empty$
1255 'skip$
1256 { new.sentence
1257 titlenote output }
1258 if$
1259 format.chapter.pages output
1260 new.sentence
1261 format.publisher.address output
1262 }
1263 { format.incoll.inproc.crossref output.nonnull
1264 format.bvolume output
1265 titlenote empty$
1266 'skip$
1267 { new.sentence
1268 titlenote output }
1269 if$
1270 format.chapter.pages output
1271 }
1272 if$
1273 new.block
1274 format.note output
1275 fin.entry
1276 }
1277
1278
1279
1280 FUNCTION {inproceedings}
1281 { output.bibitem
1282 format.authors "author" output.check
1283 author format.key output
1284 format.date "year" output.check
1285 date.block
1286 format.title "title" output.check
1287 new.block
1288 crossref missing$
1289 { format.in.ed.booktitle "booktitle" output.check
1290 format.bvolume output
1291 format.number.series output
1292 format.pages output
1293 new.sentence
1294 publisher empty$
1295 { format.organization.address output }
1296 { organization "organization" bibinfo.check output
1297 format.publisher.address output
1298 }
1299 if$
1300 }
1301 { format.incoll.inproc.crossref output.nonnull
1302 format.pages output
1303 }
1304 if$
1305 new.block
1306 format.note output
1307 fin.entry
1308 }
1309 FUNCTION {conference} { inproceedings }
1310 FUNCTION {manual}
1311 { output.bibitem
1312 format.authors output
1313 author format.key output
1314 format.date "year" output.check
1315 date.block
1316 format.btitle "title" output.check
1317 edition empty$
1318 'skip$
1319 {new.sentence
1320 format.edition output}
1321 if$
1322 titlenote empty$
1323 'skip$
1324 { new.sentence
1325 titlenote output }
1326 if$
1327 organization address new.block.checkb
1328 organization "organization" bibinfo.check output
1329 address "address" bibinfo.check output
1330 new.block
1331 format.note output
1332 fin.entry
1333 }
1334
1335 FUNCTION {mastersthesis}
1336 { output.bibitem
1337 format.authors "author" output.check
1338 author format.key output
1339 format.date "year" output.check
1340 date.block
1341 format.btitle
1342 "title" output.check
1343 titlenote empty$
1344 'skip$
1345 { new.sentence
1346 titlenote output }
1347 if$
1348 new.block
1349 bbl.mthesis format.thesis.type output.nonnull
1350 school "school" bibinfo.warn output
1351 address "address" bibinfo.check output
1352 new.block
1353 format.note output
1354 fin.entry
1355 }
1356
1357 FUNCTION {misc}
1358 { output.bibitem
1359 format.authors output
1360 author format.key output
1361 format.date "year" output.check
1362 date.block
1363 format.title output
1364 titlenote empty$
1365 'skip$
1366 { new.sentence
1367 titlenote output }
1368 if$
1369 new.block
1370 howpublished "howpublished" bibinfo.check output
1371 new.block
1372 format.note output
1373 fin.entry
1374 }
1375 FUNCTION {phdthesis}
1376 { output.bibitem
1377 format.authors "author" output.check
1378 author format.key output
1379 format.date "year" output.check
1380 date.block
1381 format.btitle
1382 "title" output.check
1383 titlenote empty$
1384 'skip$
1385 { new.sentence
1386 titlenote output }
1387 if$
1388 new.block
1389 bbl.phdthesis format.thesis.type output.nonnull
1390 school "school" bibinfo.warn output
1391 address "address" bibinfo.check output
1392 new.block
1393 format.note output
1394 fin.entry
1395 }
1396
1397 FUNCTION {proceedings}
1398 { output.bibitem
1399 format.editors output
1400 editor format.key output
1401 format.date "year" output.check
1402 date.block
1403 format.btitle "title" output.check
1404 new.sentence
1405 format.bvolume output
1406 format.number.series output
1407 titlenote empty$
1408 'skip$
1409 { new.sentence
1410 titlenote output }
1411 if$
1412 new.sentence
1413 publisher empty$
1414 { format.organization.address output }
1415 { organization "organization" bibinfo.check output
1416 format.publisher.address output
1417 }
1418 if$
1419 new.block
1420 format.note output
1421 fin.entry
1422 }
1423
1424 FUNCTION {techreport}
1425 { output.bibitem
1426 format.authors "author" output.check
1427 author format.key output
1428 format.date "year" output.check
1429 date.block
1430 format.title
1431 "title" output.check
1432 titlenote empty$
1433 'skip$
1434 { new.sentence
1435 titlenote output }
1436 if$
1437 new.block
1438 format.tr.number output.nonnull
1439 institution "institution" bibinfo.warn output
1440 address "address" bibinfo.check output
1441 new.block
1442 format.note output
1443 fin.entry
1444 }
1445
1446 FUNCTION {unpublished}
1447 { output.bibitem
1448 format.authors "author" output.check
1449 author format.key output
1450 format.date "year" output.check
1451 date.block
1452 format.title "title" output.check
1453 titlenote empty$
1454 'skip$
1455 { new.sentence
1456 titlenote output }
1457 if$
1458 new.block
1459 format.note "note" output.check
1460 fin.entry
1461 }
1462
1463 FUNCTION {default.type} { misc }
1464 READ
1465 FUNCTION {sortify}
1466 { purify$
1467 "l" change.case$
1468 }
1469 INTEGERS { len }
1470 FUNCTION {chop.word}
1471 { 's :=
1472 'len :=
1473 s #1 len substring$ =
1474 { s len #1 + global.max$ substring$ }
1475 's
1476 if$
1477 }
1478 FUNCTION {format.lab.names}
1479 { 's :=
1480 "" 't :=
1481 s #1 "{vv~}{ll}" format.name$
1482 s num.names$ duplicate$
1483 #2 >
1484 { pop$
1485 " " * bbl.etal *
1486 }
1487 { #2 <
1488 'skip$
1489 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1490 {
1491 " " * bbl.etal *
1492 }
1493 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
1494 * }
1495 if$
1496 }
1497 if$
1498 }
1499 if$
1500 }
1501
1502 FUNCTION {author.key.label}
1503 { author empty$
1504 { key empty$
1505 { cite$ #1 #3 substring$ }
1506 'key
1507 if$
1508 }
1509 { author format.lab.names }
1510 if$
1511 }
1512
1513 FUNCTION {author.editor.key.label}
1514 { author empty$
1515 { editor empty$
1516 { key empty$
1517 { cite$ #1 #3 substring$ }
1518 'key
1519 if$
1520 }
1521 { editor format.lab.names }
1522 if$
1523 }
1524 { author format.lab.names }
1525 if$
1526 }
1527
1528 FUNCTION {editor.key.label}
1529 { editor empty$
1530 { key empty$
1531 { cite$ #1 #3 substring$ }
1532 'key
1533 if$
1534 }
1535 { editor format.lab.names }
1536 if$
1537 }
1538
1539 FUNCTION {calc.short.authors}
1540 { type$ "book" =
1541 type$ "inbook" =
1542 or
1543 'author.editor.key.label
1544 { type$ "proceedings" =
1545 'editor.key.label
1546 'author.key.label
1547 if$
1548 }
1549 if$
1550 'short.list :=
1551 }
1552
1553 FUNCTION {calc.label}
1554 { calc.short.authors
1555 short.list
1556 "("
1557 *
1558 year duplicate$ empty$
1559 short.list key field.or.null = or
1560 { pop$ "" }
1561 'skip$
1562 if$
1563 *
1564 'label :=
1565 }
1566
1567 FUNCTION {sort.format.names}
1568 { 's :=
1569 #1 'nameptr :=
1570 ""
1571 s num.names$ 'numnames :=
1572 numnames 'namesleft :=
1573 { namesleft #0 > }
1574 { s nameptr
1575 "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}"
1576 format.name$ 't :=
1577 nameptr #1 >
1578 {
1579 " " *
1580 namesleft #1 = t "others" = and
1581 { "zzzzz" 't := }
1582 'skip$
1583 if$
1584 t sortify *
1585 }
1586 { t sortify * }
1587 if$
1588 nameptr #1 + 'nameptr :=
1589 namesleft #1 - 'namesleft :=
1590 }
1591 while$
1592 }
1593
1594 FUNCTION {sort.format.title}
1595 { 't :=
1596 "A " #2
1597 "An " #3
1598 "The " #4 t chop.word
1599 chop.word
1600 chop.word
1601 sortify
1602 #1 global.max$ substring$
1603 }
1604 FUNCTION {author.sort}
1605 { author empty$
1606 { key empty$
1607 { "to sort, need author or key in " cite$ * warning$
1608 ""
1609 }
1610 { key sortify }
1611 if$
1612 }
1613 { author sort.format.names }
1614 if$
1615 }
1616 FUNCTION {author.editor.sort}
1617 { author empty$
1618 { editor empty$
1619 { key empty$
1620 { "to sort, need author, editor, or key in " cite$ * warning$
1621 ""
1622 }
1623 { key sortify }
1624 if$
1625 }
1626 { editor sort.format.names }
1627 if$
1628 }
1629 { author sort.format.names }
1630 if$
1631 }
1632 FUNCTION {editor.sort}
1633 { editor empty$
1634 { key empty$
1635 { "to sort, need editor or key in " cite$ * warning$
1636 ""
1637 }
1638 { key sortify }
1639 if$
1640 }
1641 { editor sort.format.names }
1642 if$
1643 }
1644 FUNCTION {presort}
1645 { calc.label
1646 label sortify
1647 " "
1648 *
1649 type$ "book" =
1650 type$ "inbook" =
1651 or
1652 'author.editor.sort
1653 { type$ "proceedings" =
1654 'editor.sort
1655 'author.sort
1656 if$
1657 }
1658 if$
1659 #1 entry.max$ substring$
1660 'sort.label :=
1661 sort.label
1662 *
1663 " "
1664 *
1665 title field.or.null
1666 sort.format.title
1667 *
1668 #1 entry.max$ substring$
1669 'sort.key$ :=
1670 }
1671
1672 ITERATE {presort}
1673 SORT
1674 STRINGS { last.label next.extra }
1675 INTEGERS { last.extra.num last.extra.num.extended last.extra.num.blank number.label }
1676 FUNCTION {initialize.extra.label.stuff}
1677 { #0 int.to.chr$ 'last.label :=
1678 "" 'next.extra :=
1679 #0 'last.extra.num :=
1680 "a" chr.to.int$ #1 - 'last.extra.num.blank :=
1681 last.extra.num.blank 'last.extra.num.extended :=
1682 #0 'number.label :=
1683 }
1684 FUNCTION {forward.pass}
1685 { last.label label =
1686 { last.extra.num #1 + 'last.extra.num :=
1687 last.extra.num "z" chr.to.int$ >
1688 { "a" chr.to.int$ 'last.extra.num :=
1689 last.extra.num.extended #1 + 'last.extra.num.extended :=
1690 }
1691 'skip$
1692 if$
1693 last.extra.num.extended last.extra.num.blank >
1694 { last.extra.num.extended int.to.chr$
1695 last.extra.num int.to.chr$
1696 * 'extra.label := }
1697 { last.extra.num int.to.chr$ 'extra.label := }
1698 if$
1699 }
1700 { "a" chr.to.int$ 'last.extra.num :=
1701 "" 'extra.label :=
1702 label 'last.label :=
1703 }
1704 if$
1705 number.label #1 + 'number.label :=
1706 }
1707 FUNCTION {reverse.pass}
1708 { next.extra "b" =
1709 { "a" 'extra.label := }
1710 'skip$
1711 if$
1712 extra.label 'next.extra :=
1713 extra.label
1714 duplicate$ empty$
1715 'skip$
1716 { "{\natexlab{" swap$ * "}}" * }
1717 if$
1718 'extra.label :=
1719 label extra.label * 'label :=
1720 }
1721 EXECUTE {initialize.extra.label.stuff}
1722 ITERATE {forward.pass}
1723 REVERSE {reverse.pass}
1724 FUNCTION {bib.sort.order}
1725 { sort.label
1726 " "
1727 *
1728 year field.or.null sortify
1729 *
1730 " "
1731 *
1732 title field.or.null
1733 sort.format.title
1734 *
1735 #1 entry.max$ substring$
1736 'sort.key$ :=
1737 }
1738 ITERATE {bib.sort.order}
1739 SORT
1740 FUNCTION {begin.bib}
1741 { preamble$ empty$
1742 'skip$
1743 { preamble$ write$ newline$ }
1744 if$
1745 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1746 write$ newline$
1747 "\providecommand{\enquote}[1]{{}``#1''{}}"
1748 write$ newline$
1749 "\providecommand{\ensquote}[1]{{}`#1'{}}"
1750 write$ newline$
1751 "\providecommand{\natexlab}[1]{#1}"
1752 write$ newline$
1753 "\providecommand{\url}[1]{\texttt{#1}}"
1754 write$ newline$
1755 "\providecommand{\urlprefix}{}"
1756 write$ newline$
1757 "\providecommand{\doi}[1]{\url{https://doi.org/#1}}"
1758 write$ newline$
1759 "\makeatletter\newif\if@suppresscomma\@suppresscommafalse"
1760 write$ newline$
1761 "\newcommand\suppresscomma{\global\@suppresscommatrue}"
1762 write$ newline$
1763 "\newcommand\checkcomma{\if@suppresscomma\else,\fi\global\@suppresscommafalse}\makeatother"
1764 write$ newline$
1765 }
1766
1767
1768
1769 EXECUTE {begin.bib}
1770 EXECUTE {init.state.consts}
1771 ITERATE {call.type$}
1772 FUNCTION {end.bib}
1773 { newline$
1774 "\end{thebibliography}" write$ newline$
1775 }
1776 EXECUTE {end.bib}
1777 %% End of customized bst file
1778 %%
1779 %% End of file `resphilosophica.bst'.