Debian Codegraph @

texmf-dist/bibtex/bst/multibibliography/chronological.bst

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