├── .gitattributes ├── .gitignore ├── GBT7714-2005NLang-UTF8.bst ├── MyDissBib.bib ├── bjtuthesis.cls ├── pic ├── G1.png ├── logo.png └── tab.png ├── readme.md ├── template.pdf └── template.tex /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # ========================= 2 | # Latex中间文件 3 | # ========================= 4 | *.aux 5 | *.bbl 6 | *.blg 7 | *.log 8 | *.out 9 | *.toc 10 | *.rar 11 | 12 | 13 | -------------------------------------------------------------------------------- /GBT7714-2005NLang-UTF8.bst: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | %%% ==================================================================== 3 | %%% Copyright (C) 2006 Wu Kai 4 | %%% @BibTeX-style-file{ 5 | %%% author = "吴凯", 6 | %%% version = "1 Beta 2 测试版", 7 | %%% date = "2006/5/25 21:17" 8 | %%% filename = "GBT7714-2005N.bst", 9 | %%% address = "上海财经大学,公共经济与管理学院,200433", 10 | %%% email = "solomonkwu@gmail.com", 11 | %%% docstring = "本文件改编自Sake J. Hogeveen的authordate1.bst文件。 12 | %%% 产生符合《GB/T 7714-2005文后参考文献著录规则》 13 | %%% 顺序编码制格式的文后参考文献。 14 | %%% 使用方法: 15 | %%% \usepackage[numbers,sort&compress]{natbib} 16 | %%% \usepackage{hypernat} 17 | %%% \bibliographystyle{GBT7714-2005N}" 18 | %%% copyright = "使用前请核对最新的版本。您可以免费使用和传播本文件(GBT7714-2005N.bst)。 19 | %%% 作者保留修改的权利,以保证不同版本GBT7714-2005N.bst的一致性。 20 | %%% 如您需要对本文件进行修改,请另存为其他名字。" 21 | %%% ==================================================================== 22 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 23 | 24 | ENTRY 25 | { address 26 | author 27 | booktitle 28 | chapter 29 | edition 30 | editor 31 | howpublished 32 | institution 33 | journal 34 | key 35 | month 36 | note 37 | number 38 | organization 39 | pages 40 | publisher 41 | school 42 | series 43 | title 44 | type 45 | volume 46 | year 47 | url 48 | TypeofLit %新加入:文献类型和标志代码 49 | normalauthor %不改变大小写的作者 50 | normaleditor %不改变大小写的编者 51 | translator %新加入:翻译者 52 | date %日期,公告日期,公开日期 53 | modifydate %修改日期 54 | citedate %引用日期 55 | patentid %专利号 56 | country %国家(主要用于专利中) 57 | miscyear %其它类中用于输出年份 58 | startyear %起始年 59 | startvolume %起始卷 60 | startnumber %起始期 61 | endyear %终止年 62 | endvolume %终止卷 63 | endnumber %终止期 64 | language %默认是英文文献,非空则表明是中文文献 65 | } 66 | {} 67 | { label extra.label sort.label short.list } 68 | 69 | INTEGERS { output.state before.all mid.sentence after.sentence after.block } 70 | FUNCTION {format.url} 71 | { url empty$ 72 | { "" } 73 | { new.block 74 | "\url{" url * "}" * } 75 | if$ 76 | } 77 | FUNCTION {init.state.consts} 78 | { #0 'before.all := 79 | #1 'mid.sentence := 80 | #2 'after.sentence := 81 | #3 'after.block := 82 | } 83 | 84 | STRINGS { s t } 85 | 86 | 87 | 88 | FUNCTION {output.nonnull} 89 | { 's := 90 | output.state mid.sentence = 91 | { ", " * write$ } 92 | { output.state after.block = 93 | { add.period$ write$ 94 | newline$ 95 | "\newblock " write$ 96 | } 97 | { output.state before.all = 98 | 'write$ 99 | { add.period$ " " * write$ } 100 | if$ 101 | } 102 | if$ 103 | mid.sentence 'output.state := 104 | } 105 | if$ 106 | s 107 | } 108 | 109 | 110 | FUNCTION {coutput.nonnull} %wk 111 | { 's := 112 | output.state mid.sentence = 113 | { "," * write$ } % 114 | { output.state after.block = 115 | { add.period$ write$ 116 | newline$ 117 | "\newblock " write$ 118 | } 119 | { output.state before.all = 120 | 'write$ 121 | { add.period$ " " * write$ } 122 | if$ 123 | } 124 | if$ 125 | mid.sentence 'output.state := 126 | } 127 | if$ 128 | s 129 | } 130 | 131 | FUNCTION {output} 132 | { duplicate$ empty$ 133 | 'pop$ 134 | 'output.nonnull 135 | if$ 136 | } 137 | 138 | FUNCTION {coutput} %wk 139 | { duplicate$ empty$ 140 | 'pop$ 141 | 'coutput.nonnull 142 | if$ 143 | } 144 | 145 | FUNCTION {output.check} 146 | { 't := 147 | duplicate$ empty$ 148 | { pop$ "empty " t * " in " * cite$ * warning$ } 149 | 'output.nonnull 150 | if$ 151 | } 152 | 153 | FUNCTION {coutput.check} %wk 154 | { 't := 155 | duplicate$ empty$ 156 | { pop$ "empty " t * " in " * cite$ * warning$ } 157 | 'coutput.nonnull 158 | if$ 159 | } 160 | 161 | FUNCTION {output.year.month.check} 162 | { year empty$ 163 | { "empty year in " cite$ * warning$ } 164 | { add.period$ write$ 165 | month empty$ 166 | { " " year * extra.label * "." * 167 | after.sentence 'output.state := 168 | } 169 | { " " year * extra.label * " (" * month * ")." * 170 | after.sentence 'output.state := 171 | } 172 | if$ 173 | } 174 | if$ 175 | } 176 | 177 | FUNCTION {output.cyear.month.check} %wk 178 | { year empty$ 179 | { "empty year in " cite$ * warning$ } 180 | {write$ 181 | month empty$ 182 | {year %wk 183 | after.sentence 'output.state := 184 | } 185 | { "" year * extra.label * "(" * month * ")" * %wk 186 | after.sentence 'output.state := 187 | } 188 | if$ 189 | } 190 | if$ 191 | } 192 | 193 | 194 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 195 | FUNCTION {output.modifydate.check} 196 | {modifydate 197 | } 198 | 199 | FUNCTION {output.citedate.check} 200 | { year empty$ 201 | { "" } 202 | { write$ 203 | "[" citedate * extra.label * "]" * 204 | after.sentence 'output.state := 205 | } 206 | if$ 207 | } 208 | 209 | 210 | FUNCTION {output.year.check} 211 | { year empty$ 212 | { "empty year in " cite$ * warning$ } 213 | {miscyear empty$ 214 | {year} 215 | {miscyear} 216 | if$ %wk 217 | } 218 | if$ 219 | extra.label * 220 | } 221 | 222 | FUNCTION {output.cyear.check} %wk 223 | { year empty$ 224 | { "empty year in " cite$ * warning$ } 225 | {miscyear empty$ 226 | {year} 227 | {miscyear} 228 | if$ %wk 229 | } 230 | if$ 231 | extra.label * 232 | } 233 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 234 | 235 | FUNCTION {output.continue.year.check} %wk 236 | { 237 | endyear empty$ 238 | {startyear empty$ 239 | {year empty$ 240 | { "empty year in " cite$ * warning$ } 241 | {"" year * "" * } 242 | if$ 243 | } 244 | {"" startyear * "-" * } 245 | if$ 246 | } 247 | {startyear empty$ 248 | {year empty$ 249 | { "empty year in " cite$ * warning$ } 250 | {"" year * "" * } 251 | if$ 252 | } 253 | {"" startyear * "-" * 254 | "" endyear * "" * * 255 | } 256 | if$ 257 | } 258 | if$ 259 | } 260 | 261 | 262 | FUNCTION {output.continue.cyear.check} %wk 263 | { 264 | endyear empty$ 265 | {startyear empty$ 266 | {year empty$ 267 | { "empty year in " cite$ * warning$ } 268 | {"" year * "" * } 269 | if$ 270 | } 271 | {"" startyear * "-" * } 272 | if$ 273 | } 274 | {startyear empty$ 275 | {year empty$ 276 | { "empty year in " cite$ * warning$ } 277 | {"" year * "" * } 278 | if$ 279 | } 280 | {"" startyear * "-" * 281 | "" endyear * "" * * 282 | } 283 | if$ 284 | } 285 | if$ 286 | } 287 | 288 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 289 | FUNCTION {output.article.year.check} 290 | {month empty$ 291 | { 292 | year empty$ 293 | { "empty year in " cite$ * warning$ } 294 | {year %wk 295 | } 296 | if$ 297 | } 298 | { 299 | TypeofLit empty$ 300 | {year empty$ 301 | { "empty year in " cite$ * warning$ } 302 | {year %wk 303 | } 304 | if$} 305 | 306 | {year empty$ 307 | { "empty year in " cite$ * warning$ } 308 | {year %wk 309 | "-" month * "" * * 310 | } 311 | if$ 312 | } 313 | if$ 314 | } 315 | if$ 316 | } 317 | 318 | FUNCTION {output.carticle.year.check} %wk 319 | {month empty$ 320 | { 321 | year empty$ 322 | { "empty year in " cite$ * warning$ } 323 | {year %wk 324 | } 325 | if$ 326 | } 327 | { 328 | TypeofLit empty$ 329 | {year empty$ 330 | { "empty year in " cite$ * warning$ } 331 | {year %wk 332 | } 333 | if$} 334 | 335 | {year empty$ 336 | { "empty year in " cite$ * warning$ } 337 | {year %wk 338 | "-" month * "" * * 339 | } 340 | if$ 341 | } 342 | if$ 343 | } 344 | if$ 345 | } 346 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 347 | 348 | FUNCTION {output.bibitem} 349 | { newline$ 350 | "\bibitem[" write$ 351 | label write$ 352 | "]{" write$ 353 | cite$ write$ 354 | "}" write$ 355 | newline$ 356 | "" 357 | before.all 'output.state := 358 | } 359 | 360 | FUNCTION {fin.entry} 361 | { add.period$ 362 | write$ 363 | newline$ 364 | } 365 | 366 | FUNCTION {new.block} 367 | { output.state before.all = 368 | 'skip$ 369 | { after.block 'output.state := } 370 | if$ 371 | } 372 | 373 | FUNCTION {new.sentence} 374 | { output.state after.block = 375 | 'skip$ 376 | { output.state before.all = 377 | 'skip$ 378 | { after.sentence 'output.state := } 379 | if$ 380 | } 381 | if$ 382 | } 383 | 384 | FUNCTION {not} 385 | { { #0 } 386 | { #1 } 387 | if$ 388 | } 389 | 390 | FUNCTION {and} 391 | { 'skip$ 392 | { pop$ #0 } 393 | if$ 394 | } 395 | 396 | FUNCTION {or} 397 | { { pop$ #1 } 398 | 'skip$ 399 | if$ 400 | } 401 | 402 | FUNCTION {new.block.checkb} 403 | { empty$ 404 | swap$ empty$ 405 | and 406 | 'skip$ 407 | 'new.block 408 | if$ 409 | } 410 | 411 | FUNCTION {field.or.null} 412 | { duplicate$ empty$ 413 | { pop$ "" } 414 | 'skip$ 415 | if$ 416 | } 417 | 418 | FUNCTION {boldface} 419 | { duplicate$ empty$ 420 | { pop$ "" } 421 | { "{\bf " swap$ * "}" * } 422 | if$ 423 | } 424 | 425 | %FUNCTION {emphasize} 426 | %{ duplicate$ empty$ 427 | % { pop$ "" } 428 | % { "{\em " swap$ * "}" * } 429 | % if$ 430 | %} 431 | 432 | 433 | %%%%%%%%%%%%%%%%%%% 434 | Function{upcase} 435 | { duplicate$ empty$ 436 | { pop$ "" } 437 | { "u" change.case$ } 438 | if$ 439 | } 440 | FUNCTION {bib.name.font} 441 | { upcase } 442 | FUNCTION {bib.fname.font} 443 | { bib.name.font } 444 | %%%%%%%%%%%%%%%%%%%% 445 | 446 | %%%%%%%%%%%%%%%%%%%%%%% 447 | 448 | INTEGERS { nameptr namesleft numnames } 449 | 450 | FUNCTION {capitalize} 451 | { "u" change.case$ "t" change.case$ } 452 | 453 | FUNCTION {format.names} 454 | { 's := 455 | #1 'nameptr := 456 | s num.names$ 'numnames := 457 | numnames 'namesleft := 458 | { namesleft #0 > } 459 | { s nameptr "{vv~}{ll}{ f{~}}{, jj}" 460 | format.name$ 461 | remove.dots 462 | 't := 463 | nameptr #1 > 464 | { 465 | nameptr #3 466 | #1 + = 467 | numnames #3 468 | > and 469 | { "others" 't := 470 | #1 'namesleft := } 471 | 'skip$ 472 | if$ 473 | namesleft #1 > 474 | { ", " * t * } 475 | { numnames #2 > 476 | { "" * } 477 | 'skip$ 478 | if$ 479 | s nameptr "{ll}" format.name$ duplicate$ "others" = 480 | { 't := } 481 | { pop$ } 482 | if$ 483 | t "others" = 484 | {bib.name.font %改为大写 485 | ", et al" * 486 | } 487 | {", " * t * } 488 | if$ 489 | } 490 | if$ 491 | } 492 | 't 493 | if$ 494 | nameptr #1 + 'nameptr := 495 | namesleft #1 - 'namesleft := 496 | } 497 | while$ 498 | %%%%%%%%%%% 499 | t "others" = %改为大写 500 | 'skip$ %改为大写 501 | { bib.name.font } %改为大写 502 | if$ %改为大写 503 | %%%%%%%%%%% 504 | } 505 | 506 | 507 | FUNCTION {format.cnames} %wk 508 | { 's := 509 | #1 'nameptr := 510 | s num.names$ 'numnames := 511 | numnames 'namesleft := 512 | { namesleft #0 > } 513 | { s nameptr "{vv~}{ll}{ f{~}}{ jj}" format.name$ 514 | remove.dots 515 | 't := 516 | nameptr #1 > 517 | { 518 | nameptr #3 519 | #1 + = 520 | numnames #3 521 | > and 522 | { "others" 't := 523 | #1 'namesleft := } 524 | 'skip$ 525 | if$ 526 | namesleft #1 > 527 | { ", " * t * } 528 | { numnames #2 > 529 | { "" * } 530 | 'skip$ 531 | if$ 532 | s nameptr "{ll}" format.name$ duplicate$ "others" = 533 | { 't := } 534 | { pop$ } 535 | if$ 536 | t "others" = 537 | { ",等" * 538 | bib.name.font %改为大写 539 | } 540 | {", " * t * } 541 | if$ 542 | } 543 | if$ 544 | } 545 | 't 546 | if$ 547 | nameptr #1 + 'nameptr := 548 | namesleft #1 - 'namesleft := 549 | } 550 | while$ 551 | %%%%%%%%%%% 552 | t "others" = %改为大写 553 | 'skip$ %改为大写 554 | { bib.name.font } %改为大写 555 | if$ %改为大写 556 | %%%%%%%%%%% 557 | } 558 | 559 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 560 | %不加大写的名字 561 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 562 | 563 | FUNCTION {format.normal.names} 564 | { 's := 565 | #1 'nameptr := 566 | s num.names$ 'numnames := 567 | numnames 'namesleft := 568 | { namesleft #0 > } 569 | { s nameptr "{vv~}{ll}{ f{~}}{, jj}" 570 | format.name$ 571 | remove.dots 572 | 't := 573 | nameptr #1 > 574 | { 575 | nameptr #3 576 | #1 + = 577 | numnames #3 578 | > and 579 | { "others" 't := 580 | #1 'namesleft := } 581 | 'skip$ 582 | if$ 583 | namesleft #1 > 584 | { ", " * t * } 585 | { numnames #2 > 586 | { "" * } 587 | 'skip$ 588 | if$ 589 | s nameptr "{ll}" format.name$ duplicate$ "others" = 590 | { 't := } 591 | { pop$ } 592 | if$ 593 | t "others" = 594 | { ", et al" * } 595 | {", " * t * } 596 | if$ 597 | } 598 | if$ 599 | } 600 | 't 601 | if$ 602 | nameptr #1 + 'nameptr := 603 | namesleft #1 - 'namesleft := 604 | } 605 | while$ 606 | } 607 | 608 | 609 | FUNCTION {format.normal.cnames} %wk 610 | { 's := 611 | #1 'nameptr := 612 | s num.names$ 'numnames := 613 | numnames 'namesleft := 614 | { namesleft #0 > } 615 | { s nameptr "{vv~}{ll}{ f{~}}{ jj}" format.name$ 616 | remove.dots 617 | 't := 618 | nameptr #1 > 619 | { 620 | nameptr #3 621 | #1 + = 622 | numnames #3 623 | > and 624 | { "others" 't := 625 | #1 'namesleft := } 626 | 'skip$ 627 | if$ 628 | namesleft #1 > 629 | { ", " * t * } 630 | { numnames #2 > 631 | { "" * } 632 | 'skip$ 633 | if$ 634 | s nameptr "{ll}" format.name$ duplicate$ "others" = 635 | { 't := } 636 | { pop$ } 637 | if$ 638 | t "others" = 639 | { ",等" * } 640 | {", " * t * } 641 | if$ 642 | } 643 | if$ 644 | } 645 | 't 646 | if$ 647 | nameptr #1 + 'nameptr := 648 | namesleft #1 - 'namesleft := 649 | } 650 | while$ 651 | } 652 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 653 | 654 | FUNCTION {format.authors} 655 | { author empty$ 656 | { "" } 657 | {normalauthor empty$ 658 | {author format.names } 659 | {normalauthor format.normal.names} 660 | if$ 661 | } 662 | if$ 663 | } 664 | 665 | FUNCTION {format.cauthors} %wk 666 | { author empty$ 667 | { "" } 668 | {normalauthor empty$ 669 | {author format.cnames } 670 | {normalauthor format.normal.cnames} 671 | if$ 672 | } 673 | if$ 674 | } 675 | 676 | FUNCTION {format.key} 677 | { empty$ 678 | { key field.or.null } 679 | { "" } 680 | if$ 681 | } 682 | 683 | FUNCTION {format.editors} 684 | { editor empty$ 685 | { "" } 686 | {normaleditor empty$ 687 | {editor format.names } 688 | {normaleditor format.normal.names} 689 | if$ 690 | editor num.names$ #1 > % Use ODWE abbrevs. 691 | { "" * } % to avoid 692 | { "" * } % ambiguity between 693 | if$ % "editor" and 694 | } % "edition". 695 | if$ 696 | } 697 | 698 | FUNCTION {format.ceditors} %wk 本函数 699 | { editor empty$ 700 | { "" } 701 | { 702 | normaleditor empty$ 703 | {editor * "" * format.cnames } 704 | {normaleditor * "" * format.normal.cnames} 705 | if$ 706 | } 707 | if$ 708 | } 709 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 710 | FUNCTION {format.title} % Nothing needs 711 | { title empty$ % doing here in 712 | { "" } % authordate1.bst 713 | { title } % or 714 | if$ % authordate3.bst. 715 | } 716 | 717 | FUNCTION {format.ctitle} %wk % Nothing needs 718 | { title empty$ % doing here in 719 | { "" } % authordate1.bst 720 | {title} % or 721 | if$ % authordate3.bst. 722 | } 723 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 724 | 725 | 726 | FUNCTION {format.article.title} % Nothing needs 727 | {title empty$ % doing here in 728 | { "" } % authordate1.bst 729 | { 730 | typeoflit empty$ 731 | {format.title "[J]" * title output.check} 732 | {format.title title output.check} 733 | if$ 734 | } 735 | if$ 736 | TypeofLit empty$ 737 | {""} 738 | { "[" TypeofLit * "]" * * } 739 | if$ 740 | % authordate3.bst. 741 | } 742 | 743 | 744 | FUNCTION {format.carticle.title} % Nothing needs 745 | {title empty$ % doing here in 746 | { "" } % authordate1.bst 747 | { 748 | typeoflit empty$ 749 | {format.title "[J]" * title output.check} 750 | {format.title title output.check} 751 | if$ 752 | } 753 | if$ 754 | 755 | TypeofLit empty$ 756 | {""} 757 | { "[" TypeofLit * "]" * * } 758 | if$ 759 | % authordate3.bst. 760 | } 761 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 762 | FUNCTION {format.book.title} % Nothing needs 763 | {title empty$ % doing here in 764 | { "" } % authordate1.bst 765 | { 766 | typeoflit empty$ 767 | {format.title "[M]" * title output.check} 768 | {format.title title output.check} 769 | if$ 770 | } 771 | if$ 772 | TypeofLit empty$ 773 | {""} 774 | { "[" TypeofLit * "]" * * } 775 | if$ 776 | % authordate3.bst. 777 | } 778 | 779 | 780 | FUNCTION {format.cbook.title} %wk % Nothing needs 781 | {title empty$ % doing here in 782 | { "" } % authordate1.bst 783 | { 784 | typeoflit empty$ 785 | {format.title "[M]" * title output.check} 786 | {format.title title output.check} 787 | if$ 788 | } 789 | if$ 790 | TypeofLit empty$ 791 | {""} 792 | { "[" TypeofLit * "]" * * } 793 | if$ 794 | % authordate3.bst. 795 | } 796 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 797 | FUNCTION {format.misc.title} %wk % Nothing needs 798 | { 799 | patentid empty$ 800 | {%没有专利号应该是其它类型文献,直接标准输出 801 | title empty$ % doing here in 802 | { "" } % authordate1.bst 803 | { 804 | typeoflit empty$ 805 | {format.title "[缺文献类型标志代码]." * title output.check} 806 | {format.title title output.check} 807 | if$ 808 | } 809 | if$ 810 | TypeofLit empty$ 811 | {""} 812 | { "[" TypeofLit * "]." * * } 813 | if$ 814 | } 815 | {%有专利号 816 | country empty$ 817 | { 818 | title empty$ % doing here in 819 | { "" } % authordate1.bst 820 | { 821 | typeoflit empty$ 822 | {format.title "[缺文献类型标志代码]." * title output.check} 823 | {format.title title output.check} 824 | if$ 825 | } 826 | if$ 827 | TypeofLit empty$ 828 | {""} 829 | { "[" TypeofLit * "]." * * } 830 | if$ 831 | "" patentid * "" * * 832 | } 833 | {%有专利号,有国家 834 | title empty$ % doing here in 835 | { "" } % authordate1.bst 836 | { 837 | typeoflit empty$ 838 | {format.title "[缺文献类型标志代码]." * title output.check} 839 | {format.title title output.check} 840 | if$ 841 | } 842 | if$ 843 | 844 | ":" country * "," * * 845 | "" patentid * "" * * 846 | TypeofLit empty$ 847 | {""} 848 | { "[" TypeofLit * "]." * * } 849 | if$ 850 | 851 | } 852 | if$ 853 | } 854 | if$ 855 | 856 | } 857 | 858 | 859 | FUNCTION {format.cmisc.title} %wk % Nothing needs 860 | { 861 | patentid empty$ 862 | {%没有专利号应该是其它类型文献,直接标准输出 863 | title empty$ % doing here in 864 | { "" } % authordate1.bst 865 | { 866 | typeoflit empty$ 867 | {format.title "[缺文献类型标志代码]." * title output.check} 868 | {format.title title output.check} 869 | if$ 870 | } 871 | if$ 872 | TypeofLit empty$ 873 | {""} 874 | { "[" TypeofLit * "]." * * } 875 | if$ 876 | } 877 | {%有专利号 878 | country empty$ 879 | { 880 | title empty$ % doing here in 881 | { "" } % authordate1.bst 882 | { 883 | typeoflit empty$ 884 | {format.title "[缺文献类型标志代码]." * title output.check} 885 | {format.title title output.check} 886 | if$ 887 | } 888 | if$ 889 | TypeofLit empty$ 890 | {""} 891 | { "[" TypeofLit * "]." * * } 892 | if$ 893 | "" patentid * "" * * 894 | } 895 | {%有专利号,有国家 896 | title empty$ % doing here in 897 | { "" } % authordate1.bst 898 | { 899 | typeoflit empty$ 900 | {format.title "[缺文献类型标志代码]." * title output.check} 901 | {format.title title output.check} 902 | if$ 903 | } 904 | if$ 905 | 906 | ":" country * "," * * 907 | "" patentid * "" * * 908 | TypeofLit empty$ 909 | {""} 910 | { "[" TypeofLit * "]." * * } 911 | if$ 912 | 913 | } 914 | if$ 915 | } 916 | if$ 917 | 918 | } 919 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 920 | 921 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 922 | 923 | FUNCTION {format.proceedings.title} % Nothing needs 924 | {title empty$ % doing here in 925 | { "" } % authordate1.bst 926 | { 927 | typeoflit empty$ 928 | {format.title "[C]" * title output.check} 929 | {format.title title output.check} 930 | if$ 931 | } 932 | if$ 933 | 934 | TypeofLit empty$ 935 | {""} 936 | { "[" TypeofLit * "]" * * } 937 | if$ 938 | % authordate3.bst. 939 | } 940 | 941 | 942 | FUNCTION {format.cproceedings.title} % Nothing needs 943 | {title empty$ % doing here in 944 | { "" } % authordate1.bst 945 | { 946 | typeoflit empty$ 947 | {format.title "[C]" * title output.check} 948 | {format.title title output.check} 949 | if$ 950 | } 951 | if$ 952 | 953 | TypeofLit empty$ 954 | {""} 955 | { "[" TypeofLit * "]" * * } 956 | if$ 957 | % authordate3.bst. 958 | } 959 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 960 | FUNCTION {format.incollection.title} % Nothing needs 961 | {title empty$ % doing here in 962 | { "" } % authordate1.bst 963 | { 964 | typeoflit empty$ 965 | {format.title "[M]//" * title output.check} 966 | {format.title "" * title output.check} 967 | if$ 968 | } 969 | if$ 970 | 971 | TypeofLit empty$ 972 | {""} 973 | { "[" TypeofLit * "]//" * * } 974 | if$ 975 | % authordate3.bst. 976 | } 977 | 978 | 979 | FUNCTION {format.cincollection.title} % Nothing needs 980 | {title empty$ % doing here in 981 | { "" } % authordate1.bst 982 | { 983 | typeoflit empty$ 984 | {format.title "[M]//" * title output.check} 985 | {format.title "" * title output.check} 986 | if$ 987 | } 988 | if$ 989 | 990 | TypeofLit empty$ 991 | {""} 992 | { "[" TypeofLit * "]//" * * } 993 | if$ 994 | % authordate3.bst. 995 | } 996 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 997 | FUNCTION {format.inproceedings.title} % Nothing needs 998 | {title empty$ % doing here in 999 | { "" } % authordate1.bst 1000 | { 1001 | typeoflit empty$ 1002 | {format.title "[C]//" * title output.check} 1003 | {format.title "" * title output.check} 1004 | if$ 1005 | } 1006 | if$ 1007 | 1008 | TypeofLit empty$ 1009 | {""} 1010 | { "[" TypeofLit * "]//" * * } 1011 | if$ 1012 | % authordate3.bst. 1013 | } 1014 | 1015 | 1016 | FUNCTION {format.cinproceedings.title} % Nothing needs 1017 | {title empty$ % doing here in 1018 | { "" } % authordate1.bst 1019 | { 1020 | typeoflit empty$ 1021 | {format.title "[C]//" * title output.check} 1022 | {format.title "" * title output.check} 1023 | if$ 1024 | } 1025 | if$ 1026 | 1027 | TypeofLit empty$ 1028 | {""} 1029 | { "[" TypeofLit * "]//" * * } 1030 | if$ 1031 | % authordate3.bst. 1032 | } 1033 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1034 | 1035 | FUNCTION {n.dashify} 1036 | { 't := 1037 | "" 1038 | { t empty$ not } 1039 | { t #1 #1 substring$ "-" = 1040 | { t #1 #2 substring$ "--" = not 1041 | { "--" * 1042 | t #2 global.max$ substring$ 't := 1043 | } 1044 | { { t #1 #1 substring$ "-" = } 1045 | { "-" * 1046 | t #2 global.max$ substring$ 't := 1047 | } 1048 | while$ 1049 | } 1050 | if$ 1051 | } 1052 | { t #1 #1 substring$ * 1053 | t #2 global.max$ substring$ 't := 1054 | } 1055 | if$ 1056 | } 1057 | while$ 1058 | } 1059 | 1060 | FUNCTION {format.btitle} 1061 | { title empty$ 1062 | { "" } % Don't change case 1063 | {booktitle} % in 1064 | if$ % authordate1.bst 1065 | } % or 1066 | 1067 | FUNCTION {format.cbtitle} %wk % Nothing needs 1068 | { title empty$ % doing here in 1069 | { "" } % authordate1.bst 1070 | {booktitle} % or 1071 | if$ % authordate3.bst. 1072 | } 1073 | % authordate3.bst. 1074 | FUNCTION {tie.or.space.connect} 1075 | { duplicate$ text.length$ #3 < 1076 | { "~" } 1077 | { " " } 1078 | if$ 1079 | swap$ * * 1080 | } 1081 | 1082 | FUNCTION {either.or.check} 1083 | { empty$ 1084 | 'pop$ 1085 | { "can't use both " swap$ * " fields in " * cite$ * warning$ } 1086 | if$ 1087 | } 1088 | 1089 | INTEGERS { multiresult } 1090 | 1091 | FUNCTION {multi.page.check} 1092 | { 't := 1093 | #0 'multiresult := 1094 | { multiresult not 1095 | t empty$ not 1096 | and 1097 | } 1098 | { t #1 #1 substring$ 1099 | duplicate$ "-" = 1100 | swap$ duplicate$ "," = 1101 | swap$ "+" = 1102 | or or 1103 | { #1 'multiresult := } 1104 | { t #2 global.max$ substring$ 't := } 1105 | if$ 1106 | } 1107 | while$ 1108 | multiresult 1109 | } 1110 | 1111 | FUNCTION {format.numberinseries} 1112 | { number empty$ 1113 | { "" } 1114 | { number multi.page.check 1115 | { ", nos. " number n.dashify tie.or.space.connect } 1116 | { ", no. " number tie.or.space.connect } 1117 | if$ 1118 | } 1119 | if$ 1120 | } 1121 | 1122 | FUNCTION {format.cnumberinseries} %wk 1123 | { number empty$ 1124 | { "" } 1125 | { number multi.page.check 1126 | { ", 第" number n.dashify tie.or.space.connect * "期"} %wk 1127 | { ", 第" number tie.or.space.connect * "期"} %wk 1128 | if$ 1129 | } 1130 | if$ 1131 | } 1132 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1133 | FUNCTION {booklike.series.volume.number} % Chicago, pages 1134 | { series empty$ % 450-451. 1135 | { volume empty$ 1136 | { " " } 1137 | { " Vol. " volume * } 1138 | if$ 1139 | } 1140 | { 1141 | volume empty$ 1142 | { number empty$ 1143 | { series } 1144 | { series format.numberinseries * } 1145 | if$ 1146 | } 1147 | { number empty$ 1148 | { series ", vol. " volume * * } 1149 | { series ", vol. " * volume * format.numberinseries * } 1150 | if$ 1151 | } 1152 | if$ 1153 | } 1154 | if$ 1155 | } 1156 | 1157 | FUNCTION {cbooklike.series.volume.number.pages} %wk加入页码 ??? % Chicago, pages %wk 1158 | { series empty$ % 450-451. 1159 | { volume empty$ 1160 | { pages empty$ 1161 | 'skip$ 1162 | { duplicate$ empty$ 1163 | { pop$ format.pages } 1164 | { ":" * pages n.dashify * "" *} %wk 改为第页 1165 | if$ 1166 | } 1167 | if$} 1168 | { "卷" volume * } 1169 | if$ 1170 | } 1171 | { 1172 | volume empty$ 1173 | { number empty$ 1174 | { series } 1175 | { series format.numberinseries * } 1176 | if$ 1177 | } 1178 | { number empty$ 1179 | { series ",第" volume * "卷" * * } 1180 | { series "卷" * volume * format.cnumberinseries * } 1181 | if$ 1182 | } 1183 | if$ 1184 | } 1185 | if$ 1186 | } 1187 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1188 | FUNCTION {incollectionlike.series.volume.number.pages} %wk 1189 | { series empty$ 1190 | { volume empty$ 1191 | { pages empty$ 1192 | 'skip$ 1193 | { duplicate$ empty$ 1194 | { pop$ format.pages } 1195 | { ":" * pages n.dashify * "" *} %wk 改为第页 1196 | if$ 1197 | } 1198 | if$} 1199 | { "," volume * "" * * 1200 | pages empty$ 1201 | 'skip$ 1202 | { duplicate$ empty$ 1203 | { pop$ format.pages } 1204 | { ":" * pages n.dashify * "" *} %wk 改为第页 1205 | if$ 1206 | } 1207 | if$} 1208 | if$ 1209 | } 1210 | { new.block 1211 | volume empty$ 1212 | { number empty$ 1213 | { series } 1214 | { series format.numberinseries * } 1215 | if$ 1216 | } 1217 | { number empty$ 1218 | { series ", vol. " volume * * } 1219 | { series ", vol. " * volume * format.numberinseries * } 1220 | if$ 1221 | } 1222 | if$ 1223 | } 1224 | if$ 1225 | } 1226 | 1227 | FUNCTION {cincollectionlike.series.volume.number.pages} %wk 1228 | { series empty$ 1229 | { volume empty$ 1230 | { pages empty$ 1231 | 'skip$ 1232 | { duplicate$ empty$ 1233 | { pop$ format.pages } 1234 | { ":" * pages n.dashify * "" *} %wk 改为第页 1235 | if$ 1236 | } 1237 | if$} 1238 | { ",第" volume * "卷" * * 1239 | pages empty$ 1240 | 'skip$ 1241 | { duplicate$ empty$ 1242 | { pop$ format.pages } 1243 | { ":" * pages n.dashify * "" *} %wk 改为第页 1244 | if$ 1245 | } 1246 | if$} 1247 | if$ 1248 | } 1249 | { new.block 1250 | volume empty$ 1251 | { number empty$ 1252 | { series } 1253 | { series format.numberinseries * } 1254 | if$ 1255 | } 1256 | { number empty$ 1257 | { series ", vol. " volume * * } 1258 | { series ", vol. " * volume * format.numberinseries * } 1259 | if$ 1260 | } 1261 | if$ 1262 | } 1263 | if$ 1264 | } 1265 | 1266 | 1267 | FUNCTION {format.TypeofLit} %wk 完全改写 1268 | { TypeofLit empty$ 1269 | { "" } 1270 | {"[" TypeofLit * "]" *} 1271 | if$ 1272 | } 1273 | 1274 | 1275 | FUNCTION {format.edition} 1276 | { edition empty$ 1277 | { 1278 | translator empty$ 1279 | { "" } 1280 | {"" translator * ",translation" * } 1281 | if$ 1282 | } 1283 | { 1284 | translator empty$ 1285 | {edition} 1286 | {translator output 1287 | ",translation." edition * "" * *} 1288 | if$ 1289 | } 1290 | if$ 1291 | } 1292 | 1293 | 1294 | FUNCTION {format.cedition} %wk 完全改写 1295 | { edition empty$ 1296 | { 1297 | translator empty$ 1298 | { "" } 1299 | {"" translator format.cnames * ",译" *} 1300 | if$ 1301 | } 1302 | { 1303 | translator empty$ 1304 | {edition} 1305 | {translator format.cnames output 1306 | ",译." edition * "" * *} 1307 | if$ 1308 | } 1309 | if$ 1310 | } 1311 | 1312 | 1313 | 1314 | 1315 | FUNCTION {format.ctranslator} %wk 完全改写 1316 | { translator empty$ 1317 | { "" } 1318 | {format.cnames ",译" * "translator" output.check} 1319 | if$ 1320 | } 1321 | 1322 | FUNCTION {format.pages} 1323 | { pages empty$ 1324 | { "" } 1325 | { pages multi.page.check 1326 | { ":" pages n.dashify tie.or.space.connect * } 1327 | { ":" pages tie.or.space.connect * } 1328 | if$ 1329 | } 1330 | if$ 1331 | } 1332 | 1333 | FUNCTION {format.pagesinbook} % By the time the 1334 | { pages empty$ % reader has read 1335 | { "" } % address, pub'r, 1336 | { pages multi.page.check % note (where the 1337 | { ":" pages n.dashify tie.or.space.connect } % note may end with 1338 | { ":" pages tie.or.space.connect } % numbers), s/he 1339 | if$ % may not recognise 1340 | } % a number-range as 1341 | if$ % meaning pages. 1342 | } % Avoid ambiguity 1343 | % (Butcher, p.181). 1344 | 1345 | FUNCTION {format.cpagesinbook} % By the time the %wk 1346 | { pages empty$ % reader has read 1347 | { "" } % address, pub'r, 1348 | { pages multi.page.check % note (where the 1349 | { ":" * pages n.dashify tie.or.space.connect * "" } % note may end with 1350 | { ":" * "Page " pages tie.or.space.connect * ""} % numbers), s/he 1351 | if$ % may not recognise 1352 | } % a number-range as 1353 | if$ % meaning pages. 1354 | } % Avoid ambiguity 1355 | 1356 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1357 | FUNCTION {format.vol.num.date.pages} %wk 1358 | {volume empty$ %wk 被重新改过 1359 | 'skip$ %wk 被重新改过 1360 | {volume %wk 被重新改过 1361 | } %wk 被重新改过 1362 | if$ %wk 被重新改过 1363 | number empty$ %wk 被重新改过 1364 | 'skip$ %wk 被重新改过 1365 | { "(" number * ")" * * %wk 被重新改过 1366 | volume empty$ %wk 被重新改过 1367 | { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过 1368 | 'skip$ %wk 被重新改过 1369 | if$ %wk 被重新改过 1370 | } %wk 被重新改过 1371 | if$ %wk 被重新改过 1372 | pages empty$ 1373 | 'skip$ 1374 | { duplicate$ empty$ 1375 | { pop$ format.pages } 1376 | { ":" * pages n.dashify * "" *} %wk 改为第页 1377 | if$ 1378 | } 1379 | if$ 1380 | } 1381 | 1382 | 1383 | FUNCTION {format.cvol.num.date.pages} %wk 1384 | {volume empty$ %wk 被重新改过 1385 | 'skip$ %wk 被重新改过 1386 | {volume %wk 被重新改过 1387 | } %wk 被重新改过 1388 | if$ %wk 被重新改过 1389 | number empty$ %wk 被重新改过 1390 | 'skip$ %wk 被重新改过 1391 | { "(" number * ")" * * %wk 被重新改过 1392 | volume empty$ %wk 被重新改过 1393 | { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过 1394 | 'skip$ %wk 被重新改过 1395 | if$ %wk 被重新改过 1396 | } %wk 被重新改过 1397 | if$ %wk 被重新改过 1398 | pages empty$ 1399 | 'skip$ 1400 | { duplicate$ empty$ 1401 | { pop$ format.pages } 1402 | { ":" * pages n.dashify * "" *} %wk 改为第页 1403 | if$ 1404 | } 1405 | if$ 1406 | } 1407 | 1408 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1409 | FUNCTION {format.article.vol.num.date.pages} %wk 1410 | { 1411 | volume empty$ %wk 被重新改过 1412 | 'skip$ %wk 被重新改过 1413 | {volume %wk 被重新改过 1414 | } %wk 被重新改过 1415 | if$ %wk 被重新改过 1416 | number empty$ %wk 被重新改过 1417 | 'skip$ %wk 被重新改过 1418 | { "(" number * ")" * * %wk 被重新改过 1419 | volume empty$ %wk 被重新改过 1420 | { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过 1421 | 'skip$ %wk 被重新改过 1422 | if$ %wk 被重新改过 1423 | } %wk 被重新改过 1424 | if$ %wk 被重新改过 1425 | pages empty$ 1426 | 'skip$ 1427 | { duplicate$ empty$ 1428 | { pop$ format.pages } 1429 | { ":" * pages n.dashify * "" *} %wk 改为第页 1430 | if$ 1431 | } 1432 | if$ 1433 | } 1434 | 1435 | 1436 | 1437 | FUNCTION {format.carticle.vol.num.date.pages} %wk 1438 | { 1439 | volume empty$ %wk 被重新改过 1440 | 'skip$ %wk 被重新改过 1441 | {volume %wk 被重新改过 1442 | } %wk 被重新改过 1443 | if$ %wk 被重新改过 1444 | number empty$ %wk 被重新改过 1445 | 'skip$ %wk 被重新改过 1446 | { "(" number * ")" * * %wk 被重新改过 1447 | volume empty$ %wk 被重新改过 1448 | { "there's a number but no volume in " cite$ * warning$ } %wk 被重新改过 1449 | 'skip$ %wk 被重新改过 1450 | if$ %wk 被重新改过 1451 | } %wk 被重新改过 1452 | if$ %wk 被重新改过 1453 | pages empty$ 1454 | 'skip$ 1455 | { duplicate$ empty$ 1456 | { pop$ format.pages } 1457 | { ":" * pages n.dashify * "" *} %wk 改为第页 1458 | if$ 1459 | } 1460 | if$ 1461 | } 1462 | 1463 | 1464 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1465 | FUNCTION {format.book.continue.vol.num} %wk 1466 | { 1467 | startyear empty$ 1468 | 'skip$ 1469 | {"." startyear * "" * * 1470 | startvolume empty$ %wk 被重新改过 1471 | 'skip$ %wk 被重新改过 1472 | {"," startvolume * "" * *} %wk 被重新改过 1473 | if$ 1474 | %wk 被重新改过 1475 | startnumber empty$ %wk 被重新改过 1476 | 'skip$ %wk 被重新改过 1477 | { "(" startnumber * ")-" * * } %wk 被重新改过 1478 | if$ %wk 被重新改过 1479 | } %wk 被重新改过 1480 | if$ 1481 | %wk 被重新改过 1482 | endyear empty$ 1483 | 'skip$ 1484 | {"" endyear * "" * * 1485 | endvolume empty$ %wk 被重新改过 1486 | 'skip$ %wk 被重新改过 1487 | {"," endvolume * "" * *} %wk 被重新改过 1488 | if$ 1489 | %wk 被重新改过 1490 | endnumber empty$ %wk 被重新改过 1491 | 'skip$ %wk 被重新改过 1492 | { "(" endnumber * ")" * * } %wk 被重新改过 1493 | if$ %wk 被重新改过 1494 | } %wk 被重新改过 1495 | if$ 1496 | } 1497 | 1498 | 1499 | 1500 | 1501 | FUNCTION {format.cbook.continue.vol.num} %wk 1502 | { 1503 | startyear empty$ 1504 | 'skip$ 1505 | {"." startyear * "" * * 1506 | startvolume empty$ %wk 被重新改过 1507 | 'skip$ %wk 被重新改过 1508 | {"," startvolume * "" * *} %wk 被重新改过 1509 | if$ 1510 | %wk 被重新改过 1511 | startnumber empty$ %wk 被重新改过 1512 | 'skip$ %wk 被重新改过 1513 | { "(" startnumber * ")-" * * } %wk 被重新改过 1514 | if$ %wk 被重新改过 1515 | } %wk 被重新改过 1516 | if$ 1517 | %wk 被重新改过 1518 | endyear empty$ 1519 | 'skip$ 1520 | {"" endyear * "" * * 1521 | endvolume empty$ %wk 被重新改过 1522 | 'skip$ %wk 被重新改过 1523 | {"," endvolume * "" * *} %wk 被重新改过 1524 | if$ 1525 | %wk 被重新改过 1526 | endnumber empty$ %wk 被重新改过 1527 | 'skip$ %wk 被重新改过 1528 | { "(" endnumber * ")" * * } %wk 被重新改过 1529 | if$ %wk 被重新改过 1530 | } %wk 被重新改过 1531 | if$ 1532 | } 1533 | 1534 | 1535 | 1536 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1537 | FUNCTION {format.date.modifydate.citedate} %wk 1538 | { 1539 | date empty$ %wk 被重新改过 1540 | 'skip$ %wk 被重新改过 1541 | {date %wk 被重新改过 1542 | } %wk 被重新改过 1543 | if$ %wk 被重新改过 1544 | 1545 | modifydate empty$ %wk 被重新改过 1546 | 'skip$ %wk 被重新改过 1547 | { "(" modifydate * ")" * * %wk 被重新改过 1548 | date empty$ %wk 被重新改过 1549 | { "" cite$ * warning$ } %wk 被重新改过 1550 | 'skip$ %wk 被重新改过 1551 | if$ %wk 被重新改过 1552 | } %wk 被重新改过 1553 | if$ 1554 | 1555 | citedate empty$ %wk 被重新改过 1556 | 'skip$ %wk 被重新改过 1557 | { "[" citedate * "]" * * %wk 被重新改过 1558 | date empty$ %wk 被重新改过 1559 | { "" cite$ * warning$ } %wk 被重新改过 1560 | 'skip$ %wk 被重新改过 1561 | if$ %wk 被重新改过 1562 | } %wk 被重新改过 1563 | if$ 1564 | } 1565 | 1566 | 1567 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1568 | FUNCTION {format.chapter.pages.inbook} 1569 | { chapter empty$ 1570 | 'format.pagesinbook 1571 | { type empty$ 1572 | { "Chap." } 1573 | { type } 1574 | if$ 1575 | chapter tie.or.space.connect 1576 | pages empty$ 1577 | 'skip$ 1578 | { ", " * format.pagesinbook "l" change.case$ * } 1579 | if$ 1580 | } 1581 | if$ 1582 | } 1583 | 1584 | FUNCTION {format.cchapter.pages.inbook} 1585 | {chapter empty$ %wk 被重新改过 1586 | 'skip$ %wk 被重新改过 1587 | { ",第" chapter * "章" * * %wk 被重新改过 1588 | } %wk 被重新改过 1589 | if$ %wk 被重新改过 1590 | pages empty$ 1591 | 'skip$ 1592 | { duplicate$ empty$ 1593 | { pop$ format.pages } 1594 | { ":" * pages n.dashify * "" *} %wk 改为第页 1595 | if$ 1596 | } 1597 | if$ 1598 | } 1599 | 1600 | 1601 | 1602 | FUNCTION {format.chapter.pages.incoll} 1603 | { chapter empty$ 1604 | { pages empty$ 1605 | { "In " } 1606 | { "{\em " format.pagesinbook " of:} " * * } 1607 | if$ 1608 | } 1609 | { type empty$ 1610 | { "{\em Chap. " chapter * } 1611 | { "{\em " type * " " * chapter * } 1612 | if$ 1613 | pages empty$ 1614 | { " of:} " * } 1615 | { ", " * format.pagesinbook "l" change.case$ " of:} " * * } 1616 | if$ 1617 | } 1618 | if$ 1619 | } 1620 | 1621 | FUNCTION {format.cchapter.pages.incoll} %wk 1622 | { chapter empty$ 1623 | { pages empty$ 1624 | { "" } 1625 | { "第" format.pagesinbook "章" * * } 1626 | if$ 1627 | } 1628 | { type empty$ 1629 | { "第" chapter * "章" * * } 1630 | { "" type * "" * chapter * } 1631 | if$ 1632 | pages empty$ 1633 | { "" * } 1634 | { ":" * format.pagesinbook "l" change.case$ "" * * } 1635 | if$ 1636 | } 1637 | if$ 1638 | } 1639 | 1640 | FUNCTION {format.in.ed.booktitle} % Achieves effect %wk 1641 | { booktitle empty$ % shown in 16.51 1642 | { "" } % of Chicago, at 1643 | { editor empty$ % expense of not 1644 | {"" * booktitle * "" * 1645 | new.block 1646 | } 1647 | {new.block 1648 | normalauthor empty$ %用于正常显示 1649 | { 1650 | normaleditor empty$ %用于正常显示 1651 | { format.editors "author and editor" output.check} %用于正常显示, 1652 | { format.editors "author and normaleditor" output.check} %用于正常显示 1653 | if$ %用于正常显示 1654 | } %用于正常显示 1655 | { 1656 | normaleditor empty$ %用于正常显示 1657 | {format.editors "normalauthor and editor" output.check} %用于正常显示 1658 | {format.editors "normalauthor and normaleditor" output.check} %用于正常显示 1659 | if$ %用于正常显示 1660 | 1661 | } %用于正常显示 1662 | if$ %用于正常显示 1663 | editor format.key output 1664 | new.block 1665 | format.btitle "booktitle" output.check 1666 | } 1667 | if$ % 4.4 of BS 1629. 1668 | } 1669 | if$ % Don't change 1670 | } % case. 1671 | 1672 | 1673 | FUNCTION {format.in.ced.booktitle} % Achieves effect %wk 1674 | { booktitle empty$ % shown in 16.51 1675 | { "" } % of Chicago, at 1676 | { editor empty$ % expense of not 1677 | {"" * booktitle * "" * 1678 | new.block 1679 | } 1680 | {new.block 1681 | normalauthor empty$ %用于正常显示 1682 | { 1683 | normaleditor empty$ %用于正常显示 1684 | {format.ceditors "author and editor" output.check} %用于正常显示, 1685 | {format.ceditors "author and normaleditor" output.check} %用于正常显示 1686 | if$ %用于正常显示 1687 | } %用于正常显示 1688 | { 1689 | normaleditor empty$ %用于正常显示 1690 | {format.ceditors "normalauthor and editor" output.check} %用于正常显示 1691 | {format.ceditors "normalauthor and normaleditor" output.check} %用于正常显示 1692 | if$ %用于正常显示 1693 | 1694 | } %用于正常显示 1695 | if$ %用于正常显示 1696 | editor format.key output 1697 | new.block 1698 | format.cbtitle "booktitle" output.check 1699 | } 1700 | if$ % 4.4 of BS 1629. 1701 | } 1702 | if$ % Don't change 1703 | } % case. 1704 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55 1705 | FUNCTION {format.in.proceedings.booktitle} % Achieves effect %wk 1706 | { booktitle empty$ % shown in 16.51 1707 | { "" } % of Chicago, at 1708 | {format.btitle "booktitle" output.check } 1709 | if$ % Don't change 1710 | } % case. 1711 | 1712 | 1713 | FUNCTION {format.in.cproceedings.booktitle} % Achieves effect %wk 1714 | { booktitle empty$ % shown in 16.51 1715 | { "" } % of Chicago, at 1716 | { format.cbtitle "booktitle" output.check } 1717 | if$ % 4.4 of BS 1629. 1718 | % Don't change 1719 | } 1720 | 1721 | 1722 | FUNCTION {format.thesis.type} 1723 | { type empty$ 1724 | 'skip$ 1725 | { pop$ 1726 | type % Don't change 1727 | } % case. 1728 | if$ 1729 | } 1730 | 1731 | FUNCTION {format.tr.number} 1732 | { type empty$ 1733 | { "Tech. rept." } % ODWE abbrevs. 1734 | 'type 1735 | if$ 1736 | number empty$ 1737 | { } % Whatever was 1738 | { number tie.or.space.connect } % having its case 1739 | if$ % changed, leave 1740 | } % it alone. 1741 | 1742 | FUNCTION {format.addr.pub} 1743 | { publisher empty$ 1744 | {address empty$ 1745 | { ".[S.l.]: [s.n.] " *} 1746 | { address ": [s.n.] " * } 1747 | if$ 1748 | } 1749 | { address empty$ 1750 | { ".[S.l.]: " * } 1751 | { address ": " * } 1752 | if$ 1753 | publisher * 1754 | } 1755 | 1756 | if$ 1757 | } 1758 | 1759 | FUNCTION {format.caddr.pub} 1760 | {publisher empty$ 1761 | {address empty$ 1762 | { ".[出版地不详]:[出版者不详]" *} 1763 | { address ":[出版者不详]" * } 1764 | if$ 1765 | } 1766 | { address empty$ 1767 | { ".[出版地不详]:" * } 1768 | { address ": " * } 1769 | if$ 1770 | publisher * 1771 | } 1772 | 1773 | if$ 1774 | } 1775 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1776 | FUNCTION {format.addr.institution} 1777 | { institution empty$ 1778 | {address empty$ 1779 | { ".[S.l.]: [s.n.] " *} 1780 | { address ": [s.n.] " * } 1781 | if$ 1782 | } 1783 | { address empty$ 1784 | { ".[S.l.]: " * } 1785 | { address ": " * } 1786 | if$ 1787 | institution * 1788 | } 1789 | 1790 | if$ 1791 | } 1792 | 1793 | FUNCTION {format.caddr.institution} 1794 | {institution empty$ 1795 | {address empty$ 1796 | { ".[地址不详]:[机构不详]" *} 1797 | { address ":[机构不详]" * } 1798 | if$ 1799 | } 1800 | { address empty$ 1801 | { ".[地址不详]:" * } 1802 | { address ": " * } 1803 | if$ 1804 | institution * 1805 | } 1806 | 1807 | if$ 1808 | } 1809 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1810 | FUNCTION {format.school.pub} 1811 | { school empty$ 1812 | {address empty$ 1813 | { "[S.l.]: [s.n.] " } 1814 | { address ": [s.n.] " * } 1815 | if$ 1816 | } 1817 | { address empty$ 1818 | { ".[S.l.]: " * } 1819 | { address ": " * } 1820 | if$ 1821 | school * 1822 | } 1823 | 1824 | if$ 1825 | } 1826 | 1827 | FUNCTION {format.cschool.pub} 1828 | {school empty$ 1829 | {address empty$ 1830 | { "[地址不详]:[学校不详]" } 1831 | { address ":[学校不详]" * } 1832 | if$ 1833 | } 1834 | { address empty$ 1835 | { ".[学校不详]:" * } 1836 | { address ": " * } 1837 | if$ 1838 | school * 1839 | } 1840 | 1841 | if$ 1842 | } 1843 | 1844 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1845 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1846 | FUNCTION {format.inproceedings.addr.pub} 1847 | { 1848 | TypeofLit empty$ 1849 | {publisher empty$ 1850 | {address empty$ 1851 | { ".[S.l.]: [s.n.] " } 1852 | { address ": [s.n.] " * } 1853 | if$ 1854 | } 1855 | { address empty$ 1856 | { ".[S.l.]: " * } 1857 | { address ": " * } 1858 | if$ 1859 | publisher * 1860 | } 1861 | 1862 | if$} 1863 | { "" } 1864 | if$ 1865 | } 1866 | 1867 | FUNCTION {format.cinproceedings.addr.pub} 1868 | { 1869 | TypeofLit empty$ 1870 | {publisher empty$ 1871 | {address empty$ 1872 | { ".[出版地不详]:[出版者不详]" } 1873 | { address ":[出版者不详]" * } 1874 | if$ 1875 | } 1876 | { address empty$ 1877 | { ".[出版地不详]:" * } 1878 | { address ": " * } 1879 | if$ 1880 | publisher * 1881 | } 1882 | 1883 | if$} 1884 | { ""} 1885 | if$ 1886 | 1887 | } 1888 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1889 | FUNCTION {format.misc.addr.pub} 1890 | { publisher empty$ 1891 | {address empty$ 1892 | { "" } 1893 | { address ": [s.n.] " * } 1894 | if$ 1895 | } 1896 | { address empty$ 1897 | { "[S.l.]: " * } 1898 | { address ": " * } 1899 | if$ 1900 | publisher * 1901 | } 1902 | 1903 | if$ 1904 | } 1905 | 1906 | FUNCTION {format.cmisc.addr.pub} 1907 | {publisher empty$ 1908 | {address empty$ 1909 | { "" } 1910 | { address ":[出版者不详]" * } 1911 | if$ 1912 | } 1913 | { address empty$ 1914 | { "[出版地不详]:" * } 1915 | { address ": " * } 1916 | if$ 1917 | publisher * 1918 | } 1919 | 1920 | if$ 1921 | } 1922 | 1923 | 1924 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1925 | 1926 | 1927 | FUNCTION {format.addr.pub.org} % If there's an 1928 | { address empty$ % an organization 1929 | { "[S.l.]:" *publisher * ", for " * organization * } % and a publisher 1930 | { address ": " * publisher * ", for " * organization * } % too. 1931 | if$ 1932 | } 1933 | 1934 | FUNCTION {format.addr.inst} 1935 | { address empty$ 1936 | { institution empty$ 1937 | { "[S.l.]" } 1938 | { "[S.l.]" * institution * *} 1939 | if$ 1940 | } 1941 | { institution empty$ 1942 | { "" } 1943 | { institution ", " * } 1944 | if$ 1945 | address * 1946 | } 1947 | if$ 1948 | } 1949 | 1950 | FUNCTION {format.addr.org} 1951 | { address empty$ 1952 | { organization empty$ 1953 | { "" } 1954 | { organization } 1955 | if$ 1956 | } 1957 | { organization empty$ 1958 | { "" } 1959 | { organization ", " * } 1960 | if$ 1961 | address * 1962 | } 1963 | if$ 1964 | } 1965 | 1966 | FUNCTION {format.article.crossref} 1967 | { "In " 1968 | " \cite{" * crossref * "}" * 1969 | } 1970 | 1971 | FUNCTION {format.book.crossref} 1972 | { volume empty$ 1973 | { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ 1974 | "In " 1975 | } 1976 | { " Vol." volume tie.or.space.connect 1977 | " of " * 1978 | } 1979 | if$ 1980 | "\cite{" * crossref * "}" * 1981 | } 1982 | 1983 | FUNCTION {format.incoll.inproc.crossref} 1984 | { "In " 1985 | " \cite{" * crossref * "}" * 1986 | } 1987 | 1988 | 1989 | FUNCTION {article} 1990 | {language empty$ 1991 | { output.bibitem 1992 | format.authors "author" output.check 1993 | author format.key output 1994 | new.block 1995 | format.article.title output 1996 | new.block 1997 | crossref missing$ 1998 | { journal % Don't change 1999 | "journal" output.check % case. 2000 | output.article.year.check output 2001 | format.article.vol.num.date.pages output 2002 | format.date.modifydate.citedate output 2003 | } 2004 | { format.article.crossref output.nonnull 2005 | format.pages output 2006 | } 2007 | if$ 2008 | new.block 2009 | format.url output 2010 | new.block 2011 | note output 2012 | 2013 | fin.entry 2014 | } 2015 | 2016 | %FUNCTION {carticle} %wk 本函数 2017 | { output.bibitem 2018 | format.cauthors "author" output.check 2019 | author format.key output 2020 | new.block 2021 | format.carticle.title output 2022 | new.block 2023 | crossref missing$ 2024 | {journal % Don't change %wk 2025 | "journal" output.check % case. 2026 | output.carticle.year.check output %wk 2027 | format.carticle.vol.num.date.pages output %wk 2028 | format.date.modifydate.citedate output 2029 | new.block 2030 | } 2031 | { format.article.crossref output.nonnull 2032 | format.pages output 2033 | } 2034 | if$ 2035 | new.block 2036 | format.url output 2037 | new.block 2038 | note output 2039 | fin.entry 2040 | } 2041 | if$ 2042 | } 2043 | 2044 | FUNCTION {book} 2045 | {language empty$ 2046 | { output.bibitem 2047 | author empty$ 2048 | { format.editors "author and editor" output.check 2049 | editor format.key output 2050 | } 2051 | { format.authors output.nonnull 2052 | crossref missing$ 2053 | { "author and editor" editor either.or.check } 2054 | 'skip$ 2055 | if$ 2056 | } 2057 | if$ 2058 | new.block 2059 | format.book.title output 2060 | new.block 2061 | crossref missing$ 2062 | { format.edition output 2063 | new.block 2064 | format.book.continue.vol.num ouput 2065 | booklike.series.volume.number output 2066 | new.block 2067 | format.addr.pub "publisher" output.check 2068 | output.continue.year.check ouput 2069 | format.date.modifydate.citedate output 2070 | format.pages output 2071 | } 2072 | { format.book.crossref output.nonnull 2073 | } 2074 | if$ 2075 | new.block 2076 | format.url output 2077 | new.block 2078 | note output 2079 | fin.entry 2080 | } 2081 | 2082 | %FUNCTION {cbook} %wk 2083 | { output.bibitem 2084 | author empty$ 2085 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2086 | editor format.key output 2087 | } 2088 | { format.cauthors output.nonnull 2089 | crossref missing$ 2090 | {"author and editor" editor either.or.check } 2091 | 'skip$ 2092 | if$ 2093 | } 2094 | if$ 2095 | new.block 2096 | format.cbook.title output %wk 2097 | new.block 2098 | crossref missing$ 2099 | { 2100 | format.cedition output %wk edition->cedition 2101 | new.block 2102 | format.cbook.continue.vol.num ouput 2103 | new.block 2104 | format.caddr.pub "publisher" output.check 2105 | output.continue.cyear.check ouput %wk 2106 | cbooklike.series.volume.number.pages output 2107 | format.date.modifydate.citedate output 2108 | } 2109 | { format.book.crossref output.nonnull 2110 | } 2111 | if$ 2112 | new.block 2113 | format.url output 2114 | new.block 2115 | note output 2116 | fin.entry 2117 | } 2118 | if$ 2119 | } 2120 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2121 | %未处理 2122 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2123 | FUNCTION {booklet} 2124 | {language empty$ 2125 | { output.bibitem 2126 | format.authors output 2127 | author format.key output 2128 | output.year.month.check 2129 | new.block 2130 | format.btitle "title" output.check 2131 | new.block 2132 | howpublished output 2133 | address output 2134 | output.year.check 2135 | new.block 2136 | format.url output 2137 | new.block 2138 | note output 2139 | fin.entry 2140 | } 2141 | 2142 | %FUNCTION {cbooklet} %wk 2143 | { output.bibitem 2144 | format.cauthors output %wk 2145 | author format.key output 2146 | format.btitle "title" output.check %wk 2147 | new.block 2148 | howpublished output 2149 | address output 2150 | output.cyear.month.check %wk 2151 | new.block 2152 | format.url output 2153 | new.block 2154 | note output 2155 | fin.entry 2156 | } 2157 | if$ 2158 | } 2159 | 2160 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2161 | FUNCTION {inbook} 2162 | {language empty$ 2163 | { output.bibitem 2164 | author empty$ 2165 | { format.editors "author and editor" output.check 2166 | editor format.key output 2167 | } 2168 | { format.authors output.nonnull 2169 | crossref missing$ 2170 | { "author and editor" editor either.or.check } 2171 | 'skip$ 2172 | if$ 2173 | } 2174 | if$ 2175 | new.block 2176 | format.book.title output 2177 | new.block 2178 | crossref missing$ 2179 | { format.edition output 2180 | booklike.series.volume.number output 2181 | new.block 2182 | format.addr.pub "publisher" output.check 2183 | output.year.check output 2184 | format.date.modifydate.citedate output 2185 | format.pages output 2186 | } 2187 | { format.book.crossref output.nonnull 2188 | } 2189 | if$ 2190 | new.block 2191 | format.url output 2192 | new.block 2193 | note output 2194 | fin.entry 2195 | } 2196 | 2197 | %FUNCTION {cinbook} %wk 2198 | { output.bibitem 2199 | author empty$ 2200 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2201 | editor format.key output 2202 | } 2203 | { format.cauthors output.nonnull 2204 | crossref missing$ 2205 | {"author and editor" editor either.or.check } 2206 | 'skip$ 2207 | if$ 2208 | } 2209 | if$ 2210 | new.block 2211 | format.cbook.title output %wk 2212 | new.block 2213 | crossref missing$ 2214 | { 2215 | format.cedition output %wk edition->cedition 2216 | new.block 2217 | format.caddr.pub "publisher" output.check 2218 | output.cyear.check %wk 2219 | cbooklike.series.volume.number.pages output 2220 | format.date.modifydate.citedate output 2221 | } 2222 | { format.book.crossref output.nonnull 2223 | } 2224 | if$ 2225 | new.block 2226 | format.url output 2227 | new.block 2228 | note output 2229 | fin.entry 2230 | } 2231 | if$ 2232 | } 2233 | 2234 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2235 | FUNCTION {incollection} %wk 2236 | {language empty$ 2237 | { output.bibitem 2238 | author empty$ 2239 | { format.editors "editor" output.check %wk format.editors->format.ceditors 2240 | editor format.key output } 2241 | { format.authors "author" output.check %wk 2242 | author format.key output } 2243 | if$ 2244 | new.block 2245 | format.incollection.title output 2246 | crossref missing$ % Chapter and/or 2247 | { 2248 | format.in.ed.booktitle output % page numbers can 2249 | format.edition output % come out via this %wk edition->cedition 2250 | new.block 2251 | format.addr.pub "publisher" output.check 2252 | output.year.check 2253 | incollectionlike.series.volume.number.pages output % route, too. 2254 | format.date.modifydate.citedate output 2255 | } 2256 | { format.incoll.inproc.crossref output.nonnull 2257 | new.block 2258 | } 2259 | if$ 2260 | 2261 | format.url output 2262 | new.block 2263 | note output 2264 | fin.entry 2265 | } 2266 | 2267 | %FUNCTION {cincollection} %wk 2268 | { output.bibitem 2269 | author empty$ 2270 | { format.ceditors "editor" output.check %wk format.editors->format.ceditors 2271 | editor format.key output } 2272 | { format.cauthors "author" output.check %wk 2273 | author format.key output } 2274 | if$ 2275 | new.block 2276 | format.cincollection.title output 2277 | crossref missing$ % Chapter and/or 2278 | { format.in.ced.booktitle output % page numbers can 2279 | format.cedition output % come out via this %wk edition->cedition 2280 | new.block 2281 | format.caddr.pub "publisher" output.check 2282 | output.cyear.check output 2283 | cincollectionlike.series.volume.number.pages output % route, too. 2284 | format.date.modifydate.citedate output 2285 | } 2286 | { format.incoll.inproc.crossref output.nonnull 2287 | new.block 2288 | } 2289 | if$ 2290 | new.block 2291 | format.url output 2292 | new.block 2293 | note output 2294 | fin.entry 2295 | } 2296 | if$ 2297 | } 2298 | 2299 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2300 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2301 | %图书book和 2302 | %会议录inproceedings(会议conference与inproceedings一样), 2303 | %文献类型代码[C] 2304 | %硕士学位论文mastersthesis, 2305 | %文献类型代码[D] 2306 | %博士学位论文phdthesis, 2307 | %文献类型代码[D] 2308 | %技术报告techreport的类型是一样的, 2309 | %文献类型代码[R] 2310 | % 2311 | %因此我们直接拷贝book的相关内容即可。 2312 | %原始部分可以参考authordate1.bst。 2313 | % 2314 | %利用misc作为电子文献[EB/OL]所使用的类型 2315 | %存在的问题:无法正常调用url,只能利用note来生成。 2316 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2317 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2318 | FUNCTION {inproceedings} %wk 改自incollection类型 2319 | {language empty$ 2320 | { output.bibitem 2321 | author empty$ 2322 | { format.editors "editor" output.check %wk format.editors->format.ceditors 2323 | editor format.key output } 2324 | { format.authors "author" output.check %wk 2325 | author format.key output } 2326 | if$ 2327 | new.block 2328 | format.inproceedings.title output 2329 | crossref missing$ % Chapter and/or 2330 | { 2331 | format.in.ed.booktitle output % page numbers can 2332 | format.edition output % come out via this %wk edition->cedition 2333 | new.block 2334 | format.inproceedings.addr.pub "publisher" output.check 2335 | output.year.check 2336 | incollectionlike.series.volume.number.pages output % route, too. 2337 | format.date.modifydate.citedate output 2338 | } 2339 | { format.incoll.inproc.crossref output.nonnull 2340 | new.block 2341 | } 2342 | if$ 2343 | format.url output 2344 | new.block 2345 | note output 2346 | fin.entry 2347 | } 2348 | 2349 | %FUNCTION {cinproceedings} %wk 改自incollection类型 2350 | { output.bibitem 2351 | author empty$ 2352 | { format.ceditors "editor" output.check %wk format.editors->format.ceditors 2353 | editor format.key output } 2354 | { format.cauthors "author" output.check %wk 2355 | author format.key output } 2356 | if$ 2357 | new.block 2358 | format.cinproceedings.title output 2359 | crossref missing$ % Chapter and/or 2360 | { format.in.ced.booktitle output % page numbers can 2361 | format.cedition output % come out via this %wk edition->cedition 2362 | new.block 2363 | format.cinproceedings.addr.pub "publisher" output.check 2364 | output.cyear.check 2365 | cincollectionlike.series.volume.number.pages output % route, too. 2366 | format.date.modifydate.citedate output 2367 | } 2368 | { format.incoll.inproc.crossref output.nonnull 2369 | new.block 2370 | } 2371 | if$ 2372 | new.block 2373 | format.url output 2374 | new.block 2375 | note output 2376 | fin.entry 2377 | } 2378 | if$ 2379 | } 2380 | 2381 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2382 | FUNCTION {conference} { inproceedings } 2383 | %FUNCTION {cconference} { cinproceedings } 2384 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2385 | FUNCTION {TECHREPORT} %wk 改自book类型 2386 | {language empty$ 2387 | { output.bibitem 2388 | author empty$ 2389 | { format.editors "author and editor" output.check 2390 | editor format.key output 2391 | } 2392 | { format.authors output.nonnull 2393 | crossref missing$ 2394 | { "author and editor" editor either.or.check } 2395 | 'skip$ 2396 | if$ 2397 | } 2398 | if$ 2399 | new.block 2400 | format.title "[R]" * "title" output.check 2401 | new.block 2402 | crossref missing$ 2403 | { format.edition output 2404 | booklike.series.volume.number output 2405 | new.block 2406 | format.addr.institution "publisher" output.check 2407 | output.year.check output 2408 | format.pages output 2409 | } 2410 | { format.book.crossref output.nonnull 2411 | } 2412 | if$ 2413 | new.block 2414 | format.url output 2415 | new.block 2416 | note output 2417 | fin.entry 2418 | } 2419 | 2420 | %FUNCTION {cTECHREPORT} %wk 改自book类型 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 "[R]" * "title" output.check %wk 2435 | new.block 2436 | crossref missing$ 2437 | { 2438 | format.cedition output %wk edition->cedition 2439 | new.block 2440 | format.caddr.institution "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 | 2457 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2458 | FUNCTION {mastersthesis} %wk 改自book类型 2459 | {language empty$ 2460 | { output.bibitem 2461 | author empty$ 2462 | { format.editors "author and editor" output.check 2463 | editor format.key output 2464 | } 2465 | { format.authors output.nonnull 2466 | crossref missing$ 2467 | { "author and editor" editor either.or.check } 2468 | 'skip$ 2469 | if$ 2470 | } 2471 | if$ 2472 | new.block 2473 | format.title "[D]" * "title" output.check 2474 | new.block 2475 | crossref missing$ 2476 | { format.edition output 2477 | booklike.series.volume.number output 2478 | new.block 2479 | % format.addr.pub "publisher" output.check 2480 | format.school.pub "publisher" output.check 2481 | output.year.check output 2482 | format.pages output 2483 | } 2484 | { format.book.crossref output.nonnull 2485 | } 2486 | if$ 2487 | new.block 2488 | format.url output 2489 | new.block 2490 | note output 2491 | fin.entry 2492 | } 2493 | 2494 | %FUNCTION {cmastersthesis} %wk 改自book类型 2495 | { output.bibitem 2496 | author empty$ 2497 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2498 | editor format.key output 2499 | } 2500 | { format.cauthors output.nonnull 2501 | crossref missing$ 2502 | {"author and editor" editor either.or.check } 2503 | 'skip$ 2504 | if$ 2505 | } 2506 | if$ 2507 | new.block 2508 | format.ctitle "[D]" * "title" output.check %wk 2509 | new.block 2510 | crossref missing$ 2511 | { 2512 | format.cedition output %wk edition->cedition 2513 | new.block 2514 | % format.caddr.pub "publisher" output.check 2515 | format.cschool.pub "publisher" output.check 2516 | output.cyear.check %wk 2517 | cbooklike.series.volume.number.pages output 2518 | } 2519 | { format.book.crossref output.nonnull 2520 | } 2521 | if$ 2522 | new.block 2523 | format.url output 2524 | new.block 2525 | note output 2526 | fin.entry 2527 | } 2528 | if$ 2529 | } 2530 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2531 | FUNCTION {phdthesis} %wk 改自book类型 2532 | {language empty$ 2533 | { output.bibitem 2534 | author empty$ 2535 | { format.editors "author and editor" output.check 2536 | editor format.key output 2537 | } 2538 | { format.authors output.nonnull 2539 | crossref missing$ 2540 | { "author and editor" editor either.or.check } 2541 | 'skip$ 2542 | if$ 2543 | } 2544 | if$ 2545 | new.block 2546 | format.title "[D]" * "title" output.check 2547 | new.block 2548 | crossref missing$ 2549 | { format.edition output 2550 | booklike.series.volume.number output 2551 | new.block 2552 | % format.addr.pub "publisher" output.check 2553 | format.school.pub "publisher" output.check 2554 | output.year.check output 2555 | format.pages output 2556 | } 2557 | { format.book.crossref output.nonnull 2558 | } 2559 | if$ 2560 | new.block 2561 | format.url output 2562 | new.block 2563 | note output 2564 | fin.entry 2565 | } 2566 | 2567 | %FUNCTION {cphdthesis} %wk 改自book类型 2568 | { output.bibitem 2569 | author empty$ 2570 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2571 | editor format.key output 2572 | } 2573 | { format.cauthors output.nonnull 2574 | crossref missing$ 2575 | {"author and editor" editor either.or.check } 2576 | 'skip$ 2577 | if$ 2578 | } 2579 | if$ 2580 | new.block 2581 | format.ctitle "[D]" * "title" output.check %wk 2582 | new.block 2583 | crossref missing$ 2584 | { 2585 | format.cedition output %wk edition->cedition 2586 | new.block 2587 | % format.caddr.pub "publisher" output.check 2588 | format.cschool.pub "publisher" output.check 2589 | output.cyear.check %wk 2590 | cbooklike.series.volume.number.pages output 2591 | } 2592 | { format.book.crossref output.nonnull 2593 | } 2594 | if$ 2595 | new.block 2596 | format.url output 2597 | new.block 2598 | note output 2599 | fin.entry 2600 | } 2601 | if$ 2602 | } 2603 | 2604 | 2605 | 2606 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2607 | FUNCTION {proceedings} %改自book类型 2608 | {language empty$ 2609 | { output.bibitem 2610 | author empty$ 2611 | { format.editors "author and editor" output.check 2612 | editor format.key output 2613 | } 2614 | { format.authors output.nonnull 2615 | crossref missing$ 2616 | { "author and editor" editor either.or.check } 2617 | 'skip$ 2618 | if$ 2619 | } 2620 | if$ 2621 | new.block 2622 | format.conference.title output 2623 | new.block 2624 | crossref missing$ 2625 | { format.edition output 2626 | booklike.series.volume.number output 2627 | new.block 2628 | format.addr.pub "publisher" output.check 2629 | output.year.check output 2630 | format.date.modifydate.citedate output 2631 | format.pages output 2632 | } 2633 | { format.book.crossref output.nonnull 2634 | } 2635 | if$ 2636 | new.block 2637 | format.url output 2638 | new.block 2639 | note output 2640 | fin.entry 2641 | } 2642 | 2643 | %FUNCTION {cproceedings} %改自book类型 2644 | { output.bibitem 2645 | author empty$ 2646 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2647 | editor format.key output 2648 | } 2649 | { format.cauthors output.nonnull 2650 | crossref missing$ 2651 | {"author and editor" editor either.or.check } 2652 | 'skip$ 2653 | if$ 2654 | } 2655 | if$ 2656 | new.block 2657 | format.cconference.title output %wk 2658 | new.block 2659 | crossref missing$ 2660 | { 2661 | format.cedition output %wk edition->cedition 2662 | new.block 2663 | format.caddr.pub "publisher" output.check 2664 | output.cyear.check %wk 2665 | cbooklike.series.volume.number.pages output 2666 | format.date.modifydate.citedate output 2667 | } 2668 | { format.book.crossref output.nonnull 2669 | } 2670 | if$ 2671 | new.block 2672 | format.url output 2673 | new.block 2674 | note output 2675 | fin.entry 2676 | } 2677 | if$ 2678 | } 2679 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2680 | 2681 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2682 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2683 | FUNCTION {manual} %改自book类型 2684 | {language empty$ 2685 | { output.bibitem 2686 | author empty$ 2687 | { format.editors "author and editor" output.check 2688 | editor format.key output 2689 | } 2690 | { format.authors output.nonnull 2691 | crossref missing$ 2692 | { "author and editor" editor either.or.check } 2693 | 'skip$ 2694 | if$ 2695 | } 2696 | if$ 2697 | new.block 2698 | format.btitle "[H]" * "title" output.check 2699 | new.block 2700 | crossref missing$ 2701 | { format.edition output 2702 | booklike.series.volume.number output 2703 | new.block 2704 | format.addr.pub "publisher" output.check 2705 | output.year.check output 2706 | format.pages output 2707 | } 2708 | { format.book.crossref output.nonnull 2709 | } 2710 | if$ 2711 | new.block 2712 | format.url output 2713 | new.block 2714 | note output 2715 | fin.entry 2716 | } 2717 | 2718 | %FUNCTION {cmanual} %wk 2719 | { output.bibitem 2720 | author empty$ 2721 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2722 | editor format.key output 2723 | } 2724 | { format.cauthors output.nonnull 2725 | crossref missing$ 2726 | {"author and editor" editor either.or.check } 2727 | 'skip$ 2728 | if$ 2729 | } 2730 | if$ 2731 | new.block 2732 | format.ctitle "[H]" * "title" output.check %wk 2733 | new.block 2734 | crossref missing$ 2735 | { format.cedition output %wk edition->cedition 2736 | new.block 2737 | format.caddr.pub "publisher" output.check 2738 | output.cyear.check %wk 2739 | cbooklike.series.volume.number.pages output 2740 | } 2741 | { format.book.crossref output.nonnull 2742 | } 2743 | if$ 2744 | new.block 2745 | note output 2746 | fin.entry 2747 | } 2748 | if$ 2749 | } 2750 | 2751 | 2752 | 2753 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2754 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2755 | FUNCTION {misc} %作为非常规文献的格式,可靠性低,应该仔细检查,改自book类型 2756 | {language empty$ 2757 | { output.bibitem 2758 | author empty$ 2759 | { format.editors "author and editor" output.check 2760 | editor format.key output 2761 | } 2762 | { format.authors output.nonnull 2763 | crossref missing$ 2764 | { "author and editor" editor either.or.check } 2765 | 'skip$ 2766 | if$ 2767 | } 2768 | if$ 2769 | new.block 2770 | format.misc.title output 2771 | new.block 2772 | crossref missing$ 2773 | { format.edition output 2774 | booklike.series.volume.number output 2775 | new.block 2776 | format.misc.addr.pub "publisher" output.check 2777 | % output.year.check output 2778 | format.date.modifydate.citedate output 2779 | % format.pages output 2780 | } 2781 | { format.book.crossref output.nonnull 2782 | } 2783 | if$ 2784 | new.block 2785 | format.url output 2786 | new.block 2787 | note output 2788 | fin.entry 2789 | } 2790 | 2791 | %FUNCTION {cmisc} %作为非常规文献的格式,可靠性低,应该仔细检查,改自book类型 2792 | { output.bibitem 2793 | author empty$ 2794 | { format.ceditors "author and editor" output.check %wk format.editors->format.ceditors 2795 | editor format.key output 2796 | } 2797 | { format.cauthors output.nonnull 2798 | crossref missing$ 2799 | {"author and editor" editor either.or.check } 2800 | 'skip$ 2801 | if$ 2802 | } 2803 | if$ 2804 | new.block 2805 | format.cmisc.title output %wk 2806 | 2807 | new.block 2808 | crossref missing$ 2809 | { 2810 | format.cedition output %wk edition->cedition 2811 | new.block 2812 | format.cmisc.addr.pub "publisher" output.check 2813 | % output.cyear.check %wk 2814 | % cbooklike.series.volume.number.pages output 2815 | format.date.modifydate.citedate output 2816 | } 2817 | { format.book.crossref output.nonnull 2818 | } 2819 | if$ 2820 | new.block 2821 | format.url output 2822 | new.block 2823 | note output 2824 | fin.entry 2825 | } 2826 | if$ 2827 | } 2828 | 2829 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2830 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2831 | 2832 | FUNCTION {unpublished} 2833 | {language empty$ 2834 | { output.bibitem 2835 | format.authors "author" output.check 2836 | author format.key output 2837 | output.year.month.check 2838 | new.block 2839 | format.btitle "title" output.check 2840 | new.block 2841 | note "note" output.check 2842 | fin.entry 2843 | } 2844 | 2845 | %FUNCTION {cunpublished} %wk 2846 | { output.bibitem 2847 | format.cauthors "author" output.check %wk 2848 | author format.key output 2849 | output.cyear.month.check %wk 2850 | new.block 2851 | format.ctitle "title" output.check %wk 2852 | new.block 2853 | note "note" output.check 2854 | fin.entry 2855 | } 2856 | if$ 2857 | } 2858 | 2859 | FUNCTION {default.type} { book } %wk 因为主要是基于book类型,因此将缺省类型由misc改为book 2860 | 2861 | MACRO {jan} {"Jan."} % ODWE, "months", & 2862 | % Chicago, p. 383. 2863 | MACRO {feb} {"Feb."} 2864 | 2865 | MACRO {mar} {"Mar."} 2866 | 2867 | MACRO {apr} {"Apr."} 2868 | 2869 | MACRO {may} {"May"} 2870 | 2871 | MACRO {jun} {"June"} 2872 | 2873 | MACRO {jul} {"July"} 2874 | 2875 | MACRO {aug} {"Aug."} 2876 | 2877 | MACRO {sep} {"Sept."} 2878 | 2879 | MACRO {oct} {"Oct."} 2880 | 2881 | MACRO {nov} {"Nov."} 2882 | 2883 | MACRO {dec} {"Dec."} 2884 | 2885 | MACRO {acmcs} {"ACM Computing Surveys"} 2886 | 2887 | MACRO {acta} {"Acta Informatica"} 2888 | 2889 | MACRO {cacm} {"Communications of the ACM"} 2890 | 2891 | MACRO {ibmjrd} {"IBM Journal of Research and Development"} 2892 | 2893 | MACRO {ibmsj} {"IBM Systems Journal"} 2894 | 2895 | MACRO {ieeese} {"IEEE Transactions on Software Engineering"} 2896 | 2897 | MACRO {ieeetc} {"IEEE Transactions on Computers"} 2898 | 2899 | MACRO {ieeetcad} 2900 | {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} 2901 | 2902 | MACRO {ipl} {"Information Processing Letters"} 2903 | 2904 | MACRO {jacm} {"Journal of the ACM"} 2905 | 2906 | MACRO {jcss} {"Journal of Computer and System Sciences"} 2907 | 2908 | MACRO {scp} {"Science of Computer Programming"} 2909 | 2910 | MACRO {sicomp} {"SIAM Journal on Computing"} 2911 | 2912 | MACRO {tocs} {"ACM Transactions on Computer Systems"} 2913 | 2914 | MACRO {tods} {"ACM Transactions on Database Systems"} 2915 | 2916 | MACRO {tog} {"ACM Transactions on Graphics"} 2917 | 2918 | MACRO {toms} {"ACM Transactions on Mathematical Software"} 2919 | 2920 | MACRO {toois} {"ACM Transactions on Office Information Systems"} 2921 | 2922 | MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} 2923 | 2924 | MACRO {tcs} {"Theoretical Computer Science"} 2925 | 2926 | READ 2927 | 2928 | %FUNCTION {sortify} 2929 | %{ purify$ 2930 | % "l" change.case$ 2931 | %} 2932 | % 2933 | %INTEGERS { len } 2934 | % 2935 | %FUNCTION {chop.word} 2936 | %{ 's := 2937 | % 'len := 2938 | % s #1 len substring$ = 2939 | % { s len #1 + global.max$ substring$ } 2940 | % 's 2941 | % if$ 2942 | %} 2943 | % 2944 | %FUNCTION {format.lab.names} %wk 2945 | %{ 's := 2946 | % s #1 "{vv~}{ll}" format.name$ 2947 | % s num.names$ duplicate$ 2948 | % #2 > 2949 | % { pop$ " {\em et~al.}" * } 2950 | % { #2 < 2951 | % 'skip$ 2952 | % { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = 2953 | % { " {\em et~al.}" * } 2954 | % { " and " * s #2 "{vv~}{ll}" format.name$ * } %wk 2955 | % if$ 2956 | % } 2957 | % if$ 2958 | % } 2959 | % if$ 2960 | %} 2961 | % 2962 | %FUNCTION {author.key.label} 2963 | %{ author empty$ 2964 | % { key empty$ 2965 | % { cite$ #1 #3 substring$ } 2966 | % 'key 2967 | % if$ 2968 | % } 2969 | % { author format.lab.names } 2970 | % if$ 2971 | %} 2972 | % 2973 | %FUNCTION {author.editor.key.label} 2974 | %{ author empty$ 2975 | % { editor empty$ 2976 | % { key empty$ 2977 | % { cite$ #1 #3 substring$ } 2978 | % 'key 2979 | % if$ 2980 | % } 2981 | % { editor format.lab.names } 2982 | % if$ 2983 | % } 2984 | % { author format.lab.names } 2985 | % if$ 2986 | %} 2987 | % 2988 | %FUNCTION {editor.key.label} 2989 | %{ editor empty$ 2990 | % { key empty$ 2991 | % { cite$ #1 #3 substring$ } 2992 | % 'key 2993 | % if$ 2994 | % } 2995 | % { editor format.lab.names } 2996 | % if$ 2997 | %} 2998 | % 2999 | %FUNCTION {calc.label} %wk修改 3000 | % { type$ "book" = 3001 | % type$ "cbook" = 3002 | % type$ "inbook" = 3003 | % type$ "cinbook" = 3004 | % type$ "incollection" = % For sensible 3005 | % type$ "cincollection" = 3006 | % or or or or or % treatment of 3007 | % 'author.editor.key.label % Singer in 3008 | % { type$ "proceedings" = % BS 1629. 3009 | % 'editor.key.label 3010 | % 'author.key.label 3011 | % if$ 3012 | % type$ "cproceedings" = % BS 1629. 3013 | % 'editor.key.label 3014 | % 'author.key.label 3015 | % if$ 3016 | % 3017 | % } 3018 | % if$ 3019 | % duplicate$ 3020 | % year empty$ 3021 | % { 3022 | % "\protect\citename{" swap$ * ", }" * 3023 | % "n.d." * 'label := % Chicago, 3024 | % } % page 457. 3025 | % { 3026 | % "\protect\citename{" swap$ * ", }" * 3027 | % year 3028 | % * 3029 | % 'label := 3030 | % } 3031 | % if$ 3032 | % year field.or.null purify$ * 3033 | % sortify 'sort.label := 3034 | %} 3035 | % 3036 | % 3037 | %FUNCTION {sort.format.names} % To produce the 3038 | %{ 's := % order of entries 3039 | % #1 'nameptr := % specified in item 3040 | % "" % (3) on page 187 3041 | % s num.names$ 'numnames := % of Butcher. 3042 | % numnames 'namesleft := 3043 | % { namesleft #0 > nameptr #3 < and } % Only 1st 2 names 3044 | % { nameptr #1 > % matter for 3045 | % { 3046 | % " " * } % sorting. 3047 | % 'skip$ 3048 | % if$ % Anything that's 3049 | % nameptr #2 = numnames #2 > and % "et al" goes 3050 | % { "zzzzz" * } % after works by 2 3051 | % { % authors. 3052 | % s nameptr "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}" format.name$ 't := 3053 | % nameptr numnames = t "others" = and 3054 | % { "zzzzz" * } 3055 | % { t sortify * } 3056 | % if$ 3057 | % } 3058 | % if$ 3059 | % nameptr #1 + 'nameptr := 3060 | % namesleft #1 - 'namesleft := 3061 | % } 3062 | % while$ 3063 | %} 3064 | % 3065 | %FUNCTION {sort.format.title} 3066 | %{ 't := 3067 | % "A " #2 3068 | % "An " #3 3069 | % "The " #4 t chop.word 3070 | % chop.word 3071 | % chop.word 3072 | % sortify 3073 | % #1 global.max$ substring$ 3074 | %} 3075 | % 3076 | %FUNCTION {author.sort} 3077 | %{ author empty$ 3078 | % { key empty$ 3079 | % { "to sort, need author or key in " cite$ * warning$ 3080 | % "" 3081 | % } 3082 | % { key sortify } 3083 | % if$ 3084 | % } 3085 | % { author sort.format.names } 3086 | % if$ 3087 | %} 3088 | % 3089 | %FUNCTION {author.editor.sort} 3090 | %{ author empty$ 3091 | % { editor empty$ 3092 | % { key empty$ 3093 | % { "to sort, need author, editor, or key in " cite$ * warning$ 3094 | % "" 3095 | % } 3096 | % { key sortify } 3097 | % if$ 3098 | % } 3099 | % { editor sort.format.names } 3100 | % if$ 3101 | % } 3102 | % { author sort.format.names } 3103 | % if$ 3104 | %} 3105 | % 3106 | %FUNCTION {editor.sort} 3107 | %{ editor empty$ 3108 | % { key empty$ 3109 | % { "to sort, need editor or key in " cite$ * warning$ 3110 | % "" 3111 | % } 3112 | % { key sortify } 3113 | % if$ 3114 | % } 3115 | % { editor sort.format.names } 3116 | % if$ 3117 | %} 3118 | % 3119 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-> 3120 | %INTEGERS { seq.num } 3121 | % 3122 | %FUNCTION {init.seq} 3123 | %{ #0 'seq.num :=} 3124 | % 3125 | %EXECUTE {init.seq} 3126 | % 3127 | %FUNCTION {int.to.fix} 3128 | %{ "000000000" swap$ int.to.str$ * 3129 | % #-1 #10 substring$ 3130 | %} 3131 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<- 3132 | % 3133 | %FUNCTION {presort} 3134 | %{ calc.label 3135 | % label sortify 3136 | % " " 3137 | % * 3138 | % seq.num #1 + 'seq.num := 3139 | % seq.num int.to.fix 3140 | % 'sort.label := 3141 | % sort.label * 3142 | % #1 entry.max$ substring$ 3143 | % 'sort.key$ := 3144 | %} 3145 | % 3146 | % 3147 | %%FUNCTION {presort} % Two sorting 3148 | %%{ calc.label % passes, from 3149 | %% label sortify % apalike.bst. 3150 | %% " " 3151 | %% * 3152 | %% type$ "book" = 3153 | %% type$ "inbook" = 3154 | %% type$ "incollection" = % For Singer 3155 | %% or or % in BS 1629. 3156 | %% 'author.editor.sort 3157 | %% { type$ "proceedings" = 3158 | %% 'editor.sort 3159 | %% 'author.sort 3160 | %% if$ 3161 | %% } 3162 | %% if$ 3163 | %% #1 entry.max$ substring$ 3164 | %% 'sort.label := 3165 | %% sort.label 3166 | %% * 3167 | %% " " 3168 | %% * 3169 | %% title field.or.null 3170 | %% sort.format.title 3171 | %% * 3172 | %% #1 entry.max$ substring$ 3173 | %% 'sort.key$ := 3174 | %%} 3175 | % 3176 | %ITERATE {presort} 3177 | % 3178 | %SORT 3179 | % 3180 | %STRINGS { last.label next.extra } 3181 | % 3182 | %INTEGERS { last.extra.num } 3183 | % 3184 | %FUNCTION {initialize.extra.label.stuff} 3185 | %{ #0 int.to.chr$ 'last.label := 3186 | % "" 'next.extra := 3187 | % #0 'last.extra.num := 3188 | %} 3189 | % 3190 | %FUNCTION {forward.pass} 3191 | %{ last.label label = 3192 | % { last.extra.num #1 + 'last.extra.num := 3193 | % last.extra.num int.to.chr$ 'extra.label := 3194 | % } 3195 | % { "a" chr.to.int$ 'last.extra.num := 3196 | % "" 'extra.label := 3197 | % label 'last.label := 3198 | % } 3199 | % if$ 3200 | %} 3201 | % 3202 | %FUNCTION {reverse.pass} 3203 | %{ next.extra "b" = 3204 | % { "a" 'extra.label := } 3205 | % 'skip$ 3206 | % if$ % Code needed here 3207 | % % if \citeauthor 3208 | % % and \citeyear 3209 | % label extra.label * 'label := % were supported. 3210 | % extra.label 'next.extra := 3211 | %} 3212 | % 3213 | %EXECUTE {initialize.extra.label.stuff} 3214 | % 3215 | %ITERATE {forward.pass} 3216 | % 3217 | %REVERSE {reverse.pass} 3218 | % 3219 | %FUNCTION {bib.sort.order} 3220 | %{ sort.label 3221 | % " " 3222 | % * 3223 | % year field.or.null sortify 3224 | % * 3225 | % " " 3226 | % * 3227 | % title field.or.null 3228 | % sort.format.title 3229 | % * 3230 | % #1 entry.max$ substring$ 3231 | % 'sort.key$ := 3232 | %} 3233 | % 3234 | %ITERATE {bib.sort.order} 3235 | % 3236 | %SORT 3237 | % 3238 | %FUNCTION {begin.bib} 3239 | %{ preamble$ empty$ 3240 | % 'skip$ 3241 | % { preamble$ write$ newline$ } 3242 | % if$ 3243 | % "\begin{thebibliography}{}" write$ newline$ 3244 | % 3245 | %%开始 3246 | % "\providecommand{\url}[1]{\texttt{#1}}" 3247 | % write$ newline$ 3248 | % "\expandafter\ifx\csname urlstyle\endcsname\relax" 3249 | % write$ newline$ 3250 | % " \providecommand{\doi}[1]{doi: #1}\else" 3251 | % write$ newline$ 3252 | % " \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi" 3253 | % write$ newline$ 3254 | %%结束 3255 | % 3256 | %} 3257 | % 3258 | %EXECUTE {begin.bib} 3259 | % 3260 | %EXECUTE {init.state.consts} 3261 | % 3262 | %ITERATE {call.type$} 3263 | % 3264 | %FUNCTION {end.bib} 3265 | %{ newline$ 3266 | % "\end{thebibliography}" write$ newline$ 3267 | %} 3268 | % 3269 | %EXECUTE {end.bib} 3270 | 3271 | 3272 | 3273 | 3274 | 3275 | 3276 | 3277 | 3278 | FUNCTION {sortify} 3279 | { purify$ 3280 | "l" change.case$ 3281 | } 3282 | 3283 | INTEGERS { len } 3284 | 3285 | FUNCTION {chop.word} 3286 | { 's := 3287 | 'len := 3288 | s #1 len substring$ = 3289 | { s len #1 + global.max$ substring$ } 3290 | 's 3291 | if$ 3292 | } 3293 | 3294 | 3295 | 3296 | 3297 | FUNCTION {format.lab.names} %wk 3298 | { 's := 3299 | s #1 "{vv~}{ll}" format.name$ 3300 | s num.names$ duplicate$ 3301 | #2 > 3302 | { pop$ " et al." * } 3303 | { #2 < 3304 | 'skip$ 3305 | { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = 3306 | { " {\em et~al.}" * } 3307 | { " and " * s #2 "{vv~}{ll}" format.name$ * } %wk 3308 | if$ 3309 | } 3310 | if$ 3311 | } 3312 | if$ 3313 | } 3314 | 3315 | FUNCTION {format.lab.cnames} %wk 3316 | { 's := 3317 | s #1 "{vv~}{ll}" format.name$ 3318 | s num.names$ duplicate$ 3319 | #2 > 3320 | { pop$ "~等" * } 3321 | { #2 < 3322 | 'skip$ 3323 | { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = 3324 | { " {\em et~al.}" * } 3325 | { "和" * s #2 "{vv~}{ll}" format.name$ * } %wk 3326 | if$ 3327 | } 3328 | if$ 3329 | } 3330 | if$ 3331 | } 3332 | 3333 | FUNCTION {author.key.label} 3334 | { author empty$ 3335 | { key empty$ 3336 | { cite$ #1 #3 substring$ } 3337 | 'key 3338 | if$ 3339 | } 3340 | % {author format.lab.names } 3341 | {language empty$ 3342 | {author format.lab.names} 3343 | {author format.lab.cnames} 3344 | if$} 3345 | 3346 | if$ 3347 | } 3348 | 3349 | FUNCTION {author.editor.key.label} 3350 | { author empty$ 3351 | { editor empty$ 3352 | { key empty$ 3353 | { cite$ #1 #3 substring$ } 3354 | 'key 3355 | if$ 3356 | } 3357 | % { editor format.lab.names } 3358 | {language empty$ 3359 | {editor format.lab.names} 3360 | {editor format.lab.cnames} 3361 | if$} 3362 | 3363 | if$ 3364 | } 3365 | % { author format.lab.names } 3366 | {language empty$ 3367 | {author format.lab.names} 3368 | {author format.lab.cnames} 3369 | if$} 3370 | 3371 | if$ 3372 | } 3373 | 3374 | FUNCTION {editor.key.label} 3375 | { editor empty$ 3376 | { key empty$ 3377 | { cite$ #1 #3 substring$ } 3378 | 'key 3379 | if$ 3380 | } 3381 | % { editor format.lab.names } 3382 | {language empty$ 3383 | {editor format.lab.names} 3384 | {editor format.lab.cnames} 3385 | if$} 3386 | 3387 | if$ 3388 | } 3389 | 3390 | FUNCTION {author.key.organization.label} 3391 | { author empty$ 3392 | { key empty$ 3393 | { organization empty$ 3394 | { cite$ #1 #3 substring$ } 3395 | { "The " #4 organization chop.word #3 text.prefix$ } 3396 | if$ 3397 | } 3398 | 'key 3399 | if$ 3400 | } 3401 | { author format.lab.names } 3402 | if$ 3403 | } 3404 | 3405 | FUNCTION {editor.key.organization.label} 3406 | { editor empty$ 3407 | { key empty$ 3408 | { organization empty$ 3409 | { cite$ #1 #3 substring$ } 3410 | { "The " #4 organization chop.word #3 text.prefix$ } 3411 | if$ 3412 | } 3413 | 'key 3414 | if$ 3415 | } 3416 | { editor format.lab.names } 3417 | if$ 3418 | } 3419 | 3420 | FUNCTION {calc.short.authors} 3421 | { type$ "book" = 3422 | type$ "inbook" = 3423 | or 3424 | 'author.editor.key.label 3425 | { type$ "proceedings" = 3426 | 'editor.key.organization.label 3427 | { type$ "manual" = 3428 | 'author.key.organization.label 3429 | 'author.key.label 3430 | if$ 3431 | } 3432 | if$ 3433 | } 3434 | if$ 3435 | 'short.list := 3436 | } 3437 | 3438 | FUNCTION {calc.label} 3439 | { calc.short.authors 3440 | short.list 3441 | "(" 3442 | * 3443 | year duplicate$ empty$ 3444 | short.list key field.or.null = or 3445 | { pop$ ""} 3446 | 'skip$ 3447 | if$ 3448 | * ")" * 3449 | 'label := 3450 | } 3451 | 3452 | INTEGERS { seq.num } 3453 | 3454 | FUNCTION {init.seq} 3455 | { #0 'seq.num :=} 3456 | 3457 | EXECUTE {init.seq} 3458 | 3459 | FUNCTION {int.to.fix} 3460 | { "000000000" swap$ int.to.str$ * 3461 | #-1 #10 substring$ 3462 | } 3463 | 3464 | 3465 | FUNCTION {presort} 3466 | { calc.label 3467 | label sortify 3468 | " " 3469 | * 3470 | seq.num #1 + 'seq.num := 3471 | seq.num int.to.fix 3472 | 'sort.label := 3473 | sort.label * 3474 | #1 entry.max$ substring$ 3475 | 'sort.key$ := 3476 | } 3477 | 3478 | ITERATE {presort} 3479 | 3480 | SORT 3481 | 3482 | STRINGS { longest.label last.label next.extra } 3483 | 3484 | INTEGERS { longest.label.width last.extra.num number.label } 3485 | 3486 | FUNCTION {initialize.longest.label} 3487 | { "" 'longest.label := 3488 | #0 int.to.chr$ 'last.label := 3489 | "" 'next.extra := 3490 | #0 'longest.label.width := 3491 | #0 'last.extra.num := 3492 | #0 'number.label := 3493 | } 3494 | 3495 | FUNCTION {forward.pass} 3496 | { last.label label = 3497 | { last.extra.num #1 + 'last.extra.num := 3498 | last.extra.num int.to.chr$ 'extra.label := 3499 | } 3500 | { "a" chr.to.int$ 'last.extra.num := 3501 | "" 'extra.label := 3502 | label 'last.label := 3503 | } 3504 | if$ 3505 | number.label #1 + 'number.label := 3506 | } 3507 | 3508 | FUNCTION {reverse.pass} 3509 | { next.extra "b" = 3510 | { "a" 'extra.label := } 3511 | 'skip$ 3512 | if$ 3513 | extra.label 'next.extra := 3514 | extra.label 3515 | duplicate$ empty$ 3516 | 'skip$ 3517 | { "{\natexlab{" swap$ * "}}" * } 3518 | if$ 3519 | 'extra.label := 3520 | label extra.label * 'label := 3521 | } 3522 | 3523 | EXECUTE {initialize.longest.label} 3524 | 3525 | ITERATE {forward.pass} 3526 | 3527 | REVERSE {reverse.pass} 3528 | 3529 | FUNCTION {bib.sort.order} 3530 | { sort.label 'sort.key$ := 3531 | } 3532 | 3533 | ITERATE {bib.sort.order} 3534 | 3535 | SORT 3536 | 3537 | FUNCTION {begin.bib} 3538 | { preamble$ empty$ 3539 | 'skip$ 3540 | { preamble$ write$ newline$ } 3541 | if$ 3542 | "\begin{thebibliography}{" number.label int.to.str$ * "}" * 3543 | write$ newline$ 3544 | "\providecommand{\natexlab}[1]{#1}" 3545 | write$ newline$ 3546 | "\providecommand{\url}[1]{\texttt{#1}}" 3547 | write$ newline$ 3548 | "\expandafter\ifx\csname urlstyle\endcsname\relax" 3549 | write$ newline$ 3550 | " \providecommand{\doi}[1]{doi: #1}\else" 3551 | write$ newline$ 3552 | " \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi" 3553 | write$ newline$ 3554 | } 3555 | 3556 | EXECUTE {begin.bib} 3557 | 3558 | EXECUTE {init.state.consts} 3559 | 3560 | ITERATE {call.type$} 3561 | 3562 | FUNCTION {end.bib} 3563 | { newline$ 3564 | "\end{thebibliography}" write$ newline$ 3565 | } 3566 | 3567 | EXECUTE {end.bib} 3568 | 3569 | 3570 | 3571 | 3572 | 3573 | -------------------------------------------------------------------------------- /MyDissBib.bib: -------------------------------------------------------------------------------- 1 | %============================================================== 2 | % 规范类 3 | %============================================================== 4 | @misc{C1, 5 | author = {铁道第一勘察设计院}, 6 | title = {铁路工程抗震设计规范(GB 50111-2006)}, 7 | PUBLISHER = {中国计划出版社}, 8 | volume = {}, 9 | year = {2006}, 10 | address = {北京}, 11 | TypeofLit = {S} 12 | } 13 | @misc{C2, 14 | author = {重庆交通科研设计院}, 15 | title = {公路桥梁抗震设计细则(JTG/T B02-2008)}, 16 | PUBLISHER = {人民交通出版社}, 17 | volume = {}, 18 | year = {2008}, 19 | address = {北京}, 20 | TypeofLit = {S} 21 | } 22 | @misc{C3, 23 | author = {中交路桥技术有限公司}, 24 | title = {公路工程抗震规范(JTG B02-2013)}, 25 | PUBLISHER = {人民交通出版社}, 26 | volume = {}, 27 | year = {2013}, 28 | address = {北京}, 29 | TypeofLit = {S} 30 | } 31 | @misc{C4, 32 | author = {同济大学}, 33 | title = {城市桥梁抗震设计规范(CJJ 166-2011)}, 34 | PUBLISHER = {中国建筑工业出版社}, 35 | year = {2011}, 36 | address = {北京}, 37 | TypeofLit = {S} 38 | } 39 | @misc{C5, 40 | author = {ATC-40}, 41 | title = {Seismic Evaluation and Retrofit of Concrete Buildings}, 42 | PUBLISHER = {Applied Technology Council}, 43 | year = {1966}, 44 | address = {California}, 45 | TypeofLit = {S} 46 | } 47 | @misc{C6, 48 | author = {FEMA-273}, 49 | title = {Guidelines for the Seismic Rehabilitation of Buildings}, 50 | PUBLISHER = {Federal Emergency Management Agency}, 51 | year = {1997}, 52 | address = {Washington D.C}, 53 | TypeofLit = {S} 54 | } 55 | @misc{C7, 56 | author = {AASHTO}, 57 | title = {Standard Specifications for Highway Bridges}, 58 | PUBLISHER = {American Association of State Highway and Trans Officials}, 59 | year = {1995}, 60 | address = {Washington D.C}, 61 | TypeofLit = {S} 62 | } 63 | @misc{C8, 64 | author = {CEN}, 65 | title = {Eurocode8-Design Provisions for Earthquake Resisitanc of Structures}, 66 | PUBLISHER = {American Association of State Highway and Trans Officials}, 67 | year = {1994}, 68 | address = {Brussels}, 69 | TypeofLit = {S} 70 | } 71 | @misc{C9, 72 | author = {ASCE}, 73 | title = {Seismic Evaluation and Retrofit of Existing Buildings}, 74 | PUBLISHER = {American Society of Civil Engineers}, 75 | year = {2013}, 76 | address = {Virginia}, 77 | TypeofLit = {S} 78 | } 79 | @misc{ACI318, 80 | author = {ACI}, 81 | title = {Building code requirements for structural concrete and commentary(ACI318-11)}, 82 | PUBLISHER = {American Concrete Institute}, 83 | year = {2011}, 84 | address = {Detroit}, 85 | TypeofLit = {S} 86 | } 87 | %============================================================== 88 | % 学位论文 89 | %============================================================== 90 | @PHDTHESIS{bentz2000, 91 | author = {Bentz,E}, 92 | title = {Sectional analysis of reinforced concrete members}, 93 | year = {2000}, 94 | address = {Canada}, 95 | school = {University of Toronto}, 96 | } 97 | @MASTERSTHESIS{liguiqian, 98 | AUTHOR = {李贵乾}, 99 | TITLE = {钢筋混凝土桥墩抗震性能试验研究及数值分析}, 100 | school = {重庆交通大学}, 101 | YEAR = {2010}, 102 | address = {重庆}, 103 | language = {Chinese}, 104 | } 105 | @MASTERSTHESIS{zuoxiaoming, 106 | AUTHOR = {左晓明}, 107 | TITLE = {钢筋混凝土桥墩试验研究及MARC有限元数值模拟}, 108 | school = {合肥工业大学}, 109 | YEAR = {2005}, 110 | address = {合肥}, 111 | language = {Chinese}, 112 | } 113 | @PHDTHESIS{sbj, 114 | AUTHOR = {司炳君}, 115 | TITLE = {普通及高强钢筋混凝土桥墩地震抗剪强度研究}, 116 | school = {大连理工大学}, 117 | YEAR = {2008}, 118 | address = {大连}, 119 | language = {Chinese}, 120 | } 121 | @PHDTHESIS{szg, 122 | AUTHOR = {孙治国}, 123 | TITLE = {钢筋混凝土桥墩抗震变形能力研究}, 124 | school = {中国地震局工程力学研究所}, 125 | YEAR = {2012}, 126 | address = {哈尔滨}, 127 | language = {Chinese}, 128 | } 129 | %============================================================== 130 | % 文章 131 | %============================================================== 132 | @article{bentz2006, 133 | author = {Bentz,E and Vecchioand,F}, 134 | title = {Simplified modified compression field theory for calculating shear strength of reinforced concrete elements}, 135 | journal = {ACI Structural Journal}, 136 | year = {2006}, 137 | volume = {103}, 138 | pages = {614-623}, 139 | } 140 | @article{Timoshenko, 141 | author = {Timoshenko,S}, 142 | title = {History of strength of materials}, 143 | journal = {McGraw-Hill}, 144 | year = {1953}, 145 | } 146 | @article{FMK, 147 | author = {Scott,Michael H and Fenves,G L and McKenna,F and Filippou,F}, 148 | title = {Software patterns for nonlinear beam-column models}, 149 | journal = {Journal of Structural Engineering}, 150 | year = {2008}, 151 | volume = {134}, 152 | pages = {562-571}, 153 | } 154 | @article{sung, 155 | author = {Sung,Y C and Liu,K Y and Su,C K and Chang,K C}, 156 | title = {A study on pushover analysis of reinforced concrete columns}, 157 | journal = {Structural Engineering and Mechanics}, 158 | year = {2008}, 159 | volume = {21}, 160 | pages = {35–52}, 161 | } 162 | @article{chung, 163 | author = {Chung,L L and Yang,Y S and Lien,K H and Wu,L Y}, 164 | title = {In-situ experiment on retrofit of school buildings by adding sandwich columns to partition brick walls}, 165 | journal = {Earthquake Engineering and Structural Dynamics}, 166 | year = {2013}, 167 | } 168 | @article{elwood, 169 | author = {Elwood,K J}, 170 | title = {Modelling Ffailures in existing reinforced concrete columns}, 171 | journal = {Canada Journal of Civil Engineering}, 172 | year = {2004}, 173 | volume = {31}, 174 | pages = {846-859}, 175 | } 176 | %============================================================== 177 | % 图书 178 | %============================================================== 179 | @BOOK{B1, 180 | AUTHOR = {Paulay,T and Priestley,M J N}, 181 | TITLE = {Seismic Design of Reinforced Concrete and Masonry Buildings}, 182 | PUBLISHER = {JohnWiley and Sons Inc}, 183 | YEAR = {1992}, 184 | address = {New York}, 185 | } 186 | %============================================================== 187 | % 其他 188 | %============================================================== 189 | @TECHREPORT{R1, 190 | AUTHOR = {Michael,B and Myles,P and Marc,E}, 191 | TITLE = {PEER Structural Performance Database User’s Manual}, 192 | institution = {Pacific Earthquake Engineering Research Center}, 193 | YEAR = {2004}, 194 | address = {Berkeley}, 195 | } 196 | 197 | %normalAUTHOR = {{U. S. Department of Transportation Federal Highway Administration}}, -------------------------------------------------------------------------------- /bjtuthesis.cls: -------------------------------------------------------------------------------- 1 | %========================================================================% 2 | % Copyright (C) 2016 All Rights Reserved. % 3 | % Author:BillHu Ver:<1.0> % 4 | %========================================================================% 5 | % The author grants permission, without fee and without a written % 6 | % license agreement, for use, reproduction, modification, and distribu- % 7 | % tion of this software and its documentation by educational, research, % 8 | % and non-profit entities for noncommercial purposes only.The above % 9 | % copyright notice and this paragraph MUST appear in all copies and % 10 | % modifications of the software and/or documentation. % 11 | %========================================================================% 12 | \ProvidesClass{bjtuthesis}[2016/09/10] 13 | \def\version{1.0} 14 | \LoadClass[a4paper,cs4size,twoside,hyperref,openright]{ctexbook} 15 | \NeedsTeXFormat{LaTeX2e} 16 | %========================================================================% 17 | % 基本宏包 18 | %========================================================================% 19 | \RequirePackage{ccaption} 20 | \RequirePackage{mathptmx} 21 | \RequirePackage{changepage} 22 | \RequirePackage{amsmath} 23 | \RequirePackage{amssymb} 24 | \RequirePackage{geometry} 25 | \RequirePackage{fancyhdr} 26 | \RequirePackage{tabularx} 27 | \RequirePackage[numbers,sort&compress]{natbib} 28 | \RequirePackage{subfig} 29 | \RequirePackage{pgfplots} 30 | \RequirePackage{tikz} 31 | \RequirePackage{multicol} 32 | \RequirePackage{setspace} 33 | \RequirePackage{titletoc} 34 | \RequirePackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref} 35 | %========================================================================% 36 | % 北京交大明确给出的格式 37 | %========================================================================% 38 | \geometry{left=3.5cm,right=2.5cm,top=3.0cm,bottom=2.5cm,headheight=1.6cm} 39 | \setmainfont{Times New Roman} 40 | \setlength{\baselineskip}{20pt} 41 | \renewcommand{\captionfont}{\zihao{5}} 42 | \renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}} 43 | \renewcommand{\thefigure}{\arabic{chapter}-\arabic{figure}} 44 | \renewcommand{\thetable}{\arabic{chapter}-\arabic{table}} 45 | \setlength{\abovecaptionskip}{0pt} 46 | \setlength{\belowcaptionskip}{0pt} 47 | \CTEXsetup[name={,}]{chapter} 48 | \CTEXsetup[number={\arabic{chapter}}]{chapter} 49 | \CTEXsetup[beforeskip={24pt}]{chapter} 50 | \CTEXsetup[afterskip={18pt}]{chapter} 51 | \CTEXsetup[nameformat={}]{chapter} 52 | \CTEXsetup[titleformat={}]{chapter} 53 | \CTEXsetup[format=\centering\heiti\zihao{3}]{chapter} 54 | \CTEXsetup[format=\raggedright\heiti\zihao{-3}]{section} 55 | \CTEXsetup[beforeskip={24pt}]{section} 56 | \CTEXsetup[afterskip={18pt}]{section} 57 | \CTEXsetup[format=\raggedright\heiti\zihao{4}]{subsection} 58 | \CTEXsetup[beforeskip={24pt}]{subsection} 59 | \CTEXsetup[afterskip={18pt}]{subsection} 60 | %========================================================================% 61 | \newcommand{\figcaption}[2]{\bicaption{图}{#1}{Fig}{#2}} 62 | %========================================================================% 63 | % 目录格式 64 | %========================================================================% 65 | \contentsmargin{1em} 66 | \titlecontents{part}[0em]{\hspace{2em}}{\contentslabel{0em}}{}{\titlerule*[0.3pc]{.}\contentspage}[\vspace{0.6ex}] 67 | \titlecontents{chapter}[1.5em]{\hspace{2em}}{\contentslabel{1.5em}}{}{\titlerule*[0.3pc]{.}\contentspage}[\vspace{0.6ex}] 68 | \titlecontents{section}[3em]{\hspace{2em}}{\contentslabel{2.2em}}{}{\titlerule*[0.3pc]{.}\contentspage}[\vspace{0.6ex}] 69 | \titlecontents{subsection}[4.5em]{\hspace{2em}}{\contentslabel{2.9em}}{}{\titlerule*[0.3pc]{.}\contentspage}[\vspace{0.6ex}] 70 | %========================================================================% 71 | % 页眉设置 72 | %========================================================================% 73 | \renewcommand{\chaptermark}[1]{\markboth{#1}{}} 74 | \fancypagestyle{myfancy}{ 75 | \fancyhead{} 76 | \fancyhead[CE]{\zihao{5}北京交通大学硕士学位论文} 77 | \fancyhead[CO]{\zihao{5}\leftmark} 78 | \fancyfoot[CO,CE]{\zihao{-5}\thepage} 79 | } 80 | \fancypagestyle{myempty}{ 81 | \fancyhead{} 82 | \renewcommand{\headrulewidth}{0pt} 83 | \renewcommand{\footrulewidth}{0pt} 84 | } 85 | \fancypagestyle{myclear}{ 86 | \fancyhead{} 87 | \renewcommand{\headrulewidth}{0pt} 88 | \renewcommand{\footrulewidth}{0pt} 89 | \fancyfoot{} 90 | } 91 | \fancypagestyle{plain}{ 92 | \fancyhead{} 93 | \fancyhead[CE]{\zihao{5}北京交通大学硕士学位论文} 94 | \fancyhead[CO]{\zihao{5}\leftmark} 95 | \fancyfoot[CO,CE]{\zihao{-5}\thepage} 96 | \renewcommand{\headrulewidth}{0.4pt} 97 | } 98 | \renewcommand{\chaptermark}[1]{\markboth{#1}{}} 99 | %========================================================================% 100 | % 自定义内容 101 | %========================================================================% 102 | \newcommand{\ctitle}[1]{\renewcommand{\ctitle}{#1}} 103 | \newcommand{\etitle}[1]{\renewcommand{\etitle}{#1}} 104 | \newcommand{\cdata}[1]{\renewcommand{\cdata}{#1}} 105 | \newcommand{\cauthor}[1]{\renewcommand{\cauthor}{#1}} 106 | \newcommand{\cid}[1]{\renewcommand{\cid}{#1}} 107 | \newcommand{\ctutor}[1]{\renewcommand{\ctutor}{#1}} 108 | \newcommand{\jobtitle}[1]{\renewcommand{\jobtitle}{#1}} 109 | \newcommand{\category}[1]{\renewcommand{\category}{#1}} 110 | \newcommand{\degree}[1]{\renewcommand{\degree}{#1}} 111 | \newcommand{\major}[1]{\renewcommand{\major}{#1}} 112 | \newcommand{\field}[1]{\renewcommand{\field}{#1}} 113 | \newcommand{\cthanks}[1]{\renewcommand{\cthanks}{#1}} 114 | \newcommand{\cabstract}[1]{\renewcommand{\cabstract}{#1}} 115 | \newcommand{\eabstract}[1]{\renewcommand{\eabstract}{#1}} 116 | \newcommand{\cprelude}[1]{\renewcommand{\cprelude}{#1}} 117 | %========================================================================% 118 | % 参考文献格式 119 | %========================================================================% 120 | \bibliographystyle{GBT7714-2005NLang-UTF8} 121 | \let\oldcitep\citep 122 | \newcommand{\citen}[2][]{\textsuperscript{\oldcitep{#2}#1}} 123 | \renewcommand{\citep}{\citen} 124 | %========================================================================% 125 | % 前置部分命令 126 | %========================================================================% 127 | \newenvironment{thecenter} 128 | {\begin{center}\vspace{24pt}\zihao{3}\heiti} 129 | {\vspace{18pt}\end{center}} 130 | \newcommand{\cover}{ 131 | \thispagestyle{myclear} 132 | \vspace{22mm} 133 | \begin{center} 134 | \includegraphics[width=107mm]{pic/logo.png} 135 | 136 | {\vspace{4ex}\zihao{2}\ziju{0.5}\songti 硕士学位论文\vspace{2cm}} 137 | 138 | {\zihao{-3}\ctitle\vspace{1cm}} 139 | 140 | {\zihao{-3}\etitle\vspace{3.8cm}} 141 | 142 | {\zihao{4}作者:\cauthor\vspace{1cm}} 143 | 144 | {\zihao{4}导师:\ctutor} 145 | \vfill 146 | {\zihao{4}北京交通大学\vspace{1cm}} 147 | 148 | \cdata 149 | \end{center} 150 | \newpage 151 | } 152 | \newcommand{\ccopyright}{ 153 | \thispagestyle{myclear} 154 | \vspace{2cm} 155 | \begin{center} 156 | {\zihao{3}\heiti 学位论文版权使用授权书} 157 | \end{center} 158 | 159 | 本学位论文作者完全了解北京交通大学有关保留、使用学位论文的规定。特授权北京交通大学可以将学位论文的全部或部分内容编入有关数据库进行检索,提供阅览服务,并采用影印、缩印或扫描等复制手段保存、汇编以供查阅和借阅。同意学校向国家有关部门或机构送交论文的复印件和磁盘。学校可以为存在馆际合作关系的兄弟高校用户提供文献传递服务和交换服务。 160 | 161 | (保密的学位论文在解密后适用本授权说明) 162 | \vspace{3cm} 163 | 164 | \begin{minipage}[t]{0.5\textwidth} 165 | 学位论文作者签名:\vspace{4ex} 166 | 167 | 签字日期:\hspace{2em}年\hspace{2em}月\hspace{2em}日 168 | \end{minipage} 169 | \hfill 170 | \begin{minipage}[t]{0.4\textwidth} 171 | 导师签名:\vspace{4ex} 172 | 173 | 签字日期:\hspace{2em}年\hspace{2em}月\hspace{2em}日 174 | \end{minipage} 175 | \newpage 176 | } 177 | \newcommand{\ctitlepage}{ 178 | \thispagestyle{myempty} 179 | {\noindent\zihao{5}学校代码:10004\hfill 密级:秘密} 180 | \vspace{4ex} 181 | \begin{center} 182 | {\zihao{0}\ziju{0.1}\kaishu 北京交通大学\vspace{0.5ex}} 183 | 184 | {\zihao{2}\ziju{0.5}\songti 硕士学位论文\vspace{4ex}} 185 | 186 | {\zihao{-3}\ctitle\vspace{2ex}} 187 | 188 | {\zihao{-3}\etitle\vspace{6ex}} 189 | \end{center} 190 | \begin{minipage}[t]{0.5\textwidth} 191 | \zihao{4}\noindent 192 | 作者姓名:\cauthor\vspace{2ex} 193 | 194 | 导师姓名:\ctutor\vspace{2ex} 195 | 196 | 学位类别:\category\vspace{2ex} 197 | 198 | 学科专业:\major\vspace{2ex} 199 | \end{minipage} 200 | \hfill 201 | \begin{minipage}[t]{0.4\textwidth} 202 | \zihao{4}\noindent 203 | 学\hspace{2em}号:\cid\vspace{2ex} 204 | 205 | 职\hspace{2em}称:\jobtitle\vspace{2ex} 206 | 207 | 学位级别:\degree\vspace{2ex} 208 | 209 | 研究方向:\field\vspace{2ex} 210 | \end{minipage} 211 | \vfill 212 | \begin{center}\zihao{4} 213 | 北京交通大学\vspace{2ex} 214 | 215 | \cdata 216 | \end{center} 217 | \newpage 218 | } 219 | \newcommand{\myclpage}{ 220 | \thispagestyle{myclear} 221 | \mbox{} 222 | \newpage 223 | } 224 | \newcommand{\myfanpage}{ 225 | \thispagestyle{myfancy} 226 | \mbox{} 227 | \newpage 228 | } 229 | \newcommand{\thankspage}{ 230 | \thispagestyle{myempty} 231 | \begin{thecenter} 232 | 致谢 233 | \end{thecenter} 234 | 235 | \cthanks 236 | \newpage 237 | } 238 | \newcommand{\cabspage}{ 239 | \thispagestyle{myfancy} 240 | \markboth{摘要}{} 241 | \addcontentsline{toc}{part}{摘要} 242 | \begin{thecenter} 243 | 摘要 244 | \end{thecenter} 245 | 246 | \cabstract 247 | \newpage 248 | } 249 | \newcommand{\eabspage}{ 250 | \thispagestyle{myfancy} 251 | \markboth{ABSTRACT}{} 252 | \addcontentsline{toc}{part}{ABSTRACT} 253 | \begin{thecenter} 254 | ABSTRACT 255 | \end{thecenter} 256 | 257 | \eabstract 258 | \newpage 259 | } 260 | \newcommand{\cprepage}{ 261 | \thispagestyle{myfancy} 262 | \markboth{序言}{} 263 | \addcontentsline{toc}{part}{序言} 264 | \begin{thecenter} 265 | 序言 266 | \end{thecenter} 267 | 268 | \cprelude 269 | \newpage 270 | } 271 | \newcommand{\cstatement}{ 272 | \thispagestyle{myfancy} 273 | \markboth{独创性声明}{} 274 | \addcontentsline{toc}{part}{独创性声明} 275 | \begin{thecenter} 276 | 独创性声明 277 | \end{thecenter} 278 | 279 | \indent\zihao{5}本人声明所呈交的学位论文是本人在导师指导下进行的研究工作和取得的研究成果,除了文中特别加以标注和致谢之处外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得北京交通大学或其他教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示了谢意。 280 | 281 | \vspace{2cm}学位论文作者签名:\hspace{6.5em}签字日期:\hspace{4em}年\hspace{2em}月\hspace{2em}日 282 | \cleardoublepage 283 | } 284 | \newcommand{\clastpage}{ 285 | \thispagestyle{myfancy} 286 | \markboth{学位论文数据集}{} 287 | \addcontentsline{toc}{part}{学位论文数据集} 288 | \begin{thecenter} 289 | 学位论文数据集 290 | \end{thecenter} 291 | \begin{center} 292 | \includegraphics[width=\textwidth]{pic/tab.png} 293 | \end{center} 294 | } 295 | %========================================================================% 296 | % 结束 297 | %========================================================================% -------------------------------------------------------------------------------- /pic/G1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/billhu0228/BJTUThesisTemplete/12c5843b424499caac6f8f19a1be8bbb42670fe5/pic/G1.png -------------------------------------------------------------------------------- /pic/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/billhu0228/BJTUThesisTemplete/12c5843b424499caac6f8f19a1be8bbb42670fe5/pic/logo.png -------------------------------------------------------------------------------- /pic/tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/billhu0228/BJTUThesisTemplete/12c5843b424499caac6f8f19a1be8bbb42670fe5/pic/tab.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | #BJTUThesisTemplete 2 | *** 3 | ##说明: 4 | 知行论坛上置顶的Latex模板发表于2011年[http://zhixing.bjtu.edu.cn/thread-333940-1-1.html](http://zhixing.bjtu.edu.cn/thread-333940-1-1.html)。该模板是借鉴的清华学位论文模板,并由**silverfox前辈**做出了修改。但这个模板发布时间久远,缺乏维护,说明也较少,不利于新人学习,另外借鉴外校的模板文件(清华)进行修改,也非长远之计。 5 | 6 | 本模板是我自己在使用Latex编辑我的硕士学位论文时,按照交大官方给出的学位论文格式要求编写。利用中秋假期完善了两天,基本制作完成,发布给各位同学。我个人使用latex编辑文档排版的经验大概有四五年时间,但水平非常有限。目前我遇到的主要问题是模板兼容性和新手推广两个方面,非常希望有同样latex学习热情和爱好的老师同学们能一起合作,像外校模板项目一样代代传承。[我的邮箱](mailto:billhu0228@icloud.com)。 7 | 8 | 我编写此模板的目的有三: 9 | 10 | 1.希望能出现独立编写的交大学位论文模板,而非引用外校; 11 | 12 | 2.希望能有更多的同学能习惯利用latex排版精美的论文和印刷品; 13 | 14 | 3.希望呼吁交大官方能重视latex的推广,早日发布“官方”的论文模板; 15 | 16 | *** 17 | ##2017-2-15 18 | 内容迁移到我的[Git](https://github.com/billhu0228/BJTUThesisTemplete),并进一步进行完善。 19 | 20 | -------------------------------------------------------------------------------- /template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/billhu0228/BJTUThesisTemplete/12c5843b424499caac6f8f19a1be8bbb42670fe5/template.pdf -------------------------------------------------------------------------------- /template.tex: -------------------------------------------------------------------------------- 1 | %========================================================================% 2 | % Copyright (C) 2016 All Rights Reserved. % 3 | % Author:BillHu Ver:<1.0> % 4 | %========================================================================% 5 | % The author grants permission, without fee and without a written % 6 | % license agreement, for use, reproduction, modification, and distribu- % 7 | % tion of this software and its documentation by educational, research, % 8 | % and non-profit entities for noncommercial purposes only.The above % 9 | % copyright notice and this paragraph MUST appear in all copies and % 10 | % modifications of the software and/or documentation. % 11 | %========================================================================% 12 | \documentclass{bjtuthesis} 13 | %========================================================================% 14 | % 自定义内容 15 | %========================================================================% 16 | \ctitle{中文题目} 17 | \etitle{English Title} 18 | \cauthor{作者} 19 | \ctutor{导师} 20 | \category{工学} 21 | \major{土木工程} 22 | \cid{14121023} 23 | \jobtitle{教授} 24 | \degree{硕士} 25 | \field{桥梁工程} 26 | \cdata{2017年3月} 27 | %========================================================================% 28 | % 自定义文字 29 | %========================================================================% 30 | \cthanks{放置在摘要页前,对象包括:1)国家科学基金,资助研究工作的奖学金基金,合同单位,资助或支持的企业、组织或个人。2)协助完成研究工作和提供便利条件的组织或个人。3)在研究工作中提出建议和提供帮助的人。4)给予转载和引用权的资料、图片、文献、研究思想和设想的所有者。5)其他应感谢的组织和个人。} 31 | \cabstract{中文摘要应将学位论文的内容要点简短明了地表达出来,硕士学位论文一般为500~1000字,博士学位论文一般为1000~2000字。留学生英文版学位论文不少于3000字中文摘要,留学生英文版博士学位论文不少于5000字中文摘要。字体为宋体小四号。内容应包括工作目的、研究方法、成果和结论。要突出本论文的创新点,语言力求精炼。为了便于文献检索,应在本页下方另起一行注明论文的关键词(3-8个),如有可能,尽量采用《汉语主题词表》等词表提供的规范词。图X幅,表X个,参考文献X篇。} 32 | \eabstract{Something Something Something Something Something Something Something Something Something Something Something Something Something Something Something Something Something Something Something Something.} 33 | \cprelude{学位论文的序或前言,一般是作者或他人对本篇论文基本特征的简介,如说明研究工作缘起、背景、主旨、目的、意义、编写体例,以及资助、支持、协作经过等;也可以评述和对相关问题发表意见。这些内容也可以在正文引言中说明。} 34 | %========================================================================% 35 | % 前置部分 36 | %========================================================================% 37 | \begin{document} 38 | \pagenumbering{roman} 39 | \cover 40 | \myclpage 41 | \ccopyright 42 | \myclpage 43 | \setcounter{page}{1} 44 | \ctitlepage 45 | \myclpage 46 | \thankspage 47 | \myclpage 48 | \cabspage 49 | \myfanpage 50 | \eabspage 51 | \myfanpage 52 | \cprepage 53 | \myfanpage 54 | \pagestyle{myfancy} 55 | \tableofcontents 56 | %========================================================================% 57 | % 主体部份 58 | %========================================================================% 59 | \chapter{绪论} 60 | \markboth{绪论}{} 61 | \pagenumbering{arabic} 62 | \setcounter{page}{1} 63 | 我是绪论。我是绪论。我是绪论。我是绪论。我是绪论。我是绪论。我是绪论。我是绪论。 64 | \chapter{各种测试} 65 | \section{图表测试} 66 | \subsection{单张图片} 67 | 单张普通插图,及其引用,如图\ref{fig:G1}所示。 68 | 69 | \begin{figure}[!htp] 70 | \centering 71 | \includegraphics[width=0.8\textwidth]{pic/G1.png} 72 | \figcaption{G1数据对比\label{fig:G1}}{Comparison of experimental data} 73 | \end{figure} 74 | 75 | \subsection{多张图片} 76 | 多张图片联排或者换行可以使用各种排版方式(minipage、subplot等),如下图\ref{fig:2}所示。 77 | \begin{figure} 78 | \centering 79 | \begin{minipage}[t]{0.48\textwidth} 80 | \centering 81 | \includegraphics[width=0.9\textwidth]{pic/G1.png}\\ 82 | {\zihao{5}(a) G1试件} 83 | \end{minipage} 84 | \begin{minipage}[t]{0.48\textwidth} 85 | \centering 86 | \includegraphics[width=0.9\textwidth]{pic/G1.png}\\ 87 | {\zihao{5}(b) G1试件} 88 | \end{minipage} 89 | \figcaption{G1数据对比\label{fig:2}}{Comparison of experimental data} 90 | \end{figure} 91 | \section{公式测试} 92 | 公式的排版和引用与正常\LaTeX\ 公式格式一致。例如: 93 | 94 | \begin{equation} 95 | \label{eqn:1} 96 | e^{i\pi}+1=0 97 | \end{equation} 98 | 99 | 欧拉公式(式\ref{eqn:1}),它是数学里最令人着迷的一个公式,它将数学里最重要的几个数学联系到了一起——两个超数:自然对数的底$e$,圆周率$\pi$;两个单位:虚数单位$i$和自然数的单位$1$,以及数学里常见的$0$。数学家们评价它是“上帝创造的公式”,我们只能看它而不能理解它。 100 | 101 | \section{参考文献测试} 102 | 我使用的参考文献是符合《GB7714-2005》规范的中文论文参考文献格式。该规范作为国家标准化管理委员会正式公布的标准,其权威性和通用性远远超过了其它格式规范,是国内最正式的参考文献格式规范,并且是大多数高校毕业论文和杂志的指定参考文献格式。 103 | 104 | 下面分类测试各种类型参考文献: 105 | 106 | \begin{itemize} 107 | \item 中文规范\citep{C1}。 108 | \item 英文规范\citep{ACI318} 109 | \item 中文学位论文\citep{liguiqian} 110 | \item 英文学位论文\citep{bentz2000} 111 | \item 期刊\citep{FMK} 112 | \item 图书类\citep{B1} 113 | \item 其他\citep{R1} 114 | \item 多文献引用,压缩格式\citep{C1,ACI318,liguiqian,R1} 115 | \end{itemize} 116 | 117 | \chapter{结论} 118 | 论文的结论是最终的、总体的结论,不是正文中各段的小结的简单重复。结论应该准确、完整、明确、精练。如果不可能导出应有的结论,也可以没有结论而进行必要的讨论。可以在结论或讨论中提出建议、研究设想、仪器设备改进意见以及尚待解决的问题等。 119 | %========================================================================% 120 | % 参考文献 121 | %========================================================================% 122 | \bibliography{MyDissBib} 123 | \addcontentsline{toc}{part}{参考文献} 124 | \cleardoublepage 125 | %========================================================================% 126 | % 附录 127 | %========================================================================% 128 | \markboth{附录A}{} 129 | \addcontentsline{toc}{part}{附录A} 130 | \begin{center} 131 | {\zihao{3}\heiti 附录A} 132 | \end{center} 133 | \begin{center} 134 | {\zihao{3}\heiti 附录标题} 135 | \end{center} 136 | 137 | \indent\zihao{5}附录是作为论文主体的补充项目,并不是必须的。 138 | 论文的附录依序用大写正体英文字母A、B、C……编序号,如:附录A。 139 | \cleardoublepage 140 | %========================================================================% 141 | % 索引 142 | %========================================================================% 143 | \markboth{索引}{} 144 | \addcontentsline{toc}{part}{索引} 145 | \begin{center} 146 | {\zihao{3}\heiti 索引} 147 | \end{center} 148 | 149 | \indent\zihao{5}按照需要编排分类索引、著者索引、关键词索引等。 150 | \cleardoublepage 151 | %========================================================================% 152 | % 作者简历及研究成果 153 | %========================================================================% 154 | \markboth{作者简历及攻读硕士学位期间取得的研究成果}{} 155 | \addcontentsline{toc}{part}{作者简历及攻读硕士学位期间取得的研究成果} 156 | \begin{thecenter} 157 | 作者简历及攻读硕士学位期间取得的研究成果 158 | \end{thecenter} 159 | 160 | \zihao{5}包括教育经历、工作经历、攻读学位期间发表的论文和完成的工作等。行距16磅,段前后各为0磅。 161 | \cleardoublepage 162 | \cstatement 163 | \clastpage 164 | \end{document} 165 | --------------------------------------------------------------------------------