Debian Codegraph @

texmf-dist/bibtex/bst/dvdcoll/dcbib.bst

raw
1 %%
2 %% This is file `dcbib.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% merlin.mbs (with options: `cite,seq-yr,ed-au,xmth,num-xser,isbn,issn,doi,fin-bare,xedn,nfss,')
8 %% ----------------------------------------
9 %% *** ***
10 %%
11 %% Copyright 1994-2005 Patrick W Daly
12 % ===============================================================
13 % IMPORTANT NOTICE:
14 % This bibliographic style (bst) file has been generated from one or
15 % more master bibliographic style (mbs) files, listed above.
16 %
17 % This generated file can be redistributed and/or modified under the terms
18 % of the LaTeX Project Public License Distributed from CTAN
19 % archives in directory macros/latex/base/lppl.txt; either
20 % version 1 of the License, or any later version.
21 % ===============================================================
22 % Name and version information of the main mbs file:
23 % \ProvidesFile{merlin.mbs}[2005/10/17 4.14 (PWD, AO, DPC)]
24 % For use with BibTeX version 0.99a or later
25 %-------------------------------------------------------------------
26 % This bibliography style file is intended for texts in ENGLISH
27 % This is a special pseudo-numerical bibliography style, intended to be
28 % used to list all the entries in a bib database
29 % It requires no extra package to interface to the main text.
30 % The form of the \bibitem entries is
31 % \bibitem[key]{key}...
32 %---------------------------------------------------------------------
33
34 ENTRY
35 { address
36 author
37 booktitle
38 chapter
39 doi
40 edition
41 editor
42 eid
43 howpublished
44 institution
45 isbn
46 issn
47 journal
48 key
49 month
50 note
51 number
52 organization
53 pages
54 publisher
55 school
56 series
57 title
58 type
59 volume
60 year
61 }
62 {}
63 { label }
64 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
65 FUNCTION {init.state.consts}
66 { #0 'before.all :=
67 #1 'mid.sentence :=
68 #2 'after.sentence :=
69 #3 'after.block :=
70 }
71 STRINGS { s t}
72 FUNCTION {output.nonnull}
73 { 's :=
74 output.state mid.sentence =
75 { ", " * write$ }
76 { output.state after.block =
77 { add.period$ write$
78 newline$
79 "\newblock " write$
80 }
81 { output.state before.all =
82 'write$
83 { add.period$ " " * write$ }
84 if$
85 }
86 if$
87 mid.sentence 'output.state :=
88 }
89 if$
90 s
91 }
92 FUNCTION {output}
93 { duplicate$ empty$
94 'pop$
95 'output.nonnull
96 if$
97 }
98 FUNCTION {output.check}
99 { 't :=
100 duplicate$ empty$
101 { pop$ "empty " t * " in " * cite$ * warning$ }
102 'output.nonnull
103 if$
104 }
105 FUNCTION {fin.entry}
106 { duplicate$ empty$
107 'pop$
108 'write$
109 if$
110 newline$
111 }
112
113 FUNCTION {new.block}
114 { output.state before.all =
115 'skip$
116 { after.block 'output.state := }
117 if$
118 }
119 FUNCTION {new.sentence}
120 { output.state after.block =
121 'skip$
122 { output.state before.all =
123 'skip$
124 { after.sentence 'output.state := }
125 if$
126 }
127 if$
128 }
129 FUNCTION {add.blank}
130 { " " * before.all 'output.state :=
131 }
132
133 FUNCTION {date.block}
134 {
135 new.block
136 }
137
138 FUNCTION {not}
139 { { #0 }
140 { #1 }
141 if$
142 }
143 FUNCTION {and}
144 { 'skip$
145 { pop$ #0 }
146 if$
147 }
148 FUNCTION {or}
149 { { pop$ #1 }
150 'skip$
151 if$
152 }
153 FUNCTION {new.block.checka}
154 { empty$
155 'skip$
156 'new.block
157 if$
158 }
159 FUNCTION {new.block.checkb}
160 { empty$
161 swap$ empty$
162 and
163 'skip$
164 'new.block
165 if$
166 }
167 FUNCTION {new.sentence.checka}
168 { empty$
169 'skip$
170 'new.sentence
171 if$
172 }
173 FUNCTION {new.sentence.checkb}
174 { empty$
175 swap$ empty$
176 and
177 'skip$
178 'new.sentence
179 if$
180 }
181 FUNCTION {field.or.null}
182 { duplicate$ empty$
183 { pop$ "" }
184 'skip$
185 if$
186 }
187 FUNCTION {emphasize}
188 { duplicate$ empty$
189 { pop$ "" }
190 { "\emph{" swap$ * "}" * }
191 if$
192 }
193 FUNCTION {tie.or.space.prefix}
194 { duplicate$ text.length$ #3 <
195 { "~" }
196 { " " }
197 if$
198 swap$
199 }
200
201 FUNCTION {capitalize}
202 { "u" change.case$ "t" change.case$ }
203
204 FUNCTION {space.word}
205 { " " swap$ * " " * }
206 % Here are the language-specific definitions for explicit words.
207 % Each function has a name bbl.xxx where xxx is the English word.
208 % The language selected here is ENGLISH
209 FUNCTION {bbl.and}
210 { "and"}
211
212 FUNCTION {bbl.etal}
213 { "et~al." }
214
215 FUNCTION {bbl.editors}
216 { "editors" }
217
218 FUNCTION {bbl.editor}
219 { "editor" }
220
221 FUNCTION {bbl.edby}
222 { "edited by" }
223
224 FUNCTION {bbl.edition}
225 { "edition" }
226
227 FUNCTION {bbl.volume}
228 { "volume" }
229
230 FUNCTION {bbl.of}
231 { "of" }
232
233 FUNCTION {bbl.number}
234 { "number" }
235
236 FUNCTION {bbl.nr}
237 { "no." }
238
239 FUNCTION {bbl.in}
240 { "in" }
241
242 FUNCTION {bbl.pages}
243 { "pages" }
244
245 FUNCTION {bbl.page}
246 { "page" }
247
248 FUNCTION {bbl.chapter}
249 { "chapter" }
250
251 FUNCTION {bbl.techrep}
252 { "Technical Report" }
253
254 FUNCTION {bbl.mthesis}
255 { "Master's thesis" }
256
257 FUNCTION {bbl.phdthesis}
258 { "Ph.D. thesis" }
259
260 MACRO {jan} {"January"}
261
262 MACRO {feb} {"February"}
263
264 MACRO {mar} {"March"}
265
266 MACRO {apr} {"April"}
267
268 MACRO {may} {"May"}
269
270 MACRO {jun} {"June"}
271
272 MACRO {jul} {"July"}
273
274 MACRO {aug} {"August"}
275
276 MACRO {sep} {"September"}
277
278 MACRO {oct} {"October"}
279
280 MACRO {nov} {"November"}
281
282 MACRO {dec} {"December"}
283
284 MACRO {acmcs} {"ACM Computing Surveys"}
285
286 MACRO {acta} {"Acta Informatica"}
287
288 MACRO {cacm} {"Communications of the ACM"}
289
290 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
291
292 MACRO {ibmsj} {"IBM Systems Journal"}
293
294 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
295
296 MACRO {ieeetc} {"IEEE Transactions on Computers"}
297
298 MACRO {ieeetcad}
299 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
300
301 MACRO {ipl} {"Information Processing Letters"}
302
303 MACRO {jacm} {"Journal of the ACM"}
304
305 MACRO {jcss} {"Journal of Computer and System Sciences"}
306
307 MACRO {scp} {"Science of Computer Programming"}
308
309 MACRO {sicomp} {"SIAM Journal on Computing"}
310
311 MACRO {tocs} {"ACM Transactions on Computer Systems"}
312
313 MACRO {tods} {"ACM Transactions on Database Systems"}
314
315 MACRO {tog} {"ACM Transactions on Graphics"}
316
317 MACRO {toms} {"ACM Transactions on Mathematical Software"}
318
319 MACRO {toois} {"ACM Transactions on Office Information Systems"}
320
321 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
322
323 MACRO {tcs} {"Theoretical Computer Science"}
324 FUNCTION {bibinfo.check}
325 { swap$
326 duplicate$ missing$
327 {
328 pop$ pop$
329 ""
330 }
331 { duplicate$ empty$
332 {
333 swap$ pop$
334 }
335 { swap$
336 pop$
337 }
338 if$
339 }
340 if$
341 }
342 FUNCTION {bibinfo.warn}
343 { swap$
344 duplicate$ missing$
345 {
346 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
347 ""
348 }
349 { duplicate$ empty$
350 {
351 swap$ "empty " swap$ * " in " * cite$ * warning$
352 }
353 { swap$
354 pop$
355 }
356 if$
357 }
358 if$
359 }
360 STRINGS { bibinfo}
361 INTEGERS { nameptr namesleft numnames }
362
363 FUNCTION {format.names}
364 { 'bibinfo :=
365 duplicate$ empty$ 'skip$ {
366 's :=
367 "" 't :=
368 #1 'nameptr :=
369 s num.names$ 'numnames :=
370 numnames 'namesleft :=
371 { namesleft #0 > }
372 { s nameptr
373 "{ff~}{vv~}{ll}{, jj}"
374 format.name$
375 bibinfo bibinfo.check
376 't :=
377 nameptr #1 >
378 {
379 namesleft #1 >
380 { ", " * t * }
381 {
382 s nameptr "{ll}" format.name$ duplicate$ "others" =
383 { 't := }
384 { pop$ }
385 if$
386 numnames #2 >
387 { "," * }
388 'skip$
389 if$
390 t "others" =
391 {
392 " " * bbl.etal *
393 }
394 {
395 bbl.and
396 space.word * t *
397 }
398 if$
399 }
400 if$
401 }
402 't
403 if$
404 nameptr #1 + 'nameptr :=
405 namesleft #1 - 'namesleft :=
406 }
407 while$
408 } if$
409 }
410 FUNCTION {format.names.ed}
411 {
412 format.names
413 }
414 FUNCTION {format.authors}
415 { author "author" format.names
416 }
417 FUNCTION {get.bbl.editor}
418 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
419
420 FUNCTION {format.editors}
421 { editor "editor" format.names duplicate$ empty$ 'skip$
422 {
423 "," *
424 " " *
425 get.bbl.editor
426 *
427 }
428 if$
429 }
430 FUNCTION {format.isbn}
431 { isbn "isbn" bibinfo.check
432 duplicate$ empty$ 'skip$
433 {
434 new.block
435 "ISBN " swap$ *
436 }
437 if$
438 }
439
440 FUNCTION {format.issn}
441 { issn "issn" bibinfo.check
442 duplicate$ empty$ 'skip$
443 {
444 new.block
445 "ISSN " swap$ *
446 }
447 if$
448 }
449
450 FUNCTION {format.doi}
451 { doi "doi" bibinfo.check
452 duplicate$ empty$ 'skip$
453 {
454 new.block
455 "\doi{" swap$ * "}" *
456 }
457 if$
458 }
459 FUNCTION {format.note}
460 {
461 note empty$
462 { "" }
463 { note #1 #1 substring$
464 duplicate$ "{" =
465 'skip$
466 { output.state mid.sentence =
467 { "l" }
468 { "u" }
469 if$
470 change.case$
471 }
472 if$
473 note #2 global.max$ substring$ * "note" bibinfo.check
474 }
475 if$
476 }
477
478 FUNCTION {format.title}
479 { title
480 duplicate$ empty$ 'skip$
481 { "t" change.case$ }
482 if$
483 "title" bibinfo.check
484 }
485 FUNCTION {output.bibitem}
486 { newline$
487 "\bibitem[" label * "]{" * write$
488 cite$ write$
489 "}" write$
490 newline$
491 ""
492 before.all 'output.state :=
493 }
494
495 FUNCTION {n.dashify}
496 {
497 't :=
498 ""
499 { t empty$ not }
500 { t #1 #1 substring$ "-" =
501 { t #1 #2 substring$ "--" = not
502 { "--" *
503 t #2 global.max$ substring$ 't :=
504 }
505 { { t #1 #1 substring$ "-" = }
506 { "-" *
507 t #2 global.max$ substring$ 't :=
508 }
509 while$
510 }
511 if$
512 }
513 { t #1 #1 substring$ *
514 t #2 global.max$ substring$ 't :=
515 }
516 if$
517 }
518 while$
519 }
520
521 FUNCTION {word.in}
522 { bbl.in capitalize
523 " " * }
524
525 FUNCTION {format.date}
526 {
527 title
528 skip$
529 }
530 FUNCTION {format.btitle}
531 { title "title" bibinfo.check
532 duplicate$ empty$ 'skip$
533 {
534 emphasize
535 }
536 if$
537 }
538 FUNCTION {either.or.check}
539 { empty$
540 'pop$
541 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
542 if$
543 }
544 FUNCTION {format.bvolume}
545 { volume empty$
546 { "" }
547 { bbl.volume volume tie.or.space.prefix
548 "volume" bibinfo.check * *
549 series "series" bibinfo.check
550 duplicate$ empty$ 'pop$
551 { swap$ bbl.of space.word * swap$
552 emphasize * }
553 if$
554 "volume and number" number either.or.check
555 }
556 if$
557 }
558 FUNCTION {format.number.series}
559 { volume empty$
560 { number empty$
561 { series field.or.null }
562 { series empty$
563 { number "number" bibinfo.check }
564 { output.state mid.sentence =
565 { bbl.number }
566 { bbl.number capitalize }
567 if$
568 number tie.or.space.prefix "number" bibinfo.check * *
569 bbl.in space.word *
570 series "series" bibinfo.check *
571 }
572 if$
573 }
574 if$
575 }
576 { "" }
577 if$
578 }
579
580 FUNCTION {format.edition}
581 { edition duplicate$ empty$ 'skip$
582 {
583 output.state mid.sentence =
584 { "l" }
585 { "t" }
586 if$ change.case$
587 "edition" bibinfo.check
588 " " * bbl.edition *
589 }
590 if$
591 }
592 INTEGERS { multiresult }
593 FUNCTION {multi.page.check}
594 { 't :=
595 #0 'multiresult :=
596 { multiresult not
597 t empty$ not
598 and
599 }
600 { t #1 #1 substring$
601 duplicate$ "-" =
602 swap$ duplicate$ "," =
603 swap$ "+" =
604 or or
605 { #1 'multiresult := }
606 { t #2 global.max$ substring$ 't := }
607 if$
608 }
609 while$
610 multiresult
611 }
612 FUNCTION {format.pages}
613 { pages duplicate$ empty$ 'skip$
614 { duplicate$ multi.page.check
615 {
616 bbl.pages swap$
617 n.dashify
618 }
619 {
620 bbl.page swap$
621 }
622 if$
623 tie.or.space.prefix
624 "pages" bibinfo.check
625 * *
626 }
627 if$
628 }
629 FUNCTION {format.journal.pages}
630 { pages duplicate$ empty$ 'pop$
631 { swap$ duplicate$ empty$
632 { pop$ pop$ format.pages }
633 {
634 ":" *
635 swap$
636 n.dashify
637 "pages" bibinfo.check
638 *
639 }
640 if$
641 }
642 if$
643 }
644 FUNCTION {format.journal.eid}
645 { eid "eid" bibinfo.check
646 duplicate$ empty$ 'pop$
647 { swap$ duplicate$ empty$ 'skip$
648 {
649 ":" *
650 }
651 if$
652 swap$ *
653 }
654 if$
655 }
656 FUNCTION {format.vol.num.pages}
657 { volume field.or.null
658 duplicate$ empty$ 'skip$
659 {
660 "volume" bibinfo.check
661 }
662 if$
663 number "number" bibinfo.check duplicate$ empty$ 'skip$
664 {
665 swap$ duplicate$ empty$
666 { "there's a number but no volume in " cite$ * warning$ }
667 'skip$
668 if$
669 swap$
670 "(" swap$ * ")" *
671 }
672 if$ *
673 eid empty$
674 { format.journal.pages }
675 { format.journal.eid }
676 if$
677 }
678
679 FUNCTION {format.chapter.pages}
680 { chapter empty$
681 'format.pages
682 { type empty$
683 { bbl.chapter }
684 { type "l" change.case$
685 "type" bibinfo.check
686 }
687 if$
688 chapter tie.or.space.prefix
689 "chapter" bibinfo.check
690 * *
691 pages empty$
692 'skip$
693 { ", " * format.pages * }
694 if$
695 }
696 if$
697 }
698
699 FUNCTION {format.booktitle}
700 {
701 booktitle "booktitle" bibinfo.check
702 emphasize
703 }
704 FUNCTION {format.in.ed.booktitle}
705 { format.booktitle duplicate$ empty$ 'skip$
706 {
707 editor "editor" format.names.ed duplicate$ empty$ 'pop$
708 {
709 "," *
710 " " *
711 get.bbl.editor
712 ", " *
713 * swap$
714 * }
715 if$
716 word.in swap$ *
717 }
718 if$
719 }
720 FUNCTION {empty.misc.check}
721 { author empty$ title empty$ howpublished empty$
722 month empty$ year empty$ note empty$
723 and and and and and
724 key empty$ not and
725 { "all relevant fields are empty in " cite$ * warning$ }
726 'skip$
727 if$
728 }
729 FUNCTION {format.thesis.type}
730 { type duplicate$ empty$
731 'pop$
732 { swap$ pop$
733 "t" change.case$ "type" bibinfo.check
734 }
735 if$
736 }
737 FUNCTION {format.tr.number}
738 { number "number" bibinfo.check
739 type duplicate$ empty$
740 { pop$ bbl.techrep }
741 'skip$
742 if$
743 "type" bibinfo.check
744 swap$ duplicate$ empty$
745 { pop$ "t" change.case$ }
746 { tie.or.space.prefix * * }
747 if$
748 }
749 FUNCTION {format.article.crossref}
750 {
751 key duplicate$ empty$
752 { pop$
753 journal duplicate$ empty$
754 { "need key or journal for " cite$ * " to crossref " * crossref * warning$ }
755 { "journal" bibinfo.check emphasize word.in swap$ * }
756 if$
757 }
758 { word.in swap$ * " " *}
759 if$
760 " \cite{" * crossref * "}" *
761 }
762 FUNCTION {format.crossref.editor}
763 { editor #1 "{vv~}{ll}" format.name$
764 "editor" bibinfo.check
765 editor num.names$ duplicate$
766 #2 >
767 { pop$
768 "editor" bibinfo.check
769 " " * bbl.etal
770 *
771 }
772 { #2 <
773 'skip$
774 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
775 {
776 "editor" bibinfo.check
777 " " * bbl.etal
778 *
779 }
780 {
781 bbl.and space.word
782 * editor #2 "{vv~}{ll}" format.name$
783 "editor" bibinfo.check
784 *
785 }
786 if$
787 }
788 if$
789 }
790 if$
791 }
792 FUNCTION {format.book.crossref}
793 { volume duplicate$ empty$
794 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
795 pop$ word.in
796 }
797 { bbl.volume
798 capitalize
799 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
800 }
801 if$
802 editor empty$
803 editor field.or.null author field.or.null =
804 or
805 { key empty$
806 { series empty$
807 { "need editor, key, or series for " cite$ * " to crossref " *
808 crossref * warning$
809 "" *
810 }
811 { series emphasize * }
812 if$
813 }
814 { key * }
815 if$
816 }
817 { format.crossref.editor * }
818 if$
819 " \cite{" * crossref * "}" *
820 }
821 FUNCTION {format.incoll.inproc.crossref}
822 {
823 editor empty$
824 editor field.or.null author field.or.null =
825 or
826 { key empty$
827 { format.booktitle duplicate$ empty$
828 { "need editor, key, or booktitle for " cite$ * " to crossref " *
829 crossref * warning$
830 }
831 { word.in swap$ * }
832 if$
833 }
834 { word.in key * " " *}
835 if$
836 }
837 { word.in format.crossref.editor * " " *}
838 if$
839 " \cite{" * crossref * "}" *
840 }
841 FUNCTION {format.org.or.pub}
842 { 't :=
843 ""
844 address empty$ t empty$ and
845 'skip$
846 {
847 t empty$
848 { address "address" bibinfo.check *
849 }
850 { t *
851 address empty$
852 'skip$
853 { ", " * address "address" bibinfo.check * }
854 if$
855 }
856 if$
857 }
858 if$
859 }
860 FUNCTION {format.publisher.address}
861 { publisher "publisher" bibinfo.warn format.org.or.pub
862 }
863
864 FUNCTION {format.organization.address}
865 { organization "organization" bibinfo.check format.org.or.pub
866 }
867
868 FUNCTION {article}
869 { output.bibitem
870 format.authors "author" output.check
871 new.block
872 format.title "title" output.check
873 new.block
874 crossref missing$
875 {
876 journal
877 "journal" bibinfo.check
878 emphasize
879 "journal" output.check
880 format.vol.num.pages output
881 format.date "year" output.check
882 }
883 { format.article.crossref output.nonnull
884 format.pages output
885 }
886 if$
887 format.issn output
888 format.doi output
889 new.block
890 format.note output
891 fin.entry
892 }
893 FUNCTION {book}
894 { output.bibitem
895 author empty$
896 { format.editors "author and editor" output.check
897 }
898 { format.authors output.nonnull
899 crossref missing$
900 { "author and editor" editor either.or.check }
901 'skip$
902 if$
903 }
904 if$
905 new.block
906 format.btitle "title" output.check
907 crossref missing$
908 { format.bvolume output
909 new.block
910 format.number.series output
911 new.sentence
912 format.publisher.address output
913 }
914 {
915 new.block
916 format.book.crossref output.nonnull
917 }
918 if$
919 format.edition output
920 format.date "year" output.check
921 format.isbn output
922 format.doi output
923 new.block
924 format.note output
925 fin.entry
926 }
927 FUNCTION {booklet}
928 { output.bibitem
929 format.authors output
930 new.block
931 format.title "title" output.check
932 new.block
933 howpublished "howpublished" bibinfo.check output
934 address "address" bibinfo.check output
935 format.date output
936 format.isbn output
937 format.doi output
938 new.block
939 format.note output
940 fin.entry
941 }
942
943 FUNCTION {inbook}
944 { output.bibitem
945 author empty$
946 { format.editors "author and editor" output.check
947 }
948 { format.authors output.nonnull
949 crossref missing$
950 { "author and editor" editor either.or.check }
951 'skip$
952 if$
953 }
954 if$
955 new.block
956 format.btitle "title" output.check
957 crossref missing$
958 {
959 format.bvolume output
960 format.chapter.pages "chapter and pages" output.check
961 new.block
962 format.number.series output
963 new.sentence
964 format.publisher.address output
965 }
966 {
967 format.chapter.pages "chapter and pages" output.check
968 new.block
969 format.book.crossref output.nonnull
970 }
971 if$
972 format.edition output
973 format.date "year" output.check
974 crossref missing$
975 { format.isbn output }
976 'skip$
977 if$
978 format.doi output
979 new.block
980 format.note output
981 fin.entry
982 }
983
984 FUNCTION {incollection}
985 { output.bibitem
986 format.authors "author" output.check
987 new.block
988 format.title "title" output.check
989 new.block
990 crossref missing$
991 { format.in.ed.booktitle "booktitle" output.check
992 format.bvolume output
993 format.number.series output
994 format.chapter.pages output
995 new.sentence
996 format.publisher.address output
997 format.edition output
998 format.date "year" output.check
999 format.isbn output
1000 }
1001 { format.incoll.inproc.crossref output.nonnull
1002 format.chapter.pages output
1003 }
1004 if$
1005 format.doi output
1006 new.block
1007 format.note output
1008 fin.entry
1009 }
1010 FUNCTION {inproceedings}
1011 { output.bibitem
1012 format.authors "author" output.check
1013 new.block
1014 format.title "title" output.check
1015 new.block
1016 crossref missing$
1017 { format.in.ed.booktitle "booktitle" output.check
1018 format.bvolume output
1019 format.number.series output
1020 format.pages output
1021 new.sentence
1022 publisher empty$
1023 { format.organization.address output }
1024 { organization "organization" bibinfo.check output
1025 format.publisher.address output
1026 }
1027 if$
1028 format.date "year" output.check
1029 format.isbn output
1030 format.issn output
1031 }
1032 { format.incoll.inproc.crossref output.nonnull
1033 format.pages output
1034 }
1035 if$
1036 format.doi output
1037 new.block
1038 format.note output
1039 fin.entry
1040 }
1041 FUNCTION {conference} { inproceedings }
1042 FUNCTION {manual}
1043 { output.bibitem
1044 author empty$
1045 { organization "organization" bibinfo.check
1046 duplicate$ empty$ 'pop$
1047 { output
1048 address "address" bibinfo.check output
1049 }
1050 if$
1051 }
1052 { format.authors output.nonnull }
1053 if$
1054 new.block
1055 format.btitle "title" output.check
1056 author empty$
1057 { organization empty$
1058 {
1059 address new.block.checka
1060 address "address" bibinfo.check output
1061 }
1062 'skip$
1063 if$
1064 }
1065 {
1066 organization address new.block.checkb
1067 organization "organization" bibinfo.check output
1068 address "address" bibinfo.check output
1069 }
1070 if$
1071 format.edition output
1072 format.date output
1073 format.doi output
1074 new.block
1075 format.note output
1076 fin.entry
1077 }
1078
1079 FUNCTION {mastersthesis}
1080 { output.bibitem
1081 format.authors "author" output.check
1082 new.block
1083 format.btitle
1084 "title" output.check
1085 new.block
1086 bbl.mthesis format.thesis.type output.nonnull
1087 school "school" bibinfo.warn output
1088 address "address" bibinfo.check output
1089 format.date "year" output.check
1090 format.doi output
1091 new.block
1092 format.note output
1093 fin.entry
1094 }
1095
1096 FUNCTION {misc}
1097 { output.bibitem
1098 format.authors output
1099 title howpublished new.block.checkb
1100 format.title output
1101 howpublished new.block.checka
1102 howpublished "howpublished" bibinfo.check output
1103 format.date output
1104 format.doi output
1105 new.block
1106 format.note output
1107 fin.entry
1108 empty.misc.check
1109 }
1110 FUNCTION {phdthesis}
1111 { output.bibitem
1112 format.authors "author" output.check
1113 new.block
1114 format.btitle
1115 "title" output.check
1116 new.block
1117 bbl.phdthesis format.thesis.type output.nonnull
1118 school "school" bibinfo.warn output
1119 address "address" bibinfo.check output
1120 format.date "year" output.check
1121 format.doi output
1122 new.block
1123 format.note output
1124 fin.entry
1125 }
1126
1127 FUNCTION {proceedings}
1128 { output.bibitem
1129 editor empty$
1130 { organization "organization" bibinfo.check output
1131 }
1132 { format.editors output.nonnull }
1133 if$
1134 new.block
1135 format.btitle "title" output.check
1136 format.bvolume output
1137 format.number.series output
1138 editor empty$
1139 { publisher empty$
1140 'skip$
1141 {
1142 new.sentence
1143 format.publisher.address output
1144 }
1145 if$
1146 }
1147 { publisher empty$
1148 {
1149 new.sentence
1150 format.organization.address output }
1151 {
1152 new.sentence
1153 organization "organization" bibinfo.check output
1154 format.publisher.address output
1155 }
1156 if$
1157 }
1158 if$
1159 format.date "year" output.check
1160 format.isbn output
1161 format.issn output
1162 format.doi output
1163 new.block
1164 format.note output
1165 fin.entry
1166 }
1167
1168 FUNCTION {techreport}
1169 { output.bibitem
1170 format.authors "author" output.check
1171 new.block
1172 format.title
1173 "title" output.check
1174 new.block
1175 format.tr.number output.nonnull
1176 institution "institution" bibinfo.warn output
1177 address "address" bibinfo.check output
1178 format.date "year" output.check
1179 format.doi output
1180 new.block
1181 format.note output
1182 fin.entry
1183 }
1184
1185 FUNCTION {unpublished}
1186 { output.bibitem
1187 format.authors "author" output.check
1188 new.block
1189 format.title "title" output.check
1190 format.date output
1191 format.doi output
1192 new.block
1193 format.note "note" output.check
1194 fin.entry
1195 }
1196
1197 FUNCTION {default.type} { misc }
1198 READ
1199 FUNCTION {sortify}
1200 { purify$
1201 "l" change.case$
1202 }
1203 INTEGERS { len }
1204 FUNCTION {chop.word}
1205 { 's :=
1206 'len :=
1207 s #1 len substring$ =
1208 { s len #1 + global.max$ substring$ }
1209 's
1210 if$
1211 }
1212 FUNCTION {sort.format.names}
1213 { 's :=
1214 #1 'nameptr :=
1215 ""
1216 s num.names$ 'numnames :=
1217 numnames 'namesleft :=
1218 { namesleft #0 > }
1219 { s nameptr
1220 "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}"
1221 format.name$ 't :=
1222 nameptr #1 >
1223 {
1224 " " *
1225 namesleft #1 = t "others" = and
1226 { "zzzzz" * }
1227 { t sortify * }
1228 if$
1229 }
1230 { t sortify * }
1231 if$
1232 nameptr #1 + 'nameptr :=
1233 namesleft #1 - 'namesleft :=
1234 }
1235 while$
1236 }
1237
1238 FUNCTION {sort.format.title}
1239 { 't :=
1240 "A " #2
1241 "An " #3
1242 "The " #4 t chop.word
1243 chop.word
1244 chop.word
1245 sortify
1246 #1 global.max$ substring$
1247 }
1248 FUNCTION {author.sort}
1249 { author empty$
1250 { key empty$
1251 { "to sort, need author or key in " cite$ * warning$
1252 ""
1253 }
1254 { key sortify }
1255 if$
1256 }
1257 { author sort.format.names }
1258 if$
1259 }
1260 FUNCTION {author.editor.sort}
1261 { author empty$
1262 { editor empty$
1263 { key empty$
1264 { "to sort, need author, editor, or key in " cite$ * warning$
1265 ""
1266 }
1267 { key sortify }
1268 if$
1269 }
1270 { editor sort.format.names }
1271 if$
1272 }
1273 { author sort.format.names }
1274 if$
1275 }
1276 FUNCTION {author.organization.sort}
1277 { author empty$
1278 { organization empty$
1279 { key empty$
1280 { "to sort, need author, organization, or key in " cite$ * warning$
1281 ""
1282 }
1283 { key sortify }
1284 if$
1285 }
1286 { "The " #4 organization chop.word sortify }
1287 if$
1288 }
1289 { author sort.format.names }
1290 if$
1291 }
1292 FUNCTION {editor.organization.sort}
1293 { editor empty$
1294 { organization empty$
1295 { key empty$
1296 { "to sort, need editor, organization, or key in " cite$ * warning$
1297 ""
1298 }
1299 { key sortify }
1300 if$
1301 }
1302 { "The " #4 organization chop.word sortify }
1303 if$
1304 }
1305 { editor sort.format.names }
1306 if$
1307 }
1308 FUNCTION {presort}
1309 { type$ "book" =
1310 type$ "inbook" =
1311 or
1312 'author.editor.sort
1313 { type$ "proceedings" =
1314 'editor.organization.sort
1315 { type$ "manual" =
1316 'author.organization.sort
1317 'author.sort
1318 if$
1319 }
1320 if$
1321 }
1322 if$
1323 " "
1324 *
1325 year field.or.null sortify
1326 " "
1327 *
1328 swap$ *
1329 title field.or.null
1330 sort.format.title
1331 *
1332 #1 entry.max$ substring$
1333 'sort.key$ :=
1334 }
1335 ITERATE {presort}
1336 SORT
1337 STRINGS { longest.label }
1338 INTEGERS { number.label longest.label.width }
1339 FUNCTION {initialize.longest.label}
1340 { "" 'longest.label :=
1341 #1 'number.label :=
1342 #0 'longest.label.width :=
1343 }
1344 FUNCTION {longest.label.pass}
1345 { cite$ 'label :=
1346 label width$ longest.label.width >
1347 { label 'longest.label :=
1348 label width$ 'longest.label.width :=
1349 }
1350 'skip$
1351 if$
1352 }
1353 EXECUTE {initialize.longest.label}
1354 ITERATE {longest.label.pass}
1355 FUNCTION {begin.bib}
1356 { preamble$ empty$
1357 'skip$
1358 { preamble$ write$ newline$ }
1359 if$
1360 "\begin{thebibliography}{" longest.label * "}" *
1361 write$ newline$
1362 "\expandafter\ifx\csname urlstyle\endcsname\relax"
1363 write$ newline$
1364 " \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else"
1365 write$ newline$
1366 " \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi"
1367 write$ newline$
1368 }
1369 EXECUTE {begin.bib}
1370 EXECUTE {init.state.consts}
1371 ITERATE {call.type$}
1372 FUNCTION {end.bib}
1373 { newline$
1374 "\end{thebibliography}" write$ newline$
1375 }
1376 EXECUTE {end.bib}
1377 %% End of customized bst file
1378 %%
1379 %% End of file `dcbib4.bst'.