├── 示例-博士学位论文.pdf ├── 示例-硕士学位论文.pdf ├── BIT-Thesis使用指南v1.1.pdf ├── BIT-thesis-manual ├── manual.pdf ├── figures │ ├── BIT.png │ ├── BIT-CS.png │ ├── pic1.jpg │ ├── pic2.jpg │ ├── figure1.png │ ├── pic-eps.eps │ ├── pic-pdf.pdf │ ├── demo_context.PNG │ └── BIT-thesis-run.png ├── BIT-thesis-run.cmd ├── BIT-thesis-run.sh ├── chapters │ ├── ch5-question.tex │ ├── thanks.tex │ ├── app3-log.tex │ ├── abstract.tex │ ├── app2-material.tex │ ├── conclusion.tex │ ├── resume.tex │ ├── app1-content.tex │ ├── ch1-introduction.tex │ ├── ch4-format.tex │ ├── ch2-structure.tex │ └── ch3-eqnFigAndTab.tex ├── manual.lot ├── manual.lof ├── reference │ ├── chap1.bib │ └── chap2.bib ├── manual.tex └── BIT-thesis-grd.cls ├── BIT-thesis-template-grd ├── demo.pdf ├── figures │ └── figure1.png ├── BIT-thesis-run.cmd ├── BIT-thesis-run.sh ├── latexmkrc ├── chapters │ ├── app1.tex │ ├── resume.tex │ ├── thanks.tex │ ├── denotation.tex │ ├── pub.tex │ ├── conclusion.tex │ ├── abstract.tex │ ├── app2.tex │ └── chapter1.tex ├── demo.lot ├── demo.lof ├── reference │ └── chap1.bib ├── demo.tex ├── BIT-thesis-grd.cls └── GBT7714-2005NLang.bst ├── .gitattributes ├── .gitignore └── README.md /示例-博士学位论文.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/示例-博士学位论文.pdf -------------------------------------------------------------------------------- /示例-硕士学位论文.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/示例-硕士学位论文.pdf -------------------------------------------------------------------------------- /BIT-Thesis使用指南v1.1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-Thesis使用指南v1.1.pdf -------------------------------------------------------------------------------- /BIT-thesis-manual/manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/manual.pdf -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/BIT.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/BIT.png -------------------------------------------------------------------------------- /BIT-thesis-template-grd/demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-template-grd/demo.pdf -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/BIT-CS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/BIT-CS.png -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/pic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/pic1.jpg -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/pic2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/pic2.jpg -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/figure1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/figure1.png -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/pic-eps.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/pic-eps.eps -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/pic-pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/pic-pdf.pdf -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/demo_context.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/demo_context.PNG -------------------------------------------------------------------------------- /BIT-thesis-template-grd/figures/figure1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-template-grd/figures/figure1.png -------------------------------------------------------------------------------- /BIT-thesis-manual/figures/BIT-thesis-run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BIT-thesis/LaTeX-template/HEAD/BIT-thesis-manual/figures/BIT-thesis-run.png -------------------------------------------------------------------------------- /BIT-thesis-template-grd/BIT-thesis-run.cmd: -------------------------------------------------------------------------------- 1 | 2 | del demo.pdf 3 | xelatex -no-pdf --interaction=nonstopmode demo 4 | bibtex demo 5 | xelatex -no-pdf --interaction=nonstopmode demo 6 | xelatex --interaction=nonstopmode demo 7 | 8 | start "" "demo.pdf" 9 | 10 | -------------------------------------------------------------------------------- /BIT-thesis-manual/BIT-thesis-run.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | set BASE=manual 4 | 5 | 6 | xelatex -no-pdf --interaction=nonstopmode manual 7 | bibtex manual 8 | xelatex -no-pdf --interaction=nonstopmode manual 9 | xelatex --interaction=nonstopmode manual 10 | start "" manual.pdf 11 | -------------------------------------------------------------------------------- /BIT-thesis-manual/BIT-thesis-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | BASE=manual 4 | 5 | rm ${BASE}.pdf 6 | xelatex -no-pdf --interaction=nonstopmode ${BASE} 7 | bibtex ${BASE} 8 | xelatex -no-pdf --interaction=nonstopmode ${BASE} 9 | xelatex --interaction=nonstopmode ${BASE} 10 | 11 | start "" "${BASE}.pdf" 12 | 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/BIT-thesis-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | BASE=demo 4 | 5 | rm ${BASE}.pdf 6 | xelatex -no-pdf --interaction=nonstopmode ${BASE} 7 | bibtex ${BASE} 8 | xelatex -no-pdf --interaction=nonstopmode ${BASE} 9 | xelatex --interaction=nonstopmode ${BASE} 10 | 11 | start "" "${BASE}.pdf" 12 | 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/latexmkrc: -------------------------------------------------------------------------------- 1 | $pdf_mode = 5; 2 | $xelatex = "xelatex -synctex=1 -no-pdf -interaction=nonstopmode --shell-escape %O %S"; 3 | $recorder = 1; 4 | $bibtex_use = 2; 5 | $clean_ext = "synctex.gz acn acr alg aux bbl bcf blg brf fdb_latexmk glg glo gls idx ilg ind ist lof log lot out run.xml toc dvi xdv"; 6 | 7 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/app1.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% app1.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | 9 | \chapter{***} 10 | 11 | 附录相关内容… 12 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/resume.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% resume.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | \begin{resume} 9 | 10 | 本人…。 11 | 12 | \end{resume} 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/thanks.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% thanks.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | \begin{thanks} 9 | 10 | 本论文的工作是在导师……。 11 | 12 | \end{thanks} 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/demo.lot: -------------------------------------------------------------------------------- 1 | \hypersetup {hidelinks} 2 | \addvspace {10.0pt} 3 | \addvspace {10.0pt} 4 | \addvspace {10.0pt} 5 | \addvspace {10.0pt} 6 | \contentsline {table}{\numberline {1.1}{\ignorespaces 水系聚氨酯分类\relax }}{2}{table.caption.8} 7 | \addvspace {10.0pt} 8 | \addvspace {10.0pt} 9 | \addvspace {10.0pt} 10 | \addvspace {10.0pt} 11 | \addvspace {10.0pt} 12 | \contentsfinish 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/demo.lof: -------------------------------------------------------------------------------- 1 | \hypersetup {hidelinks} 2 | \addvspace {10.0pt} 3 | \addvspace {10.0pt} 4 | \addvspace {10.0pt} 5 | \addvspace {10.0pt} 6 | \contentsline {figure}{\numberline {1.1}{\ignorespaces 热塑性形状记忆聚氨酯的形状记忆机理示意图\relax }}{1}{figure.caption.7} 7 | \addvspace {10.0pt} 8 | \addvspace {10.0pt} 9 | \addvspace {10.0pt} 10 | \addvspace {10.0pt} 11 | \addvspace {10.0pt} 12 | \contentsfinish 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/denotation.tex: -------------------------------------------------------------------------------- 1 | \begin{denotation} 2 | 3 | \item[BIT] 北京理工大学的英文缩写 4 | \item[\LaTeX] 一个很棒的排版系统 5 | \item[\LaTeXe] 一个很棒的排版系统的最新稳定版 6 | \item[\XeTeX] \LaTeX{}的好兄弟,事实上他有很多个兄弟,但是这个兄弟对各种语言的支持能力都很强 7 | \item[ctex] 成套的中文\LaTeX{}解决方案,由一帮天才们开发 8 | \item[\ce{H2SO4}] 硫酸 9 | \item[$ e^{\pi{}i}+1=0$] 一个集自然界五大常数一体的炫酷方程 10 | \item[\ce{2H2 + O2 -> 2H2O}] 一个昂贵的生成生命之源的方程式 11 | 12 | \end{denotation} 13 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/pub.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% pub.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | \begin{publications}{99} 9 | 10 | \item\textsc{高凌}. {交联型与线形水性聚氨酯的形状记忆性能比较}[J]. 11 | 化工进展, 2006, 532-535.(核心期刊) 12 | 13 | \end{publications} 14 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/ch5-question.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% ch5.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | 8 | % \bibliographystyle{sjtu2} %[此处用于每章都生产参考文献] 9 | 10 | \chapter{存在的问题} 11 | \label{chap:needsomehelp} 12 | 13 | 由于时间非常仓促,这个模板肯定存在不少问题 14 | 15 | 。。。 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/thanks.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% thanks.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 1.0 5 | %% last update: Sep 8th, 2017 6 | %%================================================== 7 | 8 | 9 | \begin{thanks} 10 | 11 | 12 | 感谢计算机学院2016级研究生杨雅婷对本模板的撰写与更新做了大量工作。特别感谢宇航学院2015级硕士研究生汪卫对本模板更新与维护所做的突出贡献。同时,由衷感谢在Github对该项目上提出大量珍贵修改意见的老师和同学们。 13 | 14 | 本项目得到研究生院学位与学部办公室和学生事务中心的资助支持。 15 | 16 | \end{thanks} 17 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/conclusion.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% conclusion.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | 9 | \begin{conclusion} 10 | 11 | 本文采用……。{\color{blue}(结论作为学位论文正文的最后部分单独排写,但不加章号。结论是对整个论文主要结果的总结。在结论中应明确指出本研究的创新点,对其应用前景和社会、经济价值等加以预测和评价,并指出今后进一步在本研究方向进行研究工作的展望与设想。结论部分的撰写应简明扼要,突出创新性。)} 12 | 13 | \end{conclusion} -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/app3-log.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% app2-log.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | \chapter{模板更新记录} 8 | \label{chap:updatelog} 9 | \begin{itemize} 10 | \item \textbf{2017年2月} 根据网上北理工 \LaTeX{} 论文模板“2012大眼小蚂蚁版”和“2016汪卫版”。本模板在此两个模板的基础上依据《北京理工大学博士、硕士学位论文撰写规范》进行修改和完善。 11 | 12 | \item \textbf{2017年9月} 根据试用版反馈,修改BIT-Thesis v1.0。 13 | \end{itemize} 14 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/abstract.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% abstract.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | 8 | \begin{abstract} 9 | 10 | 这是一篇BIT-thesis使用指南...... 11 | 12 | 本使用指南...... 13 | 14 | \keywords{北京理工大学 \quad 德以明理,学以精工} 15 | \end{abstract} 16 | 17 | \begin{englishabstract} 18 | 19 | this is english abstract 20 | 21 | \englishkeywords{BIT, master thesis, XeTeX/LaTeX template} 22 | \end{englishabstract} 23 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/abstract.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% abstract.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | \begin{abstract} 9 | 本文……。({\color{blue}{摘要是一篇具有独立性和完整性的短文,应概括而扼要地反映出本论文的主要内容。包括研究目的、研究方法、研究结果和结论等,特别要突出研究结果和结论。中文摘要力求语言精炼准确,硕士学位论文摘要建议500$\sim$800字,博士学位论文建议1000$\sim$1200字。摘要中不可出现参考文献、图、表、化学结构式、非公知公用的符号和术语。英文摘要与中文摘要的内容应一致。}}) 10 | 11 | \keywords{形状记忆; 聚氨酯; 织物; 合成; 应用 ({\color{blue}{一般选3~8个单词或专业术语,且中英文关键词必须对应。})}} 12 | \end{abstract} 13 | 14 | \begin{englishabstract} 15 | 16 | In order to exploit ……. 17 | 18 | \englishkeywords{shape memory properties; polyurethane; textile; synthesis; application} 19 | 20 | \end{englishabstract} 21 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/app2-material.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% app2-material.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: April 16th, 2017 6 | %%================================================== 7 | \chapter{学习资料} 8 | \label{chap:material} 9 | 10 | 建议的学习资料已存在github仓库中,见\href{https://github.com/BIT-thesis/LaTeX-materials}{LaTeX学习资料}。 11 | 12 | \url{https://github.com/BIT-thesis/LaTeX-materials} 13 | 14 | \begin{itemize} 15 | 16 | \item 一份不太简短的~\LaTeXe{}~介绍 17 | \item \LaTeX 插图指南 18 | \item Math Mode 19 | \item C\TeX 常见问题合集 20 | \item 简单粗暴LaTeX 21 | 22 | \end{itemize} 23 | 24 | \LaTeX 除了可以用于写出规范的学位论文,还可用于写SCI等期刊论文。 25 | 26 | \begin{itemize} 27 | \item \href{http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/}{~IEEE~论文模板} 28 | 29 | \end{itemize} -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/conclusion.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% conclusion.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: May 1st, 2017 6 | %%================================================== 7 | 8 | \begin{conclusion} 9 | 学位论文通常具有比较严格的格式要求,这是为了方便同行学术交流的起码要求,同时也是科学研究严谨性的体现。然而,由于市场各种排版软件混杂,使用者水平不一,学生对格式的重视程度不够,学生编写标准格式的学位论存在很多问题。 10 | 11 | BIT-Thesis 为符合北京理工大学硕士(博士)学位论文的 ~\LaTeX~ 模板。通过 BIT-Thesis 模板可以轻松撰写符合学校格式要求的学位论文,学生可将关注点更多地放在高质量的内容本身,而避免繁琐的论文格式调整。 12 | 13 | 目前本模板还处于不断修改与更新阶段,可能存在诸多错误与问题,请提出宝贵意见。 14 | 本项目的GitHub地址为:\url{https://github.com/BIT-thesis/LaTeX-template} 15 | 16 | 本项目得到了北京理工大学学生事务中心的资助。 17 | 18 | 本手册是针对北京理工大学硕士(博士)学位论文~\LaTeX~ 模板BIT-thesis的使用指南。旨在使同学们通过该使用指南的介绍,能快速掌握使用BIT-thesis模板编辑符合学校格式要求的硕士(博士)学位论文,并能对~\LaTeX~ 有一定的了解。 19 | 20 | \end{conclusion} -------------------------------------------------------------------------------- /BIT-thesis-manual/manual.lot: -------------------------------------------------------------------------------- 1 | \hypersetup {hidelinks} 2 | \addvspace {10.0pt} 3 | \addvspace {10.0pt} 4 | \contentsline {table}{\numberline {2.1}{\ignorespaces 章节设置关键字\relax }}{11}{table.caption.6} 5 | \contentsline {table}{\numberline {2.2}{\ignorespaces 交叉引用类型\relax }}{11}{table.caption.7} 6 | \addvspace {10.0pt} 7 | \contentsline {table}{\numberline {3.1}{\ignorespaces BIT-thesis-grd模板demo示例中第一章的表一\relax }}{20}{table.caption.13} 8 | \contentsline {table}{\numberline {3.2}{\ignorespaces L-B模型中参数的物理意义\relax }}{20}{table.caption.14} 9 | \contentsline {table}{\numberline {3.3}{\ignorespaces 一个标准的三线表格\relax }}{21}{table.caption.15} 10 | \contentsline {table}{\numberline {3.4}{\ignorespaces 一个带有脚注的表格的例子\relax }}{21}{table.caption.16} 11 | \addvspace {10.0pt} 12 | \addvspace {10.0pt} 13 | \addvspace {10.0pt} 14 | \addvspace {10.0pt} 15 | \addvspace {10.0pt} 16 | \contentsfinish 17 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/resume.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% resume.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | 8 | 9 | \begin{resume} 10 | 11 | \begin{resumesection}{基本情况} 12 | xxx,男,上海人,1985 年~12 月出生,未婚, 13 | 上海交通大学物理系在读博士研究生。 14 | \end{resumesection} 15 | 16 | \begin{resumeli}{教育状况} 17 | XXXX 年~9 月至~XXXX 年~7 月,上海交通大学, 本科,专业:XXXX 18 | 19 | XXXX 年~9 月至~XXXX 年~7 月,上海交通大学, 硕士研究生,专业:XXXX 20 | 21 | XXXX 年~9 月至~XXXX 年~7 月,上海交通大学, 22 | 博士研究生(提前攻读博士),专业:XXXX 23 | \end{resumeli} 24 | 25 | \begin{resumeli}{工作经历} 26 | 无。 27 | \end{resumeli} 28 | 29 | \begin{resumeli}{研究兴趣} 30 | XXXXXXX。 31 | \end{resumeli} 32 | 33 | \begin{resumeli}{联系方式} 34 | 通讯地址:上海市闵行区东川路800号,上海交通大学物理系 35 | 36 | 邮编:200240 37 | 38 | E-mail: abcde@sjtu.edu.cn 39 | \end{resumeli} 40 | 41 | \end{resume} 42 | -------------------------------------------------------------------------------- /BIT-thesis-manual/manual.lof: -------------------------------------------------------------------------------- 1 | \hypersetup {hidelinks} 2 | \addvspace {10.0pt} 3 | \contentsline {figure}{\numberline {1.1}{\ignorespaces BIT-thesis-run.bat脚本运行\relax }}{2}{figure.caption.4} 4 | \contentsline {figure}{\numberline {1.2}{\ignorespaces 生成文档demo.pdf的目录\relax }}{3}{figure.caption.5} 5 | \addvspace {10.0pt} 6 | \addvspace {10.0pt} 7 | \contentsline {figure}{\numberline {3.1}{\ignorespaces BIT-thesis-grd模板demo示例中第一章的图一\relax }}{16}{figure.caption.8} 8 | \contentsline {figure}{\numberline {3.2}{\ignorespaces 校徽以及计算机学院LOGO\relax }}{17}{figure.caption.9} 9 | \contentsline {figure}{\numberline {3.3}{\ignorespaces 插入eps图像和pdf图像\relax }}{17}{figure.caption.10} 10 | \contentsline {subfigure}{\numberline {(a)}{\ignorespaces {EPS Figure}}}{17}{figure.caption.10} 11 | \contentsline {subfigure}{\numberline {(b)}{\ignorespaces {PDF Figure}}}{17}{figure.caption.10} 12 | \contentsline {figure}{\numberline {3.4}{\ignorespaces BIT是我国历史最悠久的高等学府之一,是教育部直属、工信部共建的全国重点大学,985,211\relax }}{18}{figure.caption.11} 13 | \contentsline {figure}{\numberline {3.5}{\ignorespaces BIT是我国历史最悠久的高等学府之一,是教育部直属、工信部共建的全国重点大学,985,211\relax }}{18}{figure.caption.12} 14 | \addvspace {10.0pt} 15 | \addvspace {10.0pt} 16 | \addvspace {10.0pt} 17 | \addvspace {10.0pt} 18 | \addvspace {10.0pt} 19 | \contentsfinish 20 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/app2.tex: -------------------------------------------------------------------------------- 1 | 2 | \chapter{Maxwell Equations} 3 | 4 | 5 | 因为在柱坐标系下,$\overline{\overline\mu}$是对角的,所以Maxwell方程组中电场$\bf 6 | E$的旋度 7 | 8 | 所以$\bf H$的各个分量可以写为: 9 | \begin{subequations} 10 | \begin{eqnarray} 11 | H_r=\frac{1}{\mathbf{i}\omega\mu_r}\frac{1}{r}\frac{\partial 12 | E_z}{\partial\theta } \\ 13 | H_\theta=-\frac{1}{\mathbf{i}\omega\mu_\theta}\frac{\partial E_z}{\partial r} 14 | \end{eqnarray} 15 | \end{subequations} 16 | 同样地,在柱坐标系下,$\overline{\overline\epsilon}$是对角的,所以Maxwell方程组中磁场$\bf 17 | H$的旋度 18 | \begin{subequations} 19 | \begin{eqnarray} 20 | &&\nabla\times{\bf H}=-\mathbf{i}\omega{\bf D}\\ 21 | &&\left[\frac{1}{r}\frac{\partial}{\partial 22 | r}(rH_\theta)-\frac{1}{r}\frac{\partial 23 | H_r}{\partial\theta}\right]{\hat{\bf 24 | z}}=-\mathbf{i}\omega{\overline{\overline\epsilon}}{\bf 25 | E}=-\mathbf{i}\omega\epsilon_zE_z{\hat{\bf z}} \\ 26 | &&\frac{1}{r}\frac{\partial}{\partial 27 | r}(rH_\theta)-\frac{1}{r}\frac{\partial 28 | H_r}{\partial\theta}=-\mathbf{i}\omega\epsilon_zE_z 29 | \end{eqnarray} 30 | \end{subequations} 31 | 由此我们可以得到关于$E_z$的波函数方程: 32 | \begin{eqnarray} 33 | \frac{1}{\mu_\theta\epsilon_z}\frac{1}{r}\frac{\partial}{\partial r} 34 | \left(r\frac{\partial E_z}{\partial r}\right)+ 35 | \frac{1}{\mu_r\epsilon_z}\frac{1}{r^2}\frac{\partial^2E_z}{\partial\theta^2} 36 | +\omega^2 E_z=0 37 | \end{eqnarray} 38 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | ## Core latex/pdflatex auxiliary files: 3 | *.aux 4 | *.lof 5 | *.log 6 | *.lot 7 | *.fls 8 | *.out 9 | *.toc 10 | 11 | ## Intermediate documents: 12 | *.dvi 13 | *-converted-to.* 14 | # these rules might exclude image files for figures etc. 15 | # *.ps 16 | # *.eps 17 | # *.pdf 18 | 19 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 20 | *.bbl 21 | *.bcf 22 | *.blg 23 | *-blx.aux 24 | *-blx.bib 25 | *.brf 26 | *.run.xml 27 | 28 | ## Build tool auxiliary files: 29 | *.fdb_latexmk 30 | *.synctex.gz 31 | *.synctex.gz(busy) 32 | *.pdfsync 33 | 34 | ## Auxiliary and intermediate files from other packages: 35 | 36 | # algorithms 37 | *.alg 38 | *.loa 39 | 40 | # amsthm 41 | *.thm 42 | 43 | # beamer 44 | *.nav 45 | *.snm 46 | *.vrb 47 | 48 | #(e)ledmac/(e)ledpar 49 | *.end 50 | *.[1-9] 51 | *.[1-9][0-9] 52 | *.[1-9][0-9][0-9] 53 | *.[1-9]R 54 | *.[1-9][0-9]R 55 | *.[1-9][0-9][0-9]R 56 | *.eledsec[1-9] 57 | *.eledsec[1-9]R 58 | *.eledsec[1-9][0-9] 59 | *.eledsec[1-9][0-9]R 60 | *.eledsec[1-9][0-9][0-9] 61 | *.eledsec[1-9][0-9][0-9]R 62 | 63 | # glossaries 64 | *.acn 65 | *.acr 66 | *.glg 67 | *.glo 68 | *.gls 69 | 70 | # hyperref 71 | *.brf 72 | 73 | # listings 74 | *.lol 75 | 76 | # makeidx 77 | *.idx 78 | *.ilg 79 | *.ind 80 | *.ist 81 | 82 | # minitoc 83 | *.maf 84 | *.mtc 85 | *.mtc0 86 | 87 | # minted 88 | *.pyg 89 | 90 | # morewrites 91 | *.mw 92 | 93 | # nomencl 94 | *.nlo 95 | 96 | # sagetex 97 | *.sagetex.sage 98 | *.sagetex.py 99 | *.sagetex.scmd 100 | 101 | # sympy 102 | *.sout 103 | *.sympy 104 | sympy-plots-for-*.tex/ 105 | 106 | # todonotes 107 | *.tdo 108 | 109 | # xindy 110 | *.xdy 111 | 112 | # Apple 113 | .DS_Store 114 | -------------------------------------------------------------------------------- /BIT-thesis-manual/reference/chap1.bib: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% chap1.bib for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | 9 | @article{Jiang2005Size, 10 | title={形状记忆聚合物研究现状与发展}, 11 | author={姜敏 and 彭少贤 and 郦华兴}, 12 | journal={现代塑料加工应用}, 13 | volume={17}, 14 | number={2}, 15 | pages={53-56}, 16 | year={2005}, 17 | } 18 | 19 | @article{Takahashi1996Structure, 20 | title={Structure and properties of shape‐memory polyurethane block copolymers}, 21 | author={Takahashi, Toshisada and Hayashi, Noriya and Hayashi, Shunichi}, 22 | journal={Journal of Applied Polymer Science}, 23 | volume={60}, 24 | number={7}, 25 | pages={1061-1069}, 26 | year={1996}, 27 | } 28 | 29 | @inproceedings{Xia2002Analysis, 30 | title={Analysis of Affective Characteristics and Evaluation of Harmonious Feeling of Image Based on 1/f Fluctuation Theory}, 31 | author={Xia, Mao and Chen, Bin and Gang, Zhu and Itsya, Muta}, 32 | booktitle={Developments in Applied Artificial Intelligence, International Conference on Industrial and Engineering, Applications of Artificial Intelligence and Expert Systems, Iea/aie 2002, Cairns, Australia, June 17-20, 2002, Proceedings}, 33 | pages={780-789}, 34 | year={2002}, 35 | } 36 | 37 | @misc{Jiang1989, 38 | title={一种温热外敷药的制备方法}, 39 | author={姜锡洲}, 40 | year={1989}, 41 | } 42 | 43 | @article{Mao2000Motion, 44 | title={情感工学破解"舒服"之谜}, 45 | author={毛峡}, 46 | journal={科技文萃}, 47 | number={7}, 48 | pages={157-158}, 49 | year={2000}, 50 | } 51 | 52 | @article{Feng1998, 53 | title={核反应堆管道和压力容器的LBB分析}, 54 | author={冯西桥 and 何树延}, 55 | journal={力学进展}, 56 | volume={28}, 57 | number={2}, 58 | pages={198-217}, 59 | year={1998}, 60 | } -------------------------------------------------------------------------------- /BIT-thesis-template-grd/reference/chap1.bib: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% chap1.bib for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | 8 | 9 | @article{Jiang2005Size, 10 | title={形状记忆聚合物研究现状与发展}, 11 | author={姜敏 and 彭少贤 and 郦华兴}, 12 | journal={现代塑料加工应用}, 13 | volume={17}, 14 | number={2}, 15 | pages={53-56}, 16 | year={2005}, 17 | } 18 | 19 | @article{Takahashi1996Structure, 20 | title={Structure and properties of shape‐memory polyurethane block copolymers}, 21 | author={Takahashi, Toshisada and Hayashi, Noriya and Hayashi, Shunichi}, 22 | journal={Journal of Applied Polymer Science}, 23 | volume={60}, 24 | number={7}, 25 | pages={1061-1069}, 26 | year={1996}, 27 | } 28 | 29 | @inproceedings{Xia2002Analysis, 30 | title={Analysis of Affective Characteristics and Evaluation of Harmonious Feeling of Image Based on 1/f Fluctuation Theory}, 31 | author={Xia, Mao and Chen, Bin and Gang, Zhu and Itsya, Muta}, 32 | booktitle={Developments in Applied Artificial Intelligence, International Conference on Industrial and Engineering, Applications of Artificial Intelligence and Expert Systems, Iea/aie 2002, Cairns, Australia, June 17-20, 2002, Proceedings}, 33 | pages={780-789}, 34 | year={2002}, 35 | } 36 | 37 | @misc{Jiang1989, 38 | title={一种温热外敷药的制备方法}, 39 | author={姜锡洲}, 40 | year={1989}, 41 | } 42 | 43 | @article{Mao2000Motion, 44 | title={情感工学破解"舒服"之谜}, 45 | author={毛峡}, 46 | journal={科技文萃}, 47 | number={7}, 48 | pages={157-158}, 49 | year={2000}, 50 | } 51 | 52 | @article{Feng1998, 53 | title={核反应堆管道和压力容器的LBB分析}, 54 | author={冯西桥 and 何树延}, 55 | journal={力学进展}, 56 | volume={28}, 57 | number={2}, 58 | pages={198-217}, 59 | year={1998}, 60 | } -------------------------------------------------------------------------------- /BIT-thesis-manual/manual.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% demo.tex for BIT Master (Doctor) Thesis 3 | %% modified by yang yating 4 | %% version: 1.0 5 | %% last update: Sep. 1st, 2017 6 | %%================================================== 7 | 8 | \documentclass[oneside, master]{BIT-thesis-grd} 9 | 10 | \begin{document} 11 | 12 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13 | %% 封面 14 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15 | 16 | % 中文封面内容(关注内容而不是形式) 17 | \title{BIT-Thesis使用指南\\ v1.1} 18 | \author{北京理工大学~~研究生院} 19 | \defenddate{2017年9月} 20 | 21 | % 封面,这个命令实现了形式,具体见.cls 22 | \maketitle 23 | 24 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 25 | %% 前言 26 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 27 | \frontmatter 28 | 29 | % 目录 30 | \tableofcontents 31 | 32 | %增加图、表索引 33 | \let\origaddvspace\addvspace 34 | \renewcommand{\addvspace}[1]{} 35 | \listoffigures 36 | \listoftables 37 | \renewcommand{\addvspace}[1]{\origaddvspace{#1}} 38 | 39 | 40 | % 主要符号、缩略词对照表 41 | % \include{body/symbol} 42 | 43 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 44 | %% 正文 45 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 46 | \mainmatter %处理正文编号 47 | 48 | %% 各章正文内容 49 | \include{chapters/ch1-introduction} 50 | \include{chapters/ch2-structure} 51 | \include{chapters/ch3-eqnFigAndTab} 52 | \include{chapters/ch4-format} 53 | %%\include{chapters/ch5-question} 54 | 55 | \include{chapters/conclusion} %% 全文总结 56 | 57 | % 参考文献 58 | % 使用 BibTeX 59 | % 包含参考文献文件.bib 60 | \bibliography{reference/chap1,reference/chap2} %多个章节的参考文献 61 | %\bibliography{reference/chap1} 62 | 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | %% 附录(章节编号重新计算,使用字母进行编号) 65 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 66 | 67 | %处理章节编号 68 | \appendix 69 | 70 | \include{chapters/app1-content} 71 | \include{chapters/app2-material} % 更新记录 72 | \include{chapters/app3-log} % 更新记录 73 | 74 | 75 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 76 | %% 文后(无章节编号) 77 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 78 | \backmatter 79 | 80 | % 发表文章目录 81 | %\include{chapters/pub} 82 | % 致谢 83 | \include{chapters/thanks} 84 | 85 | \end{document} 86 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/chapters/chapter1.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% chapter01.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.1 5 | %% last update: Dec 25th, 2016 6 | %%================================================== 7 | \chapter{绪论} 8 | \label{chap:intro} 9 | \section{本论文研究的目的和意义} 10 | 11 | 近年来,随着人们生活水平的不断提高,人们越来越注重周围环境对身体健康的影响。作为服装是人们时时刻刻最贴近的环境,尤其是内衣,对人体健康有很大的影响。由于合时刻刻最贴近的环境,尤其是内衣,对人体健康有很大的影响。由于合成纤维的衣着舒适性、手感性,天然纤维的发展又成为人们关注的一大热点。 12 | 13 | ……\upcite{Takahashi1996Structure,Xia2002Analysis,Jiang1989,Mao2000Motion,Feng1998} 14 | 15 | \section{国内外研究现状及发展趋势} 16 | %\label{sec:***} 可标注label 17 | 18 | \subsection{形状记忆聚氨酯的形状记忆机理} 19 | %\label{sec:features} 20 | 21 | 形状记忆聚合物(SMP)是继形状记忆合金后在80年代发展起来的一种新型形状记忆材料\cite{Jiang2005Size}。形状记忆高分子材料在常温范围内具有塑料的性质,即刚性、形状稳定恢复性;同时在一定温度下(所谓记忆温度下)具有橡胶的特性,主要表现为材料的可变形性和形变恢复性。即“记忆初始态-固定变形-恢复起始态”的循环。 22 | 23 | 固定相只有物理交联结构的聚氨酯称为热塑性SMPU,而有化学交联结构称为热固性SMPU。热塑性和热固性形状记忆聚氨酯的形状记忆原理示意图如图\ref{fig:diagram}所示 24 | 25 | \begin{figure} 26 | \centering 27 | \includegraphics[width=0.75\textwidth]{figures/figure1} 28 | \caption{热塑性形状记忆聚氨酯的形状记忆机理示意图}\label{fig:diagram} 29 | \end{figure} 30 | 31 | 32 | \subsection{形状记忆聚氨酯的研究进展} 33 | %\label{sec:requirements} 34 | 首例SMPU是日本Mitsubishi公司开发成功的……。 35 | 36 | \subsection{水系聚氨酯及聚氨酯整理剂} 37 | 38 | 水系聚氨酯的形态对其流动性,成膜性及加工织物的性能有重要影响,一般分为三种类型\cite{Jiang2005Size} ,如表 \ref{tab:category}所示。 39 | 40 | \begin{table} 41 | \centering 42 | \caption{水系聚氨酯分类} \label{tab:category} 43 | \begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}cccc} 44 | \toprule 45 | 类别 &水溶型 &胶体分散型 &乳液型 \\ 46 | \midrule 47 | 状态 &溶解$\sim$胶束 &分散 &白浊 \\ 48 | 外观 &水溶型 &胶体分散型 &乳液型 \\ 49 | 粒径$/\mu m$ &$<0.001$ &$0.001-0.1$ &$>0.1$ \\ 50 | 重均分子量 &$1000\sim 10000$ &数千$\sim 20万$ &$>5000$ \\ 51 | \bottomrule 52 | \end{tabular*} 53 | \end{table} 54 | 55 | 由于它们对纤维织物的浸透性和亲和性不同,因此在纺织品染整加工中的用途也有差别,其中以水溶型和乳液型产品较为常用。另外,水系聚氨酯又有反应性和非反应性之分。虽然它们的共同特点是分子结构中不含异氰酸酯基,但前者是用封闭剂将异氰酸酯基暂时封闭,在纺织品整理时复出。相互交联反应形成三维网状结构而固着在织物表面。 56 | …… 57 | 58 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/demo.tex: -------------------------------------------------------------------------------- 1 | 2 | %%================================================== 3 | %% demo.tex for BIT Thesis 4 | %% modified by yang yating 5 | %% version: 1.2 6 | %% last update: Jan. 4th, 2018 7 | %%================================================== 8 | 9 | % 默认单面打印 oneside 、硕士论文模板 master 10 | 11 | \documentclass[oneside, master]{BIT-thesis-grd} 12 | 13 | % 模板选项: 硕士论文 master; 博士论文 doctor 14 | 15 | %==============更改数学字体设置,Latin Modern Math 默认的的确有点细,看个人需要,下面提供一种方法,需要的可以取消注释=========% 16 | 17 | % \usepackage[bold-style=ISO]{unicode-math} %采用unicode-math,可以直接输入Unicode公式,当然传统的输入就行 18 | % \setmathfont{XITS Math}  %目前unicode-math 支持几种数学字体,具体用法可以查看帮助文档,这里采用类似times字体科学数学字体,可以取消注释对比 19 | 20 | 21 | \begin{document} 22 | 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | %% 封面 25 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 26 | 27 | % 中文封面内容(关注内容而不是表现形式) 28 | \classification{TQ028.1} 29 | \UDC{540} 30 | 31 | \title{形状记忆聚氨酯的合成及其在织物中的应用} 32 | \vtitle{形状记忆聚氨酯的合成及其在织物中的应用} 33 | \author{***} 34 | \institute{**学院} 35 | \advisor{**教授} 36 | \chairman{**教授} 37 | \degree{工学硕士(博士)} 38 | \major{*****} 39 | \school{北京理工大学} 40 | \defenddate{****年*月} 41 | %\studentnumber{**********} 42 | 43 | 44 | % 英文封面内容(关注内容而不是表现形式) 45 | \englishtitle{Synthesis and Application on textile of the Shape\\Memory Polyurethane} 46 | \englishauthor{***} 47 | \englishadvisor{Prof. **} 48 | \englishchairman{Prof. **} 49 | \englishschool{Beijing Institute of Technology} 50 | \englishinstitute{****} 51 | \englishdegree{****} 52 | \englishmajor{****} 53 | \englishdate{*,****} 54 | 55 | % 封面绘制 56 | \maketitle 57 | 58 | % 中文信息 59 | \makeInfo 60 | 61 | % 英文信息 62 | \makeEnglishInfo 63 | 64 | %打印竖排论文题目 65 | \makeVerticalTitle 66 | 67 | % 论文原创性声明和使用授权 68 | \makeDeclareOriginal 69 | 70 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 71 | %% 前置部分 72 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 73 | \frontmatter 74 | 75 | % 摘要 76 | \include{chapters/abstract} 77 | %% 符号对照表,可选,如不用可注释掉 78 | \input{chapters/denotation} 79 | % 加入目录 80 | \tableofcontents 81 | 82 | 83 | %加入图、表索引(同时取消图表索引中章之间的垂直间隔) 84 | \let\origaddvspace\addvspace 85 | \renewcommand{\addvspace}[1]{} 86 | \listoffigures 87 | \listoftables 88 | \renewcommand{\addvspace}[1]{\origaddvspace{#1}} 89 | 90 | 91 | 92 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 93 | %% 正主体部分 94 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 95 | \mainmatter 96 | 97 | %% 各章正文内容 98 | \include{chapters/chapter1} 99 | %\include{chapters/chapter2} 100 | %\include{chapters/chapter3} 101 | 102 | \include{chapters/conclusion} 103 | 104 | %% 参考文献,五号字,使用 BibTeX,包含参考文献文件.bib 105 | 106 | %\bibliography{reference/chap1,reference/chap2} %多个章节的参考文献 107 | \bibliography{reference/chap1} 108 | 109 | 110 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 111 | %% 后置部分 112 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 113 | 114 | %% 附录(章节编号重新计算,使用字母进行编号) 115 | \appendix 116 | \renewcommand\theequation{\Alph{chapter}--\arabic{equation}} % 附录中编号形式是"A-1"的样子 117 | \renewcommand\thefigure{\Alph{chapter}--\arabic{figure}} 118 | \renewcommand\thetable{\Alph{chapter}--\arabic{table}} 119 | 120 | \include{chapters/app1} 121 | \include{chapters/app2} 122 | 123 | %(其后部分无编号) 124 | \backmatter 125 | 126 | % 发表文章目录 127 | \include{chapters/pub} 128 | % 致谢 129 | \include{chapters/thanks} 130 | % 作者简介(博士论文需要) 131 | \include{chapters/resume} 132 | 133 | 134 | \end{document} 135 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # BIT-Thesis v1.5 3 | # 北京理工大学硕士(博士)学位论文LaTeX模板 4 | 5 | ![Beijing Institude of Technology](https://github.com/y-yating/image/raw/master/image-school/bit-thesis.png) 6 | 7 | 学位论文通常具有比较严格的格式要求,这是为了方便同行学术交流的起码要求,同时也是科学研究严谨性的体现。然而,由于市场各种排版软件混杂,使用者水平不一,学生对格式的重视程度不够,学生编写标准格式的学位论存在很多问题。 8 | 9 | BIT-Thesis 为符合北京理工大学硕士(博士)学位论文的 LaTeX 模板。通过 BIT-Thesis 模板可以轻松撰写符合学校格式要求的学位论文,学生可将关注点更多地放在高质量的内容本身,而避免繁琐的论文格式调整。 10 | 11 | 目前本模板还处于不断修改与更新阶段,可能存在诸多错误与问题,请提出宝贵意见,可直接在 GitHub 中提交Issues 或 Pull Request。 12 | 13 | 新手可使用**LaTeX学习资料**目录下的学习资料进行初步学习。因学习资料内容较多,已移至 [LaTeX学习资料](https://github.com/BIT-thesis/LaTeX-materials),内含基础学习资料以及北理工学位论文格式资料。 14 | 15 | # QQ 交流群:北理TeX交流群 16 | # 群 号:170368921 17 | 18 | ## 安装配置环境 19 | 20 | * windows、linux用户推荐安装TeX Live套装,并更新宏包。 [北理工TeX Live镜像](http://mirror.bit.edu.cn/CTAN/systems/texlive/Images/) 21 | * OSX用户推荐安装Mac TeX。[北理工Mac TeX镜像](http://mirror.bit.edu.cn/CTAN/systems/mac/mactex/) 22 | * 由于CTeX套装所含宏包比较陈旧,可能会导致编译无法通过,故不推荐安装。如果已安装CTeX,建议将其卸除。 23 | * 鉴于Texlive安装包过大和跨版本更新不支持,喜欢折腾的,可以安装MikTex,目前全平台支持,具体下载和安装方法可以参考[MiKTeX安装](https://miktex.org/) 24 | 25 | 26 | ## 使用方式 27 | 28 | 下载文件后,Windows 系统请点击运行 `BIT-thesis-run.bat` 脚本,Linux 系统以及 mac OS 系统请点击运行 `BIT-thesis-run.sh` 脚本。脚本会自动运行生成文档 `demo.pdf`。 29 | 30 | 若使用**硕士**论文模板,请在`demo.tex`中`\documentclass`命令采用`master`选项;若使用**博士**论文模板,请使用`doctor`选项。 31 | 32 | ``` 33 | \documentclass[oneside, master]{BIT-thesis-grd} %硕士模板 34 | \documentclass[oneside, doctor]{BIT-thesis-grd} %博士模板 35 | ``` 36 | 37 | 所有.tex都采用**UTF-8**编码格式 38 | 39 | 40 | ## 通过 XeLaTeX 编译 41 | 42 | 43 | - 手动模式编译:完整的处理流程是: 44 | 45 | ``` 46 | xelatex -no-pdf --interaction=nonstopmode demo 47 | bibtex demo 48 | xelatex -no-pdf --interaction=nonstopmode demo 49 | xelatex --interaction=nonstopmode demo 50 | ``` 51 | - 编译器编译: 52 | 采用智能编辑器编译,必须设置默认的tex编译引擎为xelatex,具体可以在每个编辑器中的设置——编译器-Xelatex,推荐用编译器编译 53 | 54 | - 附加的编译方法:模版包含了latexmk设置文件,可以进行一体化编译。将命令行工作目录切换到项目文件夹下,执行 55 | ```bash 56 | latexmk 57 | ``` 58 | 命令即可自动调用相关程序进行编译,处理各种文件依赖并自动预览。执行`latexmk -c`命令清理所有缓存文件。也可以使用TeXstudio、Texmaker或WinEdt等编辑调用`latexmk`编译,请将编译引擎设置成latexmk。另外在Windows平台下使用MikTeX可能还需要安装Perl语言解释器 59 | 60 | `到文档最后成稿,只需要小改的时候,才推荐用批处理就行操作,不然很难定位错误。` 61 | 62 | - 在vscode上编译 (LaTex Workshop):对于使用vscode写tex的用户,添加如下配置,可在vscode上使用XeLaTeX: 63 | 64 | ``` 65 | "latex-workshop.latex.tools": [ 66 | { 67 | "name": "xelatex", 68 | "command": "xelatex", 69 | "args": [ 70 | "-synctex=1", 71 | "-interaction=nonstopmode", 72 | "-file-line-error", 73 | "%DOC%" 74 | ] 75 | } 76 | ], 77 | "latex-workshop.latex.recipes": [ 78 | { 79 | "name": "xelatex -> bibtex -> xelatex*2", 80 | "tools": [ 81 | "xelatex", 82 | "bibtex", 83 | "xelatex", 84 | "xelatex" 85 | ] 86 | } 87 | ] 88 | ``` 89 | ## Linux用户可能遇到的问题 90 | 91 | 字体缺失问题: 因为库里用到的字体是Windows里的宋体、楷体、黑体等字体,在编译过程中会报错缺失这些字体,可以到fontzone等网站下载,copy到`/usr/share/fonts`里然后刷新cache即可。 92 | 93 | 黑体:`https://fontzone.net/downloadfile/simhei` 94 | 95 | 宋体:`https://fontzone.net/downloadfile/simsum` 96 | 97 | 楷体:`https://fontzone.net/downloadfile/kaiti` 98 | 99 | ## 作者 100 | 101 | [Yang Yating](https://github.com/y-yating/), 102 | [Wang Wei](https://github.com/qiuzhu/) 103 | ## 致谢 104 | 本项目得到了北京理工大学学生事务中心的资助。 105 | 106 | 感谢大家宝贵的修改意见!!!欢迎大家一同努力完善BIT-Thesis模板! 107 | 108 | ## v1.5版本更新 109 | - 调整目录格式 110 | (目录、插图、表格索引页的标题中加入一个字符间距;目录中一级标题改为黑体) 111 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/app1-content.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% app1-content.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | \chapter{北京理工大学博士、硕士学位论文内容要求} 8 | \label{app:format} 9 | 《北京理工大学博士、硕士学位论文撰写规范》是参照国家标准GB7713-87《科学技术报告、学位论文和学术论文的编写格式》(GB77B-87),并结合我校具体情况制定的。 10 | 11 | \section{封面} 12 | 封面是学位论文的外表,起提供信息和保护的作用。北京理工大学学位论文封面撰写要求如下: 13 | 14 | \begin{enumerate} 15 | \item 密级:必要时置于封面右上角,并按照国家规定进行标记。 16 | \item 种类:博士或硕士学位论文。 17 | \item 题目:应简明扼要地概括和反映出论文的核心内容,一般不宜超过25字。 18 | \item 作者:位于论文题目正下方。 19 | \item 时间:xxxx年xx月。 20 | \end{enumerate} 21 | 22 | \section{题名页} 23 | \subsection{中文题名页} 24 | 题名页是对学位论文进行著录的依据。题名页自上而下的排列顺序为:中图分类号、UDC分类号、论文题目、作者姓名、学院名称、指导教师、答辩委员会主席、申请学位级别、学科专业、学位授予单位以及论文答辩日期等信息。 25 | 26 | \begin{enumerate} 27 | \item 分类号:必须在题名页左上角注明分类号,便于信息查询和交流。一般应注明《中国图书馆分类法》的分类号,同时注明《国际十进分类法UDC》的分类号。《中国图书馆分类法》分类号的选择通常是查阅最新版的《中国图书馆分类法》。国际十进分类法是最早的多语种分类法,在全世界得到了广泛的使用。 28 | \item 论文题目:中文题目同封面一致。 29 | \item 作者姓名:位于论文题目正下方。 30 | \item 学院名称:填写所属学院的全名。 31 | \item 指导教师:填写指导教师的姓名、职称。指导教师的署名应以研究生院批准备案的为准,一般只能写一名指导教师,如有经研究生院批准的副指导教师或联合指导教师,可增写一名指导教师。 32 | \item 答辩委员会主席:填写答辩委员会主席的姓名、职称。 33 | \item 申请学位级别:填写“学科门类+学位级别”,如工学博士、理学硕士等;如申请专业学位,填写“类别+学位级别”,如工程硕士、工商管理硕士等。 34 | \item 学科专业:学科专业名称参照国务院学位委员会颁布的《授予博士、硕士学位和培养研究生的学科、专业目录》填写,工程硕士填写工程领域。 35 | \item 授予学位单位:北京理工大学 36 | \item 论文答辩日期:xxxx年xx月xx日 37 | \end{enumerate} 38 | 39 | \subsection{英文题名页} 40 | 英文题名页包括英文题目、作者姓名、指导教师、学位授予单位及答辩日期。 41 | 英文题目是中文题目的直译,一般不超过15个实词。 42 | 43 | \section{版权使用授权及研究成果声明} 44 | 作者和导师须亲笔签署版权使用授权及研究成果声明。 45 | 46 | \section{摘要} 47 | 摘要是一篇具有独立性和完整性的短文,应概括而扼要地反映出本论文的主要内容。包括研究目的、研究方法、研究结果和结论等,特别要突出研究结果和结论。中文摘要力求语言精炼准确,硕士学位论文摘要建议500 $\sim$ 800字,博士学位论文建议1000 $\sim$ 1200字。摘要中不可出现参考文献、图、表、化学结构式、非公知公用的符号和术语。英文摘要与中文摘要的内容应一致。 48 | 49 | \section{关键词} 50 | 关键词是为了便于文献索引和检索而从论文中选取出来用以表示全文主题内容信息的单词或术语,在摘要内容后另起一行标明。一般选3~8个单词或专业术语,之间用空格分开,且中英文关键词必须对应。 51 | 52 | \section{目录} 53 | 目录由论文的章、节、附录等的序号、名称和页码组成,另页排在摘要之后,一般分为二级或三级。目录中应包括绪论(或引言)、论文主体、附录、参考文献、攻读学位期间取得的成果等。 54 | 55 | \section{插图和附表} 56 | 如论文中图表较多,可以分别列出清单置于目录页之后。图的清单应有序号、图题和页码。表的清单应有序号、表题和页码。 57 | 58 | \section{注释表} 59 | 如果论文中使用了大量的符号、标志、缩略词、首字母缩写、专门计量单位、自定义名词和术语等,应编写成注释说明汇集表。若上述符号使用数量不多,可以不设此部分,但必须在论文中初次出现时加以说明。 60 | 61 | \section{正文} 62 | 正文包括绪论、论文具体研究内容及结论部分。 63 | 博士学位论文:一般为6~10万字,其中绪论要求为1万字左右。 64 | 硕士学位论文:一般为3~5万字,其中绪论要求为0.5万字左右。 65 | 66 | \subsection{绪论} 67 | 绪论一般作为第1章。绪论应包括本研究课题的学术背景及其理论与实际意义;本领域的国内外研究进展及成果、存在的不足或有待深入研究的问题;本研究课题的来源及主要研究内容等。 68 | 69 | \subsection{具体研究内容} 70 | 具体研究内容是学位论文的主要部分,是研究结果及其依据的具体表述,是研究能力的集中体现,一般应包括第2章、第3章至结论前一章。具体研究内容应该结构合理,层次清楚,重点突出,文字简练、通顺。可包括以下各方面:研究对象、研究方法、仪器设备、材料原料、实验和观测结果、理论推导、计算方法和编程原理、数据资料和经过加工整理的图表、理论分析、形成的论点和导出的结论等。 71 | 具体研究内容各章后可有一节“本章小结”(必要时)。 72 | 73 | \subsection{结论} 74 | 结论作为学位论文正文的最后部分单独排写,但不加章号。 75 | 结论是对整个论文主要结果的总结。在结论中应明确指出本研究的创新点,对其应用前景和社会、经济价值等加以预测和评价,并指出今后进一步在本研究方向进行研究工作的展望与设想。结论部分的撰写应简明扼要,突出创新性。 76 | 77 | 78 | \section{参考文献} 79 | 为了反映论文的科学依据和作者尊重他人研究成果的严肃态度以及向读者提供有关信息的出处,应列出参考文献表。参考文献表中应列出限于作者直接阅读过的、最主要的、发表在正式出版物上的文献。私人通信和未公开发表的资料,一般不宜列入参考文献,可紧跟在引用的内容之后注释或标注在当页的下方。 80 | 81 | 凡本论文要用的基础性内容或他人的成果不应单独成章,也不应作过多的阐述,一般只引结论、使用条件等,不作推导。 82 | 83 | 博士学位论文的参考文献一般不少于100篇,硕士学位论文的参考文献一般不少于40篇,其中外文文献一般不少于总数的1/2。参考文献中近五年的文献数一般应不少于总数的1/3,并应有近两年的参考文献。 84 | 85 | 86 | \section{附录} 87 | 有些材料编入文章主体会有损于编排的条理性和逻辑性,或有碍于文章结构的紧凑和突出主题思想等,这些材料可作为附录另页排在参考文献之后,也可以单编成册。下列内容可作为附录: 88 | 89 | \begin{enumerate} 90 | \item 为了整篇论文材料的完整,但编入正文有损于编排的条理性和逻辑性的材料,这一类材料包括比正文更为详尽的信息、研究方法和技术等更深入的叙述,以及建议可阅读的参考文献题录和对了解正文内容有用的补充信息等; 91 | \item 由于篇幅过大或取材的复制资料不便于编入正文的材料; 92 | \item 不便于编入正文的罕见珍贵资料; 93 | \item 一般读者无须阅读,但对本专业同行有参考价值的资料; 94 | \item 某些重要的原始数据、推导、计算程序、框图、结构图、注释、统计表、计算机打印输出件等。 95 | \end{enumerate} 96 | 97 | 附录的序号用A,B,C……系列,如附录A,附录B,……。附录中的公式、图和表的编号分别用各自的附录序号后标1,2,3……系列来表示,如A1,A2,……系列;图A1,图A2,……系列;表A1,表A2,…系列。每个附录应有标题。 98 | 99 | \section{攻读学位期间发表的论文与研究成果清单} 100 | 应列出攻读学位期间发表的与学位论文内容相关的学术论文和研究成果,按发表的时间顺序列出,研究成果可以是在学期间参加的研究项目、获得专利、获奖情况等 101 | 102 | \section{致谢} 103 | 致谢是对下列方面致谢:资助和支持者;协助完成研究工作和提供便利条件者;在研究工作中提出建议和提供帮助者;给予转载和引用权的资料、图片、文献、研究思想和设想的所有者;其他应感谢者。致谢语言要诚恳、恰当、简短。 104 | 105 | \section{作者简介} 106 | 硕士学位论文不必提供作者简介。 107 | 108 | \textbf{博士学位论文应该提供作者简介},主要包括:姓名、性别、出生年月、民族、出生地;简要学历、工作经历(职务);攻读学位期间取得的其他研究成果或奖励。 109 | 110 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/ch1-introduction.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% ch1.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.5 5 | %% last update: April 25th, 2017 6 | %%================================================== 7 | 8 | \chapter{快速使用指南} 9 | \label{chap:what} 10 | 11 | 本手册是针对北京理工大学硕士(博士)学位论文~\LaTeX~ 模板BIT-Thesis的使用指南。旨在使同学们通过该使用指南的介绍,能快速掌握使用BIT-Thesis模板编辑符合学校格式要求的硕士(博士)学位论文,并能对~\LaTeX~ 有一定的了解。 12 | 13 | \textbf{BIT-Thesis的最新版本以及使用手册地址:} 14 | \begin{center} 15 | \url{https://github.com/BIT-thesis/LaTeX-template} 16 | \end{center} 17 | 18 | 本手册也使用BIT-thesis生成,可查看相应\href{https://github.com/BIT-thesis/LaTeX-template/tree/master/BIT-thesis-manual}{手册生成源码}作为参考。 19 | 20 | \section{为什么要用BIT-Thesis} 21 | \label{sec:why} 22 | 学位论文通常具有比较严格的格式要求,这是为了方便同行学术交流的起码要求,同时也是科学研究严谨性的体现。然而,由于市场各种排版软件混杂,使用者水平不一,学生对格式的重视程度不够,学生编写标准格式的学位论存在很多问题。BIT-Thesis 为符合北京理工大学硕士(博士)学位论文的LaTeX模板。通过BIT-Thesis模板可以轻松撰写符合学校格式要求的学位论文,学生可避免繁琐的论文格式调整,从而将关注点更多地放在高质量的内容本身。 23 | 24 | \section{安装配置环境} 25 | \label{sec:requirements} 26 | 27 | \TeX 发展至今日,拥有了众多的发行版。发行版软件合集中包括了各种引擎的可执行程序,以及一些文档类、模板、字体文件、辅助程序等等。 28 | 29 | \begin{itemize} 30 | \item windows、linux用户推荐安装TeX Live套装,并更新宏包(linux系统由于版权问题,未能预装宋体等Windows下的字体,需要手动安装) 31 | \item OSX用户推荐安装Mac TeX 32 | \item 由于CTeX套装所含宏包比较陈旧,可能会导致编译无法通过,故不推荐安装。如果已安装CTeX,\textbf{建议将其卸除}。 33 | \end{itemize} 34 | 35 | 可在对应官方网站上下载安装,也可以使用\textbf{北京理工大学开源软件镜像服务}进行下载(推荐): \url{http://mirror.bit.edu.cn/CTAN},其中 36 | \begin{itemize} 37 | \item TeX Live镜像:\url{http://mirror.bit.edu.cn/CTAN/systems/texlive/Images/} 38 | \item Mac TeX镜像:\url{http://mirror.bit.edu.cn/CTAN/systems/mac/mactex/} 39 | \end{itemize} 40 | 41 | 如若希望轻量级的编译环境,可安装MiKTeX。具体安装步骤请参考\href{https://github.com/BIT-thesis/LaTeX-materials}{LaTeX学习资料}目录下的《\href{https://github.com/BIT-thesis/LaTeX-materials/raw/master/Miktex%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE.pdf}{Miktex安装与配置}》。 42 | 43 | \section{编辑器选择} 44 | 安装完成后,便可对\TeX 进行编写以生成相应论文,也可根据使用习惯使用Texmaker、TeXstudio、Winedit等其他的编辑器进行编写。 45 | 46 | 其中,Texmaker下载地址: 47 | 48 | \url{http://www.xm1math.net/texmaker/} 49 | 50 | \section{快速使用} 51 | \label{sec:process} 52 | 53 | 安装完TeX Live套装(或Mac TeX)后,一般而言所需的环境就配置好了。 54 | 55 | 进入BIT-thesis-template-grd文件夹。 56 | windows系统点击运行BIT-thesis-run.bat脚本,linux系统以及mac系统请点击运行BIT-thesis-run.sh脚本。脚本会自动运行如图\ref{fig:run} 所示(第一次运行可能需要较长时间,请耐心等待)。打开生成的pdf文档demo.pdf查看模板生成内容。 57 | 58 | \begin{figure}[!htp] 59 | \centering 60 | \includegraphics[width=0.85\textwidth]{figures/BIT-thesis-run} 61 | \caption{BIT-thesis-run.bat脚本运行} 62 | \label{fig:run} 63 | \end{figure} 64 | 65 | 66 | \begin{figure}[!htp] 67 | \centering 68 | {\includegraphics[width=0.85\textwidth]{figures/demo_context}} 69 | \caption{生成文档demo.pdf的目录} 70 | \label{fig:demo_context} 71 | \end{figure} 72 | 73 | 本模板使用~\XeTeX~ 引擎提供的~\XeLaTeX~的命令处理,作用于“主控文档”demo.tex。 74 | 若使用\textbf{硕士论文模板},请在~demo.tex~中~\verb|\documentclass|~命令采用~master~选项;若使用\textbf{博士论文模板},请使用~doctor~选项。 75 | 由于该模板使用~{{\sc Bib}\TeX}~处理参考文献,构建流程为 \textbf{XeLaTeX$\rightarrow$ BibTeX $\rightarrow$ XeLaTeX$\rightarrow$ XeLaTeX}。完整的处理流程是: 76 | 77 | {\color{blue} 78 | \begin{enumerate} 79 | \item[] ~\verb|xelatex -no-pdf --interaction=nonstopmode demo| 80 | \item[] ~\verb|bibtex demo| 81 | \item[] ~\verb|xelatex -no-pdf --interaction=nonstopmode demo| 82 | \item[] ~\verb|xelatex --interaction=nonstopmode demo| 83 | \end{enumerate}} 84 | 85 | 运行bibtex的时候会提示一些错误,可能是~{{\sc Bib}\TeX}~对UTF-8支持不充 86 | 分,一般不影响最终结果。加入~\verb|--interaction=nonstopmode|~参数是不让错误打断编译过程。 87 | \XeTeX~ 仍存在一些宏包兼容性问题,而这些错误通常不会影响最终的编译结果。 88 | 89 | 为方便使用,处理过程已经写入BIT-thesis-run.sh(for Linux)和BIT-thesis-run.bat(for Windows)批处理文件中。编写完修改完tex文件后,直接运行对应.sh或者.bat文件即可。 90 | 91 | 如使用Texmaker等编辑器,可使用自定义命令对文档快速构建: 92 | 93 | {\color{blue} 94 | \begin{enumerate} 95 | \item[] ~\verb|xelatex -no-pdf -interaction=nonstopmode %.tex || 96 | \item[] ~\verb|bibtex % || 97 | \item[] ~\verb|xelatex -no-pdf -interaction=nonstopmode %.tex || 98 | \item[] ~\verb|xelatex -interaction=nonstopmode %.tex| 99 | \end{enumerate}} 100 | 101 | 102 | \section{模板说明与TeX介绍} 103 | \label{sec:features} 104 | 105 | 目前网上有两个版本的北理工~\LaTeX~ 模板“2012大眼小蚂蚁版”和“2016汪卫版”,均以上海交通大学的模为基础。本模板在此两个模板的基础上依据《北京理工大学博士、硕士学位论文撰写规范》修改,进一步完善成熟,使得模板能够被北理工硕士博士广泛使用。希望使用者通过本模板的介绍,能够对~\LaTeX~ 有一定了解。 106 | 107 | 这个模板的中文解决方案是~\XeTeX/\LaTeX~ 。参考 108 | 文献建议使用~BibTeX~管理,可以生成符合国标~GBT7714~风格的参考文献列表。 109 | 可以直接插入EPS/PDF/JPG/PNG格式的图像。 110 | 模板在~Windows~和~Linux~下测试通过,更详细的系统要求请参考 111 | \ref{sec:requirements}。 112 | 113 | 硕士模板的格式受~BIT-thesis-run.cls控制,方便模板更新和模板修改。依据《北京理工大学博士、硕士学位论文撰写规范》修改,按照本文档说明使用,即可撰写符合《北京理工大学博士、硕士学位论文撰写规范》的学位论文; 114 | 在对外观进行细微调整时,只需要更新这两个文件,不需要对.tex源文件做修改。这也给模板更新带来了 115 | 极大方便。\textbf{一般使用者不需要修改该文件。} 116 | 117 | ~\XeLaTeX~ 对应的~\XeTeX~ 对中文字体的支持更好,允许用户使用操作系统字体来代替TeX的标准字体。所以本模板使用~\XeLaTeX~ 引擎处理中文。要使用这个模板协助你完成研究生学位论文的创作,下面的条件必须满足: 118 | 119 | \begin{itemize} 120 | \item 操作系统字体目录中有中文字体; 121 | \item \TeX~系统有~\XeTeX~引擎; 122 | \item 你有使用~\LaTeX~ 的经验。可参见LaTeX学习资料\ref{chap:material}。 123 | \end{itemize} 124 | 125 | 126 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/ch4-format.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% ch4.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | 8 | 9 | \chapter{论文格式的调整} 10 | \label{sec:thesisformat} 11 | 12 | \textbf{一般的学生不需要进行论文格式的调整。原则上,使用最新版本的BIT-Thesis进行论文的编写即可生成符合学校毕业设计论文格式要求的论文。如果需要个性化修改,可根据此章的说明。 13 | } 14 | 15 | 这个模板可支持``单面打印''和``双面打印''。你可以在~demo.tex~ 16 | 中设定文档类的语句中进行相应修改: 17 | 18 | 单面打印 19 | \begin{lstlisting}[language={TeX}] 20 | \documentclass[oneside, master]{BIT-thesis-grd} %硕士 21 | \documentclass[oneside, doctor]{BIT-thesis-grd} %博士 22 | \end{lstlisting} 23 | 24 | 双面打印 25 | \begin{lstlisting}[language={TeX}] 26 | \documentclass[twoside, master]{BIT-thesis-grd} %硕士 27 | \documentclass[twoside, doctor]{BIT-thesis-grd} %博士 28 | \end{lstlisting} 29 | 30 | 关于页眉页脚,按照BIT要求: 31 | 32 | 页眉为``北京理工大学XX学位论文'',XX表示博士或 33 | 硕士,宋体、5号,居中排列;页眉从中文摘要开始标注,论文页眉奇偶页相同。页 34 | 码从第1章(绪论)开始按阿拉伯数字(1,2,3……)连续编排,之前的部分(中文摘 35 | 要、Abstract、目录等)用大写罗马数字(Ⅰ,Ⅱ,Ⅲ……)单独编排。 36 | 37 | 研究生院要求参考文献必须符合~GBT7714~风格。使用这个模板,结合BibTeX,可 38 | 以很方便地生成符合GB标准的参考文献列表。 39 | 40 | 具体的格式参见《北京理工大学博士、硕士学位论文撰写规范》格式要求。 41 | 42 | 论文模板主要在bit-master-thesis.cls文件中进行定义,现对其进行简单介绍。 43 | \section{页面设置} 44 | 页边距设置如下: 45 | \begin{lstlisting}[language={TeX}] 46 | \usepackage[ 47 | paper=a4paper, 48 | top=3.5cm,% 上 3.5cm 49 | bottom=2.5cm,% 下 2.5cm 50 | left=2.7cm,% 左 2.7cm 51 | right=2.7cm,% 右 2.7cm 52 | headheight=1.0cm,% 页眉 2.5cm 53 | footskip=0.7cm% 页脚 1.8cm 54 | ]{geometry} % 页面设置 55 | \end{lstlisting} 56 | 57 | 行距离设置,按照要求,应该为22榜,如下设置: 58 | \begin{lstlisting}[language={[LaTeX]TeX}] 59 | \RequirePackage{setspace} 60 | \setstretch{1.523} 61 | \end{lstlisting} 62 | 63 | \section{章节格式与目录} 64 | 严格按照规范,采用如下代码实现: 65 | \begin{lstlisting}language={TeX} 66 | %% 设置章节格式 67 | \ctexset{chapter={ 68 | name = {第,章}, 69 | number = {\arabic{chapter}}, 70 | format = {\bfseries \heiti \centering \zihao{3}}, 71 | pagestyle = {BIT@headings}, 72 | beforeskip = 16bp, 73 | afterskip = 28bp, 74 | fixskip = true, 75 | } 76 | } 77 | %% 设置一级章节格式 78 | \ctexset{section={ 79 | format={\raggedright \bfseries \heiti \zihao{4}}, 80 | beforeskip = 28bp plus 1ex minus .2ex, 81 | afterskip = 24bp plus .2ex, 82 | fixskip = true, 83 | } 84 | } 85 | 86 | % 设置二级标题格式 87 | %黑体小四加粗顶左,单倍行距,序号与题目间空一个汉字符 88 | \ctexset{subsection={ 89 | format = {\bfseries \heiti \raggedright \zihao{-4}}, 90 | beforeskip =28bp plus 1ex minus .2ex, 91 | afterskip = 24bp plus .2ex, 92 | fixskip = true, 93 | } 94 | } 95 | % 设置三节标题格式:黑体小四居左书写,单倍行距,序号与题目间空一个汉字符 96 | \ctexset{subsubsection={ 97 | format={\heiti \raggedright \zihao{-4}}, 98 | beforeskip=28bp plus 1ex minus .2ex, 99 | afterskip=24bp plus .2ex, 100 | fixskip=true, 101 | } 102 | } 103 | %% 用\textsf{titletoc}设定目录格式。 104 | \RequirePackage{titletoc} 105 | \titlecontents{chapter}[0pt]{\vspace{0.25\baselineskip} \songti \zihao{4}} 106 | {\thecontentslabel\quad}{} 107 | {\hspace{.5em}\titlerule*{.}\contentspage} 108 | \titlecontents{section}[2em]{\songti \zihao{-4}} 109 | {\thecontentslabel\quad}{} 110 | {\hspace{.5em}\titlerule*{.}\contentspage} 111 | \titlecontents{subsection}[4em]{\songti \zihao{-4}} 112 | {\thecontentslabel\quad}{} 113 | {\hspace{.5em}\titlerule*{.}\contentspage} 114 | 115 | \end{lstlisting} 116 | 117 | \section{封面设计} 118 | 这里我们为封面设计提供了众多命令,以中文封面为例: 119 | \begin{lstlisting}language={TeX} 120 | %%%%中文标题页的可用命令 121 | \newcommand\classification[1]{\def\BIT@value@classification{#1}} 122 | \newcommand\studentnumber[1]{\def\BIT@value@studentnumber{#1}} 123 | \newcommand\confidential[1]{\def\BIT@value@confidential{#1}} 124 | \newcommand\UDC[1]{\def\BIT@value@UDC{#1}} 125 | \newcommand\serialnumber[1]{\def\BIT@value@serialnumber{#1}} 126 | \newcommand\school[1]{\def\BIT@value@school{#1}} 127 | \newcommand\degree[1]{\def\BIT@value@degree{#1}} 128 | \renewcommand\title[2][\BIT@value@title]{% 129 | \def\BIT@value@title{#2} 130 | \def\BIT@value@titlemark{\MakeUppercase{#1}}} 131 | \renewcommand\vtitle[1]{\def\BIT@value@vtitle{#1}} 132 | \renewcommand\author[1]{\def\BIT@value@author{#1}} 133 | \newcommand\advisor[1]{\def\BIT@value@advisor{#1}} 134 | \newcommand\advisorinstitute[1]{\def\BIT@value@advisorinstitute{#1}} 135 | \newcommand\major[1]{\def\BIT@value@major{#1}} 136 | \newcommand\submitdate[1]{\def\BIT@value@submitdate{#1}} 137 | \newcommand\defenddate[1]{\def\BIT@value@defenddate{#1}} 138 | \newcommand\institute[1]{\def\BIT@value@institute{#1}} 139 | \newcommand\chairman[1]{\def\BIT@value@chairman{#1}} 140 | 141 | \end{lstlisting} 142 | 143 | 使用这些命令,即可在主控文件中设置自己的封面,例如本文档在demo.tex中如下 144 | 设置: 145 | \begin{lstlisting}[language={TeX}] 146 | \classification{****.*} 147 | \UDC{***} 148 | \title{****} 149 | \author{****} 150 | \institute{****} 151 | \advisor{****} 152 | \chairman{****} 153 | \degree{****} 154 | \major{****} 155 | \school{ 北京理工大学} 156 | \defenddate{****} 157 | \end{lstlisting} 158 | 159 | 这些变量设置好之后,\\使用\verb+\maketitle+产生封面的第一页;\\使用 160 | \verb+\makeInfo+产生中文信息页;\\使用 161 | \verb+\makeEnglishInfo+产生英文信息页;\\使用\verb+\makeVerticalTitle+产 162 | 生竖着排放的标题页;\\使用\verb+\makeDeclareOriginal+产生声明页。 163 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/ch2-structure.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% ch2.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.5 5 | %% last update: April 25th, 2017 6 | %%================================================== 7 | 8 | \chapter{模板使用} 9 | \label{chap:textStructure} 10 | 11 | 本章的目的是介绍\LaTeX{}的文本控制流程,介绍学位论文中各章节分布以及模板内部组成,以及章节内的交叉引用问题,用户可以根据自身对\LaTeX{}的熟悉程度适当地略过阅读。在了解了本章的内容后,用户即可通过文本内容的粘贴和复制,快速实现生成一个格式满足基本需求的学位论文。 12 | 13 | 以硕士模板BIT-thesis-template-grd为例,文件布局如图 \ref{layout-master} 所示。 14 | 15 | \begin{lstlisting}[basicstyle=\small\ttfamily,caption={BIT-thesis-template-grd 模板文件布局},label=layout-master,numbers=none] 16 | ├── demo.tex 主控文件 17 | ├── demo.pdf 生成的论文pdfBIT-thesis-template-grd 18 | ├── BIT-thesis-grd.cls 格式控制文件 19 | ├── GBT7714-2005NLang.bst 参考文献格式控制文件 20 | ├── chapters 章节文件夹 21 | │ ├── abstract.tex 摘要 22 | │ ├── chapter01.tex 第一章 23 | │ ├── conclusion.tex 总结 24 | │ ├── app1.tex 附录A 25 | │ ├── pub.tex 攻读学位期间发表论文与研究成果清单 26 | │ └── thanks.tex 致谢 27 | ├── figures 图片文件夹 28 | │ └── figure1.png 29 | ├── reference 参考文献文件夹 30 | │ └── chap1.bib 31 | ├── BIT-thesis-run.cmd 运行脚步cmd 32 | └── BIT-thesis-run.sh 运行脚本sh 33 | 34 | 35 | \end{lstlisting} 36 | 37 | \section{认识模板组成} 38 | 39 | \subsection{格式控制文件} 40 | \label{sec:format} 41 | 42 | 格式控制文件控制着论文的表现形式,包括以下两个文件:BIT-thesis-grd.cls 和 GBT7714-2005NLang.bst。 43 | 其中,``.cls''控制论文主体格式,``.bst''控制参考文献条目的格式, 44 | 45 | 一般用户可以``忽略''格式控制文件的存在。因为该文件已经按照《北京理工大学博士、硕士学位 46 | 论文撰写规范》进行了修改。有其他格式修改的需要,参见第\ref{sec:thesisformat}章。 47 | 48 | 49 | \subsection{主控文件~demo.tex} 50 | \label{sec:demotex} 51 | 52 | 主控文件~demo.tex~的作用就是将分散在多个文件中的内容``整合''成一篇完整的论文。 53 | 使用这个模板撰写学位论文时,学位论文内容和素材会被``拆散''到各个文件中: 54 | 譬如各章正文、各个附录、各章参考文献等等。 55 | 在~demo.tex~中通过``include''命令将论文的各个部分包含进来,从而形成一篇结构完成的论文。 56 | 封面页中的论文标题、作者等中英文信息,也是在~demo.tex~中填写。也可以在demo.tex中按照自己的需要引入一些的宏包 57 | \footnote{一般只有当你需要在文档中使用那个宏包时,才需要在导言区中用~usepackage~引入该宏包。如若不然,通过usepackage引入一大堆不被用到的宏包,必然是一场灾难。由于一开始没有一致的设计目标,\LaTeX~ 的各宏包几乎都是独立发展起来的,因重定义命令导致的宏包冲突屡见不鲜。}。 58 | 59 | 大致而言,在主控文件~demo.tex~中,只需要留意文章有哪些章节以及各章参考文 60 | 献内容,不需要具体关注每一章里面的具体内容。需要注意,处理文档时所有的操作命令 61 | {}\cndash{}xelatex, bibtex等,都是作用在~demo.tex~上,而\emph{不是}后面这 62 | 些``分散''的文件,请参考\ref{sec:process}小节。 63 | 64 | 若使用\textbf{硕士论文模板},请在~demo.tex~中~\verb|\documentclass|~命令采用~master~选项;若使用\textbf{博士论文模板},请使用~doctor~选项。同理,单页打印使用~oneside~选项,双面打印使用~twoside~选项。 65 | 66 | 文章各部分安排如下: 67 | \begin{itemize} 68 | \item ~\verb|\maketitle|~ : 中文封面 69 | \item ~\verb|\makeInfo|~ : 中文信息 70 | \item ~\verb|\makeEnglishInfo|~ : 英文信息 71 | \item ~\verb|\makeVerticalTitle|~ : 打印竖排论文题目 72 | \item ~\verb|\makeDeclareOriginal|~ : 论文原创性声明和使用授权 73 | \item ~\verb|\include{chapters/abstract}|~ :摘要 74 | \item ~\verb|\tableofcontents|~ :加入目录 75 | \item ~\verb|\listoftables|~ :加入表格索引 76 | \item ~\verb|\listoffigures|~ : 加入插图索引 77 | \item ~\verb|\include{chapters/chapter1}|~ : 各章正文内容 78 | \item ~\verb|\include{chapters/conclusion}|~ : 结论 79 | \item ~\verb|\bibliography{reference/chap1}|~ :参考文献 80 | \item ~\verb|\include{chapters/app1} |~ : 附录 81 | \item ~\verb|\include{chapters/pub}|~ : 攻读学位期间发表论文与研究成果清单 82 | \item ~\verb|\include{chapters/thanks}|~ : 致谢 83 | \item ~\verb|\include{chapters/resume}|~ : 作者简介(博士论文需要) 84 | \end{itemize} 85 | 86 | 87 | \subsection{论文主体文件夹chapters} 88 | \label{sec:thesisbody} 89 | 90 | 这一部分是论文的主体,是以``章''为单位划分的。 91 | 92 | 正文前部分(frontmatter):中英文摘要(abstract.tex)。其他部分,诸如中英文信息封 93 | 面、授权信息等,都是根据~demo.tex~所填的信息自动生成好了,不需要单独编写文件。 94 | 95 | 正文部分(mainmatter):是各章内容,在chapter文件夹中。 96 | 97 | 正文后的部分(backmatter):附录(app\emph{xx}.tex);致谢(thanks.tex);攻读 98 | 学位论文期间发表的学术论文目录(pub.tex);作者简介(resume.tex)。参考文献列 99 | 表是自动生成的,也不需要作为一个单独的文件。另外,学校的硕士研究生学位论文模 100 | 板没有要求加入作者简介,但\textbf{博士的学位论文要求加入作者简介}。 101 | 102 | 103 | \subsection{图片文件夹~figures} 104 | \label{sec:figuresdir} 105 | 106 | figures~文件夹放置了需要插入文档中的图片文件(PNG/JPG/PDF/EPS)。如果图片较多,建议按章再 107 | 划分子目录存储图片。 108 | 109 | \subsection{参考文献数据库文件夹~reference} 110 | \label{sec:bibdir} 111 | 112 | reference~文件夹放置的是各章``可能''会被引用的参考文献文件。参考文献的元 113 | 数据,例如作者、文献名称、年限、出版地等,会以一定的格式记录在纯文本文 114 | 件.bib中。最终的参考文献列表是BibTeX处理.bib后得到的,名为~demo.bbl。将参 115 | 考文献按章划分的一个好处是,可以在各章后生成独立的参考文献,不过,现在看 116 | 来没有这个必要。关于参考文献的管理,可以进一步参考第\ref{chap:example}章 117 | 中的例子。 118 | 119 | 120 | \section{进行论文写作} 121 | \label{sec:format} 122 | 123 | 本节介绍使用论文模板,修改论文信息、摘要、关键字,以及编辑章节等。 124 | 125 | \subsection{封面和标题} 126 | 在主控文件demo.tex中填写论文的相应信息。 127 | 128 | 中文封面信息: 129 | \begin{itemize} 130 | \item 中图分类号(\verb|\classification{TQ028.1}|) 131 | \item UDC分类号(\verb|\UDC{540}|) 132 | \item 论文标题(\verb|\title{论文标题}|) 133 | \item 作者姓名(\verb|\author{姓名}|) 134 | \item 学院名称(\verb|\institute{学院名称}|) 135 | \item 指导教师(\verb|\advisor{教授姓名}|) 136 | \item 答辩委员会主席(\verb|\chairman{教授姓名}|) 137 | \item 申请学位(\verb|\degree{学位名称}|) 138 | \item 学科专业(\verb|\major{专业名称}|) 139 | \item 学位授予单位(\verb|\school{北京理工大学}|) 140 | \item 论文答辩日期(\verb|\defenddate{答辩日期}|) 141 | \end{itemize} 142 | 143 | 144 | 英语封面信息: 145 | \begin{itemize} 146 | \item English Title(\verb|\englishtitle{论文标题}|) 147 | \item Candidate Name(\verb|\englishauthor{姓名}|) 148 | \item School or Department(\verb|\englishinstitute{学院名称}|) 149 | \item Faculty Mentor(\verb|\englishadvisor{教授姓名}|) 150 | \item Chair,Thesis Committee(\verb|\englishchairman{教授姓名}|) 151 | \item Degree Applied(\verb|\englishdegree{学位名称}|) 152 | \item Major(\verb|\englishmajor{专业名称}|) 153 | \item Degree by(\verb|\englishschool{Beijing Insititute of Technology}|) 154 | \item The Data of Defence(\verb|\englishdate{答辩日期}|) 155 | \end{itemize} 156 | 157 | \subsection{摘要和关键字} 158 | 摘要内容,放置于chapters文件夹下的abstract.tex中, 159 | 160 | 中文摘要于\verb|abstract|环境编写;\verb|\keywords|为中文关键字。英文摘要于\verb|englishabstract|环境编写;\verb|\englishkeywords|为中文关键字。 161 | 162 | \begin{lstlisting}[language={[LaTeX]TeX}, caption={ 中英文摘要 }] 163 | \begin{abstract} 164 | 本文 ... 165 | \keywords { 形状记忆;聚氨酯 } 166 | \end{abstract} 167 | 168 | \begin{englishabstract} 169 | In order to exploit ... 170 | \englishkeywords{shape memory properties; polyurethane} 171 | \end{englishabstract} 172 | \end{lstlisting} 173 | 174 | 175 | \subsection{正文章节} 176 | 章节的设置分别通过关键字完成,按照章节的级别依此如表~\ref{tab:setSection}所示,关于文档中具体章节的关键词设置可以参看原宏包中tex文件夹下的实例文件。 177 | 178 | \begin{table}[htb] 179 | \centering 180 | \caption{章节设置关键字} % title of Table 181 | \label{tab:setSection} % label of Table 182 | \begin{tabular}{cl} 183 | \hline 184 | 章节级别 & 关键字 \\ 185 | \hline 186 | 章 & \verb|\chapter| \\ 187 | 节 & \verb|\section | \\ 188 | 子节 & \verb|\subsection |\\ 189 | 表格名称 & \verb|\caption{标题名称}| \\ 190 | 引用标签 & \verb|\label{引用名称}| \\ 191 | \hline 192 | \end{tabular} 193 | \end{table} 194 | 195 | \subsection{其他部分} 196 | 197 | 198 | 全文总结、攻读学位期间发表论文与研究成果清单、致谢的内容,均位于chapters文件夹下,分别为conclusion.tex,pub.tex,thanks.tex。 199 | 200 | \section{交叉引用} 201 | \subsection{公式、图表和插图引用} 202 | \label{sec:refofFigAndTab} 203 | 交叉引用的前提是需要在定义章节、公式和图表的时候都对其进行命名标签(即\textbackslash label\{sec:labelName\}命令),在实际使用过程中通过标签进行引用。根据引用的特点可以将应用分成表~\ref{tab:citeType}中所示三类。 204 | 205 | \begin{table}[htb] 206 | \centering 207 | \caption{交叉引用类型} % title of Table 208 | \label{tab:citeType} % label of Table 209 | \begin{tabular}{cl} 210 | \hline 211 | 引用类型 & 关键字 \\ 212 | \hline 213 | 标签设置 & \textbackslash label\{marker\} \\ 214 | 引用代号 & \textbackslash ref\{marker\} \\ 215 | 引用页码 & \textbackslash pageref\{marker\} \\ 216 | 引用文献 & \textbackslash cite\{regLabel\} \\ 217 | \hline 218 | \end{tabular} 219 | \end{table} 220 | 221 | 其中,表格和图片的摆放位置由 \textbackslash begin\{table\}或\textbackslash begin\{figure\}后面的中括号设置,例如[htb]表示可以将图表放在当前位置(here)、页面顶端(top)或者页面底端(bottom)。 222 | 223 | {\bf{实例1:}}这里是对表格《交叉引用类型》的引用——表~\ref{tab:citeType}位于第~\pageref{tab:citeType}页,其标签为\textbackslash label\{tab:citeType\}。 224 | 225 | 226 | \subsection{文献引用} 227 | \label{sec:citeRefs} 228 | 229 | BIT-Thesis论文模板使用BibTeX处理参考文献。 230 | 231 | 参考文献的具体内容就是reference文件夹下的chap\textit{xx}.bib,参考文献的元数据(名称、作者、出处等)以一定的格式保存在这些纯文本文件中。 232 | .bib文件也可以理解为参考文献的``数据库'',正文中所有引用的参考文件条目都会从这些文件中``析出''。 233 | 234 | 正文中引用参考文献时,用\verb+\upcite{...}+可以产生“上标引用的参考文献”, 235 | 如\upcite{chen2007act},\upcite{Meta_CN,chen2007act,DPMG}。 236 | 237 | 具体使用方法参见第\ref{sec:reference}节。 238 | -------------------------------------------------------------------------------- /BIT-thesis-manual/reference/chap2.bib: -------------------------------------------------------------------------------- 1 | % Encoding: GBK 2 | 3 | @BOOK{Meta_CN, 4 | title = {{电磁超介质及其应用}}, 5 | address = {北京}, 6 | publisher = {国防工业出版社}, 7 | year = {2008}, 8 | author = {崔万照 and 马伟 and 邱乐徳 and 张洪太}, 9 | language = {zh} 10 | } 11 | 12 | @BOOK{JohnD, 13 | title = {{Photonic Crystals: Molding the Flow of Light}}, 14 | publisher = {Princeton University Press}, 15 | year = {2008}, 16 | author = {Joannopoulos, J. D. and Johnson, S. G. and Winn, J. N.} 17 | } 18 | 19 | @book{IEEE-1363, 20 | author={{IEEE Std 1363-2000}}, 21 | title={{IEEE} Standard Specifications for Public-Key Cryptography}, 22 | address={New York}, 23 | publisher={IEEE}, 24 | year={2000} 25 | } 26 | 27 | @ARTICLE{chen2007act, 28 | author = {Chen, H. and Chan, C. T.}, 29 | title = {{Acoustic cloaking in three dimensions using acoustic metamaterials}}, 30 | journal = {Applied Physics Letters}, 31 | year = {2007}, 32 | volume = {91}, 33 | pages = {183518}, 34 | publisher = {AIP} 35 | } 36 | 37 | @ARTICLE{chen2007ewi, 38 | author = {Chen, H. and Wu, B. I. and Zhang, B. and Kong, J. A.}, 39 | title = {{Electromagnetic Wave Interactions with a Metamaterial Cloak}}, 40 | journal = {Physical Review Letters}, 41 | year = {2007}, 42 | volume = {99}, 43 | pages = {63903}, 44 | number = {6}, 45 | publisher = {APS} 46 | } 47 | 48 | 49 | @inproceedings{kocher99, 50 | author={C. Kocher and J. Jaffe and B. Jun}, 51 | title={Differential Power Analysis}, 52 | editor={M. Wiener}, 53 | booktitle={Advances in Cryptology ({CRYPTO}~'99)}, 54 | series={Lecture Notes in Computer Science}, 55 | volume={1666}, 56 | pages={388-397}, 57 | publisher={Springer-Verlag}, 58 | month={August}, 59 | year={1999} 60 | } 61 | 62 | 63 | @INCOLLECTION{Krasnogor2004e, 64 | AUTHOR = {N. Krasnogor}, 65 | TITLE = {Towards robust memetic algorithms}, 66 | BOOKTITLE = {Recent Advances in Memetic Algorithms}, 67 | PUBLISHER = {Springer Berlin Heidelberg}, 68 | YEAR = {2004}, 69 | PAGES = {185-207}, 70 | EDITOR = {W.E. Hart and N. Krasnogor and J.E. Smith}, 71 | VOLUME = {166}, 72 | SERIES = {Studies in Fuzziness and Soft Computing}, 73 | ADDRESS = {New York}, 74 | } 75 | 76 | @INCOLLECTION{zjsw, 77 | AUTHOR = {班固}, 78 | TITLE = {苏武传}, 79 | BOOKTITLE = {传记散文英华}, 80 | PUBLISHER = {湖北人民出版社}, 81 | YEAR = {1998}, 82 | PAGES = {65-69}, 83 | EDITOR = {郑在瀛 and 汪超宏 and 周文复}, 84 | VOLUME = {2}, 85 | SERIES = {新古文观止丛书}, 86 | ADDRESS = {武汉}, 87 | language = {zh}, 88 | } 89 | 90 | 91 | @INBOOK{clzs, 92 | AUTHOR = {阎真}, 93 | TITLE = {沧浪之水}, 94 | CHAPTER = {大人物还是讲人情的}, 95 | PAGES = {185-207}, 96 | PUBLISHER = {人民文学出版社}, 97 | YEAR = {2001}, 98 | language = {zh}, 99 | } 100 | 101 | @Book{tex, 102 | author = {Donald E. Knuth}, 103 | title = {The {\TeX} Book}, 104 | publisher = {Addison-Wesley Publishing Company}, 105 | address = {Reading, MA}, 106 | year = 1989, 107 | edition = {15th}, 108 | } 109 | 110 | @Book{companion, 111 | author = {Michel Goosens and Frank Mittelbach and Alexander Samarin}, 112 | title = {The {\LaTeX} Companion}, 113 | publisher = {Addison-Wesley Publishing Company}, 114 | address = {Reading, MA}, 115 | PAGES = {112--125}, 116 | year = 1994, 117 | } 118 | 119 | @ARTICLE{ELIDRISSI94, 120 | AUTHOR = {{Chafik El Idrissi}, M. and {Roney}, A. and {Frigon}, C. and 121 | {Larzilli{\`e}re}, M.}, 122 | TITLE = {Measurements of total kinetic-energy released to the {$N=2$} 123 | dissociation limit of {H}$_2$ --- evidence of the dissociation 124 | of very high vibrational {R}ydberg states of {H}$_2$ by 125 | doubly-excited states}, 126 | JOURNAL = {Chemical Physics Letters}, 127 | PAGES = {260-266}, 128 | VOLUME = 224, 129 | NUMBER = 10, 130 | YEAR = 1994, 131 | } 132 | 133 | @ARTICLE{MELLINGER96, 134 | AUTHOR = {Mellinger, A. and Vidal, C. R. and Jungen, Ch.}, 135 | TITLE = {Laser reduced fluorescence study of the carbon-monoxide nd 136 | triplet {R}ydberg series-experimental results and multichannel 137 | quantum-defect analysis}, 138 | JOURNAL = {J. Chem. Phys.}, 139 | PAGES = {8913-8921}, 140 | VOLUME = 104, 141 | NUMBER = 5, 142 | YEAR = 1996, 143 | } 144 | 145 | @ARTICLE{SHELL02, 146 | AUTHOR = {Michael Shell}, 147 | TITLE = {How to Use the {IEEEtran \LaTeX} Class}, 148 | JOURNAL = {Journal of {\LaTeX} Class Files}, 149 | YEAR = 2002, 150 | VOLUME = 12, 151 | NUMBER = 4, 152 | PAGES = {100--120} 153 | } 154 | 155 | @TechReport{NPB2, 156 | title = {The {NAS} Parallel Benchmarks 2.0}, 157 | author = {Alex Woo and David Bailey and Maurice Yarrow and Wijngaart 158 | Wijngaart and Tim Harris and William Saphir}, 159 | year = 1995, 160 | month = dec # {~05}, 161 | institution = {The Pennsylvania State University CiteSeer Archives}, 162 | url = {http://www.nasa.org/} 163 | } 164 | 165 | @INPROCEEDINGS{DPMG, 166 | author = {Kim, Sangbum and Woo, Namyoon and Yeom, Heon Y. and Park, 167 | Taesoon and Park, Hyoungwoo}, 168 | title = {Design and {I}mplementation of {D}ynamic {P}rocess 169 | {M}anagement for {G}rid-enabled {MPICH}}, 170 | booktitle = {the 10th European PVM/MPI Users' Group Conference}, 171 | year = 2003, 172 | address = {Venice, Italy}, 173 | month = sep, 174 | } 175 | 176 | @INPROCEEDINGS{cnproceed, 177 | author = {王重阳 and 黄药师 and 欧阳峰 and 洪七公 and 段皇帝}, 178 | title = {武林高手从入门到精通}, 179 | booktitle = {第~$N$~次华山论剑}, 180 | year = 2006, 181 | address = {西安, 中国}, 182 | publisher = {中国古籍出版社}, 183 | month = sep, 184 | language = {zh}, 185 | } 186 | 187 | @ARTICLE{cnarticle, 188 | AUTHOR = {贾宝玉 and 林黛玉 and 薛宝钗 and 贾探春}, 189 | TITLE = {论刘姥姥食量大如牛之现实意义}, 190 | JOURNAL = {红楼梦杂谈}, 191 | PAGES = {260--266}, 192 | VOLUME = 224, 193 | YEAR = 1800, 194 | LANGUAGE = {zh}, 195 | } 196 | 197 | @MastersThesis{zhubajie, 198 | author = {猪八戒}, 199 | title = {论流体食物的持久保存}, 200 | school = {广寒宫大学}, 201 | year = 2005, 202 | address = {北京}, 203 | language = {zh}, 204 | } 205 | 206 | @PhdThesis{shaheshang, 207 | author = {沙和尚}, 208 | title = {论流沙河的综合治理}, 209 | school = {清华大学}, 210 | year = 2005, 211 | address = {北京}, 212 | language = {zh}, 213 | } 214 | 215 | @MastersThesis{metamori2004, 216 | author = {Ashwin Raju Jeyakumar}, 217 | title = {Metamori: A library for Incremental File Checkpointing}, 218 | school = {Virgina Tech}, 219 | year = 2004, 220 | month = jun # {~21}, 221 | address = {Blacksburg}, 222 | } 223 | 224 | @PHDTHESIS{FistSystem01, 225 | AUTHOR = {Erez Zadok}, 226 | TITLE = {{FiST: A System for Stackable File System Code Generation}}, 227 | YEAR = 2001, 228 | MONTH = {May}, 229 | SCHOOL = {Computer Science Department, Columbia University}, 230 | ADDRESS = {USA} 231 | } 232 | 233 | @INBOOK{ColdSources, 234 | AUTHOR = {P. Gr{\"o}ning and L. Nilsson and P. Ruffieux and R. 235 | Clergereaux and O. Gr{\"o}ning}, 236 | TITLE = {Encyclopedia of Nanoscience and Nanotechnology}, 237 | pages = {547--579}, 238 | PUBLISHER = {American Scientific Publishers}, 239 | YEAR = 2004, 240 | volume = 1, 241 | } 242 | 243 | @phdthesis{bai2008, 244 | title={{信用风险传染模型和信用衍生品的定价}}, 245 | author={白云芬}, 246 | year={2008}, 247 | language={zh}, 248 | school={上海交通大学}, 249 | address={上海}, 250 | } 251 | 252 | 253 | %萧钰.出版业信息化迈人快车道[EB/OL]. (2001-12-19)[2002-04-15]. http://www.creader.com/news/20011219/200112190019. html. 254 | @MISC{xiaoyu2001, 255 | author = {萧钰}, 256 | title = {出版业信息化迈人快车道}, 257 | year = {2001}, 258 | TypeofLit = {EB/OL}, 259 | modifydate = {2001-12-19}, 260 | citedate = {2002-04-15}, 261 | url = {http:// www.creader.com/ news/20011219/200112190019.html}, 262 | language = {Chinese}, 263 | } 264 | 265 | % CHRISTINE M. Plant physiology: plant biology in the Genome Era[J/OL]. Science, 1998, 281:331-332[1998-09-23]. http://www.sciencemag.org/cgi/collection/anatmorp. 266 | % 在线析出文献 267 | @article{CHRISTINE1998, 268 | author = {Christine, Mlot}, 269 | title = {Plant physiology: plant biology in the Genome Era}, 270 | journal = {Science}, 271 | volume = {281}, 272 | pages = {331-332}, 273 | year = {1998}, 274 | TypeofLit = {J/OL}, 275 | citedate = {1998-09-23}, 276 | url = {http://www.sciencemag.org/cgi/collection/anatmorp}, 277 | } 278 | 279 | @comment{jabref-meta: selector_publisher:} 280 | 281 | @comment{jabref-meta: selector_author:} 282 | 283 | @comment{jabref-meta: selector_journal:} 284 | 285 | @comment{jabref-meta: selector_keywords:} 286 | 287 | -------------------------------------------------------------------------------- /BIT-thesis-manual/chapters/ch3-eqnFigAndTab.tex: -------------------------------------------------------------------------------- 1 | %%================================================== 2 | %% ch3.tex for BIT Master Thesis 3 | %% modified by yang yating 4 | %% version: 0.2 5 | %% last update: Feb 16th, 2017 6 | %%================================================== 7 | 8 | 9 | % \bibliographystyle{bit2} %[此处用于每章都生产参考文献] 10 | \chapter{公式、图像和表格} 11 | \label{chap:example} 12 | 公式、图表和插图广泛使用于学位论文中,并且在正文内存在较多的交叉引用,对他们的高效处理也是\LaTeX{}的优势之一。公式、图表和插图在定义时的共同特点包含:定义中需要设定引用标签、设置图表名称。定义时,图表摆放位置并无要求,\LaTeX{}会根据文稿内容自动计算图表摆放位置,不会出现表格窜行的问题。 13 | 14 | \section{公式与数学环境} 15 | \label{sec:eqn} 16 | 17 | \subsection{公式及术语表} 18 | \label{sec:eqn} 19 | 20 | 公式定义的内容包含在\verb|\begin{equation}|\verb|\end{equation}|之间。为方便,公式的编辑可以采用\textbf{在线的\LaTeX{}公式编辑器}。一般的\LaTeX{}编辑器如Winedit、texmaker等都有\textbf{公式编辑器}。 21 | 22 | {\bf{实例1:}} 以下是L-B非稳态流动升力模型,公式引用为公式\ref{eqn:LBmodel}。该公式的术语列表见 表 \ref{tab:LB-parameters}。 23 | \begin{equation} 24 | \label{eqn:LBmodel} 25 | C_{L}=C_{L0}+C_{L\alpha }\left ( \frac{1+\sqrt{X}}{2} \right )\alpha 26 | \end{equation} 27 | 28 | \begin{lstlisting}[language={[LaTeX]TeX}, caption={L-B非稳态流动升力模型}] 29 | \begin{equation} 30 | \label{eqn:LBmodel} 31 | C_{L}=C_{L0}+C_{L\alpha }\left ( \frac{1+\sqrt{X}}{2} \right )\alpha 32 | \end{equation} 33 | \end{lstlisting} 34 | 35 | \subsection{长公式排版} 36 | 37 | 38 | 《Math mode》里有举一个长公式排版的例子如下。《Math mode》有十分丰富实用的例子,感兴趣的同学可以参考一下。 39 | 40 | \begin {multline} 41 | \frac {1}{2}\Delta (f_{ij}f^{ij})= 42 | 2\left (\sum _{i0.1$ \\ 259 | 重均分子量 &$1000\sim 10000$ &数千$\sim 20万$ &$>5000$ \\ 260 | \bottomrule 261 | \end{tabular*} 262 | \end{table} 263 | \end{lstlisting} 264 | 265 | \begin{table} 266 | \centering 267 | \caption{BIT-thesis-grd模板demo示例中第一章的表一} \label{tab:category} 268 | \begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}cccc} 269 | \toprule 270 | 类别 &水溶型 &胶体分散型 &乳液型 \\ 271 | \midrule 272 | 状态 &溶解$\sim$胶束 &分散 &白浊 \\ 273 | 外观 &水溶型 &胶体分散型 &乳液型 \\ 274 | 粒径$/\mu m$ &$<0.001$ &$0.001-0.1$ &$>0.1$ \\ 275 | 重均分子量 &$1000\sim 10000$ &数千$\sim 20万$ &$>5000$ \\ 276 | \bottomrule 277 | \end{tabular*} 278 | \end{table} 279 | 280 | 另举一个两列的表格例子。 281 | 282 | \begin{table} % no placement specified: defaults to here, top, bottom, page 283 | \centering 284 | \begin{center} 285 | \caption{L-B模型中参数的物理意义} 286 | \label{tab:LB-parameters} 287 | \begin{tabular}{cl} 288 | \toprule 289 | Parameters & Physical meaning \\ 290 | \midrule % \hline 291 | $C_{L\alpha}$ & Lift curve slope \\ 292 | $a_{1}$ & Controls the shape of the stall curve \\ 293 | $\alpha^{\star}$ & The break point at which $X=0.5$ \\ 294 | $\tau_{1}$ & Represents the tendency of the model to track the static curve \\ 295 | $\tau_{2}$ & Gives the model lift overshoot \\ 296 | \bottomrule 297 | \end{tabular} 298 | \end{center} 299 | \end{table} 300 | 301 | \begin{lstlisting}[language={[LaTeX]TeX}, caption={插入表格\ref{tab:LB-parameters}}] 302 | \begin{table} 303 | \centering 304 | \begin{center} 305 | \caption{L-B模型中参数的物理意义} 306 | \begin{tabular}{cl} 307 | \toprule 308 | Parameters & Physical meaning \\ 309 | \midrule 310 | $C_{L\alpha}$ & Lift curve slope \\ 311 | $a_{1}$ & Controls the shape of the stall curve \\ 312 | $\alpha^{\star}$ & The break point at which $X=0.5$ \\ 313 | $\tau_{1}$ & Represents the tendency of the model to track the static curve \\ 314 | $\tau_{2}$ & Gives the model lift overshoot \\ 315 | \bottomrule 316 | \end{tabular} 317 | \end{center} 318 | \end{table} 319 | \end{lstlisting} 320 | 321 | 再给出一些表格的例子,如表\ref{tab:firstone}所示。 322 | 323 | \begin{table} 324 | \centering 325 | \label{tab:firstone} 326 | \caption{一个标准的三线表格} 327 | \begin{tabular}{@{}llr@{}} \toprule 328 | \multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2} 329 | Animal & Description & Price (\$)\\ \midrule 330 | Gnat & per gram & 13.65 \\ 331 | & each & 0.01 \\ 332 | Gnu & stuffed & 92.50 \\ 333 | Emu & stuffed & 33.33 \\ 334 | Armadillo & frozen & 8.99 \\ \bottomrule 335 | \end{tabular} 336 | \end{table} 337 | 338 | \begin{lstlisting}[language={[LaTeX]TeX}, caption={三线表格}] 339 | \begin{table} 340 | \centering 341 | \caption{一个标准的三线表格} 342 | \begin{tabular}{@{}llr@{}} \toprule 343 | \multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2} 344 | Animal & Description & Price \\ \midrule 345 | Gnat & per gram & 13.65 \\ 346 | & each & 0.01 \\ 347 | Gnu & stuffed & 92.50 \\ 348 | Emu & stuffed & 33.33 \\ 349 | Armadillo & frozen & 8.99 \\ \bottomrule 350 | \end{tabular} 351 | \end{table} 352 | \end{lstlisting} 353 | 354 | 下面一个是一个更复杂的表格,用threeparttable实现带有脚注的表格,如表\ref{tab:footnote}。 355 | 356 | \begin{table} 357 | \label{tab:footnote} 358 | \caption{一个带有脚注的表格的例子} 359 | \centering 360 | \begin{threeparttable}[b] 361 | \begin{tabular}{ccd{4}cccc} 362 | \toprule 363 | \multirow{2}{6mm}{total}&\multicolumn{2}{c}{20\tnote{1}} & \multicolumn{2}{c}{40} & \multicolumn{2}{c}{60}\\ 364 | \cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7} 365 | &www & k & www & k & www & k \\ 366 | \midrule 367 | &$\underset{(2.12)}{4.22}$ & 120.0140\tnote{2} & 333.15 & 0.0411 & 444.99 & 0.1387 \\ 368 | &168.6123 & 10.86 & 255.37 & 0.0353 & 376.14 & 0.1058 \\ 369 | &6.761 & 0.007 & 235.37 & 0.0267 & 348.66 & 0.1010 \\ 370 | \bottomrule 371 | \end{tabular} 372 | \begin{tablenotes} 373 | \item [1] the first note.% or \item [a] 374 | \item [2] the second note.% or \item [b] 375 | \end{tablenotes} 376 | \end{threeparttable} 377 | \end{table} 378 | 379 | \begin{lstlisting}[language={[LaTeX]TeX}, caption={脚注表格}] 380 | \begin{table} 381 | \caption{一个带有脚注的表格的例子} 382 | \centering 383 | \begin{threeparttable}[b] 384 | \begin{tabular}{ccd{4}cccc} 385 | \toprule 386 | \multirow{2}{6mm}{total}&\multicolumn{2}{c}{20\tnote{1}} & \multicolumn{2}{c}{40} & \multicolumn{2}{c}{60}\\ 387 | \cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7} 388 | &www & k & www & k & www & k \\ 389 | \midrule 390 | &$\underset{(2.12)}{4.22}$ & 120.0140\tnote{2} & 333.15 & 0.0411 & 444.99 & 0.1387 \\ 391 | &168.6123 & 10.86 & 255.37 & 0.0353 & 376.14 & 0.1058 \\ 392 | &6.761 & 0.007 & 235.37 & 0.0267 & 348.66 & 0.1010 \\ 393 | \bottomrule 394 | \end{tabular} 395 | \begin{tablenotes} 396 | \item [1] the first note. 397 | \item [2] the second note. 398 | \end{tablenotes} 399 | \end{threeparttable} 400 | \end{table} 401 | \end{lstlisting} 402 | 403 | \section{参考文献管理} 404 | \label{sec:reference} 405 | \subsection{将参考文献的内容与表现分离} 406 | 407 | BIT-Thesis论文模板使用BibTeX处理参考文献, 408 | BibTeX是最为流行的参考文献数据组织格式之一。它的出现让我们摆脱手写参考文献条目 409 | 的麻烦。 410 | 当然,使用者也可以手动编参考文献item,直接插入文档中。但是,有BibTeX帮助,处理起参考文献更为简单。我们还可以通过参考文献格式的支持,让同一份BibTeX数据库生成不同格式的参考文 411 | 献列表。 412 | 413 | 参考文献的具体内容就是reference文件夹下的chap\textit{xx}.bib,参考文献的元数据(名称、作者、出处等)以一定的格式保存在这些纯文本文件中。 414 | .bib文件也可以理解为参考文献的``数据库'',正文中所有引用的参考文件条目都会从这些文件中``析出''。 415 | 控制参考文献条目``表现形式''(格式)的是.bst文件。.bst文件定义了参考文献风格,使用不同的参考文献风格能将同一个参考文献条目输出成不同的格式。 416 | 当然,一个文档只能使用一个参考文献风格。 417 | 按照学校要求,本模板使用的是国标GBT7714风格的参考文献。 418 | 419 | BibTeX的工作过程是这样的: 420 | BibTeX读取.aux(第一次运行latex得到的)查看参考文献条目, 421 | 然后到.bib中找相关条目的信息, 422 | 最后根据.bst的格式要求将参考文献条目格式化输出,写到.bbl文件中。 423 | 在运行latex将.bbl插入文档之前,可以用文本编辑器打开它,做一些小的修改。 424 | .bbl的格式和你自己手动写item很相似,它已经被赋予了一定的``表现形式''。 425 | 426 | .bib数据库中的参考文献条目可以手动编写,也可以在google的学术搜索中找到。 427 | 各大数据库也支持将参考文献信息导出为.bib,省时省力。 428 | 以Google学术搜索为例:在``学术搜索设置''中,将``文献管理软件''设为``显示导入BibTeX''的连接,保存退出。 429 | 然后学术搜索找到文献下会有``导出到BibTeX''连接,点击后Firefox会打开新的标签页,出现类似代码\ref{googlescholar}所示的内容。 430 | 请注意,这个条目离``规范''还有一些距离。 431 | 432 | \begin{lstlisting}[caption={从Google Scholar找到的,但并不规范的.bib条目}, label=googlescholar, float, escapeinside="", numbers=none] 433 | @phdthesis{" 白2008信用风险传染模型和信用衍生品的定价 ", 434 | title={{" 信用风险传染模型和信用衍生品的定价 "}}, 435 | author={" 白云芬 "}, 436 | year={2008}, 437 | school={" 上海交通大学 "} 438 | } 439 | \end{lstlisting} 440 | 441 | 上面的.bib条目的``名字''\cndash{}``白2008信用风险传染模型和信用衍生品的定价'',包含~ASCII~以外的字符,BibTeX无法处理; 442 | 条目还缺少了address域,这样编译出来的结果会出现``地址不详''; 443 | 并且,条目还缺少language域,BibTeX需要language域来判断是否是中文参考文献。 444 | 将上面的条目修正(改英文名、增加address和language域),复制到本地的.bib文件中就可以了。 445 | 显然,这里描述的是参考文献的内容,而不是表现形式。 446 | 447 | \begin{lstlisting}[caption={一个符合规范的.bib条目}, label=itemok, float, escapeinside="", numbers=none] 448 | @article{ Jiang2005Size, 449 | title={ 形状记忆聚合物研究现状与发展 }, 450 | author={ 姜敏 and 彭少贤 and 郦华兴 }, 451 | journal={ 现代塑料加工应用 }, 452 | volume={17}, 453 | number={2}, 454 | pages={53-56}, 455 | year={2005}, 456 | } 457 | \end{lstlisting} 458 | 459 | 由于中英文参考文献处理起来有差异,所以需要在参考文献中标注是否是中文文献。 460 | 确切地说,BibTeX并不具有区分中英文参考文献的能力。.bib是“参考文献的内容”,而控制参考文献表现(格式)的是.bst文件,本模板附带的是GBT7714-2005NLang.bst。 461 | GBT7714-2005NLang.bst中规定:.bib中的条目,如果条目的``language''域非空,就被认为是中文文献,否则被认为是英文文献。 462 | 例如,刚才的文献,就会被认为是中文参考文献,采取一些针对中文的处理方式。 463 | 464 | 最后,这个条目被bibtex处理后,赋予了一定的``表现形式'',在.bbl文件中以下面的样子出现。 465 | 还可以对它进行小的修改,但较为麻烦。然后再次运行latex之后,它将被插入到文档中。 466 | 467 | \begin{lstlisting}[caption={.bbl中被格式化之后的条目}, escapeinside="", numbers=none] 468 | \bibitem{Jiang2005Size} 469 | 姜敏, 彭少贤, 郦华兴. 470 | 形状记忆聚合物研究现状与发展~[J]. 471 | 现代塑料加工应用, 2005, 17~(2): 53--56. 472 | \end{lstlisting} 473 | 474 | 475 | \subsection{在正文中引用参考文献} 476 | 477 | 参考文献可以分章节管理,只需要在主文件中的参考文献中都包含进去就可以,如\verb+\bibliography{chap1,figures/chap2,...}+。 478 | 479 | 正文中引用参考文献时\citep{Jiang2005Size},用\verb+\upcite{key1,key2,key3...}+可以产生“上标引用的参考文献”, 480 | 如\upcite{Meta_CN,chen2007act,DPMG}。 481 | 使用\verb+\cite{key1,key2,key3...}+则可以产生水平引用的参考文献,例如\cite{JohnD,zhubajie,IEEE-1363}。 482 | 请看下面的例子,将会穿插使用水平的和上标的参考文献:关于书的\cite{Meta_CN,JohnD,IEEE-1363},关于期刊的\upcite{chen2007act,chen2007ewi}, 483 | 会议论文\cite{DPMG,kocher99,cnproceed}, 484 | 硕士学位论文\cite{zhubajie,metamori2004},博士学位论文\upcite{shaheshang,FistSystem01,bai2008},标准文件\cite{IEEE-1363},技术报告\upcite{NPB2},电子文献\cite{xiaoyu2001, CHRISTINE1998}。 485 | 486 | 最后总结一些注意事项: 487 | \begin{itemize} 488 | \item 参考文献只有在正文中被引用了,才会在最后的参考文献列表中出现; 489 | \item 参考文献``数据库文件''.bib是纯文本文件,请使用~UTF-8~编码,不要使用~GBK~编码; 490 | \item 参考文献条目中通过~language~域是否为空判断是否是中文文献; 491 | \item 参考文献条目同样有“内容”和“表现形式”之分,这种可控性是BibTeX带来的。 492 | \end{itemize} 493 | 494 | 495 | \section{用~listings~插入源代码} 496 | 497 | 这里给使用~listings~宏包插入源代码的例子,这里是一段C代码。另外,listings宏包可以实现各种复杂、漂亮的效果,想要进一步学习的同学,可以参考《The Listings Package》。 498 | 499 | {\color{blue} 500 | \begin{enumerate} 501 | \item[] ~\verb|\begin{lstlisting}[language={C}, caption={一段C源代码}]| 502 | \item[] ~\verb|#include | 503 | \item[] ~\verb|...| 504 | \item[] ~\verb|\end{lstlisting}| 505 | \end{enumerate}} 506 | 507 | 508 | \begin{lstlisting}[language={C}, caption={一段C源代码}] 509 | #include 510 | #include 511 | #include 512 | #include 513 | 514 | int main() { 515 | pid_t pid; 516 | 517 | switch ((pid = fork())) { 518 | case -1: 519 | printf("fork failed\n"); 520 | break; 521 | case 0: 522 | /* child calls exec */ 523 | execl("/bin/ls", "ls", "-l", (char*)0); 524 | printf("execl failed\n"); 525 | break; 526 | default: 527 | /* parent uses wait to suspend execution until child finishes */ 528 | wait((int*)0); 529 | printf("is completed\n"); 530 | break; 531 | } 532 | 533 | return 0; 534 | } 535 | \end{lstlisting} 536 | 537 | 再给出一个插入MATLAB代码的例子。 538 | 539 | {\color{blue} 540 | \begin{enumerate} 541 | \item[] ~\verb|\begin{lstlisting}[language={matlab}, caption={一段MATLAB源代码}]| 542 | \item[] ~\verb|function paper1| 543 | \item[] ~\verb|r=0.05;| 544 | \item[] ~\verb|n=100;| 545 | \item[] ~\verb|...| 546 | \item[] ~\verb|\end{lstlisting}| 547 | \end{enumerate}} 548 | 549 | \begin{lstlisting}[language={matlab}, caption={一段MATLAB源代码}] 550 | function paper1 551 | r=0.05; 552 | n=100; 553 | T=1; 554 | X=1; 555 | v0=0.8; 556 | sigma=sqrt(0.08); 557 | deltat=T/n; 558 | for i=1:n 559 | t(i)=i*deltat; 560 | w(i)=random('norm',0,t(i),1); 561 | end 562 | for i=1:n 563 | alpha(i)=0.39; 564 | end 565 | for i=1:n 566 | temp=0; 567 | for k=1:i 568 | temp=temp+alpha(k); 569 | end 570 | B(i)=exp(r*t(i)); 571 | BB(i)=B(i)*exp(temp*deltat); 572 | BBB(i)=exp(-r*(T-t(i))); 573 | end 574 | for i=1:n 575 | s0(i)=X*BBB(i); 576 | v(i)=v0*exp((r-0.5*sigma^2)*t(i)+sigma*w(i)); 577 | for j=i+1:n 578 | D=X*BBB(j); 579 | d1=(log(v(i)/D)+(r+sigma^2/2)*(t(j)-t(i)))/(sigma*sqrt(t(j)-t(i))); 580 | d2=d1-(sigma*sqrt(t(j)-t(i))); 581 | ppp(i,j)=D*exp(-r*(t(j)-t(i)))*(1-cdf('normal',d2,0,1))-v(i)*(1-cdf('n 582 | ormal',d1,0,1)); 583 | end 584 | end 585 | for i=1:n 586 | s1(i)=0; 587 | for j=i+1:n 588 | s1(i)=s1(i)+BB(j)^(-1)*alpha(j)*deltat*(X*BBB(j)-B(j)/B(i)*ppp(i,j)); 589 | end 590 | s2(i)=0; 591 | for j=1:n 592 | s2(i)=s2(i)+alpha(j); 593 | end 594 | s2(i)=X*exp(-r*T-s2(i)*deltat); 595 | s(i)=BB(i)*(s1(i)+s2(i)); 596 | end 597 | plot(s) 598 | hold on; 599 | plot(s0); 600 | \end{lstlisting} 601 | -------------------------------------------------------------------------------- /BIT-thesis-manual/BIT-thesis-grd.cls: -------------------------------------------------------------------------------- 1 | %================================================== 2 | %% BIT-thesis-grd.cls for BIT Thesis 3 | %% modified by yang yating 4 | %% version: 1.2 5 | %% last update: Jan 1st, 2018 6 | %%================================================== 7 | 8 | %% math packages -- conflict with xunicode 9 | \RequirePackage{amsmath,amsthm,amsfonts,amssymb,bm,mathrsfs} 10 | % 直立希腊字母字体 11 | \RequirePackage{upgreek} 12 | 13 | \NeedsTeXFormat{LaTeX2e}[2005/12/01] 14 | \ProvidesClass{BIT-thesis-grd} 15 | [2017/09/01 v1.0 BIT-thesis-grd document class] 16 | 17 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} 18 | \newif\ifBIT@master\BIT@masterfalse 19 | \newif\ifBIT@doctor\BIT@doctorfalse 20 | \newif\ifBIT@istwoside\BIT@istwosidefalse 21 | \DeclareOption{twoside}{\BIT@istwosidetrue} 22 | \DeclareOption{master}{\BIT@mastertrue} 23 | \DeclareOption{doctor}{\BIT@doctortrue} 24 | 25 | \ProcessOptions\relax 26 | \ifBIT@istwoside 27 | \LoadClass[zihao=-4,a4paper,twoside,openright,UTF8,space=auto]{ctexbook} 28 | \else 29 | \LoadClass[zihao=-4,a4paper,oneside,openany,UTF8,space=auto]{ctexbook} 30 | \fi 31 | 32 | %% 33 | %% the setup of ctex package 34 | %% 35 | \def\CTEX@contentsname{目录} 36 | \def\CTEX@listfigurename{插图索引} 37 | \def\CTEX@listtablename{表格索引} 38 | 39 | %% 40 | %% 封面标题 41 | %% 42 | \def\BIT@label@major{学~~~~科~~~~专~~~~业} 43 | \def\BIT@label@title{论文题目} 44 | \def\BIT@label@author{作~~~~者~~~~姓~~~~名} 45 | \def\BIT@label@classification{中图分类号:} 46 | \def\BIT@label@confidential{密级} 47 | \def\BIT@label@UDC{UDC\!分类号:} 48 | \def\BIT@label@serialnumber{编号} 49 | \def\BIT@label@thesis{学位论文} 50 | \def\BIT@label@advisor{指~~~~导~~~~教~~~~师} 51 | \def\BIT@label@degree{申~~~~请~~~~学~~~~位} 52 | \def\BIT@label@submitdate{论文提交日期} 53 | \def\BIT@label@defenddate{论~文~答~辩~日~期} 54 | \def\BIT@label@institute{学~~~~院~~~~名~~~~称} 55 | \def\BIT@label@school{学~位~授~予~单~位} 56 | \def\BIT@label@chairman{答辩委员会主席} 57 | 58 | %% 59 | %% 封面内容 60 | %% 61 | 62 | \def\BIT@value@classification{} 63 | \def\BIT@value@confidential{} 64 | \def\BIT@value@UDC{} 65 | \def\BIT@value@serialnumber{} 66 | \def\BIT@value@school{} 67 | \def\BIT@value@degree{} 68 | \def\BIT@value@title{~~~~~(论~文~题~目)~~~~~} 69 | \def\BIT@value@vtitle{竖排论文题目} 70 | \def\BIT@value@titlemark{\BIT@value@title} 71 | \def\BIT@value@author{(作~者~姓~名)} 72 | \def\BIT@value@advisor{(姓名、专业技术职务、学位)} 73 | \def\BIT@value@advisorinstitute{(单位)} 74 | \def\BIT@value@major{} 75 | \def\BIT@value@studentnumber{} %_ added by wei.jianwen@gmail.com 76 | \def\BIT@value@submitdate{} 77 | \def\BIT@value@defenddate{} 78 | \def\BIT@value@institute{} 79 | \def\BIT@value@chairman{} 80 | \def\BIT@label@statement{} 81 | 82 | 83 | %% 设置圆圈的格式 或使用\textcircled 84 | \usepackage{tikz} 85 | \usepackage{etoolbox} 86 | \newcommand{\circled}[2][]{\tikz[baseline=(char.base)] 87 | {\node[shape = circle, draw, inner sep = 1pt] 88 | (char) {\phantom{\ifblank{#1}{#2}{#1}}}; 89 | \node at (char.center) {\makebox[0pt][c]{#2}};}} 90 | \robustify{\circled} 91 | 92 | %% 论文原创性声明 93 | \def\BIT@label@original{研究成果声明} 94 | \def\BIT@label@authorization{关于学位论文使用权的说明} 95 | \def\BIT@label@authorsign{作者签名:} 96 | \def\BIT@label@Supervisorsign{导师签名:} 97 | \def\BIT@label@originalDate{签字日期:} 98 | \def\BIT@label@originalcontent{\BITspace\BITspace 本人郑重声明:所提交的学位论文是我本人在指导教师的指导下进行的研究工作获得的研究成果。尽我所知,文中除特别标注和致谢的地方外,学位论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得北京理工大学或其它教育机构的学位或证书所使用过的材料。与我一同工作的合作者对此研究工作所做的任何贡献均已在学位论文中作了明确的说明并表示了谢意。\par 特此申明。} 99 | \def\BIT@label@authorizationcontent{\BITspace\BITspace 本人完全了解北京理工大学有关保管、使用学位论文的规定,其中包括:\circled{1} 学校有权保管、并向有关部门送交学位论文的原件与复印件;\circled{2} 学校可以采用影印、缩印或其它复制手段复制并保存学位论文;\circled{3} 学校可允许学位论文被查阅或借阅;\circled{4} 学校可以学术交流为目的,复制赠送和交换学位论文;\circled{5} 学校可以公布学位论文的全部或部分内容(保密学位论文在解密后遵守此规定)。} 100 | 101 | 102 | %% 103 | %% 英语封面标题 104 | %% 105 | \def\BIT@label@englishadvisor{Supervisor:} 106 | \def\BIT@label@englishstatement{Submitted in total fulfilment 107 | of the requirements for the degree of \BIT@value@englishdegree \\ 108 | in \BIT@value@englishmajor} 109 | \def\BIT@label@englishauthor{Candidate Name:} 110 | \def\BIT@label@englishadvisor{Faculty Mentor:} 111 | \def\BIT@label@englishchairman{Chair, Thesis Committee:} 112 | \def\BIT@label@englishinstitute{School or Department:} 113 | \def\BIT@label@englishdegree{Degree Applied:} 114 | \def\BIT@label@englishmajor{Major:} 115 | \def\BIT@label@englishschool{Degree by:} 116 | \def\BIT@label@englishdate{The Date of Defence:} 117 | 118 | 119 | %% 120 | %% 英语封面内容 121 | %% 122 | \def\BIT@value@englishtitle{(English Title of Thesis)} 123 | \def\BIT@value@englishauthor{(Author Name)} 124 | \def\BIT@value@englishadvisor{(Supervisor Name)} 125 | \def\BIT@value@englishinstitute{(Institute Name)} 126 | \def\BIT@value@englishscholl{(BIT)} 127 | \def\BIT@value@englishchair{(someone)} 128 | \def\BIT@value@englishdate{} 129 | \def\BIT@value@englishdegree{} 130 | \def\BIT@value@englishmajor{} 131 | 132 | 133 | 134 | \def\BIT@label@abstract{摘要} 135 | \def\BIT@label@englishabstract{Abstract} 136 | \def\BIT@label@keywords{关键词:} 137 | \def\BIT@label@englishkeywords{Key Words:~} 138 | \def\BIT@label@conclusion{结论} 139 | \def\BIT@label@appendix{附录} 140 | \def\BIT@label@publications{攻读学位期间发表论文与研究成果清单} 141 | \def\BIT@label@projects{攻读学位期间参与的项目} 142 | \def\BIT@label@resume{作者简介} 143 | \def\BIT@label@reference{参考文献!!!!} 144 | \def\BIT@label@thanks{致谢} 145 | \def\BIT@value@templateversion{v1.0} 146 | %% 147 | %% label in the head 页眉页脚 148 | %% 149 | \def\BIT@label@headschoolname{北京理工大学硕士学位论文} 150 | 151 | %% 当前模板的版本 152 | \newcommand{\version}{\BIT@value@templateversion} 153 | 154 | %%==============引用geometry 宏包设置纸张和页面======================== 155 | %设置版面:上3.5cm,下2.5cm,左2.7cm,右2.7cm,页眉2.5cm,页脚1.8cm,装订线0cm 156 | \usepackage[% 157 | paper=a4paper,% 158 | top=3.5cm,% 上 3.5cm % 159 | bottom=2.5cm,% 下 2.5cm % 160 | left=2.7cm,% 左 2.7cm % 161 | right=2.7cm,% 右 2.7cm % 162 | headheight=1.0cm,% 页眉 2.5cm % 163 | footskip=0.7cm% 页脚 1.8cm % 164 | ]{geometry} % 页面设置 % 165 | %% ========================================================= 166 | 167 | \parskip 0.5ex plus 0.25ex minus 0.25ex 168 | %% Command -- Clear Double Page 169 | \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else 170 | \thispagestyle{empty}% 171 | \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi} 172 | %设置行距,大概为22榜,较麻烦 173 | \RequirePackage{setspace} 174 | \setstretch{1.523} 175 | 176 | %% 设置章节格式 177 | \ctexset{chapter={ 178 | name = {第,章}, 179 | number = {\arabic{chapter}}, 180 | format = {\bfseries \heiti \centering \zihao{3}}, 181 | pagestyle = {BIT@headings}, 182 | beforeskip = 16bp, 183 | afterskip = 28bp, 184 | fixskip = true, 185 | } 186 | } 187 | %% 设置一级章节格式 188 | \ctexset{section={ 189 | format={\raggedright \bfseries \heiti \zihao{4}}, 190 | beforeskip = 28bp plus 1ex minus .2ex, 191 | afterskip = 24bp plus .2ex, 192 | fixskip = true, 193 | } 194 | } 195 | 196 | % 设置二级标题格式 197 | 198 | %黑体小四加粗顶左,单倍行距,序号与题目间空一个汉字符 199 | 200 | \ctexset{subsection={ 201 | format = {\bfseries \heiti \raggedright \zihao{-4}}, 202 | beforeskip =28bp plus 1ex minus .2ex, 203 | afterskip = 24bp plus .2ex, 204 | fixskip = true, 205 | } 206 | } 207 | 208 | % 设置三节标题格式:黑体小四居左书写,单倍行距,序号与题目间空一个汉字符 209 | 210 | \ctexset{subsubsection={ 211 | format={\heiti \raggedright \zihao{-4}}, 212 | beforeskip=28bp plus 1ex minus .2ex, 213 | afterskip=24bp plus .2ex, 214 | fixskip=true, 215 | } 216 | } 217 | 218 | %% 设定目录格式。目录颜色更改黑色 219 | \addtocontents{toc}{\protect\hypersetup{hidelinks}} 220 | \addtocontents{lot}{\protect\hypersetup{hidelinks}} 221 | \addtocontents{lof}{\protect\hypersetup{hidelinks}} 222 | 223 | \RequirePackage{titletoc} 224 | \titlecontents{chapter}[0pt]{\songti \zihao{4}} 225 | {\thecontentslabel\hspace{\ccwd}}{} 226 | {\hspace{.5em}\titlerule*{.}\contentspage} 227 | \titlecontents{section}[2\ccwd]{\songti \zihao{-4}} 228 | {\thecontentslabel\hspace{\ccwd}}{} 229 | {\hspace{.5em}\titlerule*{.}\contentspage} 230 | \titlecontents{subsection}[4\ccwd]{\songti \zihao{-4}} 231 | {\thecontentslabel\hspace{\ccwd}}{} 232 | {\hspace{.5em}\titlerule*{.}\contentspage} 233 | 234 | \titlecontents{figure}[0pt]{\songti\zihao{-4}} 235 | {\figurename~\thecontentslabel\quad}{\hspace*{-1.5cm}} 236 | {\hspace{.5em}\titlerule*{.}\contentspage} 237 | 238 | \titlecontents{table}[0pt]{\songti\zihao{-4}} 239 | {\tablename~\thecontentslabel\quad}{\hspace*{-1.5cm}} 240 | {\hspace{.5em}\titlerule*{.}\contentspage} 241 | 242 | %% 选择编译 243 | \RequirePackage{ifthen} 244 | 245 | %% check pdfTeX mode 246 | \RequirePackage{ifpdf} 247 | 248 | %% fancyhdr 页眉页脚控制 249 | \RequirePackage{fancyhdr} 250 | 251 | % 空 页眉页脚 252 | \fancypagestyle{BIT@empty}{% 253 | \fancyhf{}} 254 | 255 | %======正文页眉页脚================= 256 | \fancypagestyle{BIT@headings}{% 257 | \fancyhf{} 258 | \fancyfoot[C]{\songti\zihao{5} \thepage} 259 | \fancyhead[C]{\ifBIT@master\zihao{5}{\songti BIT-Thesis使用指南} 260 | \else\zihao{5}{\songti 北京理工大学博士学位论文}\fi} 261 | } 262 | 263 | %==================================对于openright 选项,必须保证章页右开,且如果前章末页内容须清空其页眉页脚。=================== 264 | \let\BIT@cleardoublepage\cleardoublepage 265 | \newcommand{\BIT@clearemptydoublepage}{% 266 | \clearpage{\pagestyle{BIT@empty}\BIT@cleardoublepage}} 267 | \let\cleardoublepage\BIT@clearemptydoublepage 268 | 269 | %================修该frontmatter 的页码为大写罗马格式,并调整页面风格=============== 270 | \renewcommand{\frontmatter}{ 271 | \if@openright\cleardoublepage\else\clearpage\fi 272 | \@mainmatterfalse 273 | \pagenumbering{Roman} 274 | \pagestyle{BIT@headings} 275 | } 276 | %=======================修改mainmatter 的页码为阿拉伯格式,并调整页面风格======================== 277 | \renewcommand{\mainmatter}{ 278 | \if@openright\cleardoublepage\else\clearpage\fi 279 | \@mainmattertrue 280 | \pagenumbering{arabic} 281 | \pagestyle{BIT@headings} 282 | } 283 | 284 | 285 | %% 复杂表格 286 | \RequirePackage{threeparttable} 287 | \RequirePackage{dcolumn} 288 | \RequirePackage{multirow} 289 | \RequirePackage{booktabs} 290 | \newcolumntype{d}[1]{D{.}{.}{#1}}% or D{.}{,}{#1} or D{.}{\cdot}{#1} 291 | 292 | 293 | %% 定义几个常用的数学常量符号 294 | \newcommand{\me}{\mathrm{e}} %定义 对数常数e,虚数符号i,j以及微分算子d为直立体。 295 | \newcommand{\mi}{\mathrm{i}} 296 | \newcommand{\mj}{\mathrm{j}} 297 | \newcommand{\dif}{\,\mathrm{d}} 298 | 299 | \theoremstyle{plain} 300 | \newtheorem{algo}{算法~}[chapter] 301 | \newtheorem{thm}{定理~}[chapter] 302 | \newtheorem{lem}[thm]{引理~} 303 | \newtheorem{prop}[thm]{命题~} 304 | \newtheorem{cor}[thm]{推论~} 305 | \theoremstyle{definition} 306 | \newtheorem{defn}{定义~}[chapter] 307 | \newtheorem{conj}{猜想~}[chapter] 308 | \newtheorem{exmp}{例~}[chapter] 309 | \newtheorem{rem}{注~} 310 | \newtheorem{case}{情形~} 311 | \renewcommand{\proofname}{\bf 证明} 312 | 313 | %% 英文字体使用 Times New Roman 314 | \RequirePackage{xltxtra} % \XeTeX Logo 315 | \setmainfont{Times New Roman} 316 | \setsansfont{Arial} 317 | \setmonofont{Courier New} 318 | 319 | 320 | %% graphics packages 321 | \RequirePackage{graphicx} 322 | %% 并列子图 323 | \RequirePackage{subfigure} 324 | 325 | \RequirePackage{wrapfig} 326 | %%===========================设置图表标题选项========================== 327 | \RequirePackage{amsmath} 328 | \RequirePackage{caption} 329 | \DeclareCaptionLabelSeparator{zhspace}{\hspace{1\ccwd}} 330 | \DeclareCaptionFont{fontsize}{\zihao{5}} 331 | \captionsetup{ 332 | font = {fontsize}, 333 | labelsep = zhspace, 334 | } 335 | \captionsetup[table]{ 336 | position = top, 337 | aboveskip = 6bp, 338 | belowskip = 6bp, 339 | } 340 | \numberwithin{table}{chapter} 341 | \captionsetup[figure]{ 342 | position = bottom, 343 | aboveskip = 6bp, 344 | belowskip = 6bp, 345 | } 346 | 347 | %% 如果插入的图片没有指定扩展名,那么依次搜索下面的扩展名所对应的文件 348 | \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,.jpeg} 349 | % ccaption -- bicaption 350 | %\RequirePackage{ccaption} 351 | %\captiondelim{\ } 352 | %\captionnamefont{\songti\zihao{5}} 353 | %\captiontitlefont{\songti\zihao{5}} 354 | 355 | 356 | %% sort and compress citations 357 | \RequirePackage[numbers,square,comma,super,sort&compress]{natbib} 358 | % 上标引用 359 | \newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}} 360 | 361 | 362 | % 将浮动参数设为较宽松的值 363 | \renewcommand{\textfraction}{0.15} 364 | \renewcommand{\topfraction}{0.85} 365 | \renewcommand{\bottomfraction}{0.65} 366 | \renewcommand{\floatpagefraction}{0.60} 367 | 368 | 369 | % 定公式、图、表编号为"3-1"的形式,即分隔符由.变为短杠 370 | \renewcommand\theequation{\arabic{chapter}.\arabic{equation}} 371 | \renewcommand\thefigure{\arabic{chapter}.\arabic{figure}} 372 | \renewcommand\thetable{\arabic{chapter}.\arabic{table}} 373 | 374 | % 颜色宏包 375 | \RequirePackage{xcolor} 376 | 377 | 378 | % 中文破折号 379 | \newcommand{\cndash}{\rule{0.0em}{0pt}\rule[0.35em]{1.4em}{0.05em}\rule{0.2em}{0pt}} 380 | 381 | % listings 源代码显示宏包 382 | \RequirePackage{listings} 383 | \lstset{tabsize=4, % 384 | frame=shadowbox, %把代码用带有阴影的框圈起来 385 | commentstyle=\color{red!50!green!50!blue!50},%浅灰色的注释 386 | rulesepcolor=\color{red!20!green!20!blue!20},%代码块边框为淡青色 387 | keywordstyle=\color{blue!90}\bfseries, %代码关键字的颜色为蓝色,粗体 388 | showstringspaces=false,%不显示代码字符串中间的空格标记 389 | stringstyle=\ttfamily, % 代码字符串的特殊格式 390 | keepspaces=true, % 391 | breakindent=22pt, % 392 | numbers=left,%左侧显示行号 393 | stepnumber=1,% 394 | numberstyle=\tiny, %行号字体用小号 395 | basicstyle=\footnotesize, % 396 | showspaces=false, % 397 | flexiblecolumns=true, % 398 | breaklines=true, %对过长的代码自动换行 399 | breakautoindent=true,% 400 | breakindent=4em, % 401 | aboveskip=1em, %代码块边框 402 | %% added by http://bbs.ctex.org/viewthread.php?tid=53451 403 | fontadjust, 404 | captionpos=t, 405 | framextopmargin=2pt,framexbottommargin=2pt,abovecaptionskip=-3pt,belowcaptionskip=3pt, 406 | xleftmargin=4em,xrightmargin=4em, % 设定listing左右的空白 407 | texcl=true, 408 | % 设定中文冲突,断行,列模式,数学环境输入,listing数字的样式 409 | extendedchars=false,columns=flexible,mathescape=true 410 | numbersep=-1em 411 | } 412 | \renewcommand{\lstlistingname}{代码} %% 重命名Listings标题头 413 | 414 | 415 | %% hyperref package 416 | 417 | \ifxetex % xelatex 418 | \RequirePackage[xetex]{hyperref} 419 | \hypersetup{ 420 | bookmarksnumbered,% 421 | colorlinks,% 422 | %linkcolor=black,% 423 | %citecolor=black,% 424 | plainpages=false,% 425 | pdfstartview=FitH 426 | } 427 | \else 428 | \ifpdf % pdflatex 429 | \RequirePackage[pdftex,unicode]{hyperref} 430 | \else % dvipdfmx or dvips 431 | \RequirePackage[dvipdfmx,unicode]{hyperref} 432 | \fi 433 | \fi 434 | 435 | %% enumerate 列表环境间距调节 436 | \usepackage{enumitem} 437 | % \setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt} 438 | % \setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt} 439 | % \setdescription{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt} 440 | 441 | %_ 参考文献风格 added by wei.jianwen@gmail.com 442 | \bibliographystyle{GBT7714-2005NLang} 443 | 444 | %_ BITspace 445 | %\newcommand\BITspace{\protect\CTEX@spaceChar\protect\CTEX@spaceChar} 446 | \newcommand{\BITspace}[1][1]{\hspace{#1\ccwd}} 447 | 448 | \def\BIT@getfileinfo#1 #2 #3\relax#4\relax{% 449 | \def\BITfiledate{#1}% 450 | \def\BITfileversion{#2}% 451 | \def\BITfileinfo{#3}}% 452 | \expandafter\ifx\csname ver@bitmaster-xetex.cls\endcsname\relax 453 | \edef\reserved@a{\csname ver@ctextemp_bitmaster-xetex.cls\endcsname} 454 | \else 455 | \edef\reserved@a{\csname ver@bitmaster-xetex.cls\endcsname} 456 | \fi 457 | \expandafter\BIT@getfileinfo\reserved@a\relax? ? \relax\relax 458 | \def\BIT@underline[#1]#2{% 459 | \underline{\hbox to #1{\hfill#2\hfill}}} 460 | \def\BITunderline{\@ifnextchar[\BIT@underline\underline} 461 | 462 | %%%%中文标题页的可用命令 463 | \newcommand\classification[1]{\def\BIT@value@classification{#1}} 464 | \newcommand\studentnumber[1]{\def\BIT@value@studentnumber{#1}} 465 | \newcommand\confidential[1]{\def\BIT@value@confidential{#1}} 466 | \newcommand\UDC[1]{\def\BIT@value@UDC{#1}} 467 | \newcommand\serialnumber[1]{\def\BIT@value@serialnumber{#1}} 468 | \newcommand\school[1]{\def\BIT@value@school{#1}} 469 | \newcommand\degree[1]{\def\BIT@value@degree{#1}} 470 | \renewcommand\title[2][\BIT@value@title]{% 471 | \def\BIT@value@title{#2} 472 | \def\BIT@value@titlemark{\MakeUppercase{#1}}} 473 | 474 | \newcommand\vtitle[1]{\def\BIT@value@vtitle{#1}} 475 | \renewcommand\author[1]{\def\BIT@value@author{#1}} 476 | \newcommand\advisor[1]{\def\BIT@value@advisor{#1}} 477 | \newcommand\advisorinstitute[1]{\def\BIT@value@advisorinstitute{#1}} 478 | \newcommand\major[1]{\def\BIT@value@major{#1}} 479 | \newcommand\submitdate[1]{\def\BIT@value@submitdate{#1}} 480 | \newcommand\defenddate[1]{\def\BIT@value@defenddate{#1}} 481 | \newcommand\institute[1]{\def\BIT@value@institute{#1}} 482 | \newcommand\chairman[1]{\def\BIT@value@chairman{#1}} 483 | 484 | 485 | %% 第一页和第二页 486 | %_ “绘制”BIT中文标题页 487 | \renewcommand\maketitle[1]{% 488 | \cleardoublepage 489 | \thispagestyle{empty} 490 | \begin{center} 491 | \vspace*{60mm} 492 | {\heiti\zihao{-2} \BIT@value@title} 493 | \vskip 40mm 494 | {\heiti \zihao{-2} \BIT@value@author} 495 | \vskip 4mm 496 | {\songti \zihao{4} \BIT@value@defenddate} 497 | \end{center} 498 | \clearpage 499 | \if@twoside 500 | \thispagestyle{empty} 501 | \cleardoublepage 502 | \fi 503 | } 504 | 505 | \newcommand\makeInfo[1]% 506 | { 507 | \newpage 508 | \cleardoublepage 509 | \thispagestyle{empty} 510 | 511 | %udc ltz 512 | { 513 | {\heiti \zihao{5} \noindent \BIT@label@classification} \BIT@value@classification \\ 514 | {\heiti \zihao{5} \BIT@label@UDC} \BIT@value@UDC 515 | } 516 | 517 | \begin{center} 518 | 519 | \vskip \stretch{1} 520 | {\heiti\zihao{-2} \BIT@value@title} 521 | \vskip \stretch{1} 522 | 523 | {\fangsong\zihao{4}} 524 | \def\tabcolsep{1pt} 525 | \def\arraystretch{1.5} 526 | 527 | {\heiti\zihao{-3} 528 | \begin{tabular}{l p{3mm} c} 529 | \BIT@label@author & &\BITunderline[180pt]{\BIT@value@author} 530 | \\ 531 | \BIT@label@institute & & \BITunderline[180pt]{\BIT@value@institute} 532 | \\ 533 | \BIT@label@advisor & & \BITunderline[180pt]{\BIT@value@advisor} 534 | \\ 535 | \BIT@label@chairman & & \BITunderline[180pt]{\BIT@value@chairman} 536 | \\ 537 | \BIT@label@degree & & \BITunderline[180pt]{\BIT@value@degree} 538 | \\ 539 | \BIT@label@major & & \BITunderline[180pt]{\BIT@value@major} 540 | \\ 541 | \BIT@label@school & & \BITunderline[180pt]{\BIT@value@school} 542 | \\ 543 | \BIT@label@defenddate & & \BITunderline[180pt]{\BIT@value@defenddate} 544 | \end{tabular}} 545 | 546 | \end{center} 547 | 548 | \vskip \stretch{0.5} 549 | \clearpage 550 | \if@twoside 551 | \thispagestyle{empty} 552 | \cleardoublepage 553 | \fi 554 | } 555 | 556 | 557 | % English Title Page 558 | % 英文标题页可用命令 559 | \newcommand\englishtitle[1]{\def\BIT@value@englishtitle{#1}} 560 | \newcommand\englishauthor[1]{\def\BIT@value@englishauthor{#1}} 561 | \newcommand\englishadvisor[1]{\def\BIT@value@englishadvisor{#1}} 562 | \newcommand\englishschool[1]{\def\BIT@value@englishschool{#1}} 563 | \newcommand\englishinstitute[1]{\def\BIT@value@englishinstitute{#1}} 564 | \newcommand\englishdate[1]{\def\BIT@value@englishdate{#1}} 565 | \newcommand\englishdegree[1]{\def\BIT@value@englishdegree{#1}} 566 | \newcommand\englishmajor[1]{\def\BIT@value@englishmajor{#1}} 567 | \newcommand\englishchairman[1]{\def\BIT@value@englishchairman{#1}} 568 | 569 | % "绘制"英文标题页 570 | \newcommand\makeEnglishInfo[1]{% 571 | \cleardoublepage 572 | \thispagestyle{empty} 573 | 574 | \begin{center} 575 | 576 | 577 | \vspace*{10em} 578 | 579 | {\zihao{-2}\textbf{\BIT@value@englishtitle}} 580 | \bfseries 581 | \vskip \stretch{1} 582 | 583 | {\zihao{-3} 584 | \begin{tabular}{ll} 585 | \BIT@label@englishauthor & \BITunderline[200pt]{\BIT@value@englishauthor} 586 | \\ 587 | \BIT@label@englishinstitute & \BITunderline[200pt]{\BIT@value@englishinstitute} 588 | \\ 589 | \BIT@label@englishadvisor & \BITunderline[200pt]{\BIT@value@englishadvisor} 590 | \\ 591 | \BIT@label@englishchairman & \BITunderline[200pt]{\BIT@value@englishchairman} 592 | \\ 593 | \BIT@label@englishdegree & \BITunderline[200pt]{\BIT@value@englishdegree} 594 | \\ 595 | \BIT@label@englishmajor & \BITunderline[200pt]{\BIT@value@englishmajor} 596 | \\ 597 | \BIT@label@englishschool & \BITunderline[200pt]{\BIT@value@englishschool} 598 | \\ 599 | \BIT@label@englishdate & \BITunderline[200pt]{\BIT@value@englishdate} 600 | \end{tabular}} 601 | 602 | \end{center} 603 | 604 | \vskip \stretch{0.5} 605 | \clearpage 606 | \if@twoside 607 | \thispagestyle{empty} 608 | \cleardoublepage 609 | \fi 610 | } 611 | 612 | %绘制树立排放的论文题目和学校名称 613 | 614 | \newcommand\makeVerticalTitle{ 615 | \cleardoublepage 616 | \thispagestyle{empty} 617 | \vskip 5cm 618 | \begin{center} 619 | \setstretch{1.1} 620 | \begin{minipage}{1em} 621 | {\heiti\zihao{3}\BIT@value@vtitle} 622 | \vskip 2cm 623 | {\heiti\zihao{3}\BIT@value@school} 624 | \end{minipage} 625 | \end{center} 626 | \clearpage 627 | \if@twoside 628 | \thispagestyle{empty} 629 | \cleardoublepage 630 | \fi 631 | 632 | } 633 | 634 | % 原创性声明 635 | \newcommand\makeDeclareOriginal{% 636 | \cleardoublepage 637 | \pdfbookmark[0]{声明}{statement} 638 | \thispagestyle{empty} 639 | \begin{center} 640 | {\bf\zihao{3} \BIT@label@original} 641 | \end{center} 642 | \vskip 10pt 643 | {\zihao{4}\BIT@label@originalcontent} 644 | \vskip 10pt 645 | \hspace{8em}{\zihao{4}\BIT@label@authorsign} \BITunderline[6em]{} \hspace{2em} {\zihao{4}\BIT@label@originalDate} \BITunderline[6em]{} 646 | 647 | \vskip 30mm 648 | 649 | \begin{center} 650 | {\bf\zihao{3} \BIT@label@authorization} 651 | \end{center} 652 | \vskip 10pt 653 | {\zihao{4} \BIT@label@authorizationcontent} 654 | \vskip 40pt 655 | 656 | \hspace{8em}{\zihao{4}\BIT@label@authorsign} \BITunderline[6em]{} \hspace{2em} {\zihao{4}\BIT@label@Supervisorsign} \BITunderline[6em]{} 657 | \vskip 15pt 658 | \hspace{8em}{\zihao{4}\BIT@label@originalDate} \BITunderline[6em]{} \hspace{2em} {\zihao{4}\BIT@label@originalDate} \BITunderline[6em]{} 659 | \clearpage 660 | \if@twoside 661 | \thispagestyle{empty} 662 | \cleardoublepage 663 | \fi 664 | 665 | } 666 | 667 | 668 | %_ 页眉页脚 669 | \pagestyle{fancy} 670 | \fancyhf{} 671 | \fancyhead[C]{\songti \zihao{5} \BIT@label@headschoolname} % 奇数页左页眉 672 | \fancyfoot[C]{\songti \zihao{5} {\thepage}} % 页脚 673 | 674 | 675 | \fancypagestyle{plain}{% 设置开章页页眉页脚风格(只有页码作为页脚) 676 | \fancyhf{}% 677 | \fancyfoot[C]{\songti \zihao{5} \BIT@label@headschoolname} 678 | \fancyfoot[C]{\songti \zihao{5} ~---~{\thepage}~---~} %%首页页脚格式 679 | } 680 | 681 | 682 | %_ 中文摘要 683 | \newenvironment{abstract} 684 | { 685 | \cleardoublepage 686 | \chapter{\BIT@label@abstract} 687 | } 688 | {} 689 | %下一页从偶数页开始 690 | \newcommand\beginatevenpage{ 691 | \clearpage 692 | \if@twoside 693 | \thispagestyle{empty} 694 | \cleardoublepage 695 | \fi 696 | } 697 | %_ 中文关键词 698 | \newcommand\keywords[1]{% 699 | \vspace{2ex}\noindent{\bf \BIT@label@keywords} #1} 700 | 701 | %_ 英文摘要 702 | \newenvironment{englishabstract} 703 | { 704 | \clearpage 705 | \chapter{\BIT@label@englishabstract} 706 | } 707 | {} 708 | 709 | % _英文摘要 710 | \newcommand\englishkeywords[1]{% 711 | \vspace{2ex}\noindent{\bf \BIT@label@englishkeywords} #1} 712 | 713 | 714 | %_ 目录 715 | \renewcommand\tableofcontents{% 716 | \if@twocolumn 717 | \@restonecoltrue\onecolumn 718 | \else 719 | \@restonecolfalse 720 | \fi 721 | \chapter*{\contentsname}%目录里显示“目录”,否则\chapter* 722 | \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% 723 | \pdfbookmark[0]{目录}{bittoc} 724 | \@starttoc{toc}% 725 | \if@restonecol\twocolumn\fi 726 | } 727 | 728 | 729 | %_ 参考文献环境 730 | \renewenvironment{thebibliography}[1] 731 | {\zihao{5} 732 | \chapter*{\bibname} 733 | \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}% 734 | \addcontentsline{toc}{chapter}{参考文献} 735 | \list{\@biblabel{\@arabic\c@enumiv}}% 736 | {\settowidth\labelwidth{\@biblabel{#1}}% 737 | \leftmargin\labelwidth 738 | \advance\leftmargin\labelsep 739 | \setlength{\parsep}{1mm} 740 | \setlength{\labelsep}{0.5em} 741 | \setlength{\itemsep}{0.05pc} 742 | \setlength{\listparindent}{0in} 743 | \setlength{\itemindent}{0in} 744 | \setlength{\rightmargin}{0in} 745 | \@openbib@code 746 | \usecounter{enumiv}% 747 | \let\p@enumiv\@empty 748 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 749 | \sloppy 750 | \clubpenalty4000 751 | \@clubpenalty \clubpenalty 752 | \widowpenalty4000% 753 | \sfcode`\.\@m} 754 | {\def\@noitemerr 755 | {\@latex@warning{Empty `thebibliography' environment}}% 756 | \endlist} 757 | 758 | 759 | \newenvironment{publications}[1] 760 | {\chapter{\BIT@label@publications}% 761 | \@mkboth{\MakeUppercase\BIT@label@publications} 762 | {\MakeUppercase\BIT@label@publications}% 763 | \list{\@biblabel{\@arabic\c@enumiv}}% 764 | {\settowidth\labelwidth{\@biblabel{#1}}% 765 | \leftmargin\labelwidth 766 | \advance\leftmargin\labelsep 767 | \setlength{\parsep}{1mm} 768 | \setlength{\labelsep}{0.5em} 769 | \setlength{\itemsep}{0.05pc} 770 | \setlength{\listparindent}{0in} 771 | \setlength{\itemindent}{0in} 772 | \setlength{\rightmargin}{0in} 773 | \@openbib@code 774 | \usecounter{enumiv}% 775 | \let\p@enumiv\@empty 776 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 777 | \sloppy 778 | \clubpenalty4000 779 | \@clubpenalty \clubpenalty 780 | \widowpenalty4000% 781 | \sfcode`\.\@m} 782 | {\def\@noitemerr 783 | {\@latex@warning{Empty `publications' environment}}% 784 | \endlist} 785 | 786 | 787 | \newenvironment{projects}[1] 788 | {\chapter{\BIT@label@projects}% 789 | \@mkboth{\MakeUppercase\BIT@label@projects} 790 | {\MakeUppercase\BIT@label@projects}% 791 | \list{\@biblabel{\@arabic\c@enumiv}}% 792 | {\settowidth\labelwidth{\@biblabel{#1}}% 793 | \leftmargin\labelwidth 794 | \advance\leftmargin\labelsep 795 | \@openbib@code 796 | \usecounter{enumiv}% 797 | \let\p@enumiv\@empty 798 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 799 | \sloppy 800 | \clubpenalty4000 801 | \@clubpenalty \clubpenalty 802 | \widowpenalty4000% 803 | \sfcode`\.\@m} 804 | {\def\@noitemerr 805 | {\@latex@warning{Empty `projects' environment}}% 806 | \endlist} 807 | 808 | \newenvironment{resume} 809 | {\chapter{\BIT@label@resume}} 810 | {} 811 | 812 | \newenvironment{resumesection}[1] 813 | {{\noindent\normalfont\bfseries #1} 814 | \list{}{\labelwidth\z@ 815 | \leftmargin 2\ccwd} 816 | \item\relax} 817 | {\endlist} 818 | 819 | \newenvironment{resumeli}[1] 820 | {{\noindent\normalfont\bfseries #1} 821 | \list{}{\labelwidth\z@ 822 | \leftmargin 4\ccwd 823 | \itemindent -2\ccwd 824 | \listparindent\itemindent} 825 | \item\relax} 826 | {\endlist} 827 | 828 | \newenvironment{conclusion} 829 | {\chapter*{结论} 830 | \@mkboth{结论}{结论}% 831 | \addcontentsline{toc}{chapter}{结论}} 832 | {} 833 | 834 | \renewenvironment{thanks} 835 | {\chapter{\BIT@label@thanks} 836 | \fangsong 837 | } 838 | {} 839 | 840 | \newenvironment{symbolnote} 841 | {\chapter{\BIT@label@symbolnote} 842 | \fangsong} 843 | {} 844 | 845 | %%%============================术语===================== 846 | \newcommand{\bit@denotation@name}{主要符号对照表} 847 | \newenvironment{denotation}[1][2.5cm]{ 848 | \chapter{\bit@denotation@name} % no tocline 849 | \noindent\begin{list}{}% 850 | {\vskip-30bp\zihao{-4} 851 | \renewcommand\makelabel[1]{##1\hfil} 852 | \setlength{\labelwidth}{#1} % 标签盒子宽度 853 | \setlength{\labelsep}{0.5cm} % 标签与列表文本距离 854 | \setlength{\itemindent}{0cm} % 标签缩进量 855 | \setlength{\leftmargin}{\labelwidth+\labelsep} % 左边界 856 | \setlength{\rightmargin}{0cm} 857 | \setlength{\parsep}{0cm} % 段落间距 858 | \setlength{\itemsep}{0cm} % 标签间距 859 | \setlength{\listparindent}{0cm} % 段落缩进量 860 | \setlength{\topsep}{0pt} % 标签与上文的间距 861 | }}{\end{list}} 862 | %====增加化学、国际单位宏包 863 | \RequirePackage[version=4]{mhchem} 864 | \RequirePackage{siunitx} 865 | \setcounter{secnumdepth}{4} % 章节编号深度 (part 对应 -1) 866 | \setcounter{tocdepth}{2} % 目录深度 (part 对应 -1) 867 | 868 | 869 | \endinput 870 | %% 871 | %% End of file `bitmaster-xetex.cls'. 872 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/BIT-thesis-grd.cls: -------------------------------------------------------------------------------- 1 | %================================================== 2 | %% BIT-thesis-grd.cls for BIT Thesis 3 | %% modified by yang yating 4 | %% version: 1.4 5 | %% last update: Mar 25th, 2018 6 | %%================================================== 7 | 8 | %% math packages -- conflict with xunicode 9 | \RequirePackage{amsmath,amsthm,amsfonts,amssymb,bm,mathrsfs} 10 | % 直立希腊字母字体 11 | \RequirePackage{upgreek} 12 | 13 | \NeedsTeXFormat{LaTeX2e}[2005/12/01] 14 | \ProvidesClass{BIT-thesis-grd} 15 | [2018/03/25 v1.2 BIT-thesis-grd document class] 16 | 17 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} 18 | \newif\ifBIT@master\BIT@masterfalse 19 | \newif\ifBIT@doctor\BIT@doctorfalse 20 | \newif\ifBIT@istwoside\BIT@istwosidefalse 21 | \DeclareOption{twoside}{\BIT@istwosidetrue} 22 | \DeclareOption{master}{\BIT@mastertrue} 23 | \DeclareOption{doctor}{\BIT@doctortrue} 24 | 25 | \ProcessOptions\relax 26 | \ifBIT@istwoside 27 | \LoadClass[zihao=-4,a4paper,twoside,openright,UTF8,space=auto]{ctexbook} 28 | \else 29 | \LoadClass[zihao=-4,a4paper,oneside,openany,UTF8,space=auto]{ctexbook} 30 | \fi 31 | 32 | %% 33 | %% the setup of ctex package 34 | %% 35 | \def\contentsname{目\BITspace 录} 36 | \def\listfigurename{插\BITspace 图} 37 | \def\listtablename{表\BITspace 格} 38 | 39 | %% 40 | %% 封面标题 41 | %% 42 | \def\BIT@label@major{学~~~~科~~~~专~~~~业} 43 | \def\BIT@label@title{论文题目} 44 | \def\BIT@label@author{作~~~~者~~~~姓~~~~名} 45 | \def\BIT@label@classification{中图分类号:} 46 | \def\BIT@label@confidential{密级} 47 | \def\BIT@label@UDC{UDC\!分类号:} 48 | \def\BIT@label@serialnumber{编号} 49 | \def\BIT@label@thesis{学位论文} 50 | \def\BIT@label@advisor{指~~~~导~~~~教~~~~师} 51 | \def\BIT@label@degree{申~~~~请~~~~学~~~~位} 52 | \def\BIT@label@submitdate{论文提交日期} 53 | \def\BIT@label@defenddate{论~文~答~辩~日~期} 54 | \def\BIT@label@institute{学~~~~院~~~~名~~~~称} 55 | \def\BIT@label@school{学~位~授~予~单~位} 56 | \def\BIT@label@chairman{答辩委员会主席} 57 | 58 | %% 59 | %% 封面内容 60 | %% 61 | 62 | \def\BIT@value@classification{} 63 | \def\BIT@value@confidential{} 64 | \def\BIT@value@UDC{} 65 | \def\BIT@value@serialnumber{} 66 | \def\BIT@value@school{} 67 | \def\BIT@value@degree{} 68 | \def\BIT@value@title{~~~~~(论~文~题~目)~~~~~} 69 | \def\BIT@value@vtitle{竖排论文题目} 70 | \def\BIT@value@titlemark{\BIT@value@title} 71 | \def\BIT@value@author{(作~者~姓~名)} 72 | \def\BIT@value@advisor{(姓名、专业技术职务、学位)} 73 | \def\BIT@value@advisorinstitute{(单位)} 74 | \def\BIT@value@major{} 75 | \def\BIT@value@studentnumber{} %_ added by wei.jianwen@gmail.com 76 | \def\BIT@value@submitdate{} 77 | \def\BIT@value@defenddate{} 78 | \def\BIT@value@institute{} 79 | \def\BIT@value@chairman{} 80 | \def\BIT@label@statement{} 81 | 82 | 83 | %% 设置圆圈的格式 或使用\textcircled 84 | \usepackage{tikz} 85 | \usepackage{etoolbox} 86 | \newcommand{\circled}[2][]{\tikz[baseline=(char.base)] 87 | {\node[shape = circle, draw, inner sep = 1pt] 88 | (char) {\phantom{\ifblank{#1}{#2}{#1}}}; 89 | \node at (char.center) {\makebox[0pt][c]{#2}};}} 90 | \robustify{\circled} 91 | 92 | %% 论文原创性声明 93 | \def\BIT@label@original{研究成果声明} 94 | \def\BIT@label@authorization{关于学位论文使用权的说明} 95 | \def\BIT@label@authorsign{作者签名:} 96 | \def\BIT@label@Supervisorsign{导师签名:} 97 | \def\BIT@label@originalDate{签字日期:} 98 | \def\BIT@label@originalcontent{\BITspace\BITspace 本人郑重声明:所提交的学位论文是我本人在指导教师的指导下进行的研究工作获得的研究成果。尽我所知,文中除特别标注和致谢的地方外,学位论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得北京理工大学或其它教育机构的学位或证书所使用过的材料。与我一同工作的合作者对此研究工作所做的任何贡献均已在学位论文中作了明确的说明并表示了谢意。\par 特此申明。} 99 | \def\BIT@label@authorizationcontent{\BITspace\BITspace 本人完全了解北京理工大学有关保管、使用学位论文的规定,其中包括:\circled{1} 学校有权保管、并向有关部门送交学位论文的原件与复印件;\circled{2} 学校可以采用影印、缩印或其它复制手段复制并保存学位论文;\circled{3} 学校可允许学位论文被查阅或借阅;\circled{4} 学校可以学术交流为目的,复制赠送和交换学位论文;\circled{5} 学校可以公布学位论文的全部或部分内容(保密学位论文在解密后遵守此规定)。} 100 | 101 | 102 | %% 103 | %% 英语封面标题 104 | %% 105 | \def\BIT@label@englishadvisor{Supervisor:} 106 | \def\BIT@label@englishstatement{Submitted in total fulfilment 107 | of the requirements for the degree of \BIT@value@englishdegree \\ 108 | in \BIT@value@englishmajor} 109 | \def\BIT@label@englishauthor{Candidate Name:} 110 | \def\BIT@label@englishadvisor{Faculty Mentor:} 111 | \def\BIT@label@englishchairman{Chair, Thesis Committee:} 112 | \def\BIT@label@englishinstitute{School or Department:} 113 | \def\BIT@label@englishdegree{Degree Applied:} 114 | \def\BIT@label@englishmajor{Major:} 115 | \def\BIT@label@englishschool{Degree by:} 116 | \def\BIT@label@englishdate{The Date of Defence:} 117 | 118 | 119 | %% 120 | %% 英语封面内容 121 | %% 122 | \def\BIT@value@englishtitle{(English Title of Thesis)} 123 | \def\BIT@value@englishauthor{(Author Name)} 124 | \def\BIT@value@englishadvisor{(Supervisor Name)} 125 | \def\BIT@value@englishinstitute{(Institute Name)} 126 | \def\BIT@value@englishscholl{(BIT)} 127 | \def\BIT@value@englishchair{(someone)} 128 | \def\BIT@value@englishdate{} 129 | \def\BIT@value@englishdegree{} 130 | \def\BIT@value@englishmajor{} 131 | 132 | 133 | 134 | \def\BIT@label@abstract{摘要} 135 | \def\BIT@label@englishabstract{Abstract} 136 | \def\BIT@label@keywords{关键词:} 137 | \def\BIT@label@englishkeywords{Key Words:~} 138 | \def\BIT@label@conclusion{结论} 139 | \def\BIT@label@appendix{附录} 140 | \def\BIT@label@publications{攻读学位期间发表论文与研究成果清单} 141 | \def\BIT@label@projects{攻读学位期间参与的项目} 142 | \def\BIT@label@resume{作者简介} 143 | \def\BIT@label@reference{参考文献!!!!} 144 | \def\BIT@label@thanks{致谢} 145 | \def\BIT@value@templateversion{v1.2} 146 | %% 147 | %% label in the head 页眉页脚 148 | %% 149 | \def\BIT@label@headschoolname{北京理工大学硕士学位论文} 150 | 151 | %% 当前模板的版本 152 | \newcommand{\version}{\BIT@value@templateversion} 153 | 154 | %%==============引用geometry 宏包设置纸张和页面======================== 155 | %设置版面:上3.5cm,下2.5cm,左2.7cm,右2.7cm,页眉2.5cm,页脚1.8cm,装订线0cm 156 | \usepackage[% 157 | paper=a4paper,% 158 | top=3.5cm,% 上 3.5cm % 159 | bottom=2.5cm,% 下 2.5cm % 160 | left=2.7cm,% 左 2.7cm % 161 | right=2.7cm,% 右 2.7cm % 162 | headheight=1.0cm,% 页眉 2.5cm % 163 | footskip=0.7cm% 页脚 1.8cm % 164 | ]{geometry} % 页面设置 % 165 | %% ========================================================= 166 | 167 | \parskip 0.5ex plus 0.25ex minus 0.25ex 168 | %% Command -- Clear Double Page 169 | \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else 170 | \thispagestyle{empty}% 171 | \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi} 172 | %设置行距,大概为22榜 173 | \RequirePackage{setspace} 174 | \setstretch{1.523} 175 | 176 | %% 设置章节格式, 黑体三号加粗居中,行距22磅,与正文或节标题的间距设定为段后间距1行。章序号与章名间空一格。 177 | \ctexset{chapter={ 178 | name = {第,章}, 179 | number = {\arabic{chapter}}, 180 | format = {\bfseries \sffamily \centering \zihao{3}}, 181 | pagestyle = {BIT@headings}, 182 | beforeskip = 16 bp, 183 | afterskip = 32 bp, 184 | fixskip = true, 185 | } 186 | } 187 | %% 设置一级章节格式 188 | % 黑体四号加粗顶左,行距22磅,与上一节的间距为1行,与下面正文或节标题的段间间距为0.5行。序号与题目间空一格。 189 | 190 | \ctexset{section={ 191 | format={\raggedright \bfseries \sffamily \zihao{4}}, 192 | beforeskip = 28bp plus 1ex minus .2ex, 193 | afterskip = 24bp plus .2ex, 194 | fixskip = true, 195 | } 196 | } 197 | 198 | % 设置二级标题格式 199 | 200 | % 黑体小四加粗顶左,行距22磅,与上一节的间距为1行,与下面正文或节标题的段间间距为0.5行。序号与题目间空一格。 201 | 202 | \ctexset{subsection={ 203 | format = {\bfseries \sffamily \raggedright \zihao{-4}}, 204 | beforeskip =28bp plus 1ex minus .2ex, 205 | afterskip = 24bp plus .2ex, 206 | fixskip = true, 207 | } 208 | } 209 | 210 | 211 | % 设置三节标题格式 212 | 213 | \ctexset{subsubsection={ 214 | format={\heiti \raggedright \zihao{-4}}, 215 | beforeskip=28bp plus 1ex minus .2ex, 216 | afterskip=24bp plus .2ex, 217 | fixskip=true, 218 | } 219 | } 220 | 221 | %% 设定目录格式。目录颜色更改黑色 222 | \addtocontents{toc}{\protect\hypersetup{hidelinks}} 223 | \addtocontents{lot}{\protect\hypersetup{hidelinks}} 224 | \addtocontents{lof}{\protect\hypersetup{hidelinks}} 225 | 226 | \RequirePackage{titletoc} 227 | \titlecontents{chapter}[0pt]{\songti \zihao{4}} 228 | {\bf\thecontentslabel\hspace{\ccwd}}{\bf} 229 | {\hspace{.5em}\titlerule*{.}\contentspage} 230 | \titlecontents{section}[2\ccwd]{\songti \zihao{-4}} 231 | {\thecontentslabel\hspace{\ccwd}}{} 232 | {\hspace{.5em}\titlerule*{.}\contentspage} 233 | \titlecontents{subsection}[4\ccwd]{\songti \zihao{-4}} 234 | {\thecontentslabel\hspace{\ccwd}}{} 235 | {\hspace{.5em}\titlerule*{.}\contentspage} 236 | 237 | \titlecontents{figure}[0pt]{\songti\zihao{-4}} 238 | {\figurename~\thecontentslabel\quad}{\hspace*{-1.5cm}} 239 | {\hspace{.5em}\titlerule*{.}\contentspage} 240 | 241 | \titlecontents{table}[0pt]{\songti\zihao{-4}} 242 | {\tablename~\thecontentslabel\quad}{\hspace*{-1.5cm}} 243 | {\hspace{.5em}\titlerule*{.}\contentspage} 244 | 245 | %% 选择编译 246 | \RequirePackage{ifthen} 247 | 248 | %% check pdfTeX mode 249 | \RequirePackage{ifpdf} 250 | 251 | %% fancyhdr 页眉页脚控制 252 | \RequirePackage{fancyhdr} 253 | 254 | % 空 页眉页脚 255 | \fancypagestyle{BIT@empty}{% 256 | \fancyhf{}} 257 | 258 | %======正文页眉页脚================= 259 | \fancypagestyle{BIT@headings}{% 260 | \fancyhf{} 261 | \fancyfoot[C]{\songti\zihao{5} \thepage} 262 | \fancyhead[C]{\ifBIT@master\zihao{5}{\songti 北京理工大学硕士学位论文} 263 | \else\zihao{5}{\songti 北京理工大学博士学位论文}\fi} 264 | } 265 | 266 | %==================================对于openright 选项,必须保证章页右开,且如果前章末页内容须清空其页眉页脚。=================== 267 | \let\BIT@cleardoublepage\cleardoublepage 268 | \newcommand{\BIT@clearemptydoublepage}{% 269 | \clearpage{\pagestyle{BIT@empty}\BIT@cleardoublepage}} 270 | \let\cleardoublepage\BIT@clearemptydoublepage 271 | 272 | %================修该frontmatter 的页码为大写罗马格式,并调整页面风格=============== 273 | \renewcommand{\frontmatter}{ 274 | \if@openright\cleardoublepage\else\clearpage\fi 275 | \@mainmatterfalse 276 | \pagenumbering{Roman} 277 | \pagestyle{BIT@headings} 278 | } 279 | %=======================修改mainmatter 的页码为阿拉伯格式,并调整页面风格======================== 280 | \renewcommand{\mainmatter}{ 281 | \if@openright\cleardoublepage\else\clearpage\fi 282 | \@mainmattertrue 283 | \pagenumbering{arabic} 284 | \pagestyle{BIT@headings} 285 | } 286 | 287 | 288 | %% 复杂表格 289 | \RequirePackage{threeparttable} 290 | \RequirePackage{dcolumn} 291 | \RequirePackage{multirow} 292 | \RequirePackage{booktabs} 293 | \newcolumntype{d}[1]{D{.}{.}{#1}}% or D{.}{,}{#1} or D{.}{\cdot}{#1} 294 | 295 | 296 | %% 定义几个常用的数学常量符号 297 | \newcommand{\me}{\mathrm{e}} %定义 对数常数e,虚数符号i,j以及微分算子d为直立体。 298 | \newcommand{\mi}{\mathrm{i}} 299 | \newcommand{\mj}{\mathrm{j}} 300 | \newcommand{\dif}{\,\mathrm{d}} 301 | 302 | \theoremstyle{plain} 303 | \newtheorem{algo}{算法~}[chapter] 304 | \newtheorem{thm}{定理~}[chapter] 305 | \newtheorem{lem}[thm]{引理~} 306 | \newtheorem{prop}[thm]{命题~} 307 | \newtheorem{cor}[thm]{推论~} 308 | \theoremstyle{definition} 309 | \newtheorem{defn}{定义~}[chapter] 310 | \newtheorem{conj}{猜想~}[chapter] 311 | \newtheorem{exmp}{例~}[chapter] 312 | \newtheorem{rem}{注~} 313 | \newtheorem{case}{情形~} 314 | \renewcommand{\proofname}{\bf 证明} 315 | 316 | %% 英文字体使用 Times New Roman 317 | \RequirePackage{xltxtra} % \XeTeX Logo 318 | \setmainfont{Times New Roman} 319 | \setsansfont{Arial} 320 | \setmonofont{Courier New} 321 | 322 | 323 | %% graphics packages 324 | \RequirePackage{graphicx} 325 | %% 并列子图 326 | \RequirePackage{subfigure} 327 | 328 | \RequirePackage{wrapfig} 329 | %%===========================设置图表标题选项========================== 330 | \RequirePackage{amsmath} 331 | \RequirePackage{caption} 332 | \DeclareCaptionLabelSeparator{zhspace}{\hspace{1\ccwd}} 333 | \DeclareCaptionFont{fontsize}{\zihao{5}} 334 | \captionsetup{ 335 | font = {fontsize}, 336 | labelsep = zhspace, 337 | } 338 | \captionsetup[table]{ 339 | position = top, 340 | aboveskip = 6bp, 341 | belowskip = 6bp, 342 | } 343 | \numberwithin{table}{chapter} 344 | \captionsetup[figure]{ 345 | position = bottom, 346 | aboveskip = 6bp, 347 | belowskip = 6bp, 348 | } 349 | 350 | %% 如果插入的图片没有指定扩展名,那么依次搜索下面的扩展名所对应的文件 351 | \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,.jpeg} 352 | % ccaption -- bicaption 353 | %\RequirePackage{ccaption} 354 | %\captiondelim{\ } 355 | %\captionnamefont{\songti\zihao{5}} 356 | %\captiontitlefont{\songti\zihao{5}} 357 | 358 | 359 | %% sort and compress citations 360 | \RequirePackage[numbers,square,comma,super,sort&compress]{natbib} 361 | % 上标引用 362 | \newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}} 363 | 364 | 365 | % 将浮动参数设为较宽松的值 366 | \renewcommand{\textfraction}{0.15} 367 | \renewcommand{\topfraction}{0.85} 368 | \renewcommand{\bottomfraction}{0.65} 369 | \renewcommand{\floatpagefraction}{0.60} 370 | 371 | 372 | % 定公式、图、表编号为"3-1"的形式,即分隔符由.变为短杠 373 | \renewcommand\theequation{\arabic{chapter}.\arabic{equation}} 374 | \renewcommand\thefigure{\arabic{chapter}.\arabic{figure}} 375 | \renewcommand\thetable{\arabic{chapter}.\arabic{table}} 376 | 377 | % 颜色宏包 378 | \RequirePackage{xcolor} 379 | 380 | 381 | % 中文破折号 382 | \newcommand{\cndash}{\rule{0.0em}{0pt}\rule[0.35em]{1.4em}{0.05em}\rule{0.2em}{0pt}} 383 | 384 | % listings 源代码显示宏包 385 | \RequirePackage{listings} 386 | \lstset{tabsize=4, % 387 | frame=shadowbox, %把代码用带有阴影的框圈起来 388 | commentstyle=\color{red!50!green!50!blue!50},%浅灰色的注释 389 | rulesepcolor=\color{red!20!green!20!blue!20},%代码块边框为淡青色 390 | keywordstyle=\color{blue!90}\bfseries, %代码关键字的颜色为蓝色,粗体 391 | showstringspaces=false,%不显示代码字符串中间的空格标记 392 | stringstyle=\ttfamily, % 代码字符串的特殊格式 393 | keepspaces=true, % 394 | breakindent=22pt, % 395 | numbers=left,%左侧显示行号 396 | stepnumber=1,% 397 | numberstyle=\tiny, %行号字体用小号 398 | basicstyle=\footnotesize, % 399 | showspaces=false, % 400 | flexiblecolumns=true, % 401 | breaklines=true, %对过长的代码自动换行 402 | breakautoindent=true,% 403 | breakindent=4em, % 404 | aboveskip=1em, %代码块边框 405 | %% added by http://bbs.ctex.org/viewthread.php?tid=53451 406 | fontadjust, 407 | captionpos=t, 408 | framextopmargin=2pt,framexbottommargin=2pt,abovecaptionskip=-3pt,belowcaptionskip=3pt, 409 | xleftmargin=4em,xrightmargin=4em, % 设定listing左右的空白 410 | texcl=true, 411 | % 设定中文冲突,断行,列模式,数学环境输入,listing数字的样式 412 | extendedchars=false,columns=flexible,mathescape=true 413 | numbersep=-1em 414 | } 415 | \renewcommand{\lstlistingname}{代码} %% 重命名Listings标题头 416 | 417 | 418 | %% hyperref package 419 | \definecolor{navyblue}{RGB}{0,0,128} 420 | \RequirePackage{hyperref} 421 | \hypersetup{ 422 | bookmarksnumbered,% 423 | linktoc=all, 424 | colorlinks=true, 425 | citecolor=navyblue, 426 | filecolor=cyan, 427 | linkcolor=navyblue, 428 | linkbordercolor=navyblue, 429 | urlcolor=navyblue, 430 | plainpages=false,% 431 | pdfstartview=FitH 432 | } 433 | 434 | %% enumerate 列表环境间距调节 435 | \usepackage{enumitem} 436 | % \setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt} 437 | % \setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt} 438 | % \setdescription{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt} 439 | 440 | %_ 参考文献风格 added by wei.jianwen@gmail.com 441 | \bibliographystyle{GBT7714-2005NLang} 442 | 443 | %_ BITspace 444 | %\newcommand\BITspace{\protect\CTEX@spaceChar\protect\CTEX@spaceChar} 445 | \newcommand{\BITspace}[1][1]{\hspace{#1\ccwd}} 446 | 447 | \def\BIT@getfileinfo#1 #2 #3\relax#4\relax{% 448 | \def\BITfiledate{#1}% 449 | \def\BITfileversion{#2}% 450 | \def\BITfileinfo{#3}}% 451 | \expandafter\ifx\csname ver@bitmaster-xetex.cls\endcsname\relax 452 | \edef\reserved@a{\csname ver@ctextemp_bitmaster-xetex.cls\endcsname} 453 | \else 454 | \edef\reserved@a{\csname ver@bitmaster-xetex.cls\endcsname} 455 | \fi 456 | \expandafter\BIT@getfileinfo\reserved@a\relax? ? \relax\relax 457 | \def\BIT@underline[#1]#2{% 458 | \underline{\hbox to #1{\hfill#2\hfill}}} 459 | \def\BITunderline{\@ifnextchar[\BIT@underline\underline} 460 | 461 | %%%%中文标题页的可用命令 462 | \newcommand\classification[1]{\def\BIT@value@classification{#1}} 463 | \newcommand\studentnumber[1]{\def\BIT@value@studentnumber{#1}} 464 | \newcommand\confidential[1]{\def\BIT@value@confidential{#1}} 465 | \newcommand\UDC[1]{\def\BIT@value@UDC{#1}} 466 | \newcommand\serialnumber[1]{\def\BIT@value@serialnumber{#1}} 467 | \newcommand\school[1]{\def\BIT@value@school{#1}} 468 | \newcommand\degree[1]{\def\BIT@value@degree{#1}} 469 | \renewcommand\title[2][\BIT@value@title]{% 470 | \def\BIT@value@title{#2} 471 | \def\BIT@value@titlemark{\MakeUppercase{#1}}} 472 | 473 | \newcommand\vtitle[1]{\def\BIT@value@vtitle{#1}} 474 | \renewcommand\author[1]{\def\BIT@value@author{#1}} 475 | \newcommand\advisor[1]{\def\BIT@value@advisor{#1}} 476 | \newcommand\advisorinstitute[1]{\def\BIT@value@advisorinstitute{#1}} 477 | \newcommand\major[1]{\def\BIT@value@major{#1}} 478 | \newcommand\submitdate[1]{\def\BIT@value@submitdate{#1}} 479 | \newcommand\defenddate[1]{\def\BIT@value@defenddate{#1}} 480 | \newcommand\institute[1]{\def\BIT@value@institute{#1}} 481 | \newcommand\chairman[1]{\def\BIT@value@chairman{#1}} 482 | 483 | 484 | %% 第一页和第二页 485 | %_ “绘制”BIT中文标题页 486 | \renewcommand\maketitle[1]{% 487 | \cleardoublepage 488 | \thispagestyle{empty} 489 | \begin{center} 490 | \vspace*{60mm} 491 | {\heiti\zihao{-2} \BIT@value@title} 492 | \vskip 40mm 493 | {\heiti \zihao{-3} \BIT@value@author} %黑体 小三 494 | \vskip 4mm 495 | {\heiti \zihao{-3} \BIT@value@defenddate} %黑体 小三 496 | \end{center} 497 | \clearpage 498 | \if@twoside 499 | \thispagestyle{empty} 500 | \cleardoublepage 501 | \fi 502 | } 503 | 504 | \newcommand\makeInfo[1]% 505 | { 506 | \newpage 507 | \cleardoublepage 508 | \thispagestyle{empty} 509 | 510 | %udc ltz 511 | { % 512 | {\heiti \zihao{5} \noindent \BIT@label@classification} \BIT@value@classification \\ 513 | {\heiti \zihao{5} \BIT@label@UDC} \BIT@value@UDC 514 | } 515 | 516 | \begin{center} 517 | 518 | \vskip \stretch{1} 519 | {\heiti\zihao{-2} \BIT@value@title} 520 | \vskip \stretch{1} 521 | 522 | {\fangsong\zihao{4}} 523 | \def\tabcolsep{1pt} 524 | \def\arraystretch{1.5} 525 | 526 | %黑体 小三 527 | {\heiti\zihao{-3} 528 | \begin{tabular}{l p{3mm} c} 529 | \BIT@label@author & &\BITunderline[180pt]{\BIT@value@author} 530 | \\ 531 | \BIT@label@institute & & \BITunderline[180pt]{\BIT@value@institute} 532 | \\ 533 | \BIT@label@advisor & & \BITunderline[180pt]{\BIT@value@advisor} 534 | \\ 535 | \BIT@label@chairman & & \BITunderline[180pt]{\BIT@value@chairman} 536 | \\ 537 | \BIT@label@degree & & \BITunderline[180pt]{\BIT@value@degree} 538 | \\ 539 | \BIT@label@major & & \BITunderline[180pt]{\BIT@value@major} 540 | \\ 541 | \BIT@label@school & & \BITunderline[180pt]{\BIT@value@school} 542 | \\ 543 | \BIT@label@defenddate & & \BITunderline[180pt]{\BIT@value@defenddate} 544 | \end{tabular}} 545 | 546 | \end{center} 547 | 548 | \vskip \stretch{0.5} 549 | \clearpage 550 | \if@twoside 551 | \thispagestyle{empty} 552 | \cleardoublepage 553 | \fi 554 | } 555 | 556 | 557 | % English Title Page 558 | % 英文标题页可用命令 559 | \newcommand\englishtitle[1]{\def\BIT@value@englishtitle{#1}} 560 | \newcommand\englishauthor[1]{\def\BIT@value@englishauthor{#1}} 561 | \newcommand\englishadvisor[1]{\def\BIT@value@englishadvisor{#1}} 562 | \newcommand\englishschool[1]{\def\BIT@value@englishschool{#1}} 563 | \newcommand\englishinstitute[1]{\def\BIT@value@englishinstitute{#1}} 564 | \newcommand\englishdate[1]{\def\BIT@value@englishdate{#1}} 565 | \newcommand\englishdegree[1]{\def\BIT@value@englishdegree{#1}} 566 | \newcommand\englishmajor[1]{\def\BIT@value@englishmajor{#1}} 567 | \newcommand\englishchairman[1]{\def\BIT@value@englishchairman{#1}} 568 | 569 | % "绘制"英文标题页 570 | \newcommand\makeEnglishInfo[1]{% 571 | \cleardoublepage 572 | \thispagestyle{empty} 573 | 574 | \begin{center} 575 | 576 | 577 | \vspace*{10em} 578 | %论文题目 Times New Roman 小二 加粗 579 | {\zihao{-2}\textbf{\BIT@value@englishtitle}} 580 | %\bfseries 581 | \vskip \stretch{1} 582 | 583 | % Times New Roman 小三 584 | {\zihao{-3} 585 | \begin{tabular}{ll} 586 | \BIT@label@englishauthor & \BITunderline[200pt]{\BIT@value@englishauthor} 587 | \\ 588 | \BIT@label@englishinstitute & \BITunderline[200pt]{\BIT@value@englishinstitute} 589 | \\ 590 | \BIT@label@englishadvisor & \BITunderline[200pt]{\BIT@value@englishadvisor} 591 | \\ 592 | \BIT@label@englishchairman & \BITunderline[200pt]{\BIT@value@englishchairman} 593 | \\ 594 | \BIT@label@englishdegree & \BITunderline[200pt]{\BIT@value@englishdegree} 595 | \\ 596 | \BIT@label@englishmajor & \BITunderline[200pt]{\BIT@value@englishmajor} 597 | \\ 598 | \BIT@label@englishschool & \BITunderline[200pt]{\BIT@value@englishschool} 599 | \\ 600 | \BIT@label@englishdate & \BITunderline[200pt]{\BIT@value@englishdate} 601 | \end{tabular}} 602 | 603 | \end{center} 604 | 605 | \vskip \stretch{0.5} 606 | \clearpage 607 | \if@twoside 608 | \thispagestyle{empty} 609 | \cleardoublepage 610 | \fi 611 | } 612 | 613 | %绘制树立排放的论文题目和学校名称 614 | 615 | \newcommand\makeVerticalTitle{ 616 | \cleardoublepage 617 | \thispagestyle{empty} 618 | \vskip 5cm 619 | \begin{center} 620 | \setstretch{1.1} 621 | \begin{minipage}{1em} 622 | {\heiti\zihao{3}\BIT@value@vtitle} 623 | \vskip 2cm 624 | {\heiti\zihao{3}\BIT@value@school} 625 | \end{minipage} 626 | \end{center} 627 | \clearpage 628 | \if@twoside 629 | \thispagestyle{empty} 630 | \cleardoublepage 631 | \fi 632 | 633 | } 634 | 635 | % 原创性声明 636 | \newcommand\makeDeclareOriginal{% 637 | \cleardoublepage 638 | \pdfbookmark[0]{声明}{statement} 639 | \thispagestyle{empty} 640 | \begin{center} 641 | {\bf\zihao{3} \BIT@label@original} 642 | \end{center} 643 | \vskip 10pt 644 | {\zihao{4}\BIT@label@originalcontent} 645 | \vskip 10pt 646 | \hspace{8em}{\zihao{4}\BIT@label@authorsign} \BITunderline[6em]{} \hspace{2em} {\zihao{4}\BIT@label@originalDate} \BITunderline[6em]{} 647 | 648 | \vskip 30mm 649 | 650 | \begin{center} 651 | {\bf\zihao{3} \BIT@label@authorization} 652 | \end{center} 653 | \vskip 10pt 654 | {\zihao{4} \BIT@label@authorizationcontent} 655 | \vskip 40pt 656 | 657 | \hspace{8em}{\zihao{4}\BIT@label@authorsign} \BITunderline[6em]{} \hspace{2em} {\zihao{4}\BIT@label@Supervisorsign} \BITunderline[6em]{} 658 | \vskip 15pt 659 | \hspace{8em}{\zihao{4}\BIT@label@originalDate} \BITunderline[6em]{} \hspace{2em} {\zihao{4}\BIT@label@originalDate} \BITunderline[6em]{} 660 | \clearpage 661 | \if@twoside 662 | \thispagestyle{empty} 663 | \cleardoublepage 664 | \fi 665 | 666 | } 667 | 668 | 669 | % 页眉页脚 670 | \pagestyle{fancy} 671 | \fancyhf{} 672 | \fancyhead[C]{\songti \zihao{5} \BIT@label@headschoolname} % 奇数页左页眉 673 | \fancyfoot[C]{\songti \zihao{5} {\thepage}} % 页脚 674 | 675 | 676 | \fancypagestyle{plain}{% 设置开章页页眉页脚风格(只有页码作为页脚) 677 | \fancyhf{}% 678 | \fancyfoot[C]{\songti \zihao{5} \BIT@label@headschoolname} 679 | \fancyfoot[C]{\songti \zihao{5} ~---~{\thepage}~---~} %%首页页脚格式 680 | } 681 | 682 | 683 | % 中文摘要 684 | \newenvironment{abstract} 685 | { 686 | \cleardoublepage 687 | \chapter{\BIT@label@abstract} 688 | } 689 | {} 690 | %下一页从偶数页开始 691 | \newcommand\beginatevenpage{ 692 | \clearpage 693 | \if@twoside 694 | \thispagestyle{empty} 695 | \cleardoublepage 696 | \fi 697 | } 698 | % 中文关键词 699 | \newcommand\keywords[1]{% 700 | \vspace{2ex}\noindent{\bf \BIT@label@keywords} #1} 701 | 702 | % 英文摘要 703 | \newenvironment{englishabstract} 704 | { 705 | \clearpage 706 | \chapter{\BIT@label@englishabstract} 707 | } 708 | {} 709 | 710 | % 英文摘要 711 | \newcommand\englishkeywords[1]{% 712 | \vspace{2ex}\noindent{\bf \BIT@label@englishkeywords} #1} 713 | 714 | 715 | %_ 目录 716 | \renewcommand\tableofcontents{% 717 | \if@twocolumn 718 | \@restonecoltrue\onecolumn 719 | \else 720 | \@restonecolfalse 721 | \fi 722 | \chapter*{\contentsname}%目录里显示“目录”,否则\chapter* 723 | \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% 724 | \pdfbookmark[0]{目录}{bittoc} 725 | \@starttoc{toc}% 726 | \if@restonecol\twocolumn\fi 727 | } 728 | 729 | 730 | %_ 参考文献环境 731 | \renewenvironment{thebibliography}[1] 732 | {\zihao{5} 733 | \chapter*{\bibname} 734 | \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}% 735 | \addcontentsline{toc}{chapter}{参考文献} 736 | \list{\@biblabel{\@arabic\c@enumiv}}% 737 | {\settowidth\labelwidth{\@biblabel{#1}}% 738 | \leftmargin\labelwidth 739 | \advance\leftmargin\labelsep 740 | \setlength{\parsep}{1mm} 741 | \setlength{\labelsep}{0.5em} 742 | \setlength{\itemsep}{0.05pc} 743 | \setlength{\listparindent}{0in} 744 | \setlength{\itemindent}{0in} 745 | \setlength{\rightmargin}{0in} 746 | \@openbib@code 747 | \usecounter{enumiv}% 748 | \let\p@enumiv\@empty 749 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 750 | \sloppy 751 | \clubpenalty4000 752 | \@clubpenalty \clubpenalty 753 | \widowpenalty4000% 754 | \sfcode`\.\@m} 755 | {\def\@noitemerr 756 | {\@latex@warning{Empty `thebibliography' environment}}% 757 | \endlist} 758 | 759 | 760 | \newenvironment{publications}[1] 761 | {\chapter{\BIT@label@publications}% 762 | \@mkboth{\MakeUppercase\BIT@label@publications} 763 | {\MakeUppercase\BIT@label@publications}% 764 | \list{\@biblabel{\@arabic\c@enumiv}}% 765 | {\settowidth\labelwidth{\@biblabel{#1}}% 766 | \leftmargin\labelwidth 767 | \advance\leftmargin\labelsep 768 | \setlength{\parsep}{1mm} 769 | \setlength{\labelsep}{0.5em} 770 | \setlength{\itemsep}{0.05pc} 771 | \setlength{\listparindent}{0in} 772 | \setlength{\itemindent}{0in} 773 | \setlength{\rightmargin}{0in} 774 | \@openbib@code 775 | \usecounter{enumiv}% 776 | \let\p@enumiv\@empty 777 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 778 | \sloppy 779 | \clubpenalty4000 780 | \@clubpenalty \clubpenalty 781 | \widowpenalty4000% 782 | \sfcode`\.\@m} 783 | {\def\@noitemerr 784 | {\@latex@warning{Empty `publications' environment}}% 785 | \endlist} 786 | 787 | 788 | \newenvironment{projects}[1] 789 | {\chapter{\BIT@label@projects}% 790 | \@mkboth{\MakeUppercase\BIT@label@projects} 791 | {\MakeUppercase\BIT@label@projects}% 792 | \list{\@biblabel{\@arabic\c@enumiv}}% 793 | {\settowidth\labelwidth{\@biblabel{#1}}% 794 | \leftmargin\labelwidth 795 | \advance\leftmargin\labelsep 796 | \@openbib@code 797 | \usecounter{enumiv}% 798 | \let\p@enumiv\@empty 799 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 800 | \sloppy 801 | \clubpenalty4000 802 | \@clubpenalty \clubpenalty 803 | \widowpenalty4000% 804 | \sfcode`\.\@m} 805 | {\def\@noitemerr 806 | {\@latex@warning{Empty `projects' environment}}% 807 | \endlist} 808 | 809 | \newenvironment{resume} 810 | {\chapter{\BIT@label@resume}} 811 | {} 812 | 813 | \newenvironment{resumesection}[1] 814 | {{\noindent\normalfont\bfseries #1} 815 | \list{}{\labelwidth\z@ 816 | \leftmargin 2\ccwd} 817 | \item\relax} 818 | {\endlist} 819 | 820 | \newenvironment{resumeli}[1] 821 | {{\noindent\normalfont\bfseries #1} 822 | \list{}{\labelwidth\z@ 823 | \leftmargin 4\ccwd 824 | \itemindent -2\ccwd 825 | \listparindent\itemindent} 826 | \item\relax} 827 | {\endlist} 828 | 829 | \newenvironment{conclusion} 830 | {\chapter*{结论} 831 | \@mkboth{结论}{结论}% 832 | \addcontentsline{toc}{chapter}{结论}} 833 | {} 834 | 835 | \renewenvironment{thanks} 836 | {\chapter{\BIT@label@thanks} 837 | \fangsong 838 | } 839 | {} 840 | 841 | \newenvironment{symbolnote} 842 | {\chapter{\BIT@label@symbolnote} 843 | \fangsong} 844 | {} 845 | 846 | %%%============================术语===================== 847 | \newcommand{\bit@denotation@name}{主要符号对照表} 848 | \newenvironment{denotation}[1][2.5cm]{ 849 | \chapter{\bit@denotation@name} % no tocline 850 | \noindent\begin{list}{}% 851 | {\vskip-30bp\zihao{-4} 852 | \renewcommand\makelabel[1]{##1\hfil} 853 | \setlength{\labelwidth}{#1} % 标签盒子宽度 854 | \setlength{\labelsep}{0.5cm} % 标签与列表文本距离 855 | \setlength{\itemindent}{0cm} % 标签缩进量 856 | \setlength{\leftmargin}{\labelwidth+\labelsep} % 左边界 857 | \setlength{\rightmargin}{0cm} 858 | \setlength{\parsep}{0cm} % 段落间距 859 | \setlength{\itemsep}{0cm} % 标签间距 860 | \setlength{\listparindent}{0cm} % 段落缩进量 861 | \setlength{\topsep}{0pt} % 标签与上文的间距 862 | }}{\end{list}} 863 | %====增加化学、国际单位宏包 864 | \RequirePackage[version=4]{mhchem} 865 | \RequirePackage{siunitx} 866 | \setcounter{secnumdepth}{4} % 章节编号深度 (part 对应 -1) 867 | \setcounter{tocdepth}{2} % 目录深度 (part 对应 -1) 868 | 869 | 870 | \endinput 871 | %% 872 | %% End of file `bitmaster-xetex.cls'. 873 | -------------------------------------------------------------------------------- /BIT-thesis-template-grd/GBT7714-2005NLang.bst: -------------------------------------------------------------------------------- 1 | %% 2 | %% This is file `gbt-7714-2015-numerical.bst', 3 | %% generated with the docstrip utility. 4 | %% 5 | %% The original source files were: 6 | %% 7 | %% gbt-7714-2015.dtx (with options: `numerical') 8 | %% 9 | %% Copyright (C) 2016-2017 by Zeping Lee 10 | %% 11 | %% This file may be distributed and/or modified under the 12 | %% conditions of the LaTeX Project Public License, either 13 | %% version 1.2 of this license or (at your option) any later 14 | %% version. The latest version of this license is in: 15 | %% 16 | %% http://www.latex-project.org/lppl.txt 17 | %% 18 | %% and version 1.2 or later is part of all distributions of 19 | %% LaTeX version 1999/12/01 or later. 20 | %% 21 | %% This BibTeX style file is derived from `plainnat.bst' by Patrick W Daly, 22 | %% which was designed for use with the `natbib.sty' package. 23 | %% 24 | ENTRY 25 | { address 26 | author 27 | booktitle 28 | chapter 29 | date 30 | doi 31 | eid 32 | edition 33 | editor 34 | howpublished 35 | institution 36 | isbn 37 | issn 38 | journal 39 | key 40 | language 41 | mark 42 | media 43 | month 44 | note 45 | number 46 | organization 47 | pages 48 | publisher 49 | school 50 | series 51 | title 52 | translator 53 | type 54 | url 55 | urldate 56 | volume 57 | year 58 | } 59 | { lang } 60 | { mark_ label extra.label sort.label short.list } 61 | 62 | INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } 63 | 64 | INTEGERS { lang.zh lang.ja lang.en lang.ru lang.default } 65 | 66 | INTEGERS { charptr stringlength } 67 | 68 | FUNCTION {init.state.consts} 69 | { #0 'before.all := 70 | #1 'mid.sentence := 71 | #2 'after.sentence := 72 | #3 'after.block := 73 | #4 'after.slash := 74 | #4 'lang.zh := 75 | #5 'lang.ja := 76 | #1 'lang.en := 77 | #3 'lang.ru := 78 | #0 'lang.default := 79 | } 80 | 81 | STRINGS { s t } 82 | 83 | FUNCTION {debug} 84 | { 's := 85 | duplicate$ 86 | "DEBUG: " s * " -> `" * 87 | swap$ * "'" * 88 | top$ 89 | } 90 | 91 | FUNCTION {debug.int} 92 | { 's := 93 | duplicate$ int.to.str$ 94 | "DEBUG: " s * " == " * 95 | swap$ * 96 | top$ 97 | } 98 | 99 | FUNCTION {punct.colon} 100 | { ": " 101 | } 102 | 103 | FUNCTION {punct.slash} 104 | { "//\allowbreak{}" 105 | } 106 | 107 | FUNCTION {punct.space} 108 | { " " 109 | } 110 | 111 | FUNCTION {output.nonnull} 112 | { 's := 113 | output.state mid.sentence = 114 | { ", " * write$ } 115 | { output.state after.block = 116 | { add.period$ write$ 117 | newline$ 118 | "\newblock " write$ 119 | } 120 | { output.state before.all = 121 | 'write$ 122 | { output.state after.slash = 123 | { punct.slash * write$ } 124 | { add.period$ " " * write$ } 125 | if$ 126 | } 127 | if$ 128 | } 129 | if$ 130 | mid.sentence 'output.state := 131 | } 132 | if$ 133 | s 134 | } 135 | 136 | FUNCTION {output} 137 | { duplicate$ empty$ 138 | 'pop$ 139 | 'output.nonnull 140 | if$ 141 | } 142 | 143 | FUNCTION {output.after} 144 | { 't := 145 | duplicate$ empty$ 146 | 'pop$ 147 | { 's := 148 | output.state mid.sentence = 149 | { t * write$ } 150 | { output.state after.block = 151 | { add.period$ write$ 152 | newline$ 153 | "\newblock " write$ 154 | } 155 | { output.state before.all = 156 | 'write$ 157 | { output.state after.slash = 158 | { punct.slash * write$ } 159 | { add.period$ " " * write$ } 160 | if$ 161 | } 162 | if$ 163 | } 164 | if$ 165 | mid.sentence 'output.state := 166 | } 167 | if$ 168 | s 169 | } 170 | if$ 171 | } 172 | 173 | FUNCTION {output.check} 174 | { 't := 175 | duplicate$ empty$ 176 | { pop$ "empty " t * " in " * cite$ * warning$ } 177 | 'output.nonnull 178 | if$ 179 | } 180 | 181 | FUNCTION {fin.entry} 182 | { add.period$ 183 | write$ 184 | newline$ 185 | } 186 | 187 | FUNCTION {new.block} 188 | { output.state before.all = 189 | 'skip$ 190 | { output.state after.slash = 191 | 'skip$ 192 | { after.block 'output.state := } 193 | if$ 194 | } 195 | if$ 196 | } 197 | 198 | FUNCTION {new.sentence} 199 | { output.state after.block = 200 | 'skip$ 201 | { output.state before.all = 202 | 'skip$ 203 | { output.state after.slash = 204 | 'skip$ 205 | { after.sentence 'output.state := } 206 | if$ 207 | } 208 | if$ 209 | } 210 | if$ 211 | } 212 | 213 | FUNCTION {new.slash} 214 | { output.state before.all = 215 | 'skip$ 216 | { after.slash 'output.state := } 217 | if$ 218 | } 219 | 220 | FUNCTION {not} 221 | { { #0 } 222 | { #1 } 223 | if$ 224 | } 225 | 226 | FUNCTION {and} 227 | { 'skip$ 228 | { pop$ #0 } 229 | if$ 230 | } 231 | 232 | FUNCTION {or} 233 | { { pop$ #1 } 234 | 'skip$ 235 | if$ 236 | } 237 | 238 | FUNCTION {new.block.checka} 239 | { empty$ 240 | 'skip$ 241 | 'new.block 242 | if$ 243 | } 244 | 245 | FUNCTION {new.block.checkb} 246 | { empty$ 247 | swap$ empty$ 248 | and 249 | 'skip$ 250 | 'new.block 251 | if$ 252 | } 253 | 254 | FUNCTION {new.sentence.checka} 255 | { empty$ 256 | 'skip$ 257 | 'new.sentence 258 | if$ 259 | } 260 | 261 | FUNCTION {new.sentence.checkb} 262 | { empty$ 263 | swap$ empty$ 264 | and 265 | 'skip$ 266 | 'new.sentence 267 | if$ 268 | } 269 | 270 | FUNCTION {field.or.null} 271 | { duplicate$ empty$ 272 | { pop$ "" } 273 | 'skip$ 274 | if$ 275 | } 276 | 277 | FUNCTION {emphasize} 278 | { duplicate$ empty$ 279 | { pop$ "" } 280 | { "\emph{" swap$ * "}" * } 281 | if$ 282 | } 283 | 284 | FUNCTION {is.in.chinese} 285 | { lang lang.zh = 286 | } 287 | 288 | FUNCTION {format.et.al} 289 | { is.in.chinese 290 | { "等"} 291 | { "et~al." } 292 | if$ 293 | } 294 | 295 | FUNCTION {format.anonymous} 296 | { is.in.chinese 297 | { "佚名" } 298 | { "Anon" } 299 | if$ 300 | } 301 | 302 | INTEGERS { nameptr namesleft numnames } 303 | 304 | FUNCTION {format.names} 305 | { 's := 306 | #1 'nameptr := 307 | s num.names$ 'numnames := 308 | numnames 'namesleft := 309 | { namesleft #0 > nameptr #4 < and } 310 | { s nameptr "{vv~}{ll}{ f{ }}{ jj}" format.name$ 't := 311 | nameptr #1 > 312 | { namesleft #1 > 313 | { ", " * t * } 314 | { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ "others" = 315 | { ", " * format.et.al * } 316 | { ", " * t * } 317 | if$ 318 | } 319 | if$ 320 | nameptr #3 = namesleft #1 > and 321 | { ", " * format.et.al * } 322 | 'skip$ 323 | if$ 324 | } 325 | 't 326 | if$ 327 | nameptr #1 + 'nameptr := 328 | namesleft #1 - 'namesleft := 329 | } 330 | while$ 331 | } 332 | 333 | FUNCTION {format.key} 334 | { empty$ 335 | { key field.or.null } 336 | { "" } 337 | if$ 338 | } 339 | 340 | FUNCTION {format.authors} 341 | { author empty$ 342 | { "" } 343 | { author format.names } 344 | if$ 345 | } 346 | 347 | FUNCTION {format.editors} 348 | { editor empty$ 349 | { "" } 350 | { editor format.names } 351 | if$ 352 | } 353 | 354 | FUNCTION {format.translators} 355 | { translator empty$ 356 | { "" } 357 | { translator format.names 358 | is.in.chinese 359 | { translator num.names$ #3 > 360 | { "译" * } 361 | { ", 译" * } 362 | if$ 363 | } 364 | 'skip$ 365 | if$ 366 | } 367 | if$ 368 | } 369 | 370 | FUNCTION {format.url} 371 | { url empty$ 372 | { "" } 373 | { new.block "\url{" url * "}" * } 374 | if$ 375 | } 376 | 377 | FUNCTION {is.doi.in.url} 378 | { url empty$ 379 | { #0 } 380 | { doi text.length$ 'stringlength := 381 | url text.length$ 'charptr := 382 | { url charptr stringlength substring$ doi = not 383 | charptr #0 > 384 | and 385 | } 386 | { charptr #1 - 'charptr := } 387 | while$ 388 | charptr 389 | } 390 | if$ 391 | } 392 | 393 | FUNCTION {format.doi} 394 | 395 | { "" } 396 | 397 | 398 | FUNCTION {add.link} 399 | { url empty$ not 400 | { "\href{" url * "}{" * swap$ * "}" * } 401 | { doi empty$ not 402 | { "\href{http://dx.doi.org/" doi * "}{" * swap$ * "}" * } 403 | 'skip$ 404 | if$ 405 | } 406 | if$ 407 | } 408 | 409 | FUNCTION {format.title} 410 | { title empty$ 411 | { "" } 412 | { title "t" change.case$ add.link } 413 | if$ 414 | } 415 | 416 | FUNCTION {set.mark} 417 | { mark_ empty$ not 418 | 'pop$ 419 | { mark empty$ not 420 | { pop$ mark 'mark_ := } 421 | { 'mark_ := } 422 | if$ 423 | media empty$ not 424 | { mark_ "/" * media * 'mark_ := } 425 | { url empty$ not 426 | { mark_ "/OL" * 'mark_ := } 427 | 'skip$ 428 | if$ 429 | } 430 | if$ 431 | } 432 | if$ 433 | } 434 | 435 | FUNCTION {format.mark} 436 | { "\allowbreak[" mark_ * "]" * } 437 | 438 | FUNCTION {format.full.names} 439 | {'s := 440 | #1 'nameptr := 441 | s num.names$ 'numnames := 442 | numnames 'namesleft := 443 | { namesleft #0 > } 444 | { s nameptr 445 | "{vv~}{ll}" format.name$ 't := 446 | nameptr #1 > 447 | { 448 | namesleft #1 > 449 | { ", " * t * } 450 | { 451 | numnames #2 > 452 | { "," * } 453 | 'skip$ 454 | if$ 455 | t "others" = 456 | { " et~al." * } 457 | { " and " * t * } 458 | if$ 459 | } 460 | if$ 461 | } 462 | 't 463 | if$ 464 | nameptr #1 + 'nameptr := 465 | namesleft #1 - 'namesleft := 466 | } 467 | while$ 468 | } 469 | 470 | FUNCTION {author.editor.full} 471 | { author empty$ 472 | { editor empty$ 473 | { "" } 474 | { editor format.full.names } 475 | if$ 476 | } 477 | { author format.full.names } 478 | if$ 479 | } 480 | 481 | FUNCTION {author.full} 482 | { author empty$ 483 | { "" } 484 | { author format.full.names } 485 | if$ 486 | } 487 | 488 | FUNCTION {editor.full} 489 | { editor empty$ 490 | { "" } 491 | { editor format.full.names } 492 | if$ 493 | } 494 | 495 | FUNCTION {make.full.names} 496 | { type$ "book" = 497 | type$ "inbook" = 498 | or 499 | 'author.editor.full 500 | { type$ "proceedings" = 501 | 'editor.full 502 | 'author.full 503 | if$ 504 | } 505 | if$ 506 | } 507 | 508 | FUNCTION {output.bibitem} 509 | { newline$ 510 | "\bibitem[" write$ 511 | label write$ 512 | ")" make.full.names duplicate$ short.list = 513 | { pop$ } 514 | { * } 515 | if$ 516 | "]{" * write$ 517 | cite$ write$ 518 | "}" write$ 519 | newline$ 520 | "" 521 | before.all 'output.state := 522 | } 523 | 524 | 525 | FUNCTION {n.dashify} 526 | { 't := 527 | "" 528 | { t empty$ not } 529 | { t #1 #1 substring$ "-" = 530 | { t #1 #2 substring$ "--" = not 531 | { "--" * 532 | t #2 global.max$ substring$ 't := 533 | } 534 | { { t #1 #1 substring$ "-" = } 535 | { "-" * 536 | t #2 global.max$ substring$ 't := 537 | } 538 | while$ 539 | } 540 | if$ 541 | } 542 | { t #1 #1 substring$ * 543 | t #2 global.max$ substring$ 't := 544 | } 545 | if$ 546 | } 547 | while$ 548 | } 549 | 550 | FUNCTION {format.date} 551 | { type$ "patent" = type$ "newspaper" = or 552 | date empty$ not and 553 | { date } 554 | { year duplicate$ empty$ 555 | { "empty year in " cite$ * warning$ 556 | pop$ "" } 557 | 'skip$ 558 | if$ 559 | extra.label * 560 | } 561 | if$ 562 | } 563 | 564 | FUNCTION {extract.before.dash} 565 | { duplicate$ empty$ 566 | { pop$ "" } 567 | { 's := 568 | #1 'charptr := 569 | s text.length$ #1 + 'stringlength := 570 | { charptr stringlength < 571 | s charptr #1 substring$ "-" = not 572 | and 573 | } 574 | { charptr #1 + 'charptr := } 575 | while$ 576 | s #1 charptr #1 - substring$ 577 | } 578 | if$ 579 | } 580 | 581 | FUNCTION {extract.after.dash} 582 | { duplicate$ empty$ 583 | { pop$ "" } 584 | { 's := 585 | #1 'charptr := 586 | s text.length$ #1 + 'stringlength := 587 | { charptr stringlength < 588 | s charptr #1 substring$ "-" = not 589 | and 590 | } 591 | { charptr #1 + 'charptr := } 592 | while$ 593 | { charptr stringlength < 594 | s charptr #1 substring$ "-" = 595 | and 596 | } 597 | { charptr #1 + 'charptr := } 598 | while$ 599 | s charptr global.max$ substring$ 600 | } 601 | if$ 602 | } 603 | 604 | FUNCTION {contains.dash} 605 | { duplicate$ empty$ 606 | { pop$ #0 } 607 | { 's := 608 | { s empty$ not 609 | s #1 #1 substring$ "-" = not 610 | and 611 | } 612 | { s #2 global.max$ substring$ 's := } 613 | while$ 614 | s empty$ not 615 | } 616 | if$ 617 | } 618 | 619 | FUNCTION {format.year} 620 | { year empty$ not 621 | { year } 622 | { date empty$ not 623 | { date extract.before.dash } 624 | { "empty year in " cite$ * warning$ 625 | "" } 626 | if$ 627 | } 628 | if$ 629 | extra.label * 630 | } 631 | 632 | FUNCTION {format.editdate} 633 | { date empty$ not 634 | type$ "newspaper" = not and 635 | url empty$ not doi empty$ not or 636 | and 637 | { "\allowbreak(" date * ")" * } 638 | { "" } 639 | if$ 640 | } 641 | 642 | FUNCTION {format.urldate} 643 | 644 | { "" } 645 | 646 | 647 | FUNCTION {format.btitle} 648 | { title emphasize 649 | } 650 | 651 | FUNCTION {tie.or.space.connect} 652 | { duplicate$ text.length$ #3 < 653 | { "~" } 654 | { " " } 655 | if$ 656 | swap$ * * 657 | } 658 | 659 | FUNCTION {either.or.check} 660 | { empty$ 661 | 'pop$ 662 | { "can't use both " swap$ * " fields in " * cite$ * warning$ } 663 | if$ 664 | } 665 | 666 | FUNCTION {is.digit} 667 | { duplicate$ empty$ 668 | { pop$ #0 } 669 | { chr.to.int$ 670 | duplicate$ "0" chr.to.int$ < 671 | { pop$ #0 } 672 | { "9" chr.to.int$ > 673 | { #0 } 674 | { #1 } 675 | if$ 676 | } 677 | if$ 678 | } 679 | if$ 680 | } 681 | 682 | FUNCTION {is.number} 683 | { 's := 684 | s empty$ 685 | { #0 } 686 | { s text.length$ 'charptr := 687 | { charptr #0 > 688 | s charptr #1 substring$ is.digit 689 | and 690 | } 691 | { charptr #1 - 'charptr := } 692 | while$ 693 | charptr not 694 | } 695 | if$ 696 | } 697 | 698 | FUNCTION {format.volume} 699 | { volume empty$ 700 | { "" } 701 | { volume is.number 702 | { is.in.chinese 703 | { "第" volume * "卷" * } 704 | { "volume" volume tie.or.space.connect } 705 | if$ 706 | } 707 | { volume } 708 | if$ 709 | } 710 | if$ 711 | } 712 | 713 | FUNCTION {format.number} 714 | { number empty$ 715 | { "" } 716 | { number is.number 717 | { is.in.chinese 718 | { "第" number * "册" * } 719 | { "number" number tie.or.space.connect } 720 | if$ 721 | } 722 | { number } 723 | if$ 724 | } 725 | if$ 726 | } 727 | 728 | FUNCTION {format.volume.number} 729 | { volume empty$ not 730 | { format.volume } 731 | { format.number } 732 | if$ 733 | } 734 | 735 | FUNCTION {format.series.vol.num.title} 736 | { format.volume.number 's := 737 | series empty$ not 738 | { series ": " * 739 | s empty$ not 740 | { s * "\quad " * } 741 | 'skip$ 742 | if$ 743 | title * 744 | } 745 | { title 746 | s empty$ not 747 | { ": " * s * } 748 | 'skip$ 749 | if$ 750 | } 751 | if$ 752 | "t" change.case$ add.link 753 | } 754 | 755 | FUNCTION {format.series.vol.num.booktitle} 756 | { format.volume.number 's := 757 | series empty$ not 758 | { series ": " * 759 | s empty$ not 760 | { s * "\quad " * } 761 | 'skip$ 762 | if$ 763 | booktitle * 764 | } 765 | { booktitle 766 | s empty$ not 767 | { ": " * s * } 768 | 'skip$ 769 | if$ 770 | } 771 | if$ 772 | } 773 | 774 | FUNCTION {num.to.ordinal} 775 | { duplicate$ text.length$ 'charptr := 776 | duplicate$ charptr #1 substring$ 's := 777 | s "1" = 778 | { "st" * } 779 | { s "2" = 780 | { "nd" * } 781 | { s "3" = 782 | { "rd" * } 783 | { "th" * } 784 | if$ 785 | } 786 | if$ 787 | } 788 | if$ 789 | } 790 | 791 | FUNCTION {format.edition} 792 | { edition empty$ 793 | { "" } 794 | { edition is.number 795 | { is.in.chinese 796 | { edition "版" * } 797 | { edition num.to.ordinal " ed." * } 798 | if$ 799 | } 800 | { lang lang.en = 801 | { edition "t" change.case$ 's := 802 | s "Revised" = s "Revised edition" = or 803 | { "Rev. ed." } 804 | { s " ed." *} 805 | if$ 806 | } 807 | { edition } 808 | if$ 809 | } 810 | if$ 811 | } 812 | if$ 813 | } 814 | 815 | FUNCTION {format.sine.loco} 816 | { is.in.chinese 817 | { "[出版地不详]" } 818 | { "[S.l.]" } 819 | if$ 820 | } 821 | 822 | FUNCTION {format.address} 823 | { address } 824 | 825 | FUNCTION {format.sine.nomine} 826 | { is.in.chinese 827 | { "[出版地不详]" } 828 | { "[s.n.]" } 829 | if$ 830 | } 831 | 832 | FUNCTION {format.publisher} 833 | { publisher empty$ not 834 | { publisher } 835 | { school empty$ not 836 | { school } 837 | { organization empty$ not 838 | { organization } 839 | { institution empty$ not 840 | { institution } 841 | { "" } 842 | if$ 843 | } 844 | if$ 845 | } 846 | if$ 847 | } 848 | if$ 849 | } 850 | 851 | FUNCTION {format.sine.loco.sine.nomine} 852 | { is.in.chinese 853 | { "[出版地不详: 出版者不详]" } 854 | { "[S.l.: s.n.]" } 855 | if$ 856 | } 857 | 858 | FUNCTION {format.address.publisher} 859 | { address empty$ not 860 | { address 861 | format.publisher empty$ not 862 | { ": " * format.publisher * } 863 | { url empty$ doi empty$ and 864 | { ": " * format.sine.nomine * } 865 | 'skip$ 866 | if$ 867 | } 868 | if$ 869 | } 870 | { url empty$ doi empty$ and 871 | { format.publisher empty$ not 872 | { format.sine.loco ": " * format.publisher * } 873 | { format.sine.loco.sine.nomine } 874 | if$ 875 | } 876 | { format.publisher empty$ not 877 | { format.publisher } 878 | { "" } 879 | if$ 880 | } 881 | if$ 882 | } 883 | if$ 884 | } 885 | 886 | FUNCTION {format.pages} 887 | { pages empty$ 888 | { "" } 889 | { pages n.dashify } 890 | if$ 891 | } 892 | 893 | FUNCTION {format.journal.volume} 894 | { volume } 895 | 896 | FUNCTION {format.journal.number} 897 | { number empty$ not 898 | { "\penalty0 (" number * ")" * } 899 | { "" } 900 | if$ 901 | } 902 | 903 | FUNCTION {format.periodical.year.volume.number} 904 | { year empty$ not 905 | { year extract.before.dash } 906 | { "No year in periodical " cite$ * warning$ } 907 | if$ 908 | volume empty$ not 909 | { ", " * volume extract.before.dash * } 910 | 'skip$ 911 | if$ 912 | number empty$ not 913 | { "\penalty0 (" * number extract.before.dash * ")" * } 914 | 'skip$ 915 | if$ 916 | year contains.dash 917 | { "--" * 918 | year extract.after.dash empty$ 919 | volume extract.after.dash empty$ and 920 | number extract.after.dash empty$ and not 921 | { year extract.after.dash empty$ not 922 | { year extract.after.dash * } 923 | { year extract.before.dash * } 924 | if$ 925 | volume empty$ not 926 | { ", " * volume extract.after.dash * } 927 | 'skip$ 928 | if$ 929 | number empty$ not 930 | { "\penalty0 (" * number extract.after.dash * ")" * } 931 | 'skip$ 932 | if$ 933 | } 934 | 'skip$ 935 | if$ 936 | } 937 | 'skip$ 938 | if$ 939 | } 940 | 941 | FUNCTION {format.in.ed.booktitle} 942 | { booktitle empty$ 943 | { "" } 944 | { editor empty$ 945 | { "In " booktitle emphasize * } 946 | { "In " format.editors * ", " * booktitle emphasize * } 947 | if$ 948 | } 949 | if$ 950 | } 951 | 952 | FUNCTION {empty.misc.check} 953 | { author empty$ title empty$ howpublished empty$ 954 | month empty$ year empty$ note empty$ 955 | and and and and and 956 | key empty$ not and 957 | { "all relevant fields are empty in " cite$ * warning$ } 958 | 'skip$ 959 | if$ 960 | } 961 | 962 | FUNCTION {format.article.crossref} 963 | { key empty$ 964 | { journal empty$ 965 | { "need key or journal for " cite$ * " to crossref " * crossref * 966 | warning$ 967 | "" 968 | } 969 | { "In \emph{" journal * "}" * } 970 | if$ 971 | } 972 | { "In " } 973 | if$ 974 | " \citet{" * crossref * "}" * 975 | } 976 | 977 | FUNCTION {format.book.crossref} 978 | { volume empty$ 979 | { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ 980 | "In " 981 | } 982 | { "Volume" volume tie.or.space.connect 983 | " of " * 984 | } 985 | if$ 986 | editor empty$ 987 | editor field.or.null author field.or.null = 988 | or 989 | { key empty$ 990 | { series empty$ 991 | { "need editor, key, or series for " cite$ * " to crossref " * 992 | crossref * warning$ 993 | "" * 994 | } 995 | { "\emph{" * series * "}" * } 996 | if$ 997 | } 998 | 'skip$ 999 | if$ 1000 | } 1001 | 'skip$ 1002 | if$ 1003 | " \citet{" * crossref * "}" * 1004 | } 1005 | 1006 | FUNCTION {format.incoll.inproc.crossref} 1007 | { editor empty$ 1008 | editor field.or.null author field.or.null = 1009 | or 1010 | { key empty$ 1011 | { booktitle empty$ 1012 | { "need editor, key, or booktitle for " cite$ * " to crossref " * 1013 | crossref * warning$ 1014 | "" 1015 | } 1016 | { "In \emph{" booktitle * "}" * } 1017 | if$ 1018 | } 1019 | { "In " } 1020 | if$ 1021 | } 1022 | { "In " } 1023 | if$ 1024 | " \citet{" * crossref * "}" * 1025 | } 1026 | 1027 | FUNCTION {monograph} 1028 | { output.bibitem 1029 | author empty$ not 1030 | { format.authors } 1031 | { editor empty$ not 1032 | { format.editors } 1033 | { "" } 1034 | if$ 1035 | } 1036 | if$ 1037 | output 1038 | new.block 1039 | format.series.vol.num.title "title" output.check 1040 | "M" set.mark 1041 | format.mark "" output.after 1042 | new.block 1043 | format.translators output 1044 | new.sentence 1045 | format.edition output 1046 | new.block 1047 | format.address.publisher output 1048 | format.date "year" output.check 1049 | format.pages punct.colon output.after 1050 | format.urldate "" output.after 1051 | format.url output 1052 | format.doi output 1053 | fin.entry 1054 | } 1055 | 1056 | FUNCTION {incollection} 1057 | { output.bibitem 1058 | format.authors "author" output.check 1059 | author format.key output 1060 | new.block 1061 | format.title "title" output.check 1062 | "M" set.mark 1063 | format.mark "" output.after 1064 | new.block 1065 | format.translators output 1066 | new.block 1067 | format.editors output 1068 | new.block 1069 | format.series.vol.num.booktitle "booktitle" output.check 1070 | new.block 1071 | format.edition output 1072 | new.block 1073 | format.address.publisher output 1074 | format.date "year" output.check 1075 | format.pages punct.colon output.after 1076 | format.urldate "" output.after 1077 | format.url output 1078 | format.doi output 1079 | fin.entry 1080 | } 1081 | 1082 | FUNCTION {periodical} 1083 | { output.bibitem 1084 | format.authors "author" output.check 1085 | author format.key output 1086 | new.block 1087 | format.title "title" output.check 1088 | "J" set.mark 1089 | format.mark "" output.after 1090 | new.block 1091 | format.periodical.year.volume.number output 1092 | new.block 1093 | format.address.publisher output 1094 | format.date "year" output.check 1095 | format.urldate "" output.after 1096 | format.url output 1097 | format.doi output 1098 | fin.entry 1099 | } 1100 | 1101 | FUNCTION {article.in.journal} 1102 | { output.bibitem 1103 | format.authors "author" output.check 1104 | author format.key output 1105 | new.block 1106 | format.title "title" output.check 1107 | "J" set.mark 1108 | format.mark "" output.after 1109 | new.block 1110 | journal "journal" output.check 1111 | format.date "year" output.check 1112 | volume output 1113 | format.journal.number "" output.after 1114 | format.pages punct.colon output.after 1115 | format.editdate "" output.after 1116 | format.urldate "" output.after 1117 | format.url output 1118 | format.doi output 1119 | fin.entry 1120 | } 1121 | 1122 | FUNCTION {patent} 1123 | { output.bibitem 1124 | format.authors output 1125 | author format.key output 1126 | new.block 1127 | format.title 1128 | number empty$ not 1129 | { punct.colon * number * } 1130 | 'skip$ 1131 | if$ 1132 | "title" output.check 1133 | "P" set.mark 1134 | format.mark "" output.after 1135 | new.block 1136 | format.date "year" output.check 1137 | format.urldate "" output.after 1138 | format.url output 1139 | format.doi output 1140 | fin.entry 1141 | } 1142 | 1143 | FUNCTION {online} 1144 | { output.bibitem 1145 | format.authors output 1146 | author format.key output 1147 | new.block 1148 | format.series.vol.num.title "title" output.check 1149 | "EB" set.mark 1150 | format.mark "" output.after 1151 | new.block 1152 | format.address.publisher output 1153 | date empty$ 1154 | { format.date output } 1155 | 'skip$ 1156 | if$ 1157 | format.pages punct.colon output.after 1158 | format.editdate "" output.after 1159 | format.urldate "" output.after 1160 | format.url output 1161 | format.doi output 1162 | fin.entry 1163 | } 1164 | 1165 | FUNCTION {misc} 1166 | { journal empty$ not 1167 | { article.in.journal } 1168 | { booktitle empty$ not 1169 | { incollection } 1170 | { url empty$ not 1171 | { online } 1172 | { monograph } 1173 | if$ 1174 | } 1175 | if$ 1176 | } 1177 | if$ 1178 | } 1179 | 1180 | FUNCTION {archive} 1181 | { "A" set.mark 1182 | misc 1183 | } 1184 | 1185 | FUNCTION {article} { misc } 1186 | 1187 | FUNCTION {book} { monograph } 1188 | 1189 | FUNCTION {collection} 1190 | { "G" set.mark 1191 | monograph } 1192 | 1193 | FUNCTION {database} 1194 | { "DB" set.mark 1195 | misc 1196 | } 1197 | 1198 | FUNCTION {dataset} 1199 | { "DS" set.mark 1200 | misc 1201 | } 1202 | 1203 | FUNCTION {inbook} { book } 1204 | 1205 | FUNCTION {inproceedings} 1206 | { "C" set.mark 1207 | incollection 1208 | } 1209 | 1210 | FUNCTION {conference} { inproceedings } 1211 | 1212 | FUNCTION {map} 1213 | { "CM" set.mark 1214 | misc 1215 | } 1216 | 1217 | FUNCTION {mastersthesis} 1218 | { "D" set.mark 1219 | monograph 1220 | } 1221 | 1222 | FUNCTION {newspaper} 1223 | { "N" set.mark 1224 | article.in.journal 1225 | } 1226 | 1227 | FUNCTION {phdthesis} { mastersthesis } 1228 | 1229 | FUNCTION {proceedings} 1230 | { "C" set.mark 1231 | monograph 1232 | } 1233 | 1234 | FUNCTION {program} 1235 | { "CP" set.mark 1236 | misc 1237 | } 1238 | 1239 | FUNCTION {standard} 1240 | { "S" set.mark 1241 | misc 1242 | } 1243 | 1244 | FUNCTION {techreport} 1245 | { "R" set.mark 1246 | misc 1247 | } 1248 | 1249 | FUNCTION {default.type} { misc } 1250 | 1251 | MACRO {jan} {"January"} 1252 | 1253 | MACRO {feb} {"February"} 1254 | 1255 | MACRO {mar} {"March"} 1256 | 1257 | MACRO {apr} {"April"} 1258 | 1259 | MACRO {may} {"May"} 1260 | 1261 | MACRO {jun} {"June"} 1262 | 1263 | MACRO {jul} {"July"} 1264 | 1265 | MACRO {aug} {"August"} 1266 | 1267 | MACRO {sep} {"September"} 1268 | 1269 | MACRO {oct} {"October"} 1270 | 1271 | MACRO {nov} {"November"} 1272 | 1273 | MACRO {dec} {"December"} 1274 | 1275 | MACRO {acmcs} {"ACM Computing Surveys"} 1276 | 1277 | MACRO {acta} {"Acta Informatica"} 1278 | 1279 | MACRO {cacm} {"Communications of the ACM"} 1280 | 1281 | MACRO {ibmjrd} {"IBM Journal of Research and Development"} 1282 | 1283 | MACRO {ibmsj} {"IBM Systems Journal"} 1284 | 1285 | MACRO {ieeese} {"IEEE Transactions on Software Engineering"} 1286 | 1287 | MACRO {ieeetc} {"IEEE Transactions on Computers"} 1288 | 1289 | MACRO {ieeetcad} 1290 | {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} 1291 | 1292 | MACRO {ipl} {"Information Processing Letters"} 1293 | 1294 | MACRO {jacm} {"Journal of the ACM"} 1295 | 1296 | MACRO {jcss} {"Journal of Computer and System Sciences"} 1297 | 1298 | MACRO {scp} {"Science of Computer Programming"} 1299 | 1300 | MACRO {sicomp} {"SIAM Journal on Computing"} 1301 | 1302 | MACRO {tocs} {"ACM Transactions on Computer Systems"} 1303 | 1304 | MACRO {tods} {"ACM Transactions on Database Systems"} 1305 | 1306 | MACRO {tog} {"ACM Transactions on Graphics"} 1307 | 1308 | MACRO {toms} {"ACM Transactions on Mathematical Software"} 1309 | 1310 | MACRO {toois} {"ACM Transactions on Office Information Systems"} 1311 | 1312 | MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} 1313 | 1314 | MACRO {tcs} {"Theoretical Computer Science"} 1315 | 1316 | READ 1317 | 1318 | EXECUTE {init.state.consts} 1319 | 1320 | INTEGERS { ascii } 1321 | 1322 | FUNCTION {char.lang} 1323 | { chr.to.int$ 'ascii := 1324 | ascii #31 > ascii #128 < and 1325 | { lang.en } 1326 | { ascii #227 > ascii #234 < and 1327 | { lang.zh } 1328 | { ascii #227 = 1329 | { lang.ja } 1330 | { ascii #207 > ascii #212 < and 1331 | { lang.ru } 1332 | { lang.default } 1333 | if$ 1334 | } 1335 | if$ 1336 | } 1337 | if$ 1338 | } 1339 | if$ 1340 | } 1341 | 1342 | FUNCTION {set.language} 1343 | { language empty$ 1344 | { lang.default 'lang := 1345 | author field.or.null title field.or.null * 's := 1346 | s empty$ 1347 | 'skip$ 1348 | { #1 'charptr := 1349 | s text.length$ #1 + 'stringlength := 1350 | { charptr stringlength < } 1351 | { s charptr #1 substring$ char.lang 1352 | duplicate$ #3 > 1353 | { charptr #2 + 'charptr := } 1354 | 'skip$ 1355 | if$ 1356 | duplicate$ lang > 1357 | { 'lang := } 1358 | 'pop$ 1359 | if$ 1360 | charptr #1 + 'charptr := 1361 | } 1362 | while$ 1363 | } 1364 | if$ 1365 | } 1366 | { language "en" = 1367 | { lang.en } 1368 | { language "zh" = 1369 | { lang.zh } 1370 | { language "ja" = 1371 | { lang.ja } 1372 | { language "ru" = 1373 | { lang.ru } 1374 | { lang.default } 1375 | if$ 1376 | } 1377 | if$ 1378 | } 1379 | if$ 1380 | } 1381 | if$ 1382 | 'lang := 1383 | } 1384 | if$ 1385 | } 1386 | 1387 | FUNCTION {sortify} 1388 | { purify$ 1389 | "l" change.case$ 1390 | } 1391 | 1392 | INTEGERS { len } 1393 | 1394 | FUNCTION {chop.word} 1395 | { 's := 1396 | 'len := 1397 | s #1 len substring$ = 1398 | { s len #1 + global.max$ substring$ } 1399 | 's 1400 | if$ 1401 | } 1402 | 1403 | FUNCTION {format.lab.names} 1404 | { 's := 1405 | s #1 "{vv~}{ll}" format.name$ 1406 | s num.names$ #1 > 1407 | { "\ " * format.et.al * } 1408 | 'skip$ 1409 | if$ 1410 | } 1411 | 1412 | FUNCTION {author.key.label} 1413 | { author empty$ 1414 | { key empty$ 1415 | { cite$ #1 #3 substring$ } 1416 | 'key 1417 | if$ 1418 | } 1419 | { author format.lab.names } 1420 | if$ 1421 | } 1422 | 1423 | FUNCTION {author.editor.key.label} 1424 | { author empty$ 1425 | { editor empty$ 1426 | { key empty$ 1427 | { cite$ #1 #3 substring$ } 1428 | 'key 1429 | if$ 1430 | } 1431 | { editor format.lab.names } 1432 | if$ 1433 | } 1434 | { author format.lab.names } 1435 | if$ 1436 | } 1437 | 1438 | FUNCTION {author.key.organization.label} 1439 | { author empty$ 1440 | { key empty$ 1441 | { organization empty$ 1442 | { cite$ #1 #3 substring$ } 1443 | { "The " #4 organization chop.word #3 text.prefix$ } 1444 | if$ 1445 | } 1446 | 'key 1447 | if$ 1448 | } 1449 | { author format.lab.names } 1450 | if$ 1451 | } 1452 | 1453 | FUNCTION {editor.key.organization.label} 1454 | { editor empty$ 1455 | { key empty$ 1456 | { organization empty$ 1457 | { cite$ #1 #3 substring$ } 1458 | { "The " #4 organization chop.word #3 text.prefix$ } 1459 | if$ 1460 | } 1461 | 'key 1462 | if$ 1463 | } 1464 | { editor format.lab.names } 1465 | if$ 1466 | } 1467 | 1468 | FUNCTION {calc.short.authors} 1469 | { type$ "book" = 1470 | type$ "inbook" = 1471 | or 1472 | type$ "collection" = 1473 | or 1474 | 'author.editor.key.label 1475 | { type$ "proceedings" = 1476 | { editor empty$ not 1477 | 'editor.key.organization.label 1478 | 'author.key.organization.label 1479 | if$ 1480 | } 1481 | 'author.key.label 1482 | if$ 1483 | } 1484 | if$ 1485 | 'short.list := 1486 | } 1487 | 1488 | FUNCTION {calc.label} 1489 | { calc.short.authors 1490 | short.list 1491 | "(" 1492 | * 1493 | year duplicate$ empty$ 1494 | short.list key field.or.null = or 1495 | { pop$ 1496 | urldate empty$ not 1497 | { urldate extract.before.dash } 1498 | { "" } 1499 | if$ 1500 | } 1501 | 'extract.before.dash 1502 | if$ 1503 | * 1504 | 'label := 1505 | } 1506 | 1507 | INTEGERS { seq.num } 1508 | 1509 | FUNCTION {init.seq} 1510 | { #0 'seq.num :=} 1511 | 1512 | EXECUTE {init.seq} 1513 | 1514 | FUNCTION {int.to.fix} 1515 | { "000000000" swap$ int.to.str$ * 1516 | #-1 #10 substring$ 1517 | } 1518 | 1519 | FUNCTION {presort} 1520 | { set.language 1521 | calc.label 1522 | label sortify 1523 | " " 1524 | * 1525 | seq.num #1 + 'seq.num := 1526 | seq.num int.to.fix 1527 | 'sort.label := 1528 | sort.label * 1529 | #1 entry.max$ substring$ 1530 | 'sort.key$ := 1531 | } 1532 | 1533 | ITERATE {presort} 1534 | 1535 | SORT 1536 | 1537 | STRINGS { longest.label last.label next.extra } 1538 | 1539 | INTEGERS { longest.label.width last.extra.num number.label } 1540 | 1541 | FUNCTION {initialize.longest.label} 1542 | { "" 'longest.label := 1543 | #0 int.to.chr$ 'last.label := 1544 | "" 'next.extra := 1545 | #0 'longest.label.width := 1546 | #0 'last.extra.num := 1547 | #0 'number.label := 1548 | } 1549 | 1550 | FUNCTION {forward.pass} 1551 | { last.label label = 1552 | { last.extra.num #1 + 'last.extra.num := 1553 | last.extra.num int.to.chr$ 'extra.label := 1554 | } 1555 | { "a" chr.to.int$ 'last.extra.num := 1556 | "" 'extra.label := 1557 | label 'last.label := 1558 | } 1559 | if$ 1560 | number.label #1 + 'number.label := 1561 | } 1562 | 1563 | FUNCTION {reverse.pass} 1564 | { next.extra "b" = 1565 | { "a" 'extra.label := } 1566 | 'skip$ 1567 | if$ 1568 | extra.label 'next.extra := 1569 | extra.label 1570 | duplicate$ empty$ 1571 | 'skip$ 1572 | { "{\natexlab{" swap$ * "}}" * } 1573 | if$ 1574 | 'extra.label := 1575 | label extra.label * 'label := 1576 | } 1577 | 1578 | EXECUTE {initialize.longest.label} 1579 | 1580 | ITERATE {forward.pass} 1581 | 1582 | REVERSE {reverse.pass} 1583 | 1584 | FUNCTION {bib.sort.order} 1585 | { sort.label 'sort.key$ := 1586 | } 1587 | 1588 | ITERATE {bib.sort.order} 1589 | 1590 | SORT 1591 | 1592 | FUNCTION {begin.bib} 1593 | { preamble$ empty$ 1594 | 'skip$ 1595 | { preamble$ write$ newline$ } 1596 | if$ 1597 | "\begin{thebibliography}{" number.label int.to.str$ * "}" * 1598 | write$ newline$ 1599 | "\providecommand{\natexlab}[1]{#1}" 1600 | write$ newline$ 1601 | "\providecommand{\url}[1]{#1}" 1602 | write$ newline$ 1603 | "\providecommand{\href}[2]{#2}" 1604 | write$ newline$ 1605 | "\providecommand{\doi}[1]{DOI: \href{http://dx.doi.org/#1}{#1}}" 1606 | write$ newline$ 1607 | "\expandafter\ifx\csname urlstyle\endcsname\relax\relax\else" 1608 | write$ newline$ 1609 | " \urlstyle{same}\fi" 1610 | write$ newline$ 1611 | } 1612 | 1613 | EXECUTE {begin.bib} 1614 | 1615 | ITERATE {call.type$} 1616 | 1617 | FUNCTION {end.bib} 1618 | { newline$ 1619 | "\end{thebibliography}" write$ newline$ 1620 | } 1621 | 1622 | EXECUTE {end.bib} 1623 | --------------------------------------------------------------------------------