Debian Codegraph @

texmf-dist/bibtex/bst/uestcthesis/uestcthesis.bst

raw
1 %%
2 %% This is file `uestcthesis.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% uestcthesis.dtx (with options: `bst')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright 2012-2013 Shi Fujun <[email protected]>
12 %%
13 %% This work may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either version 1.3
15 %% of this license or (at your option) any later version.
16 %% The latest version of this license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.3 or later is part of all distributions of LaTeX
19 %% version 2005/12/01 or later.
20 %%
21 %% This work has the LPPL maintenance status `maintained'.
22 %%
23 %% The Current Maintainer of this work is Shi Fujun <[email protected]>.
24 %%
25 %% This work consists of the files uestcthesis.dtx, uestcthesis.ins
26 %% and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
27 %% Other files in this work's package are belongs to the respective owners.
28 %%
29
30 %%本文件基于吴凯制作的GBT7714-2005NLang.bst(1 Beta 2 测试版2012年9月20日)修改而成。
31 %%修改内容包括将英文作者的名放前姓放后,设置行距。可与原始文件对比修改位置。
32 %%根据GBT7714-2005NLang.bst中copyright的要求,将文件名修改成uestcthesis.bst。
33 %%对吴凯的杰出工作表示感谢!
34 ENTRY
35 { address
36 author
37 booktitle
38 chapter
39 edition
40 editor
41 howpublished
42 institution
43 journal
44 key
45 month
46 note
47 number
48 organization
49 pages
50 publisher
51 school
52 series
53 title
54 type
55 volume
56 year
57 url
58 TypeofLit %新加入:文献类型和标志代码
59 normalauthor %不改变大小写的作者
60 normaleditor %不改变大小写的编者
61 translator %新加入:翻译者
62 date %日期,公告日期,公开日期
63 modifydate %修改日期
64 citedate %引用日期
65 patentid %专利号
66 country %国家(主要用于专利中)
67 miscyear %其它类中用于输出年份
68 startyear %起始年
69 startvolume %起始卷
70 startnumber %起始期
71 endyear %终止年
72 endvolume %终止卷
73 endnumber %终止期
74 language %默认是英文文献,非空则表明是中文文献
75 }
76 {}
77 { label extra.label sort.label short.list }
78
79 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
80 FUNCTION {format.url}
81 { url empty$
82 { "" }
83 { new.block
84 "\url{" url * "}" * }
85 if$
86 }
87 FUNCTION {init.state.consts}
88 { #0 'before.all :=
89 #1 'mid.sentence :=
90 #2 'after.sentence :=
91 #3 'after.block :=
92 }
93
94 STRINGS { s t }
95
96 FUNCTION {output.nonnull}
97 { 's :=
98 output.state mid.sentence =
99 { ", " * write$ }
100 { output.state after.block =
101 { add.period$ write$
102 newline$
103 "\newblock " write$
104 }
105 { output.state before.all =
106 'write$
107 { add.period$ " " * write$ }
108 if$
109 }
110 if$
111 mid.sentence 'output.state :=
112 }
113 if$
114 s
115 }
116
117 FUNCTION {coutput.nonnull} %wk
118 { 's :=
119 output.state mid.sentence =
120 { "," * write$ } %
121 { output.state after.block =
122 { add.period$ write$
123 newline$
124 "\newblock " write$
125 }
126 { output.state before.all =
127 'write$
128 { add.period$ " " * write$ }
129 if$
130 }
131 if$
132 mid.sentence 'output.state :=
133 }
134 if$
135 s
136 }
137
138 FUNCTION {output}
139 { duplicate$ empty$
140 'pop$
141 'output.nonnull
142 if$
143 }
144
145 FUNCTION {coutput} %wk
146 { duplicate$ empty$
147 'pop$
148 'coutput.nonnull
149 if$
150 }
151
152 FUNCTION {output.check}
153 { 't :=
154 duplicate$ empty$
155 { pop$ "empty " t * " in " * cite$ * warning$ }
156 'output.nonnull
157 if$
158 }
159
160 FUNCTION {coutput.check} %wk
161 { 't :=
162 duplicate$ empty$
163 { pop$ "empty " t * " in " * cite$ * warning$ }
164 'coutput.nonnull
165 if$
166 }
167
168 FUNCTION {output.year.month.check}
169 { year empty$
170 { "empty year in " cite$ * warning$ }
171 { add.period$ write$
172 month empty$
173 { " " year * extra.label * "." *
174 after.sentence 'output.state :=
175 }
176 { " " year * extra.label * " (" * month * ")." *
177 after.sentence 'output.state :=
178 }
179 if$
180 }
181 if$
182 }
183
184 FUNCTION {output.cyear.month.check} %wk
185 { year empty$
186 { "empty year in " cite$ * warning$ }
187 {write$
188 month empty$
189 {year %wk
190 after.sentence 'output.state :=
191 }
192 { "" year * extra.label * "(" * month * ")" * %wk
193 after.sentence 'output.state :=
194 }
195 if$
196 }
197 if$
198 }
199
200 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
201 FUNCTION {output.modifydate.check}
202 {modifydate
203 }
204
205 FUNCTION {output.citedate.check}
206 { year empty$
207 { "" }
208 { write$
209 "[" citedate * extra.label * "]" *
210 after.sentence 'output.state :=
211 }
212 if$
213 }
214
215 FUNCTION {output.year.check}
216 { year empty$
217 { "empty year in " cite$ * warning$ }
218 {miscyear empty$
219 {year}
220 {miscyear}
221 if$ %wk
222 }
223 if$
224 extra.label *
225 }
226
227 FUNCTION {output.cyear.check} %wk
228 { year empty$
229 { "empty year in " cite$ * warning$ }
230 {miscyear empty$
231 {year}
232 {miscyear}
233 if$ %wk
234 }
235 if$
236 extra.label *
237 }
238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
239
240 FUNCTION {output.continue.year.check} %wk
241 {
242 endyear empty$
243 {startyear empty$
244 {year empty$
245 { "empty year in " cite$ * warning$ }
246 {"" year * "" * }
247 if$
248 }
249 {"" startyear * "-" * }
250 if$
251 }
252 {startyear empty$
253 {year empty$
254 { "empty year in " cite$ * warning$ }
255 {"" year * "" * }
256 if$
257 }
258 {"" startyear * "-" *
259 "" endyear * "" * *
260 }
261 if$
262 }
263 if$
264 }
265
266 FUNCTION {output.continue.cyear.check} %wk
267 {
268 endyear empty$
269 {startyear empty$
270 {year empty$
271 { "empty year in " cite$ * warning$ }
272 {"" year * "" * }
273 if$
274 }
275 {"" startyear * "-" * }
276 if$
277 }
278 {startyear empty$
279 {year empty$
280 { "empty year in " cite$ * warning$ }
281 {"" year * "" * }
282 if$
283 }
284 {"" startyear * "-" *
285 "" endyear * "" * *
286 }
287 if$
288 }
289 if$
290 }
291
292 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
293 FUNCTION {output.article.year.check}
294 {month empty$
295 {
296 year empty$
297 { "empty year in " cite$ * warning$ }
298 {year %wk
299 }
300 if$
301 }
302 {
303 TypeofLit empty$
304 {year empty$
305 { "empty year in " cite$ * warning$ }
306 {year %wk
307 }
308 if$}
309
310 {year empty$
311 { "empty year in " cite$ * warning$ }
312 {year %wk
313 "-" month * "" * *
314 }
315 if$
316 }
317 if$
318 }
319 if$
320 }
321
322 FUNCTION {output.carticle.year.check} %wk
323 {month empty$
324 {
325 year empty$
326 { "empty year in " cite$ * warning$ }
327 {year %wk
328 }
329 if$
330 }
331 {
332 TypeofLit empty$
333 {year empty$
334 { "empty year in " cite$ * warning$ }
335 {year %wk
336 }
337 if$}
338
339 {year empty$
340 { "empty year in " cite$ * warning$ }
341 {year %wk
342 "-" month * "" * *
343 }
344 if$
345 }
346 if$
347 }
348 if$
349 }
350 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
351
352 FUNCTION {output.bibitem}
353 { newline$
354 "\bibitem[" write$
355 label write$
356 "]{" write$
357 cite$ write$
358 "}" write$
359 newline$
360 ""
361 before.all 'output.state :=
362 }
363
364 FUNCTION {fin.entry}
365 { add.period$ %这行控制参考文献条目最后的句号。by sfj
366 write$
367 newline$
368 }
369
370 FUNCTION {new.block}
371 { output.state before.all =
372 'skip$
373 { after.block 'output.state := }
374 if$
375 }
376
377 FUNCTION {new.sentence}
378 { output.state after.block =
379 'skip$
380 { output.state before.all =
381 'skip$
382 { after.sentence 'output.state := }
383 if$
384 }
385 if$
386 }
387
388 FUNCTION {not}
389 { { #0 }
390 { #1 }
391 if$
392 }
393
394 FUNCTION {and}
395 { 'skip$
396 { pop$ #0 }
397 if$
398 }
399
400 FUNCTION {or}
401 { { pop$ #1 }
402 'skip$
403 if$
404 }
405
406 FUNCTION {new.block.checkb}
407 { empty$
408 swap$ empty$
409 and
410 'skip$
411 'new.block
412 if$
413 }
414
415 FUNCTION {field.or.null}
416 { duplicate$ empty$
417 { pop$ "" }
418 'skip$
419 if$
420 }
421
422 FUNCTION {boldface}
423 { duplicate$ empty$
424 { pop$ "" }
425 { "{\bf " swap$ * "}" * }
426 if$
427 }
428
429
430 %%%%%%%%%%%%%%%%%%%
431 Function{upcase}
432 { duplicate$ empty$
433 { pop$ "" }
434 { "u" change.case$ }
435 if$
436 }
437 %%%%%%%%%%%%%%%%%%%%
438
439 %%%%%%%%%%%%%%%%%%%%%%%
440
441 INTEGERS { nameptr namesleft numnames }
442
443 FUNCTION {capitalize}
444 { "u" change.case$ "t" change.case$ }
445
446 FUNCTION {format.names}
447 { 's :=
448 #1 'nameptr :=
449 s num.names$ 'numnames :=
450 numnames 'namesleft :=
451 { namesleft #0 > }
452 { s nameptr "{f.~}{vv~}{ll}{, jj}"
453 format.name$
454 remove.dots
455 't :=
456 nameptr #1 >
457 {
458 nameptr #3
459 #1 + =
460 numnames #3
461 > and
462 { "others" 't :=
463 #1 'namesleft := }
464 'skip$
465 if$
466 namesleft #1 >
467 { ", " * t * }
468 { numnames #2 >
469 { "" * }
470 'skip$
471 if$
472 s nameptr "{ll}" format.name$ duplicate$ "others" =
473 { 't := }
474 { pop$ }
475 if$
476 t "others" =
477 {%bib.name.font %改为大写
478 ", et al" *
479 }
480 {", " * t * }
481 if$
482 }
483 if$
484 }
485 't
486 if$
487 nameptr #1 + 'nameptr :=
488 namesleft #1 - 'namesleft :=
489 }
490 while$
491 %%%%%%%%%%%
492 %%%%%%%%%%%
493 }
494
495 FUNCTION {format.cnames} %wk
496 { 's :=
497 #1 'nameptr :=
498 s num.names$ 'numnames :=
499 numnames 'namesleft :=
500 { namesleft #0 > }
501 { s nameptr "{vv~}{ll}{ f{~}}{ jj}" format.name$
502 remove.dots
503 't :=
504 nameptr #1 >
505 {
506 nameptr #3
507 #1 + =
508 numnames #3
509 > and
510 { "others" 't :=
511 #1 'namesleft := }
512 'skip$
513 if$
514 namesleft #1 >
515 { ", " * t * }
516 { numnames #2 >
517 { "" * }
518 'skip$
519 if$
520 s nameptr "{ll}" format.name$ duplicate$ "others" =
521 { 't := }
522 { pop$ }
523 if$
524 t "others" =
525 { ",等" *
526 % bib.name.font %改为大写
527 }
528 {", " * t * }
529 if$
530 }
531 if$
532 }
533 't
534 if$
535 nameptr #1 + 'nameptr :=
536 namesleft #1 - 'namesleft :=
537 }
538 while$
539 %%%%%%%%%%%
540 %%%%%%%%%%%
541 }
542
543 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
544 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
545
546 FUNCTION {format.normal.names}
547 { 's :=
548 #1 'nameptr :=
549 s num.names$ 'numnames :=
550 numnames 'namesleft :=
551 { namesleft #0 > }
552 { s nameptr "{vv~}{ll}{ f{~}}{, jj}"
553 format.name$
554 remove.dots
555 't :=
556 nameptr #1 >
557 {
558 nameptr #3
559 #1 + =
560 numnames #3
561 > and
562 { "others" 't :=
563 #1 'namesleft := }
564 'skip$
565 if$
566 namesleft #1 >
567 { ", " * t * }
568 { numnames #2 >
569 { "" * }
570 'skip$
571 if$
572 s nameptr "{ll}" format.name$ duplicate$ "others" =
573 { 't := }
574 { pop$ }
575 if$
576 t "others" =
577 { ", et al" * }
578 {", " * t * }
579 if$
580 }
581 if$
582 }
583 't
584 if$
585 nameptr #1 + 'nameptr :=
586 namesleft #1 - 'namesleft :=
587 }
588 while$
589 }
590
591 FUNCTION {format.normal.cnames} %wk
592 { 's :=
593 #1 'nameptr :=
594 s num.names$ 'numnames :=
595 numnames 'namesleft :=
596 { namesleft #0 > }
597 { s nameptr "{vv~}{ll}{ f{~}}{ jj}" format.name$
598 remove.dots
599 't :=
600 nameptr #1 >
601 {
602 nameptr #3
603 #1 + =
604 numnames #3
605 > and
606 { "others" 't :=
607 #1 'namesleft := }
608 'skip$
609 if$
610 namesleft #1 >
611 { ", " * t * }
612 { numnames #2 >
613 { "" * }
614 'skip$
615 if$
616 s nameptr "{ll}" format.name$ duplicate$ "others" =
617 { 't := }
618 { pop$ }
619 if$
620 t "others" =
621 { ",等" * }
622 {", " * t * }
623 if$
624 }
625 if$
626 }
627 't
628 if$
629 nameptr #1 + 'nameptr :=
630 namesleft #1 - 'namesleft :=
631 }
632 while$
633 }
634 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
635
636 FUNCTION {format.authors}
637 { author empty$
638 { "" }
639 {normalauthor empty$
640 {author format.names }
641 {normalauthor format.normal.names}
642 if$
643 }
644 if$
645 }
646
647 FUNCTION {format.cauthors} %wk
648 { author empty$
649 { "" }
650 {normalauthor empty$
651 {author format.cnames }
652 {normalauthor format.normal.cnames}
653 if$
654 }
655 if$
656 }
657
658 FUNCTION {format.key}
659 { empty$
660 { key field.or.null }
661 { "" }
662 if$
663 }
664
665 FUNCTION {format.editors}
666 { editor empty$
667 { "" }
668 {normaleditor empty$
669 {editor format.names }
670 {normaleditor format.normal.names}
671 if$
672 editor num.names$ #1 > % Use ODWE abbrevs.
673 { "" * } % to avoid
674 { "" * } % ambiguity between
675 if$ % "editor" and
676 } % "edition".
677 if$
678 }
679
680 FUNCTION {format.ceditors} %wk 本函数
681 { editor empty$
682 { "" }
683 {
684 normaleditor empty$
685 {editor * "" * format.cnames }
686 {normaleditor * "" * format.normal.cnames}
687 if$
688 }
689 if$
690 }
691 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
692 FUNCTION {format.title} % Nothing needs
693 { title empty$ % doing here in
694 { "" } % authordate1.bst
695 { title } % or
696 if$ % authordate3.bst.
697 }
698
699 FUNCTION {format.ctitle} %wk % Nothing needs
700 { title empty$ % doing here in
701 { "" } % authordate1.bst
702 {title} % or
703 if$ % authordate3.bst.
704 }
705 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
706
707 FUNCTION {format.article.title} % Nothing needs
708 {title empty$ % doing here in
709 { "" } % authordate1.bst
710 {
711 typeoflit empty$
712 {format.title "[J]" * title output.check}
713 {format.title title output.check}
714 if$
715 }
716 if$
717 TypeofLit empty$
718 {""}
719 { "[" TypeofLit * "]" * * }
720 if$
721 % authordate3.bst.
722 }
723
724 FUNCTION {format.carticle.title} % Nothing needs
725 {title empty$ % doing here in
726 { "" } % authordate1.bst
727 {
728 typeoflit empty$
729 {format.title "[J]" * title output.check}
730 {format.title title output.check}
731 if$
732 }
733 if$
734
735 TypeofLit empty$
736 {""}
737 { "[" TypeofLit * "]" * * }
738 if$
739 % authordate3.bst.
740 }
741 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
742 FUNCTION {format.book.title} % Nothing needs
743 {title empty$ % doing here in
744 { "" } % authordate1.bst
745 {
746 typeoflit empty$
747 {format.title "[M]" * title output.check}
748 {format.title title output.check}
749 if$
750 }
751 if$
752 TypeofLit empty$
753 {""}
754 { "[" TypeofLit * "]" * * }
755 if$
756 % authordate3.bst.
757 }
758
759 FUNCTION {format.cbook.title} %wk % Nothing needs
760 {title empty$ % doing here in
761 { "" } % authordate1.bst
762 {
763 typeoflit empty$
764 {format.title "[M]" * title output.check}
765 {format.title title output.check}
766 if$
767 }
768 if$
769 TypeofLit empty$
770 {""}
771 { "[" TypeofLit * "]" * * }
772 if$
773 % authordate3.bst.
774 }
775 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
776 FUNCTION {format.misc.title} %wk % Nothing needs
777 {
778 patentid empty$
779 {%没有专利号应该是其它类型文献,直接标准输出
780 title empty$ % doing here in
781 { "" } % authordate1.bst
782 {
783 typeoflit empty$
784 {format.title "[缺文献类型标志代码]." * title output.check}
785 {format.title title output.check}
786 if$
787 }
788 if$
789 TypeofLit empty$
790 {""}
791 { "[" TypeofLit * "]." * * }
792 if$
793 }
794 {%有专利号
795 country empty$
796 {
797 title empty$ % doing here in
798 { "" } % authordate1.bst
799 {
800 typeoflit empty$
801 {format.title "[缺文献类型标志代码]." * title output.check}
802 {format.title title output.check}
803 if$
804 }
805 if$
806 TypeofLit empty$
807 {""}
808 { "[" TypeofLit * "]." * * }
809 if$
810 "" patentid * "" * *
811 }
812 {%有专利号,有国家
813 title empty$ % doing here in
814 { "" } % authordate1.bst
815 {
816 typeoflit empty$
817 {format.title "[缺文献类型标志代码]." * title output.check}
818 {format.title title output.check}
819 if$
820 }
821 if$
822
823 ":" country * "," * *
824 "" patentid * "" * *
825 TypeofLit empty$
826 {""}
827 { "[" TypeofLit * "]." * * }
828 if$
829
830 }
831 if$
832 }
833 if$
834
835 }
836
837 FUNCTION {format.cmisc.title} %wk % Nothing needs
838 {
839 patentid empty$
840 {%没有专利号应该是其它类型文献,直接标准输出
841 title empty$ % doing here in
842 { "" } % authordate1.bst
843 {
844 typeoflit empty$
845 {format.title "[缺文献类型标志代码]." * title output.check}
846 {format.title title output.check}
847 if$
848 }
849 if$
850 TypeofLit empty$
851 {""}
852 { "[" TypeofLit * "]." * * }
853 if$
854 }
855 {%有专利号
856 country empty$
857 {
858 title empty$ % doing here in
859 { "" } % authordate1.bst
860 {
861 typeoflit empty$
862 {format.title "[缺文献类型标志代码]." * title output.check}
863 {format.title title output.check}
864 if$
865 }
866 if$
867 TypeofLit empty$
868 {""}
869 { "[" TypeofLit * "]." * * }
870 if$
871 "" patentid * "" * *
872 }
873 {%有专利号,有国家
874 title empty$ % doing here in
875 { "" } % authordate1.bst
876 {
877 typeoflit empty$
878 {format.title "[缺文献类型标志代码]." * title output.check}
879 {format.title title output.check}
880 if$
881 }
882 if$
883
884 ":" country * "," * *
885 "" patentid * "" * *
886 TypeofLit empty$
887 {""}
888 { "[" TypeofLit * "]." * * }
889 if$
890
891 }
892 if$
893 }
894 if$
895
896 }
897 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
898
899 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
900
901 FUNCTION {format.proceedings.title} % Nothing needs
902 {title empty$ % doing here in
903 { "" } % authordate1.bst
904 {
905 typeoflit empty$
906 {format.title "[C]" * title output.check}
907 {format.title title output.check}
908 if$
909 }
910 if$
911
912 TypeofLit empty$
913 {""}
914 { "[" TypeofLit * "]" * * }
915 if$
916 % authordate3.bst.
917 }
918
919 FUNCTION {format.cproceedings.title} % Nothing needs
920 {title empty$ % doing here in
921 { "" } % authordate1.bst
922 {
923 typeoflit empty$
924 {format.title "[C]" * title output.check}
925 {format.title title output.check}
926 if$
927 }
928 if$
929
930 TypeofLit empty$
931 {""}
932 { "[" TypeofLit * "]" * * }
933 if$
934 % authordate3.bst.
935 }
936 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
937 FUNCTION {format.incollection.title} % Nothing needs
938 {title empty$ % doing here in
939 { "" } % authordate1.bst
940 {
941 typeoflit empty$
942 {format.title "[M]//" * title output.check}
943 {format.title "" * title output.check}
944 if$
945 }
946 if$
947
948 TypeofLit empty$
949 {""}
950 { "[" TypeofLit * "]//" * * }
951 if$
952 % authordate3.bst.
953 }
954
955 FUNCTION {format.cincollection.title} % Nothing needs
956 {title empty$ % doing here in
957 { "" } % authordate1.bst
958 {
959 typeoflit empty$
960 {format.title "[M]//" * title output.check}
961 {format.title "" * title output.check}
962 if$
963 }
964 if$
965
966 TypeofLit empty$
967 {""}
968 { "[" TypeofLit * "]//" * * }
969 if$
970 % authordate3.bst.
971 }
972 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
973 FUNCTION {format.inproceedings.title} % Nothing needs
974 {title empty$ % doing here in
975 { "" } % authordate1.bst
976 {
977 typeoflit empty$
978 {format.title "[C]//" * title output.check}
979 {format.title "" * title output.check}
980 if$
981 }
982 if$
983
984 TypeofLit empty$
985 {""}
986 { "[" TypeofLit * "]//" * * }
987 if$
988 % authordate3.bst.
989 }
990
991 FUNCTION {format.cinproceedings.title} % Nothing needs
992 {title empty$ % doing here in
993 { "" } % authordate1.bst
994 {
995 typeoflit empty$
996 {format.title "[C]//" * title output.check}
997 {format.title "" * title output.check}
998 if$
999 }
1000 if$
1001
1002 TypeofLit empty$
1003 {""}
1004 { "[" TypeofLit * "]//" * * }
1005 if$
1006 % authordate3.bst.
1007 }
1008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1009
1010 FUNCTION {n.dashify}
1011 { 't :=
1012 ""
1013 { t empty$ not }
1014 { t #1 #1 substring$ "-" =
1015 { t #1 #2 substring$ "--" = not
1016 { "--" *
1017 t #2 global.max$ substring$ 't :=
1018 }
1019 { { t #1 #1 substring$ "-" = }
1020 { "-" *
1021 t #2 global.max$ substring$ 't :=
1022 }
1023 while$
1024 }
1025 if$
1026 }
1027 { t #1 #1 substring$ *
1028 t #2 global.max$ substring$ 't :=
1029 }
1030 if$
1031 }
1032 while$
1033 }
1034
1035 FUNCTION {format.btitle}
1036 { title empty$
1037 { "" } % Don't change case
1038 {booktitle} % in
1039 if$ % authordate1.bst
1040 } % or
1041
1042 FUNCTION {format.cbtitle} %wk % Nothing needs
1043 { title empty$ % doing here in
1044 { "" } % authordate1.bst
1045 {booktitle} % or
1046 if$ % authordate3.bst.
1047 }
1048 % authordate3.bst.
1049 FUNCTION {tie.or.space.connect}
1050 { duplicate$ text.length$ #3 <
1051 { "~" }
1052 { " " }
1053 if$
1054 swap$ * *
1055 }
1056
1057 FUNCTION {either.or.check}
1058 { empty$
1059 'pop$
1060 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
1061 if$
1062 }
1063
1064 INTEGERS { multiresult }
1065
1066 FUNCTION {multi.page.check}
1067 { 't :=
1068 #0 'multiresult :=
1069 { multiresult not
1070 t empty$ not
1071 and
1072 }
1073 { t #1 #1 substring$
1074 duplicate$ "-" =
1075 swap$ duplicate$ "," =
1076 swap$ "+" =
1077 or or
1078 { #1 'multiresult := }
1079 { t #2 global.max$ substring$ 't := }
1080 if$
1081 }
1082 while$
1083 multiresult
1084 }
1085
1086 FUNCTION {format.numberinseries}
1087 { number empty$
1088 { "" }
1089 { number multi.page.check
1090 { ", nos. " number n.dashify tie.or.space.connect }
1091 { ", no. " number tie.or.space.connect }
1092 if$
1093 }
1094 if$
1095 }
1096
1097 FUNCTION {format.cnumberinseries} %wk
1098 { number empty$
1099 { "" }
1100 { number multi.page.check
1101 { ", 第" number n.dashify tie.or.space.connect * "期"} %wk
1102 { ", 第" number tie.or.space.connect * "期"} %wk
1103 if$
1104 }
1105 if$
1106 }
1107 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1108 FUNCTION {booklike.series.volume.number} % Chicago, pages
1109 { series empty$ % 450-451.
1110 { volume empty$
1111 { " " }
1112 { " Vol. " volume * }
1113 if$
1114 }
1115 {
1116 volume empty$
1117 { number empty$
1118 { series }
1119 { series format.numberinseries * }
1120 if$
1121 }
1122 { number empty$
1123 { series ", vol. " volume * * }
1124 { series ", vol. " * volume * format.numberinseries * }
1125 if$
1126 }
1127 if$
1128 }
1129 if$
1130 }
1131
1132 FUNCTION {cbooklike.series.volume.number.pages} %wk加入页码 ??? % Chicago, pages %wk
1133 { series empty$ % 450-451.
1134 { volume empty$
1135 { pages empty$
1136 'skip$
1137 { duplicate$ empty$
1138 { pop$ format.pages }
1139 { ":" * pages n.dashify * "" *} %wk 改为第页
1140 if$
1141 }
1142 if$}
1143 { "卷" volume * }
1144 if$
1145 }
1146 {
1147 volume empty$
1148 { number empty$
1149 { series }
1150 { series format.numberinseries * }
1151 if$
1152 }
1153 { number empty$
1154 { series ",第" volume * "卷" * * }
1155 { series "卷" * volume * format.cnumberinseries * }
1156 if$
1157 }
1158 if$
1159 }
1160 if$
1161 }
1162 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1163 FUNCTION {incollectionlike.series.volume.number.pages} %wk
1164 { series empty$
1165 { volume empty$
1166 { pages empty$
1167 'skip$
1168 { duplicate$ empty$
1169 { pop$ format.pages }
1170 { ":" * pages n.dashify * "" *} %wk 改为第页
1171 if$
1172 }
1173 if$}
1174 { "," volume * "" * *
1175 pages empty$
1176 'skip$
1177 { duplicate$ empty$
1178 { pop$ format.pages }
1179 { ":" * pages n.dashify * "" *} %wk 改为第页
1180 if$
1181 }
1182 if$}
1183 if$
1184 }
1185 { new.block
1186 volume empty$
1187 { number empty$
1188 { series }
1189 { series format.numberinseries * }
1190 if$
1191 }
1192 { number empty$
1193 { series ", vol. " volume * * }
1194 { series ", vol. " * volume * format.numberinseries * }
1195 if$
1196 }
1197 if$
1198 }
1199 if$
1200 }
1201
1202 FUNCTION {cincollectionlike.series.volume.number.pages} %wk
1203 { series empty$
1204 { volume empty$
1205 { pages empty$
1206 'skip$
1207 { duplicate$ empty$
1208 { pop$ format.pages }
1209 { ":" * pages n.dashify * "" *} %wk 改为第页
1210 if$
1211 }
1212 if$}
1213 { ",第" volume * "卷" * *
1214 pages empty$
1215 'skip$
1216 { duplicate$ empty$
1217 { pop$ format.pages }
1218 { ":" * pages n.dashify * "" *} %wk 改为第页
1219 if$
1220 }
1221 if$}
1222 if$
1223 }
1224 { new.block
1225 volume empty$
1226 { number empty$
1227 { series }
1228 { series format.numberinseries * }
1229 if$
1230 }
1231 { number empty$
1232 { series ", vol. " volume * * }
1233 { series ", vol. " * volume * format.numberinseries * }
1234 if$
1235 }
1236 if$
1237 }
1238 if$
1239 }
1240
1241 FUNCTION {format.TypeofLit} %wk 完全改写
1242 { TypeofLit empty$
1243 { "" }
1244 {"[" TypeofLit * "]" *}
1245 if$
1246 }
1247
1248 FUNCTION {format.edition}
1249 { edition empty$
1250 {
1251 translator empty$
1252 { "" }
1253 {"" translator * ",translation" * }
1254 if$
1255 }
1256 {
1257 translator empty$
1258 {edition}
1259 {translator output
1260 ",translation." edition * "" * *}
1261 if$
1262 }
1263 if$
1264 }
1265
1266 FUNCTION {format.cedition} %wk 完全改写
1267 { edition empty$
1268 {
1269 translator empty$
1270 { "" }
1271 {"" translator format.cnames * ",译" *}
1272 if$
1273 }
1274 {
1275 translator empty$
1276 {edition}
1277 {translator format.cnames output
1278 ",译." edition * "" * *}
1279 if$
1280 }
1281 if$
1282 }
1283
1284 FUNCTION {format.ctranslator} %wk 完全改写
1285 { translator empty$
1286 { "" }
1287 {format.cnames ",译" * "translator" output.check}
1288 if$
1289 }
1290
1291 FUNCTION {format.pages}
1292 { pages empty$
1293 { "" }
1294 { pages multi.page.check
1295 { ":" pages n.dashify tie.or.space.connect * }
1296 { ":" pages tie.or.space.connect * }
1297 if$
1298 }
1299 if$
1300 }
1301
1302 FUNCTION {format.pagesinbook} % By the time the
1303 { pages empty$ % reader has read
1304 { "" } % address, pub'r,
1305 { pages multi.page.check % note (where the
1306 { ":" pages n.dashify tie.or.space.connect } % note may end with
1307 { ":" pages tie.or.space.connect } % numbers), s/he
1308 if$ % may not recognise
1309 } % a number-range as
1310 if$ % meaning pages.
1311 } % Avoid ambiguity
1312 % (Butcher, p.181).
1313
1314 FUNCTION {format.cpagesinbook} % By the time the %wk
1315 { pages empty$ % reader has read
1316 { "" } % address, pub'r,
1317 { pages multi.page.check % note (where the
1318 { ":" * pages n.dashify tie.or.space.connect * "" } % note may end with
1319 { ":" * "Page " pages tie.or.space.connect * ""} % numbers), s/he
1320 if$ % may not recognise
1321 } % a number-range as
1322 if$ % meaning pages.
1323 } % Avoid ambiguity
1324
1325 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1326 FUNCTION {format.vol.num.date.pages} %wk
1327 {volume empty$ %wk 被重新改过
1328 'skip$ %wk 被重新改过
1329 {volume %wk 被重新改过
1330 } %wk 被重新改过
1331 if$ %wk 被重新改过
1332 number empty$ %wk 被重新改过
1333 'skip$ %wk 被重新改过
1334 { "(" number * ")" * * %wk 被重新改过
1335 volume empty$ %wk 被重新改过
1336 { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过
1337 'skip$ %wk 被重新改过
1338 if$ %wk 被重新改过
1339 } %wk 被重新改过
1340 if$ %wk 被重新改过
1341 pages empty$
1342 'skip$
1343 { duplicate$ empty$
1344 { pop$ format.pages }
1345 { ":" * pages n.dashify * "" *} %wk 改为第页
1346 if$
1347 }
1348 if$
1349 }
1350
1351 FUNCTION {format.cvol.num.date.pages} %wk
1352 {volume empty$ %wk 被重新改过
1353 'skip$ %wk 被重新改过
1354 {volume %wk 被重新改过
1355 } %wk 被重新改过
1356 if$ %wk 被重新改过
1357 number empty$ %wk 被重新改过
1358 'skip$ %wk 被重新改过
1359 { "(" number * ")" * * %wk 被重新改过
1360 volume empty$ %wk 被重新改过
1361 { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过
1362 'skip$ %wk 被重新改过
1363 if$ %wk 被重新改过
1364 } %wk 被重新改过
1365 if$ %wk 被重新改过
1366 pages empty$
1367 'skip$
1368 { duplicate$ empty$
1369 { pop$ format.pages }
1370 { ":" * pages n.dashify * "" *} %wk 改为第页
1371 if$
1372 }
1373 if$
1374 }
1375
1376 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1377 FUNCTION {format.article.vol.num.date.pages} %wk
1378 {
1379 volume empty$ %wk 被重新改过
1380 'skip$ %wk 被重新改过
1381 {volume %wk 被重新改过
1382 } %wk 被重新改过
1383 if$ %wk 被重新改过
1384 number empty$ %wk 被重新改过
1385 'skip$ %wk 被重新改过
1386 { "(" number * ")" * * %wk 被重新改过
1387 volume empty$ %wk 被重新改过
1388 { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过
1389 'skip$ %wk 被重新改过
1390 if$ %wk 被重新改过
1391 } %wk 被重新改过
1392 if$ %wk 被重新改过
1393 pages empty$
1394 'skip$
1395 { duplicate$ empty$
1396 { pop$ format.pages }
1397 { ":" * pages n.dashify * "" *} %wk 改为第页
1398 if$
1399 }
1400 if$
1401 }
1402
1403 FUNCTION {format.carticle.vol.num.date.pages} %wk
1404 {
1405 volume empty$ %wk 被重新改过
1406 'skip$ %wk 被重新改过
1407 {volume %wk 被重新改过
1408 } %wk 被重新改过
1409 if$ %wk 被重新改过
1410 number empty$ %wk 被重新改过
1411 'skip$ %wk 被重新改过
1412 { "(" number * ")" * * %wk 被重新改过
1413 volume empty$ %wk 被重新改过
1414 { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过
1415 'skip$ %wk 被重新改过
1416 if$ %wk 被重新改过
1417 } %wk 被重新改过
1418 if$ %wk 被重新改过
1419 pages empty$
1420 'skip$
1421 { duplicate$ empty$
1422 { pop$ format.pages }
1423 { ":" * pages n.dashify * "" *} %wk 改为第页
1424 if$
1425 }
1426 if$
1427 }
1428
1429 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1430 FUNCTION {format.book.continue.vol.num} %wk
1431 {
1432 startyear empty$
1433 'skip$
1434 {"." startyear * "" * *
1435 startvolume empty$ %wk 被重新改过
1436 'skip$ %wk 被重新改过
1437 {"," startvolume * "" * *} %wk 被重新改过
1438 if$
1439 %wk 被重新改过
1440 startnumber empty$ %wk 被重新改过
1441 'skip$ %wk 被重新改过
1442 { "(" startnumber * ")-" * * } %wk 被重新改过
1443 if$ %wk 被重新改过
1444 } %wk 被重新改过
1445 if$
1446 %wk 被重新改过
1447 endyear empty$
1448 'skip$
1449 {"" endyear * "" * *
1450 endvolume empty$ %wk 被重新改过
1451 'skip$ %wk 被重新改过
1452 {"," endvolume * "" * *} %wk 被重新改过
1453 if$
1454 %wk 被重新改过
1455 endnumber empty$ %wk 被重新改过
1456 'skip$ %wk 被重新改过
1457 { "(" endnumber * ")" * * } %wk 被重新改过
1458 if$ %wk 被重新改过
1459 } %wk 被重新改过
1460 if$
1461 }
1462
1463 FUNCTION {format.cbook.continue.vol.num} %wk
1464 {
1465 startyear empty$
1466 'skip$
1467 {"." startyear * "" * *
1468 startvolume empty$ %wk 被重新改过
1469 'skip$ %wk 被重新改过
1470 {"," startvolume * "" * *} %wk 被重新改过
1471 if$
1472 %wk 被重新改过
1473 startnumber empty$ %wk 被重新改过
1474 'skip$ %wk 被重新改过
1475 { "(" startnumber * ")-" * * } %wk 被重新改过
1476 if$ %wk 被重新改过
1477 } %wk 被重新改过
1478 if$
1479 %wk 被重新改过
1480 endyear empty$
1481 'skip$
1482 {"" endyear * "" * *
1483 endvolume empty$ %wk 被重新改过
1484 'skip$ %wk 被重新改过
1485 {"," endvolume * "" * *} %wk 被重新改过
1486 if$
1487 %wk 被重新改过
1488 endnumber empty$ %wk 被重新改过
1489 'skip$ %wk 被重新改过
1490 { "(" endnumber * ")" * * } %wk 被重新改过
1491 if$ %wk 被重新改过
1492 } %wk 被重新改过
1493 if$
1494 }
1495
1496 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1497 FUNCTION {format.date.modifydate.citedate} %wk
1498 {
1499 date empty$ %wk 被重新改过
1500 'skip$ %wk 被重新改过
1501 {date %wk 被重新改过
1502 } %wk 被重新改过
1503 if$ %wk 被重新改过
1504
1505 modifydate empty$ %wk 被重新改过
1506 'skip$ %wk 被重新改过
1507 { "(" modifydate * ")" * * %wk 被重新改过
1508 date empty$ %wk 被重新改过
1509 { "" cite$ * warning$ } %wk 被重新改过
1510 'skip$ %wk 被重新改过
1511 if$ %wk 被重新改过
1512 } %wk 被重新改过
1513 if$
1514
1515 citedate empty$ %wk 被重新改过
1516 'skip$ %wk 被重新改过
1517 { "[" citedate * "]" * * %wk 被重新改过
1518 date empty$ %wk 被重新改过
1519 { "" cite$ * warning$ } %wk 被重新改过
1520 'skip$ %wk 被重新改过
1521 if$ %wk 被重新改过
1522 } %wk 被重新改过
1523 if$
1524 }
1525
1526 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1527 FUNCTION {format.chapter.pages.inbook}
1528 { chapter empty$
1529 'format.pagesinbook
1530 { type empty$
1531 { "Chap." }
1532 { type }
1533 if$
1534 chapter tie.or.space.connect
1535 pages empty$
1536 'skip$
1537 { ", " * format.pagesinbook "l" change.case$ * }
1538 if$
1539 }
1540 if$
1541 }
1542
1543 FUNCTION {format.cchapter.pages.inbook}
1544 {chapter empty$ %wk 被重新改过
1545 'skip$ %wk 被重新改过
1546 { ",第" chapter * "章" * * %wk 被重新改过
1547 } %wk 被重新改过
1548 if$ %wk 被重新改过
1549 pages empty$
1550 'skip$
1551 { duplicate$ empty$
1552 { pop$ format.pages }
1553 { ":" * pages n.dashify * "" *} %wk 改为第页
1554 if$
1555 }
1556 if$
1557 }
1558
1559 FUNCTION {format.chapter.pages.incoll}
1560 { chapter empty$
1561 { pages empty$
1562 { "In " }
1563 { "{\em " format.pagesinbook " of:} " * * }
1564 if$
1565 }
1566 { type empty$
1567 { "{\em Chap. " chapter * }
1568 { "{\em " type * " " * chapter * }
1569 if$
1570 pages empty$
1571 { " of:} " * }
1572 { ", " * format.pagesinbook "l" change.case$ " of:} " * * }
1573 if$
1574 }
1575 if$
1576 }
1577
1578 FUNCTION {format.cchapter.pages.incoll} %wk
1579 { chapter empty$
1580 { pages empty$
1581 { "" }
1582 { "第" format.pagesinbook "章" * * }
1583 if$
1584 }
1585 { type empty$
1586 { "第" chapter * "章" * * }
1587 { "" type * "" * chapter * }
1588 if$
1589 pages empty$
1590 { "" * }
1591 { ":" * format.pagesinbook "l" change.case$ "" * * }
1592 if$
1593 }
1594 if$
1595 }
1596
1597 FUNCTION {format.in.ed.booktitle} % Achieves effect %wk
1598 { booktitle empty$ % shown in 16.51
1599 { "" } % of Chicago, at
1600 { editor empty$ % expense of not
1601 {"" * booktitle * "" *
1602 new.block
1603 }
1604 {new.block
1605 normalauthor empty$ %用于正常显示
1606 {
1607 normaleditor empty$ %用于正常显示
1608 { format.editors "author and editor" output.check} %用于正常显示,
1609 { format.editors "author and normaleditor" output.check} %用于正常显示
1610 if$ %用于正常显示
1611 } %用于正常显示
1612 {
1613 normaleditor empty$ %用于正常显示
1614 {format.editors "normalauthor and editor" output.check} %用于正常显示
1615 {format.editors "normalauthor and normaleditor" output.check} %用于正常显示
1616 if$ %用于正常显示
1617
1618 } %用于正常显示
1619 if$ %用于正常显示
1620 editor format.key output
1621 new.block
1622 format.btitle "booktitle" output.check
1623 }
1624 if$ % 4.4 of BS 1629.
1625 }
1626 if$ % Don't change
1627 } % case.
1628
1629 FUNCTION {format.in.ced.booktitle} % Achieves effect %wk
1630 { booktitle empty$ % shown in 16.51
1631 { "" } % of Chicago, at
1632 { editor empty$ % expense of not
1633 {"" * booktitle * "" *
1634 new.block
1635 }
1636 {new.block
1637 normalauthor empty$ %用于正常显示
1638 {
1639 normaleditor empty$ %用于正常显示
1640 {format.ceditors "author and editor" output.check} %用于正常显示,
1641 {format.ceditors "author and normaleditor" output.check} %用于正常显示
1642 if$ %用于正常显示
1643 } %用于正常显示
1644 {
1645 normaleditor empty$ %用于正常显示
1646 {format.ceditors "normalauthor and editor" output.check} %用于正常显示
1647 {format.ceditors "normalauthor and normaleditor" output.check} %用于正常显示
1648 if$ %用于正常显示
1649
1650 } %用于正常显示
1651 if$ %用于正常显示
1652 editor format.key output
1653 new.block
1654 format.cbtitle "booktitle" output.check
1655 }
1656 if$ % 4.4 of BS 1629.
1657 }
1658 if$ % Don't change
1659 } % case.
1660 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
1661 FUNCTION {format.in.proceedings.booktitle} % Achieves effect %wk
1662 { booktitle empty$ % shown in 16.51
1663 { "" } % of Chicago, at
1664 {format.btitle "booktitle" output.check }
1665 if$ % Don't change
1666 } % case.
1667
1668 FUNCTION {format.in.cproceedings.booktitle} % Achieves effect %wk
1669 { booktitle empty$ % shown in 16.51
1670 { "" } % of Chicago, at
1671 { format.cbtitle "booktitle" output.check }
1672 if$ % 4.4 of BS 1629.
1673 % Don't change
1674 }
1675
1676 FUNCTION {format.thesis.type}
1677 { type empty$
1678 'skip$
1679 { pop$
1680 type % Don't change
1681 } % case.
1682 if$
1683 }
1684
1685 FUNCTION {format.tr.number}
1686 { type empty$
1687 { "Tech. rept." } % ODWE abbrevs.
1688 'type
1689 if$
1690 number empty$
1691 { } % Whatever was
1692 { number tie.or.space.connect } % having its case
1693 if$ % changed, leave
1694 } % it alone.
1695
1696 FUNCTION {format.addr.pub}
1697 { publisher empty$
1698 {address empty$
1699 { ".[S.l.]: [s.n.] " *}
1700 { address ": [s.n.] " * }
1701 if$
1702 }
1703 { address empty$
1704 { ".[S.l.]: " * }
1705 { address ": " * }
1706 if$
1707 publisher *
1708 }
1709
1710 if$
1711 }
1712
1713 FUNCTION {format.caddr.pub}
1714 {publisher empty$
1715 {address empty$
1716 { ".[出版地不详]:[出版者不详]" *}
1717 { address ":[出版者不详]" * }
1718 if$
1719 }
1720 { address empty$
1721 { ".[出版地不详]:" * }
1722 { address ": " * }
1723 if$
1724 publisher *
1725 }
1726
1727 if$
1728 }
1729 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1730 FUNCTION {format.addr.institution}
1731 { institution empty$
1732 {address empty$
1733 { ".[S.l.]: [s.n.] " *}
1734 { address ": [s.n.] " * }
1735 if$
1736 }
1737 { address empty$
1738 { ".[S.l.]: " * }
1739 { address ": " * }
1740 if$
1741 institution *
1742 }
1743
1744 if$
1745 }
1746
1747 FUNCTION {format.caddr.institution}
1748 {institution empty$
1749 {address empty$
1750 { ".[地址不详]:[机构不详]" *}
1751 { address ":[机构不详]" * }
1752 if$
1753 }
1754 { address empty$
1755 { ".[地址不详]:" * }
1756 { address ": " * }
1757 if$
1758 institution *
1759 }
1760
1761 if$
1762 }
1763 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1764 FUNCTION {format.school.pub}
1765 { school empty$
1766 {address empty$
1767 { "[S.l.]: [s.n.] " }
1768 { address ": [s.n.] " * }
1769 if$
1770 }
1771 { address empty$
1772 { ".[S.l.]: " * }
1773 { address ": " * }
1774 if$
1775 school *
1776 }
1777
1778 if$
1779 }
1780
1781 FUNCTION {format.cschool.pub}
1782 {school empty$
1783 {address empty$
1784 { "[地址不详]:[学校不详]" }
1785 { address ":[学校不详]" * }
1786 if$
1787 }
1788 { address empty$
1789 { ".[学校不详]:" * }
1790 { address ": " * }
1791 if$
1792 school *
1793 }
1794
1795 if$
1796 }
1797
1798 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1799 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1800 FUNCTION {format.inproceedings.addr.pub}
1801 {
1802 TypeofLit empty$
1803 {publisher empty$
1804 {address empty$
1805 { ".[S.l.]: [s.n.] " }
1806 { address ": [s.n.] " * }
1807 if$
1808 }
1809 { address empty$
1810 { ".[S.l.]: " * }
1811 { address ": " * }
1812 if$
1813 publisher *
1814 }
1815
1816 if$}
1817 { "" }
1818 if$
1819 }
1820
1821 FUNCTION {format.cinproceedings.addr.pub}
1822 {
1823 TypeofLit empty$
1824 {publisher empty$
1825 {address empty$
1826 { ".[出版地不详]:[出版者不详]" }
1827 { address ":[出版者不详]" * }
1828 if$
1829 }
1830 { address empty$
1831 { ".[出版地不详]:" * }
1832 { address ": " * }
1833 if$
1834 publisher *
1835 }
1836
1837 if$}
1838 { ""}
1839 if$
1840
1841 }
1842 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1843 FUNCTION {format.misc.addr.pub}
1844 { publisher empty$
1845 {address empty$
1846 { "" }
1847 { address ": [s.n.] " * }
1848 if$
1849 }
1850 { address empty$
1851 { "[S.l.]: " * }
1852 { address ": " * }
1853 if$
1854 publisher *
1855 }
1856
1857 if$
1858 }
1859
1860 FUNCTION {format.cmisc.addr.pub}
1861 {publisher empty$
1862 {address empty$
1863 { "" }
1864 { address ":[出版者不详]" * }
1865 if$
1866 }
1867 { address empty$
1868 { "[出版地不详]:" * }
1869 { address ": " * }
1870 if$
1871 publisher *
1872 }
1873
1874 if$
1875 }
1876
1877 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1878
1879 FUNCTION {format.addr.pub.org} % If there's an
1880 { address empty$ % an organization
1881 { "[S.l.]:" *publisher * ", for " * organization * } % and a publisher
1882 { address ": " * publisher * ", for " * organization * } % too.
1883 if$
1884 }
1885
1886 FUNCTION {format.addr.inst}
1887 { address empty$
1888 { institution empty$
1889 { "[S.l.]" }
1890 { "[S.l.]" * institution * *}
1891 if$
1892 }
1893 { institution empty$
1894 { "" }
1895 { institution ", " * }
1896 if$
1897 address *
1898 }
1899 if$
1900 }
1901
1902 FUNCTION {format.addr.org}
1903 { address empty$
1904 { organization empty$
1905 { "" }
1906 { organization }
1907 if$
1908 }
1909 { organization empty$
1910 { "" }
1911 { organization ", " * }
1912 if$
1913 address *
1914 }
1915 if$
1916 }
1917
1918 FUNCTION {format.article.crossref}
1919 { "In "
1920 " \cite{" * crossref * "}" *
1921 }
1922
1923 FUNCTION {format.book.crossref}
1924 { volume empty$
1925 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1926 "In "
1927 }
1928 { " Vol." volume tie.or.space.connect
1929 " of " *
1930 }
1931 if$
1932 "\cite{" * crossref * "}" *
1933 }
1934
1935 FUNCTION {format.incoll.inproc.crossref}
1936 { "In "
1937 " \cite{" * crossref * "}" *
1938 }
1939
1940 FUNCTION {article}
1941 {language empty$
1942 { output.bibitem
1943 format.authors "author" output.check
1944 author format.key output
1945 new.block
1946 format.article.title output
1947 new.block
1948 crossref missing$
1949 { journal % Don't change
1950 "journal" output.check % case.
1951 output.article.year.check output
1952 format.article.vol.num.date.pages output
1953 format.date.modifydate.citedate output
1954 }
1955 { format.article.crossref output.nonnull
1956 format.pages output
1957 }
1958 if$
1959 new.block
1960 format.url output
1961 new.block
1962 note output
1963
1964 fin.entry
1965 }
1966
1967 { output.bibitem
1968 format.cauthors "author" output.check
1969 author format.key output
1970 new.block
1971 format.carticle.title output
1972 new.block
1973 crossref missing$
1974 {journal % Don't change %wk
1975 "journal" output.check % case.
1976 output.carticle.year.check output %wk
1977 format.carticle.vol.num.date.pages output %wk
1978 format.date.modifydate.citedate output
1979 new.block
1980 }
1981 { format.article.crossref output.nonnull
1982 format.pages output
1983 }
1984 if$
1985 new.block
1986 format.url output
1987 new.block
1988 note output
1989 fin.entry
1990 }
1991 if$
1992 }
1993
1994 FUNCTION {book}
1995 {language empty$
1996 { output.bibitem
1997 author empty$
1998 { format.editors "author and editor" output.check
1999 editor format.key output
2000 }
2001 { format.authors output.nonnull
2002 crossref missing$
2003 { "author and editor" editor either.or.check }
2004 'skip$
2005 if$
2006 }
2007 if$
2008 new.block
2009 format.book.title output
2010 new.block
2011 crossref missing$
2012 { format.edition output
2013 new.block
2014 format.book.continue.vol.num ouput
2015 booklike.series.volume.number output
2016 new.block
2017 format.addr.pub "publisher" output.check
2018 output.continue.year.check ouput
2019 format.date.modifydate.citedate output
2020 format.pages output
2021 }
2022 { format.book.crossref output.nonnull
2023 }
2024 if$
2025 new.block
2026 format.url output
2027 new.block
2028 note output
2029 fin.entry
2030 }
2031
2032 { output.bibitem
2033 author empty$
2034 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2035 editor format.key output
2036 }
2037 { format.cauthors output.nonnull
2038 crossref missing$
2039 {"author and editor" editor either.or.check }
2040 'skip$
2041 if$
2042 }
2043 if$
2044 new.block
2045 format.cbook.title output %wk
2046 new.block
2047 crossref missing$
2048 {
2049 format.cedition output %wk edition->cedition
2050 new.block
2051 format.cbook.continue.vol.num ouput
2052 new.block
2053 format.caddr.pub "publisher" output.check
2054 output.continue.cyear.check ouput %wk
2055 cbooklike.series.volume.number.pages output
2056 format.date.modifydate.citedate output
2057 }
2058 { format.book.crossref output.nonnull
2059 }
2060 if$
2061 new.block
2062 format.url output
2063 new.block
2064 note output
2065 fin.entry
2066 }
2067 if$
2068 }
2069 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2070 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2071 FUNCTION {booklet}
2072 {language empty$
2073 { output.bibitem
2074 format.authors output
2075 author format.key output
2076 output.year.month.check
2077 new.block
2078 format.btitle "title" output.check
2079 new.block
2080 howpublished output
2081 address output
2082 output.year.check
2083 new.block
2084 format.url output
2085 new.block
2086 note output
2087 fin.entry
2088 }
2089
2090 { output.bibitem
2091 format.cauthors output %wk
2092 author format.key output
2093 format.btitle "title" output.check %wk
2094 new.block
2095 howpublished output
2096 address output
2097 output.cyear.month.check %wk
2098 new.block
2099 format.url output
2100 new.block
2101 note output
2102 fin.entry
2103 }
2104 if$
2105 }
2106
2107 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2108 FUNCTION {inbook}
2109 {language empty$
2110 { output.bibitem
2111 author empty$
2112 { format.editors "author and editor" output.check
2113 editor format.key output
2114 }
2115 { format.authors output.nonnull
2116 crossref missing$
2117 { "author and editor" editor either.or.check }
2118 'skip$
2119 if$
2120 }
2121 if$
2122 new.block
2123 format.book.title output
2124 new.block
2125 crossref missing$
2126 { format.edition output
2127 booklike.series.volume.number output
2128 new.block
2129 format.addr.pub "publisher" output.check
2130 output.year.check output
2131 format.date.modifydate.citedate output
2132 format.pages output
2133 }
2134 { format.book.crossref output.nonnull
2135 }
2136 if$
2137 new.block
2138 format.url output
2139 new.block
2140 note output
2141 fin.entry
2142 }
2143
2144 { output.bibitem
2145 author empty$
2146 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2147 editor format.key output
2148 }
2149 { format.cauthors output.nonnull
2150 crossref missing$
2151 {"author and editor" editor either.or.check }
2152 'skip$
2153 if$
2154 }
2155 if$
2156 new.block
2157 format.cbook.title output %wk
2158 new.block
2159 crossref missing$
2160 {
2161 format.cedition output %wk edition->cedition
2162 new.block
2163 format.caddr.pub "publisher" output.check
2164 output.cyear.check %wk
2165 cbooklike.series.volume.number.pages output
2166 format.date.modifydate.citedate output
2167 }
2168 { format.book.crossref output.nonnull
2169 }
2170 if$
2171 new.block
2172 format.url output
2173 new.block
2174 note output
2175 fin.entry
2176 }
2177 if$
2178 }
2179
2180 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2181 FUNCTION {incollection} %wk
2182 {language empty$
2183 { output.bibitem
2184 author empty$
2185 { format.editors "editor" output.check %wk format.editors->format.ceditors
2186 editor format.key output }
2187 { format.authors "author" output.check %wk
2188 author format.key output }
2189 if$
2190 new.block
2191 format.incollection.title output
2192 crossref missing$ % Chapter and/or
2193 {
2194 before.all 'output.state :=
2195 format.in.ed.booktitle output % page numbers can
2196 format.edition output % come out via this %wk edition->cedition
2197 new.block
2198 format.addr.pub "publisher" output.check
2199 output.year.check
2200 incollectionlike.series.volume.number.pages output % route, too.
2201 format.date.modifydate.citedate output
2202 }
2203 { format.incoll.inproc.crossref output.nonnull
2204 new.block
2205 }
2206 if$
2207
2208 format.url output
2209 new.block
2210 note output
2211 fin.entry
2212 }
2213
2214 { output.bibitem
2215 author empty$
2216 { format.ceditors "editor" output.check %wk format.editors->format.ceditors
2217 editor format.key output }
2218 { format.cauthors "author" output.check %wk
2219 author format.key output }
2220 if$
2221 new.block
2222 format.cincollection.title output
2223 crossref missing$ % Chapter and/or
2224 { format.in.ced.booktitle output % page numbers can
2225 format.cedition output % come out via this %wk edition->cedition
2226 new.block
2227 format.caddr.pub "publisher" output.check
2228 output.cyear.check output
2229 cincollectionlike.series.volume.number.pages output % route, too.
2230 format.date.modifydate.citedate output
2231 }
2232 { format.incoll.inproc.crossref output.nonnull
2233 new.block
2234 }
2235 if$
2236 new.block
2237 format.url output
2238 new.block
2239 note output
2240 fin.entry
2241 }
2242 if$
2243 }
2244
2245 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2246 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2247 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2248 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2249 FUNCTION {inproceedings} %wk 改自incollection类型
2250 {language empty$
2251 { output.bibitem
2252 author empty$
2253 { format.editors "editor" output.check %wk format.editors->format.ceditors
2254 editor format.key output }
2255 { format.authors "author" output.check %wk
2256 author format.key output }
2257 if$
2258 new.block
2259 format.inproceedings.title output
2260 crossref missing$ % Chapter and/or
2261 {
2262 before.all 'output.state :=
2263 format.in.ed.booktitle output % page numbers can
2264 format.edition output % come out via this %wk edition->cedition
2265 new.block
2266 format.inproceedings.addr.pub "publisher" output.check
2267 output.year.check
2268 incollectionlike.series.volume.number.pages output % route, too.
2269 format.date.modifydate.citedate output
2270 }
2271 { format.incoll.inproc.crossref output.nonnull
2272 new.block
2273 }
2274 if$
2275 format.url output
2276 new.block
2277 note output
2278 fin.entry
2279 }
2280
2281 { output.bibitem
2282 author empty$
2283 { format.ceditors "editor" output.check %wk format.editors->format.ceditors
2284 editor format.key output }
2285 { format.cauthors "author" output.check %wk
2286 author format.key output }
2287 if$
2288 new.block
2289 format.cinproceedings.title output
2290 crossref missing$ % Chapter and/or
2291 { format.in.ced.booktitle output % page numbers can
2292 format.cedition output % come out via this %wk edition->cedition
2293 new.block
2294 format.cinproceedings.addr.pub "publisher" output.check
2295 output.cyear.check
2296 cincollectionlike.series.volume.number.pages output % route, too.
2297 format.date.modifydate.citedate output
2298 }
2299 { format.incoll.inproc.crossref output.nonnull
2300 new.block
2301 }
2302 if$
2303 new.block
2304 format.url output
2305 new.block
2306 note output
2307 fin.entry
2308 }
2309 if$
2310 }
2311
2312 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2313 FUNCTION {conference} { inproceedings }
2314 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2315 FUNCTION {TECHREPORT} %wk 改自book类型
2316 {language empty$
2317 { output.bibitem
2318 author empty$
2319 { format.editors "author and editor" output.check
2320 editor format.key output
2321 }
2322 { format.authors output.nonnull
2323 crossref missing$
2324 { "author and editor" editor either.or.check }
2325 'skip$
2326 if$
2327 }
2328 if$
2329 new.block
2330 format.title "[R]" * "title" output.check
2331 new.block
2332 crossref missing$
2333 { format.edition output
2334 booklike.series.volume.number output
2335 new.block
2336 format.addr.institution "publisher" output.check
2337 output.year.check output
2338 format.pages output
2339 }
2340 { format.book.crossref output.nonnull
2341 }
2342 if$
2343 new.block
2344 format.url output
2345 new.block
2346 note output
2347 fin.entry
2348 }
2349
2350 { output.bibitem
2351 author empty$
2352 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2353 editor format.key output
2354 }
2355 { format.cauthors output.nonnull
2356 crossref missing$
2357 {"author and editor" editor either.or.check }
2358 'skip$
2359 if$
2360 }
2361 if$
2362 new.block
2363 format.ctitle "[R]" * "title" output.check %wk
2364 new.block
2365 crossref missing$
2366 {
2367 format.cedition output %wk edition->cedition
2368 new.block
2369 format.caddr.institution "publisher" output.check
2370 output.cyear.check %wk
2371 cbooklike.series.volume.number.pages output
2372 }
2373 { format.book.crossref output.nonnull
2374 }
2375 if$
2376 new.block
2377 format.url output
2378 new.block
2379 note output
2380 fin.entry
2381 }
2382 if$
2383 }
2384
2385 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2386 FUNCTION {mastersthesis} %wk 改自book类型
2387 {language empty$
2388 { output.bibitem
2389 author empty$
2390 { format.editors "author and editor" output.check
2391 editor format.key output
2392 }
2393 { format.authors output.nonnull
2394 crossref missing$
2395 { "author and editor" editor either.or.check }
2396 'skip$
2397 if$
2398 }
2399 if$
2400 new.block
2401 format.title "[D]" * "title" output.check
2402 new.block
2403 crossref missing$
2404 { format.edition output
2405 booklike.series.volume.number output
2406 new.block
2407 format.school.pub "publisher" output.check
2408 output.year.check output
2409 format.pages output
2410 }
2411 { format.book.crossref output.nonnull
2412 }
2413 if$
2414 new.block
2415 format.url output
2416 new.block
2417 note output
2418 fin.entry
2419 }
2420
2421 { output.bibitem
2422 author empty$
2423 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2424 editor format.key output
2425 }
2426 { format.cauthors output.nonnull
2427 crossref missing$
2428 {"author and editor" editor either.or.check }
2429 'skip$
2430 if$
2431 }
2432 if$
2433 new.block
2434 format.ctitle "[D]" * "title" output.check %wk
2435 new.block
2436 crossref missing$
2437 {
2438 format.cedition output %wk edition->cedition
2439 new.block
2440 format.cschool.pub "publisher" output.check
2441 output.cyear.check %wk
2442 cbooklike.series.volume.number.pages output
2443 }
2444 { format.book.crossref output.nonnull
2445 }
2446 if$
2447 new.block
2448 format.url output
2449 new.block
2450 note output
2451 fin.entry
2452 }
2453 if$
2454 }
2455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2456 FUNCTION {phdthesis} %wk 改自book类型
2457 {language empty$
2458 { output.bibitem
2459 author empty$
2460 { format.editors "author and editor" output.check
2461 editor format.key output
2462 }
2463 { format.authors output.nonnull
2464 crossref missing$
2465 { "author and editor" editor either.or.check }
2466 'skip$
2467 if$
2468 }
2469 if$
2470 new.block
2471 format.title "[D]" * "title" output.check
2472 new.block
2473 crossref missing$
2474 { format.edition output
2475 booklike.series.volume.number output
2476 new.block
2477 format.school.pub "publisher" output.check
2478 output.year.check output
2479 format.pages output
2480 }
2481 { format.book.crossref output.nonnull
2482 }
2483 if$
2484 new.block
2485 format.url output
2486 new.block
2487 note output
2488 fin.entry
2489 }
2490
2491 { output.bibitem
2492 author empty$
2493 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2494 editor format.key output
2495 }
2496 { format.cauthors output.nonnull
2497 crossref missing$
2498 {"author and editor" editor either.or.check }
2499 'skip$
2500 if$
2501 }
2502 if$
2503 new.block
2504 format.ctitle "[D]" * "title" output.check %wk
2505 new.block
2506 crossref missing$
2507 {
2508 format.cedition output %wk edition->cedition
2509 new.block
2510 format.cschool.pub "publisher" output.check
2511 output.cyear.check %wk
2512 cbooklike.series.volume.number.pages output
2513 }
2514 { format.book.crossref output.nonnull
2515 }
2516 if$
2517 new.block
2518 format.url output
2519 new.block
2520 note output
2521 fin.entry
2522 }
2523 if$
2524 }
2525
2526 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2527 FUNCTION {proceedings} %改自book类型
2528 {language empty$
2529 { output.bibitem
2530 author empty$
2531 { format.editors "author and editor" output.check
2532 editor format.key output
2533 }
2534 { format.authors output.nonnull
2535 crossref missing$
2536 { "author and editor" editor either.or.check }
2537 'skip$
2538 if$
2539 }
2540 if$
2541 new.block
2542 format.conference.title output
2543 new.block
2544 crossref missing$
2545 { format.edition output
2546 booklike.series.volume.number output
2547 new.block
2548 format.addr.pub "publisher" output.check
2549 output.year.check output
2550 format.date.modifydate.citedate output
2551 format.pages output
2552 }
2553 { format.book.crossref output.nonnull
2554 }
2555 if$
2556 new.block
2557 format.url output
2558 new.block
2559 note output
2560 fin.entry
2561 }
2562
2563 { output.bibitem
2564 author empty$
2565 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2566 editor format.key output
2567 }
2568 { format.cauthors output.nonnull
2569 crossref missing$
2570 {"author and editor" editor either.or.check }
2571 'skip$
2572 if$
2573 }
2574 if$
2575 new.block
2576 format.cconference.title output %wk
2577 new.block
2578 crossref missing$
2579 {
2580 format.cedition output %wk edition->cedition
2581 new.block
2582 format.caddr.pub "publisher" output.check
2583 output.cyear.check %wk
2584 cbooklike.series.volume.number.pages output
2585 format.date.modifydate.citedate output
2586 }
2587 { format.book.crossref output.nonnull
2588 }
2589 if$
2590 new.block
2591 format.url output
2592 new.block
2593 note output
2594 fin.entry
2595 }
2596 if$
2597 }
2598 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2599
2600 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2601 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2602 FUNCTION {manual} %改自book类型
2603 {language empty$
2604 { output.bibitem
2605 author empty$
2606 { format.editors "author and editor" output.check
2607 editor format.key output
2608 }
2609 { format.authors output.nonnull
2610 crossref missing$
2611 { "author and editor" editor either.or.check }
2612 'skip$
2613 if$
2614 }
2615 if$
2616 new.block
2617 format.btitle "[H]" * "title" output.check
2618 new.block
2619 crossref missing$
2620 { format.edition output
2621 booklike.series.volume.number output
2622 new.block
2623 format.addr.pub "publisher" output.check
2624 output.year.check output
2625 format.pages output
2626 }
2627 { format.book.crossref output.nonnull
2628 }
2629 if$
2630 new.block
2631 format.url output
2632 new.block
2633 note output
2634 fin.entry
2635 }
2636
2637 { output.bibitem
2638 author empty$
2639 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2640 editor format.key output
2641 }
2642 { format.cauthors output.nonnull
2643 crossref missing$
2644 {"author and editor" editor either.or.check }
2645 'skip$
2646 if$
2647 }
2648 if$
2649 new.block
2650 format.ctitle "[H]" * "title" output.check %wk
2651 new.block
2652 crossref missing$
2653 { format.cedition output %wk edition->cedition
2654 new.block
2655 format.caddr.pub "publisher" output.check
2656 output.cyear.check %wk
2657 cbooklike.series.volume.number.pages output
2658 }
2659 { format.book.crossref output.nonnull
2660 }
2661 if$
2662 new.block
2663 note output
2664 fin.entry
2665 }
2666 if$
2667 }
2668
2669 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2670 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2671 FUNCTION {misc} %作为非常规文献的格式,可靠性低,应该仔细检查,改自book类型
2672 {language empty$
2673 { output.bibitem
2674 author empty$
2675 { format.editors "author and editor" output.check
2676 editor format.key output
2677 }
2678 { format.authors output.nonnull
2679 crossref missing$
2680 { "author and editor" editor either.or.check }
2681 'skip$
2682 if$
2683 }
2684 if$
2685 new.block
2686 format.misc.title output
2687 new.block
2688 crossref missing$
2689 { format.edition output
2690 booklike.series.volume.number output
2691 new.block
2692 format.misc.addr.pub "publisher" output.check
2693 format.date.modifydate.citedate output
2694 }
2695 { format.book.crossref output.nonnull
2696 }
2697 if$
2698 new.block
2699 format.url output
2700 new.block
2701 note output
2702 fin.entry
2703 }
2704
2705 { output.bibitem
2706 author empty$
2707 { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors
2708 editor format.key output
2709 }
2710 { format.cauthors output.nonnull
2711 crossref missing$
2712 {"author and editor" editor either.or.check }
2713 'skip$
2714 if$
2715 }
2716 if$
2717 new.block
2718 format.cmisc.title output %wk
2719
2720 new.block
2721 crossref missing$
2722 {
2723 format.cedition output %wk edition->cedition
2724 new.block
2725 format.cmisc.addr.pub "publisher" output.check
2726 format.date.modifydate.citedate output
2727 }
2728 { format.book.crossref output.nonnull
2729 }
2730 if$
2731 new.block
2732 format.url output
2733 new.block
2734 note output
2735 fin.entry
2736 }
2737 if$
2738 }
2739
2740 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2741 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2742
2743 FUNCTION {unpublished}
2744 {language empty$
2745 { output.bibitem
2746 format.authors "author" output.check
2747 author format.key output
2748 output.year.month.check
2749 new.block
2750 format.btitle "title" output.check
2751 new.block
2752 note "note" output.check
2753 fin.entry
2754 }
2755
2756 { output.bibitem
2757 format.cauthors "author" output.check %wk
2758 author format.key output
2759 output.cyear.month.check %wk
2760 new.block
2761 format.ctitle "title" output.check %wk
2762 new.block
2763 note "note" output.check
2764 fin.entry
2765 }
2766 if$
2767 }
2768 FUNCTION {onlynote} %定义note类型,将note项目单独原文输出,满足自定义任何条目的需求
2769 {
2770 newline$
2771 "\bibitem[" write$
2772 label write$
2773 "]{" write$
2774 cite$ write$
2775 "}" write$
2776 newline$
2777 ""
2778 before.all 'output.state :=
2779 new.block
2780 note output
2781 fin.entry
2782 }
2783
2784 FUNCTION {default.type} { book } %wk 因为主要是基于book类型,因此将缺省类型由misc改为book
2785
2786 MACRO {jan} {"Jan."} % ODWE, "months", &
2787 % Chicago, p. 383.
2788 MACRO {feb} {"Feb."}
2789
2790 MACRO {mar} {"Mar."}
2791
2792 MACRO {apr} {"Apr."}
2793
2794 MACRO {may} {"May"}
2795
2796 MACRO {jun} {"June"}
2797
2798 MACRO {jul} {"July"}
2799
2800 MACRO {aug} {"Aug."}
2801
2802 MACRO {sep} {"Sept."}
2803
2804 MACRO {oct} {"Oct."}
2805
2806 MACRO {nov} {"Nov."}
2807
2808 MACRO {dec} {"Dec."}
2809
2810 MACRO {acmcs} {"ACM Computing Surveys"}
2811
2812 MACRO {acta} {"Acta Informatica"}
2813
2814 MACRO {cacm} {"Communications of the ACM"}
2815
2816 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
2817
2818 MACRO {ibmsj} {"IBM Systems Journal"}
2819
2820 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
2821
2822 MACRO {ieeetc} {"IEEE Transactions on Computers"}
2823
2824 MACRO {ieeetcad}
2825 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
2826
2827 MACRO {ipl} {"Information Processing Letters"}
2828
2829 MACRO {jacm} {"Journal of the ACM"}
2830
2831 MACRO {jcss} {"Journal of Computer and System Sciences"}
2832
2833 MACRO {scp} {"Science of Computer Programming"}
2834
2835 MACRO {sicomp} {"SIAM Journal on Computing"}
2836
2837 MACRO {tocs} {"ACM Transactions on Computer Systems"}
2838
2839 MACRO {tods} {"ACM Transactions on Database Systems"}
2840
2841 MACRO {tog} {"ACM Transactions on Graphics"}
2842
2843 MACRO {toms} {"ACM Transactions on Mathematical Software"}
2844
2845 MACRO {toois} {"ACM Transactions on Office Information Systems"}
2846
2847 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
2848
2849 MACRO {tcs} {"Theoretical Computer Science"}
2850
2851 READ
2852
2853 FUNCTION {sortify}
2854 { purify$
2855 "l" change.case$
2856 }
2857
2858 INTEGERS { len }
2859
2860 FUNCTION {chop.word}
2861 { 's :=
2862 'len :=
2863 s #1 len substring$ =
2864 { s len #1 + global.max$ substring$ }
2865 's
2866 if$
2867 }
2868
2869 FUNCTION {format.lab.names} %wk
2870 { 's :=
2871 s #1 "{vv~}{ll}" format.name$
2872 s num.names$ duplicate$
2873 #2 >
2874 { pop$ " et al." * }
2875 { #2 <
2876 'skip$
2877 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
2878 { " {\em et~al.}" * }
2879 { " and " * s #2 "{vv~}{ll}" format.name$ * } %wk
2880 if$
2881 }
2882 if$
2883 }
2884 if$
2885 }
2886
2887 FUNCTION {format.lab.cnames} %wk
2888 { 's :=
2889 s #1 "{vv~}{ll}" format.name$
2890 s num.names$ duplicate$
2891 #2 >
2892 { pop$ "~等" * }
2893 { #2 <
2894 'skip$
2895 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
2896 { " {\em et~al.}" * }
2897 { "和" * s #2 "{vv~}{ll}" format.name$ * } %wk
2898 if$
2899 }
2900 if$
2901 }
2902 if$
2903 }
2904
2905 FUNCTION {author.key.label}
2906 { author empty$
2907 { key empty$
2908 { cite$ #1 #3 substring$ }
2909 'key
2910 if$
2911 }
2912 {language empty$
2913 {author format.lab.names}
2914 {author format.lab.cnames}
2915 if$}
2916
2917 if$
2918 }
2919
2920 FUNCTION {author.editor.key.label}
2921 { author empty$
2922 { editor empty$
2923 { key empty$
2924 { cite$ #1 #3 substring$ }
2925 'key
2926 if$
2927 }
2928 {language empty$
2929 {editor format.lab.names}
2930 {editor format.lab.cnames}
2931 if$}
2932
2933 if$
2934 }
2935 {language empty$
2936 {author format.lab.names}
2937 {author format.lab.cnames}
2938 if$}
2939
2940 if$
2941 }
2942
2943 FUNCTION {editor.key.label}
2944 { editor empty$
2945 { key empty$
2946 { cite$ #1 #3 substring$ }
2947 'key
2948 if$
2949 }
2950 {language empty$
2951 {editor format.lab.names}
2952 {editor format.lab.cnames}
2953 if$}
2954
2955 if$
2956 }
2957
2958 FUNCTION {author.key.organization.label}
2959 { author empty$
2960 { key empty$
2961 { organization empty$
2962 { cite$ #1 #3 substring$ }
2963 { "The " #4 organization chop.word #3 text.prefix$ }
2964 if$
2965 }
2966 'key
2967 if$
2968 }
2969 { author format.lab.names }
2970 if$
2971 }
2972
2973 FUNCTION {editor.key.organization.label}
2974 { editor empty$
2975 { key empty$
2976 { organization empty$
2977 { cite$ #1 #3 substring$ }
2978 { "The " #4 organization chop.word #3 text.prefix$ }
2979 if$
2980 }
2981 'key
2982 if$
2983 }
2984 { editor format.lab.names }
2985 if$
2986 }
2987
2988 FUNCTION {calc.short.authors}
2989 { type$ "book" =
2990 type$ "inbook" =
2991 or
2992 'author.editor.key.label
2993 { type$ "proceedings" =
2994 'editor.key.organization.label
2995 { type$ "manual" =
2996 'author.key.organization.label
2997 'author.key.label
2998 if$
2999 }
3000 if$
3001 }
3002 if$
3003 'short.list :=
3004 }
3005
3006 FUNCTION {calc.label}
3007 { calc.short.authors
3008 short.list
3009 "("
3010 *
3011 year duplicate$ empty$
3012 short.list key field.or.null = or
3013 { pop$ ""}
3014 'skip$
3015 if$
3016 * ")" *
3017 'label :=
3018 }
3019
3020 INTEGERS { seq.num }
3021
3022 FUNCTION {init.seq}
3023 { #0 'seq.num :=}
3024
3025 EXECUTE {init.seq}
3026
3027 FUNCTION {int.to.fix}
3028 { "000000000" swap$ int.to.str$ *
3029 #-1 #10 substring$
3030 }
3031
3032 FUNCTION {presort}
3033 { calc.label
3034 label sortify
3035 " "
3036 *
3037 seq.num #1 + 'seq.num :=
3038 seq.num int.to.fix
3039 'sort.label :=
3040 sort.label *
3041 #1 entry.max$ substring$
3042 'sort.key$ :=
3043 }
3044
3045 ITERATE {presort}
3046
3047 SORT
3048
3049 STRINGS { longest.label last.label next.extra }
3050
3051 INTEGERS { longest.label.width last.extra.num number.label }
3052
3053 FUNCTION {initialize.longest.label}
3054 { "" 'longest.label :=
3055 #0 int.to.chr$ 'last.label :=
3056 "" 'next.extra :=
3057 #0 'longest.label.width :=
3058 #0 'last.extra.num :=
3059 #0 'number.label :=
3060 }
3061
3062 FUNCTION {forward.pass}
3063 { last.label label =
3064 { last.extra.num #1 + 'last.extra.num :=
3065 last.extra.num int.to.chr$ 'extra.label :=
3066 }
3067 { "a" chr.to.int$ 'last.extra.num :=
3068 "" 'extra.label :=
3069 label 'last.label :=
3070 }
3071 if$
3072 number.label #1 + 'number.label :=
3073 }
3074
3075 FUNCTION {reverse.pass}
3076 { next.extra "b" =
3077 { "a" 'extra.label := }
3078 'skip$
3079 if$
3080 extra.label 'next.extra :=
3081 extra.label
3082 duplicate$ empty$
3083 'skip$
3084 { "{\natexlab{" swap$ * "}}" * }
3085 if$
3086 'extra.label :=
3087 label extra.label * 'label :=
3088 }
3089
3090 EXECUTE {initialize.longest.label}
3091
3092 ITERATE {forward.pass}
3093
3094 REVERSE {reverse.pass}
3095
3096 FUNCTION {bib.sort.order}
3097 { sort.label 'sort.key$ :=
3098 }
3099
3100 ITERATE {bib.sort.order}
3101
3102 SORT
3103
3104 FUNCTION {begin.bib}
3105 { preamble$ empty$
3106 'skip$
3107 { preamble$ write$ newline$ }
3108 if$
3109 "\begin{thebibliography}{" number.label int.to.str$ *
3110 "}\setlength{\baselineskip}{20bp plus 2bp minus 1bp}\setlength{\itemsep}{0bp}\setlength{\parskip}{0pt}" *
3111 %加入三个setlength以符合电子科技大学关于参考文献行距的要求。
3112 write$ newline$
3113 "\providecommand{\natexlab}[1]{#1}"
3114 write$ newline$
3115 "\providecommand{\url}[1]{\texttt{#1}}"
3116 write$ newline$
3117 "\expandafter\ifx\csname urlstyle\endcsname\relax"
3118 write$ newline$
3119 " \providecommand{\doi}[1]{doi: #1}\else"
3120 write$ newline$
3121 " \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi"
3122 write$ newline$
3123 }
3124
3125 EXECUTE {begin.bib}
3126
3127 EXECUTE {init.state.consts}
3128
3129 ITERATE {call.type$}
3130
3131 FUNCTION {end.bib}
3132 { newline$
3133 "\end{thebibliography}" write$ newline$
3134 }
3135
3136 EXECUTE {end.bib}
3137
3138 \endinput
3139 %%
3140 %% End of file `uestcthesis.bst'.