diff --git a/ReadMe.md b/ReadMe.md index abfc74b..b373b42 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -13,27 +13,25 @@ ``` BUAAThesis - |- buaa.cls // LaTeX宏模板文件 - |- buaa_mac.cls // LaTeX宏模板文件(For Mac with XeLaTeX) - |- GBT7714-2005.bst // 国标参考文献BibTeX样式文件2005版 - |- GBT7714-2015.bst // 国标参考文献BibTeX样式文件2015版 - |- logo-buaa.eps // 论文封皮北航字样 - |- head-doctor.eps // 论文封皮北博士学位论文标题(华文行楷字体替代解决方案) - |- head-master.eps // 论文封皮北学硕学位论文标题(华文行楷字体替代解决方案) - |- head-professional.eps // 论文封皮北专硕学位论文标题(华文行楷字体替代解决方案) - |- Template.tex // LaTeX模板 - |- tex/*.tex // LaTeX模板样例中的独立章节 - |- ref.bib // LaTeX模板中的参考文献Bib文件 - |- Template.docx // Word模板 - |- .gitignore // Git忽略规则 - +- ReadMe.md // 本文件 + |- buaa.cls // LaTeX宏模板文件 + |- Template.tex // LaTeX模板 + |- Template.docx // Word模板 + |- ref.bib // LaTeX模板中的参考文献Bib文件 + |- bst/GBT7714-2005.bst // 国标参考文献BibTeX样式文件2005版 + |- bst/GBT7714-2015.bst // 国标参考文献BibTeX样式文件2015版 + |- pic/logo-buaa.eps // 论文封皮北航字样 + |- pic/head-doctor.eps // 论文封皮北博士学位论文标题(华文行楷字体替代解决方案) + |- pic/head-master.eps // 论文封皮北学硕学位论文标题(华文行楷字体替代解决方案) + |- pic/head-professional.eps // 论文封皮北专硕学位论文标题(华文行楷字体替代解决方案) + |- tex/*.tex // LaTeX模板样例中的独立章节 + |- ReadMe.md // 本文件 + |- .gitignore // Git忽略规则 ``` ## 模板使用 + Word: 直接在其上进行修改编写,请记得预先备份; -+ LaTeX: 参看LaTeX模板示例template.tex及相应插入章节tex/*.tex; -+ Mac: Mac系统请使用buaa_mac.cls并使用XeLaTeX编译。 ++ LaTeX: 参看LaTeX模板示例template.tex及相应插入章节tex/*.tex。 ## 关于图书馆查重 @@ -43,6 +41,8 @@ BUAAThesis 我的环境:Manjaro Linux + TeX Live 2018 + TeXstudio 2.12.10。 ++ **已修复Windows系统下从pdf拷贝的西文乱码问题**。 + ## 建议及问题反馈 + E-mail: [weiqm@buaa.edu.cn](weiqm@buaa.edu.cn) diff --git a/Template.pdf b/Template.pdf index aaed3af..87f90ef 100644 Binary files a/Template.pdf and b/Template.pdf differ diff --git a/Template.tex b/Template.tex index 55a8a20..1c89ab1 100644 --- a/Template.tex +++ b/Template.tex @@ -3,34 +3,25 @@ %% %% 北航学位论文模板使用样例 %% %% 请将以下文件与此LaTeX文件放在同一目录中. %% %%----------- -%% %% buaa.cls : LaTeX宏模板文件 -%% %% buaa_mac.cls : LaTeX宏模板文件(For Mac with XeLaTeX) -%% %% GBT7714-2005.bst : 国标参考文献BibTeX样式文件2005(https://github.com/Haixing-Hu/GBT7714-2005-BibTeX-Style) -%% %% GBT7714-2015.bst : 国标参考文献BibTeX样式文件2015(https://github.com/zepinglee/gbt7714-bibtex-style) -%% %% logo-buaa.eps : 论文封皮北航字样 -%% %% head-doctor.eps : 论文封皮北博士学位论文标题(华文行楷字体替代解决方案) -%% %% head-master.eps : 论文封皮北学硕学位论文标题(华文行楷字体替代解决方案) -%% %% head-professional.eps : 论文封皮北专硕学位论文标题(华文行楷字体替代解决方案) -%% %% tex/*.tex : 本模板样例中的独立章节 +%% %% buaa.cls : LaTeX宏模板文件 +%% %% bst/GBT7714-2005.bst : 国标参考文献BibTeX样式文件2005(https://github.com/Haixing-Hu/GBT7714-2005-BibTeX-Style) +%% %% bst/GBT7714-2015.bst : 国标参考文献BibTeX样式文件2015(https://github.com/zepinglee/gbt7714-bibtex-style) +%% %% pic/logo-buaa.eps : 论文封皮北航字样 +%% %% pic/head-doctor.eps : 论文封皮北博士学位论文标题(华文行楷字体替代解决方案) +%% %% pic/head-master.eps : 论文封皮北学硕学位论文标题(华文行楷字体替代解决方案) +%% %% pic/head-professional.eps : 论文封皮北专硕学位论文标题(华文行楷字体替代解决方案) +%% %% tex/*.tex : 本模板样例中的独立章节 %% %%----------- %% %% 请统一使用UTF-8编码. %% %%================================================================= -%================================================================= -\documentclass[doctor,privacy,twoside]{cls/buaa} - -%% Mac系统请使用buaa_mac,并使用XeLaTeX编译。 -%\documentclass[doctor,privacy,twoside]{buaa_mac} - -% 可加入额外ctexbook文档类的选项,其将会被传递给ctexbook。 -% 例如:\documentclass[doctor,privacy,twoside,fontset=founder]{buaa} -% CTeX在Linux下默认使用Fandol字体,为避免某些生僻字无法显示,在系统 -% 已安装方正字体的前提下可通过fontset=founder选项常用方正字体。 - %================================================================= % buaa基于ctexbook模板 % 论文样式参考自《研究生手册--二〇一五年八月》 %====================== +% 模板导入: +% \documentclass[thesis,permission,printtype,ostype,]{buaa} +%====================== % 模板选项: %====================== % I.论文类型(thesis) @@ -64,13 +55,30 @@ % a.单面打印(oneside)[缺省值] % b.双面打印(twoside) %-------------------- +% IV.系统类型(ostype) +%-------------------- +% a.win(oneside)[缺省值] +% b.linux (linux) +% c.mac (mac) +%-------------------- +% V.ctexbook设置选项() +%-------------------- +% ... +%====================== +% 其他说明: +% 1. Mac系统请使用mac选项,并使用XeLaTeX编译。 +% 2. 可加入额外ctexbook文档类的选项,其将会被传递给ctexbook。 +% 例如:\documentclass[fontset=founder]{buaa} +% 3. CTeX在Linux下默认使用Fandol字体,为避免某些生僻字无法显示,在系统已安装方正 +% 字体的前提下可通过fontset=founder选项常用方正字体。 %================================================================= +\documentclass[master,privacy,twoside,win]{buaa} %================================================================= % 开启/关闭引用编号颜色:参考文献,公式,图,表,算法 等…… \refcolor{on} % 开启: on[默认]; 关闭: off; -% 摘要和正文从右侧开始 +% 摘要和正文从右侧页开始 \beginright{on} % 开启: on[默认]; 关闭: off; % 空白页留字 \emptypagewords{[ -- This page is a preset empty page -- ]} @@ -78,13 +86,17 @@ %================================================================= % buaa模板已内嵌以下LaTeX工具包: %-------------------- -% ifthen, etoolbox, titletoc, remreset, remreset, -% geometry, fancyhdr, setspace, caption, +% ifthen, etoolbox, titletoc, remreset, +% geometry, fancyhdr, setspace, % float, graphicx, subfigure, epstopdf, -% booktabs, longtable, multirow, -% array, enumitem -% algorithm2e, amsmath, amsthm, listings -% pifont, color, soul, newtxtext, newtxmath +% array, enumitem, +% booktabs, longtable, multirow, caption, +% listings, algorithm2e, amsmath, amsthm, +% hyperref, pifont, color, soul, +% --- +% For Win: times +% For Lin: newtxtext, newtxmath +% For Mac: times, fontspec %-------------------- % 请在此处添加额外工具包>> diff --git a/cls/buaa.cls b/buaa.cls similarity index 95% rename from cls/buaa.cls rename to buaa.cls index 2580e08..3f89f89 100644 --- a/cls/buaa.cls +++ b/buaa.cls @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% -%% %% 北航研究生毕业论文模板 - LaTeX 11-30-2019 +%% %% 北航研究生毕业论文模板 - LaTeX 03-07-2020 %% %% 论文样式参考自《研究生手册--二〇一五年八月》 %% %% 基于ctexbook %% %% @@ -10,6 +10,7 @@ %% %% Qiao Junfeng (qiaojunfeng@outlook.com) %% %% %% %% Versions: +%% %% v3.0 WeiQM (03-07-2020) %% %% v2.2 WeiQM (11-30-2019) %% %% v2.1 QiaoJF, WeiQM (12-19-2018) %% %% v2.0 WeiQM, QiaoJF (11-22-2018) @@ -23,8 +24,8 @@ %% 模板标识 \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{buaa}[2019/11/30 v2.2 BUAA thesis class] -\typeout{This is LaTeX template buaa. Version 2.2 (based on CTeX) 11-30-2019} +\ProvidesClass{buaa}[2020/03/07 v3.0 BUAA thesis class] +\typeout{This is LaTeX template buaa. Version 3.0 (based on CTeX) 03-07-2020} %% 选项 %% 论文类型 @@ -60,6 +61,17 @@ %% 打印设置 \DeclareOption{oneside}{\gdef\@printtype{oneside}} % 单面打印 \DeclareOption{twoside}{\gdef\@printtype{twoside}} % 双面打印 +\DeclareOption{printtype}{\ClassWarning{buaa}{% + You have not specified the PRINTTYPE option. The word printtype should be replaced by one of the following thesis type: oneside, twoside. +}} + +%% 系统设置 +\DeclareOption{win}{\gdef\@ostype{win}} % windows +\DeclareOption{linux}{\gdef\@ostype{linux}} % linux +\DeclareOption{max}{\gdef\@ostype{mac}} % mac +\DeclareOption{ostype}{\ClassWarning{buaa}{% + You have not specified the OSTYPE option. The word ostype should be replaced by one of the following thesis type: win, linux, mac. +}} %% 适应首字母大写 \DeclareOption{Master}{\gdef\@thesis{master}} @@ -84,20 +96,24 @@ \DeclareOption{TopSecret*}{\gdef\@permission{topsecret*}} \DeclareOption{Oneside}{\gdef\@printtype{oneside}} \DeclareOption{Twoside}{\gdef\@printtype{twoside}} +\DeclareOption{Win}{\gdef\@ostype{win}} +\DeclareOption{Linux}{\gdef\@ostype{linux}} +\DeclareOption{Max}{\gdef\@ostype{mac}} %% 选项传递给ctexbook \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} %% 默认选项配置 -\ExecuteOptions{master,public,oneside,a4paper,sub4section} +\ExecuteOptions{master,public,oneside,win,a4paper,sub4section} \ProcessOptions\relax -% 引用ctexbook: 小4,1.5倍行距 +%% 引用ctexbook: 小4,1.5倍行距 \LoadClass[UTF8,zihao=-4,linespread=1.7]{ctexbook}%1.5+0.2行间距 \setcounter{secnumdepth}{5} +%% BUAAThesis字样及版本信息 \usepackage{graphicx} -\def\BUAAThesisVer{v2.2 11-30-2019} +\def\BUAAThesisVer{v3.0 03-07-2020} \def\BUAAThesis{% B% {\fontsize{0.8em}{\baselineskip}\selectfont @@ -115,30 +131,27 @@ %% 预声明 \RequirePackage{ifthen} % ifthenelse/equal/isundefined等判断比较命令 +\RequirePackage{etoolbox} % \AtBeginDocument等宏命令 +\RequirePackage{titletoc} % 目录 +\RequirePackage{remreset} % 计数器设置 \RequirePackage{geometry} % 设置页边距 \RequirePackage{fancyhdr} % 设置页眉页脚 \RequirePackage{setspace} % 设置行间距 -%\RequirePackage{times} % Times New Roman字体 \RequirePackage{float} % 图片 \RequirePackage{graphicx} % 图片 \RequirePackage{subfigure} % 图片 \RequirePackage{epstopdf} % 图片 -\RequirePackage{array} % -\RequirePackage{enumitem} % +\RequirePackage{array} % 列举 +\RequirePackage{enumitem} % 列举 \RequirePackage{booktabs} % 表格上下粗线 \RequirePackage{longtable} % 长表格 \RequirePackage{multirow} % 多行表格 \RequirePackage{caption} % 标题设置 -\RequirePackage{algorithm2e} % 算法环境 \RequirePackage{listings} % 代码环境 +\RequirePackage{algorithm2e} % 算法环境 \RequirePackage{amsmath} % 数学 \RequirePackage{amsthm} % 定理 -\RequirePackage{newtxtext} % Times New Roman字体 -\RequirePackage{newtxmath} % 公式的Times New Roman字体,需放置于amsthm之后 -\RequirePackage{titletoc} % 目录 -\RequirePackage{remreset} % 计数器设置 \RequirePackage{hyperref} % 超链接 -\RequirePackage{etoolbox} % \AtBeginDocument等宏命令 \RequirePackage{pifont} % 画五角星 \RequirePackage{color} % To provide color for soul \RequirePackage{soul} % To highlight text @@ -146,6 +159,19 @@ \DeclareGraphicsExtensions{.eps,.ps,.png,.jpg,.bmp} % 声明使用图像格式 \newcommand{\highlight}[1]{\colorbox{yellow}{#1}} % 高亮注释 +% 根据不同系统调整 +\ifthenelse{\equal{\@ostype}{win}}{ % win 配置 + \RequirePackage{times} % Times New Roman字体 +}{} +\ifthenelse{\equal{\@ostype}{linux}}{ % linux 配置 + \RequirePackage{newtxtext} % Times New Roman字体 + \RequirePackage{newtxmath} % 公式的Times New Roman字体 (!After package amsthm!) +}{} +\ifthenelse{\equal{\@ostype}{mac}}{ % mac 配置 + \RequirePackage{times} % Times New Roman字体 + \RequirePackage{fontspec} % 字体设置 (!Only for XeLaTeX!) +}{} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% 数学环境 % 数学符号: @@ -154,8 +180,9 @@ \newcommand*{\diff}{\mathop{}\!\mathrm{d}} \DeclareMathOperator*{\argmax}{arg\,max} \DeclareMathOperator*{\argmin}{arg\,min} + % 数学定理: -% 以下定义数学定理环境默认风格为 buaa。 +% 以下定义数学定理环境默认风格为 buaa \newtheoremstyle{buaa}% {0pt}% measure of space to leave above the theorem. {0pt}% measure of space to leave below the theorem. @@ -165,8 +192,8 @@ {.}% punctuation between head and body. {\ccwd}% space after theorem head; " " = normal interword space {}% manually specify head (can be left empty, meaning `normal'). - \theoremstyle{buaa} + % 定义新的定理 \newcommand{\theoremname}{定理} \newcommand{\assertionname}{断言} @@ -190,6 +217,7 @@ \newtheorem{definition} {\definitionname} [chapter] \newtheorem{example} {\examplename} [chapter] \newtheorem*{remark} {\remarkname} + % From MDPI.cls %\renewcommand{\qed}{\unskip\nobreak\quad\qedsymbol} %% This places the symbol right after the text instead of placing it at the end on the line. \renewenvironment{proof}[1][\proofname]{\par %% \proofname allows to have "Proof of my theorem" @@ -219,7 +247,7 @@ \newcommand{\refcolor}[1]{\gdef\@refcolor{#1}} \def\@emptypagewords{} % 空白页留字 \newcommand{\emptypagewords}[1]{\gdef\@emptypagewords{#1}} -\def\@beginright{} % 摘要、目录、第一章右侧打开 on/off +\def\@beginright{} % 摘要、目录、第一章右侧页起 on/off \newcommand{\beginright}[1]{\gdef\@beginright{#1}} \newcommand{\Title}[2]{\gdef\@titlecn{#1} \gdef\@titleen{#2}} diff --git a/cls/buaa_mac.cls b/cls/buaa_mac.cls deleted file mode 100644 index 27e178d..0000000 --- a/cls/buaa_mac.cls +++ /dev/null @@ -1,959 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% %% -%% %% 北航研究生毕业论文模板(Mac版) - LaTeX 11-30-2019 -%% %% 论文样式参考自《研究生手册--二〇一五年八月》 -%% %% 基于ctexbook -%% %% -%% %% 初始版本作者: -%% %% Wei Quanmao (weiqm@buaa.edu.cn) -%% %% 参与修改: -%% %% Qiao Junfeng (qiaojunfeng@outlook.com) -%% %% -%% %% Versions: -%% %% v2.2 WeiQM (11-30-2019) -%% %% v2.1 QiaoJF, WeiQM (12-19-2018) -%% %% v2.0 WeiQM, QiaoJF (11-22-2018) -%% %% v1.3 Wei Quanmao (10-15-2018) -%% %% v1.1 Wei Quanmao (07-31-2018) -%% %% v1.0a Wei Quanmao (01-04-2018) -%% %% -%% %% 建议采用等宽字体查看本文档 -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -%% 模板标识 -\NeedsTeXFormat{LaTeX2e} -\ProvidesClass{buaa_mac}[2019/11/30 v2.2 BUAA thesis class for Mac] -\typeout{This is LaTeX template buaa-mac (for mac with XeLaTeX). Version 2.2 (based on CTeX) 11-30-2019} - -%% 选项 -%% 论文类型 -\DeclareOption{master}{\gdef\@thesis{master}} % 学术硕士论文 -\DeclareOption{professional}{\gdef\@thesis{professional}} % 专业硕士论文 -\DeclareOption{doctor}{\gdef\@thesis{doctor}} % 博士论文 -\DeclareOption{thesis}{\ClassWarning{buaa}{% - You have not specified the THESIS option. The word thesis should be replaced by one of the following thesis type: master(default), professional, doctor. -}} - -%% 密级 -\DeclareOption{public}{\gdef\@permission{public}} % 公开 -\DeclareOption{privacy}{\gdef\@permission{privacy}} % 内部 -\DeclareOption{secret}{\gdef\@permission{secret3}} % 秘密 = 秘密3年 -\DeclareOption{secret3}{\gdef\@permission{secret3}} % 秘密3年 -\DeclareOption{secret5}{\gdef\@permission{secret5}} % 秘密5年 -\DeclareOption{secret10}{\gdef\@permission{secret10}} % 秘密10年 -\DeclareOption{secret*}{\gdef\@permission{secret*}} % 秘密永久 -\DeclareOption{classified}{\gdef\@permission{classified5}} % 机密 = 机密5年 -\DeclareOption{classified3}{\gdef\@permission{classified3}} % 机密3年 -\DeclareOption{classified5}{\gdef\@permission{classified5}} % 机密5年 -\DeclareOption{classified10}{\gdef\@permission{classified10}} % 机密10年 -\DeclareOption{classified*}{\gdef\@permission{classified*}} % 机密永久 -\DeclareOption{topsecret}{\gdef\@permission{topsecret10}} % 绝密 = 绝密10年 -\DeclareOption{topsecret3}{\gdef\@permission{topsecret3}} % 绝密3年 -\DeclareOption{topsecret5}{\gdef\@permission{topsecret5}} % 绝密5年 -\DeclareOption{topsecret10}{\gdef\@permission{topsecret10}} % 绝密10年 -\DeclareOption{topsecret*}{\gdef\@permission{topsecret*}} % 绝密永久 -\DeclareOption{permission}{\ClassWarning{buaa}{% - You have not specified the PERMISSION option. The word permission should be replaced by one of the following thesis type: public, privacy, secret, classified, topsecret. -}} - -%% 打印设置 -\DeclareOption{oneside}{\gdef\@printtype{oneside}} % 单面打印 -\DeclareOption{twoside}{\gdef\@printtype{twoside}} % 双面打印 - -%% 适应首字母大写 -\DeclareOption{Master}{\gdef\@thesis{master}} -\DeclareOption{Professional }{\gdef\@thesis{professional }} -\DeclareOption{Doctor}{\gdef\@thesis{doctor}} -\DeclareOption{Public}{\gdef\@permission{public}} -\DeclareOption{Privacy}{\gdef\@permission{privacy}} -\DeclareOption{Secret}{\gdef\@permission{secret3}} -\DeclareOption{Secret3}{\gdef\@permission{secret3}} -\DeclareOption{Secret5}{\gdef\@permission{secret5}} -\DeclareOption{Secret10}{\gdef\@permission{secret10}} -\DeclareOption{Secret}*{\gdef\@permission{secret*}} -\DeclareOption{Classified}{\gdef\@permission{classified5}} -\DeclareOption{Classified3}{\gdef\@permission{classified3}} -\DeclareOption{Classified5}{\gdef\@permission{classified5}} -\DeclareOption{Classified10}{\gdef\@permission{classified10}} -\DeclareOption{Classified*}{\gdef\@permission{classified*}} -\DeclareOption{TopSecret}{\gdef\@permission{topsecret10}} -\DeclareOption{TopSecret3}{\gdef\@permission{topsecret3}} -\DeclareOption{TopSecret5}{\gdef\@permission{topsecret5}} -\DeclareOption{TopSecret10}{\gdef\@permission{topsecret10}} -\DeclareOption{TopSecret*}{\gdef\@permission{topsecret*}} -\DeclareOption{Oneside}{\gdef\@printtype{oneside}} -\DeclareOption{Twoside}{\gdef\@printtype{twoside}} - -%% 选项传递给ctexbook -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} - -%% 默认选项配置 -\ExecuteOptions{master,public,oneside,a4paper,sub4section} -\ProcessOptions\relax - -% 引用ctexbook: 小4,1.5倍行距 -\LoadClass[UTF8,zihao=-4,linespread=1.7]{ctexbook}%1.5+0.2行间距 -\setcounter{secnumdepth}{5} - -\usepackage{graphicx} -\def\BUAAThesisVer{v2.2 11-30-2019} -\def\BUAAThesis{% - B% - {\fontsize{0.8em}{\baselineskip}\selectfont - \kern-.12em\lower.5ex\hbox{U}% - \kern-.46em\raise.47ex\hbox{A}% - \kern-.12em A% -} - \kern-.35emT% - \kern-.22em\lower.5ex\hbox{H}% - \kern-.08em E% - \kern-.05em\lower.5ex\hbox{S}% - \kern-.26em I% - \kern-.26em\raise.5ex\hbox{\rotatebox[origin=c]{180}{S}}% -} - -%% 预声明 -\RequirePackage{ifthen} % ifthenelse/equal/isundefined等判断比较命令 -\RequirePackage{geometry} % 设置页边距 -\RequirePackage{fancyhdr} % 设置页眉页脚 -\RequirePackage{setspace} % 设置行间距 -\RequirePackage{times} % Times New Roman字体 -\RequirePackage{fontspec} % 字体设置(!Only for XeLaTeX!) -\RequirePackage{float} % 图片 -\RequirePackage{graphicx} % 图片 -\RequirePackage{subfigure} % 图片 -\RequirePackage{epstopdf} % 图片 -\RequirePackage{array} % -\RequirePackage{enumitem} % -\RequirePackage{booktabs} % 表格上下粗线 -\RequirePackage{longtable} % 长表格 -\RequirePackage{multirow} % 多行表格 -\RequirePackage{caption} % 标题设置 -\RequirePackage{algorithm2e} % 算法环境 -\RequirePackage{listings} % 代码环境 -\RequirePackage{amsmath} % 数学 -\RequirePackage{amsthm} % 定理 -%\RequirePackage{newtxtext} % Times New Roman字体 -%\RequirePackage{newtxmath} % 公式的Times New Roman字体,需放置于amsthm之后 -\RequirePackage{titletoc} % 目录 -\RequirePackage{remreset} % 计数器设置 -\RequirePackage{hyperref} % 超链接 -\RequirePackage{etoolbox} % \AtBeginDocument等宏命令 -\RequirePackage{pifont} % 画五角星 -\RequirePackage{color} % To provide color for soul -\RequirePackage{soul} % To highlight text -\RequirePackage[sort&compress]{natbib} % BibTex -\DeclareGraphicsExtensions{.eps,.ps,.png,.jpg,.bmp} % 声明使用图像格式 -\newcommand{\highlight}[1]{\colorbox{yellow}{#1}} % 高亮注释 - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% 字体设置 -% 英语字体设置(!Only for XeLaTeX!) -\setmainfont{Times New Roman} - -%% 数学环境 -% 数学符号: -\newcommand\eu{\mathrm{e}} -\newcommand\iu{\mathrm{i}} -\newcommand*{\diff}{\mathop{}\!\mathrm{d}} -\DeclareMathOperator*{\argmax}{arg\,max} -\DeclareMathOperator*{\argmin}{arg\,min} -% 数学定理: -% 以下定义数学定理环境默认风格为 buaa。 -\newtheoremstyle{buaa}% -{0pt}% measure of space to leave above the theorem. -{0pt}% measure of space to leave below the theorem. -{}% name of font to use in the body of the theorem. -{2\ccwd}% measure of space to indent. -{\bfseries}% name of head font. -{.}% punctuation between head and body. -{\ccwd}% space after theorem head; " " = normal interword space -{}% manually specify head (can be left empty, meaning `normal'). - -\theoremstyle{buaa} -% 定义新的定理 -\newcommand{\theoremname}{定理} -\newcommand{\assertionname}{断言} -\newcommand{\axiomname}{公理} -\newcommand{\corollaryname}{推论} -\newcommand{\lemmaname}{引理} -\newcommand{\propositionname}{命题} -\newcommand{\definitionname}{定义} -\newcommand{\examplename}{例} -\newcommand{\remarkname}{注} -\renewcommand{\proofname}{证明} -\renewcommand{\lstlistingname}{代码} -\renewcommand{\algorithmcfname}{算法} - -\newtheorem{theorem} {\theoremname} [chapter] -\newtheorem{assertion} [theorem] {\assertionname} -\newtheorem{axiom} [theorem] {\axiomname} -\newtheorem{corollary} [theorem] {\corollaryname} -\newtheorem{lemma} [theorem] {\lemmaname} -\newtheorem{proposition}[theorem] {\propositionname} -\newtheorem{definition} {\definitionname} [chapter] -\newtheorem{example} {\examplename} [chapter] -\newtheorem*{remark} {\remarkname} -% From MDPI.cls -%\renewcommand{\qed}{\unskip\nobreak\quad\qedsymbol} %% This places the symbol right after the text instead of placing it at the end on the line. -\renewenvironment{proof}[1][\proofname]{\par %% \proofname allows to have "Proof of my theorem" - \pushQED{\qed}% - \normalfont \topsep6\p@\@plus6\p@\relax - \trivlist - \item[\hskip\labelsep - \bfseries %% "Proof" is bold - #1\@addpunct{.}]\ignorespaces %% Period instead of colon -}{% - \popQED\endtrivlist\@endpefalse -} - -% 代码环境 -\lstset{ - basicstyle=\small\ttfamily, - xleftmargin=2pc, - xrightmargin=2pc, - frame=single, - columns=flexible, - numbers=left, -} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% 输入 -\def\@refcolor{} % 给注释及引用使用颜色 on/off -\newcommand{\refcolor}[1]{\gdef\@refcolor{#1}} -\def\@emptypagewords{} % 空白页留字 -\newcommand{\emptypagewords}[1]{\gdef\@emptypagewords{#1}} -\def\@beginright{} % 摘要、目录、第一章右侧打开 on/off -\newcommand{\beginright}[1]{\gdef\@beginright{#1}} - -\newcommand{\Title}[2]{\gdef\@titlecn{#1} \gdef\@titleen{#2}} -\newcommand{\Subtitle}[2]{\gdef\@subtitlecn{#1} \gdef\@subtitleen{#2}} -\newcommand{\Department}[1]{\gdef\@department{#1}} -\def\@branch{工学} % 学科大类 -\newcommand{\Branch}[1]{\gdef\@branch{#1}} -\newcommand{\Major}[1]{\gdef\@major{#1}} -\newcommand{\Feild}[1]{\gdef\@feild{#1}} -\newcommand{\Tutor}[3]{\gdef\@tutorcn{#1} \gdef\@tutoren{#2} \gdef\@tutordegree{#3}} -\newcommand{\Cotutor}[3]{% - \gdef\@cotutorcn{#1} - \gdef\@cotutoren{#2} - \gdef\@cotutordegree{#3}} -\newcommand{\Author}[2]{\gdef\@authorcn{#1} \gdef\@authoren{#2}} -\newcommand{\StudentID}[1]{\gdef\@studentid{#1}} - -\newcommand{\CLC}[1]{\gdef\@clc{#1}} -\newcommand{\DateEnroll}[3]{% - \gdef\@dateenrollm{#1} - \gdef\@dateenrolld{#2} - \gdef\@dateenrolly{#3}} -\newcommand{\DateGraduate}[3]{% - \gdef\@dategraduatem{#1} - \gdef\@dategraduated{#2} - \gdef\@dategraduatey{#3}} -\newcommand{\DateSubmit}[3]{% - \gdef\@datesubmitm{#1} - \gdef\@datesubmitd{#2} - \gdef\@datesubmity{#3}} -\newcommand{\DateDefence}[3]{% - \gdef\@datedefencem{#1} - \gdef\@datedefenced{#2} - \gdef\@datedefencey{#3}} - -\newcommand{\Abstract}[2]{\gdef\@abstrctcn{#1} \gdef\@abstrcten{#2}} -\newcommand{\Keyword}[2]{\gdef\@keywordcn{#1} \gdef\@keyworden{#2}} -\newcommand{\Listfigtab}[1]{\gdef\@listfigtab{#1}} % on/off -\newcommand{\Abbreviations}[1]{\gdef\@abbreviations{#1}} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% CTeX调整 -% 半角/缩进/行伸缩设置 -\ctexset{% - punct=quanjiao, % 全角 - autoindent=2, % 缩进 - linestretch=2, % 行伸缩 -} -% 部分标题修改 -\ctexset{% - contentsname={目~~~~录}, - listfigurename={图~清~单}, - listtablename={表~清~单}, -} -% 标题样式修改 -\ctexset{% - chapter={%章标题 : 三号黑体居中 单倍行距 段前/段后0.5行 另起新页 - format=\zihao{3} \heiti \centering \thispagestyle{fancy}, - fixskip=true, - beforeskip=19.27pt, - afterskip=22.48pt, - break=\clearpage, - }, - section={%节标题 : 四号黑体居左 单倍行距 段前/段后0.5行 - format=\zihao{4} \heiti \raggedright, - beforeskip=8.43pt, - afterskip=11.24pt, - }, - subsection={%条标题 : 小四号黑体居左 单倍行距 段前/段后0.5行 - format=\zihao{-4} \heiti \raggedright, - beforeskip=3.61pt, - afterskip=3.61pt, - }, - subsubsection={% 附加4级标题 : 小四号宋体加粗居左 - format=\zihao{-4} \songti \raggedright, - }, - paragraph={% 附加5级标题 : 小四号宋体居左 - format=\zihao{-4} \songti \raggedright, - }, - subparagraph={% 附加6级标题 : 小四号宋体居左 - format=\zihao{-4} \songti \raggedright, - } -} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% 页面设置 -% 设置页面大小 -% A4纸页边距均25mm -% 打印留边平移5mm -\geometry{papersize={210mm,297mm}} -\ifthenelse{\equal{\@printtype}{twoside}}{% 双面面 - \geometry{top=25mm,bottom=25mm,inner=30mm,outer=20mm} -}{% - \ifthenelse{\equal{\@printtype}{oneside}}{% 单面 - \geometry{top=25mm,bottom=25mm,left=25mm,right=25mm} - \geometry{layouthoffset=5mm}}{} -} - -% 设置空白页眉页脚 -\pagestyle{fancy} -\fancyhf{} -\renewcommand{\headrulewidth}{0pt} - -% 设置目录格式 -\titlecontents{chapter}[0pt]{\heiti\zihao{-4}}{\thecontentslabel\ }{} -{\hspace{.5em}\titlerule*[4pt]{$\cdot$}\contentspage} -\titlecontents{section}[2em]{\songti\zihao{-4}}{\thecontentslabel\ }{} -{\hspace{.5em}\titlerule*[4pt]{$\cdot$}\contentspage} -\titlecontents{subsection}[3em]{\songti\zihao{-4}}{\thecontentslabel\ }{} -{\hspace{.5em}\titlerule*[4pt]{$\cdot$}\contentspage} -\titlecontents{figure}[0pt]{\songti\zihao{-4}}{图~\thecontentslabel\quad}{} -{\hspace{.5em}\titlerule*[4pt]{$\cdot$}\contentspage} -\titlecontents{table}[0pt]{\songti\zihao{-4}}{表~\thecontentslabel\quad}{} -{\hspace{.5em}\titlerule*[4pt]{$\cdot$}\contentspage} - -% 图表环境设置 -\let\org@table\table -\let\org@endtable\endtable -\renewenvironment{table}[1][h!] -{\begin{spacing}{1.2} \org@table[#1] \songti\zihao{5}} -{\org@endtable \end{spacing}} - -\let\org@longtable\longtable -\let\org@endlongtable\endlongtable -\renewenvironment{longtable}[1][h!] -{\begin{spacing}{1.2} \songti\zihao{5}\org@longtable[#1]} -{\org@endlongtable \end{spacing}} - -\@removefromreset{table}{chapter} -\@removefromreset{figure}{chapter} -\renewcommand{\thefigure}{\arabic{figure}} -\renewcommand{\thetable}{\arabic{table}} -\renewcommand{\p@subfigure}{\thefigure} - -\DeclareCaptionFormat{tabfigformat}{\bf\songti\zihao{5}{#1~~#3}} -\captionsetup[figure]{ - position=bottom, margin=0mm, format=tabfigformat, - aboveskip=6pt, belowskip=-15pt, justification=centerlast} -\captionsetup[table]{ - position=top, margin=0mm, format=tabfigformat, - aboveskip=0pt, belowskip=0pt, justification=centerlast} - -%出现在页面中间的浮动对象与上下方文本之间的垂直距离 -%缺省为 12pt plus 2pt minus 2pt。 -%\setlength{\intextsep}{12pt \@plus2pt \@minus 2pt} - -%出现在页面的顶部或底部的浮动对象之间的垂直距离 -%缺省为 12pt plus 2pt minus 2pt -%\setlength{\floatsep}{12pt \@plus2pt \@minus2pt} - -%出现在页面的顶部或底部的浮动对象与文本之间的垂直距离 -% 缺省为 20pt plus 2pt minus 4pt。 -%\setlength{\textfloatsep}{20bp \@plus2pt \@minus4pt} - -% 列表间接设置 -\setlist{ - topsep=0pt, % 列表环境与上文距离 - itemsep=0pt, % 条目间距离 - parsep=\parskip, % 条目内段落距离 - partopsep=0pt % 列表环境与下文距离 -} - -% 设置参考文献格式 -\newcommand\bibstyle@super{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}} -\newcommand\bibstyle@numbers{\bibpunct{[}{]}{,}{n}{,}{,}} -\newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}} -\bibpunct{[}{]}{,}{n}{}{} -\setlength{\bibsep}{0pt} -\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}} - -% 设置PDF -\hypersetup{% - colorlinks=true, - bookmarksnumbered=true, - bookmarksopen=true, - pdffitwindow=true, - pdfsubject={BUAA thesis}, - pdfcreator={LaTeXed~By~WeiQM} -} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% 工具函数 -\newcommand{\checkinput}{%检测输入元素 - \ifthenelse{\isundefined{\@titlecn}}{\errmessage{% - Please set title by 'Title'.}}{} - \ifthenelse{\isundefined{\@department}}{\errmessage{% - Please set department by 'Department'.}}{} - \ifthenelse{\isundefined{\@major}}{\errmessage{% - Please set major by 'Major'.}}{} - \ifthenelse{\isundefined{\@feild}}{\errmessage{% - Please set feild by 'Feild'.}}{} - \ifthenelse{\isundefined{\@tutorcn}}{\errmessage{% - Please set tutor name by 'Tutor'.}}{} - \ifthenelse{\isundefined{\@authorcn}}{\errmessage{% - Please set author name by 'Author'.}}{} - \ifthenelse{\isundefined{\@studentid}}{\errmessage{% - Please set student ID date by 'StudentID'.}}{} - \ifthenelse{\isundefined{\@dateenrolly}}{\errmessage{% - Please set enroll date by 'DateEnroll'.}}{} - \ifthenelse{\isundefined{\@dategraduatey}}{\errmessage{% - Please set graduate date by 'DateGraduate'.}}{} - \ifthenelse{\isundefined{\@datesubmity}}{\errmessage{% - Please set submite date by 'DateSubmit'.}}{} - \ifthenelse{\isundefined{\@datedefencey}}{\errmessage{% - Please set defence date by 'DateDefence'.}}{} - \ifthenelse{\equal{\@refcolor}{\empty}}{}{% - \ifthenelse{\equal{\@refcolor}{on} \OR \equal{\@refcolor}{off}}{}{ - \errmessage{Please use 'on' of 'off' for refcolor.}} - } - \ifthenelse{\equal{\@beginright}{\empty}}{}{% - \ifthenelse{\equal{\@beginright}{on} \OR \equal{\@beginright}{off}}{}{ - \errmessage{Please use 'on' of 'off' for beginright.}} - } - \ifthenelse{\isundefined{\@listfigtab}}{}{% - \ifthenelse{\equal{\@listfigtab}{on} \OR \equal{\@listfigtab}{off}}{}{ - \errmessage{Please use 'on' of 'off' for listfigtab.}} - } -} - -\newcommand{\clearautopage}{%右侧起新页 - \clearpage - \ifthenelse{\equal{\@printtype}{twoside}}{% 双面 - \ifodd\c@page - \else - \hbox{} - \vspace*{\fill} - \begin{center} - {\textcolor[rgb]{0.75,0.75,0.75}{\@emptypagewords}} - \end{center} - \vspace{\fill} - \thispagestyle{empty} - \newpage - \if@twocolumn \hbox{} \newpage \fi - \fi - }{} -} -\newcommand{\sethyper}{%设置链接引用颜色 - \hypersetup{% - pdftitle={\@titlecn}, - pdfkeywords={\@keywordcn}, - pdfauthor={\@authorcn} - } - \ifthenelse{\equal{\@refcolor}{on}}{% - \hypersetup{ - allcolors=blue, - } - }{% - \hypersetup{ - allcolors=black, - } - } -} -\newcommand{\TranSecretLevel}[1]{%密级翻译 - \ifthenelse{\equal{\@permission}{public}}{\relax}{ - \ifthenelse{\equal{\@permission}{privacy}}{内~~部}{ - \ifthenelse{\equal{\@permission}{secret3}}{秘密~\ding{73}~{\bfseries 3}年}{ - \ifthenelse{\equal{\@permission}{secret5}}{秘密~\ding{73}~{\bfseries 5}年}{ - \ifthenelse{\equal{\@permission}{secret10}}{秘密~\ding{73}~{\bfseries 10}年}{ - \ifthenelse{\equal{\@permission}{secret*}}{秘密~\ding{73}~永久}{ - \ifthenelse{\equal{\@permission}{classified3}}{机密~\ding{73}~{\bfseries 3}年}{ - \ifthenelse{\equal{\@permission}{classified5}}{机密~\ding{73}~{\bfseries 5}年}{ - \ifthenelse{\equal{\@permission}{classified10}}{机密~\ding{73}~{\bfseries 10}年}{ - \ifthenelse{\equal{\@permission}{classified*}}{机密~\ding{73}~永久}{ - \ifthenelse{\equal{\@permission}{topsecret3}}{绝密~\ding{73}~{\bfseries 3}年}{ - \ifthenelse{\equal{\@permission}{topsecret5}}{绝密~\ding{73}~{\bfseries 5}年}{ - \ifthenelse{\equal{\@permission}{topsecret10}}{绝密~\ding{73}~{\bfseries 10}年}{ - \ifthenelse{\equal{\@permission}{topsecret*}}{绝密~\ding{73}~永久}{ - \ifthenelse{\equal{\@permission}{permission*}}{密级~\ding{73}~保密期限}{ - }}}}}}}}}}}}}}} -} -\newcommand{\TranDegree}[1]{%职称翻译 - \frenchspacing - \ifthenelse{\equal{#1}{教授}}{Prof.}{% - \ifthenelse{\equal{#1}{副教授}}{Prof.}{% - \ifthenelse{\equal{#1}{讲师}}{Teacher}{% - \ifthenelse{\equal{#1}{高工}}{Engineer}{% - \ifthenelse{\equal{#1}{研究员}}{Researcher}{% - \ifthenelse{\equal{#1}{副研究员}}{Researcher}{% - }}}}}} -} -\newcommand{\TranDepartment}[1]{%院系翻译 - \ifthenelse{\equal{#1}{材料科学与工程学院}}{School of Materials Science and Engineering}{% - \ifthenelse{\equal{#1}{电子信息工程学院}}{School of Electronic and Information Engineering}{% - \ifthenelse{\equal{#1}{自动化科学与电气工程学院}}{School of Automation Science and Electronic Engineering}{% - \ifthenelse{\equal{#1}{能源与动力工程学院}}{School of Energy and Power Engineering}{% - \ifthenelse{\equal{#1}{航空科学与工程学院}}{School of Aeronautic Science and Engineering}{% - \ifthenelse{\equal{#1}{计算机学院}}{School of Computer Science and Engineering}{% - \ifthenelse{\equal{#1}{机械工程及自动化学院}}{School of Mechanical Engineering and Automation}{% - \ifthenelse{\equal{#1}{经济管理学院}}{School of Economics and Management}{% - \ifthenelse{\equal{#1}{数学与系统科学学院}}{School of Mathematics and Systems Science}{% - \ifthenelse{\equal{#1}{生物与医学工程学院}}{School of Biological Science and Medical Engineering}{% - \ifthenelse{\equal{#1}{人文社会科学学院}}{School of Humanities and Social Sciences}{% - \ifthenelse{\equal{#1}{公共管理学院}}{School of Humanities and Social Sciences}{% - \ifthenelse{\equal{#1}{人文社会科学学院(公共管理学院)}}{School of Humanities and Social Sciences}{% - \ifthenelse{\equal{#1}{人文社会科学学院(公共管理学院)}}{School of Humanities and Social Sciences}{% - \ifthenelse{\equal{#1}{外国语学院}}{School of Foreign Languages}{% - \ifthenelse{\equal{#1}{交通科学与工程学院}}{School of Transportation Science and Engineering}{% - \ifthenelse{\equal{#1}{可靠性与系统工程学院}}{School of Reliability and Systems Engineering}{% - \ifthenelse{\equal{#1}{宇航学院}}{School of Astronautics}{% - \ifthenelse{\equal{#1}{飞行学院}}{Flight College}{% - \ifthenelse{\equal{#1}{仪器科学与光电工程学院}}{School of Instrumentation Science and Opto-electronics Engineering}{% - \ifthenelse{\equal{#1}{北京学院}}{School of Beijing}{% - \ifthenelse{\equal{#1}{物理科学与核能工程学院}}{School of Physics and Nuclear Energy Engineering}{% - \ifthenelse{\equal{#1}{法学院}}{School of Law}{% - \ifthenelse{\equal{#1}{软件学院}}{School of Software}{% - \ifthenelse{\equal{#1}{继续教育学院}}{College of Continuing Education}{% - \ifthenelse{\equal{#1}{高等理工学院}}{School of Advance Engineering}{% - \ifthenelse{\equal{#1}{中法工程师学院}}{Central Pekin}{% - \ifthenelse{\equal{#1}{国际学院}}{Beihang School}{% - \ifthenelse{\equal{#1}{新媒体艺术与设计学院}}{School of New Media Art and Design}{% - \ifthenelse{\equal{#1}{化学学院}}{School of Chemistry}{% - \ifthenelse{\equal{#1}{马克思主义学院}}{School of Marxism}{% - \ifthenelse{\equal{#1}{无人系统研究院}}{Unmanned System Institute}{% - \ifthenelse{\equal{#1}{人文与社会科学高等研究院}}{Institue for Advanced Studies in Humanities and Social Science}{% - \ifthenelse{\equal{#1}{空间与环境学院}}{School of Space and Environment}{% - \ifthenelse{\equal{#1}{国际通用工程学院}}{School of General Engineering}{% - \ifthenelse{\equal{#1}{国际交叉科学研究院}}{International Research Institue for Multidisciplinary Science}{% - \ifthenelse{\equal{#1}{医工交叉创新研究院}}{Interdisciplinary Innovation Institute for Medicine and Engineering}{% - \ifthenelse{\equal{#1}{北斗丝路学院}}{School of BeiDou and the Silk Road}{% - \ifthenelse{\equal{#1}{网络空间安全学院}}{School of Cyberspace Security}{% - }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} -} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% AfterPreamble = AtBeginDocument -% AtEndPreamble -> AtBeginDocument -> AfterEndPreamble -> AtEndDocument -> AfterEndDocument -\AtBeginDocument{% - \checkinput - \sethyper -} -\AfterEndPreamble{% - \makecovercn - \makecoveren - \makecoverinner - \makestatementbuaa - - \fancyfoot[C]{\zihao{5} \uppercase\expandafter{\romannumeral \thepage}} - \setcounter{page}{1} - \abstructkeyword - \makecontextlist - \denotation - - \renewcommand{\headrulewidth}{0.4pt} - \fancyfoot[C]{\zihao{5} \thepage} - \fancyhead[CE]{\zihao{-5} \leftmark} - \ifthenelse{\equal{\@thesis}{master} \OR \equal{\@thesis}{professional}}{% - \fancyhead[CO]{\zihao{-5} 北京航空航天大学硕士学位论文}}{} - \ifthenelse{\equal{\@thesis}{doctor}}{% - \fancyhead[CO]{\zihao{-5} 北京航空航天大学博士学位论文}}{} - \setcounter{page}{1} -} - - -%% 制作封面及声明 -\newcommand{\makecovercn}{% 中文封面 -{\pdfbookmark[0]{中文封面}{makecovercn} - - {\zihao{5} \heiti \noindent - \makebox[5\ccwd][s]{中图分类号}:{\bfseries \@clc}% - \hfill \TranSecretLevel{\@permission} - \\ - \makebox[5\ccwd][s]{论文编号}:{\bfseries 10006\@studentid} - } - - \vspace{80pt} - - \begin{figure}[h] - \centering - \includegraphics{pic/logo-buaa} - \end{figure} - \vspace{-10pt} - \begin{figure}[h] - \centering - \ifthenelse{\equal{\@thesis}{master}}{\includegraphics[width=0.9\linewidth]{pic/head-master}}{ - \ifthenelse{\equal{\@thesis}{professional}}{\includegraphics[width=0.9\linewidth]{pic/head-professional}}{ - \ifthenelse{\equal{\@thesis}{doctor}}{\includegraphics[width=0.9\linewidth]{pic/head-doctor}}{ - }}} - \end{figure} - - \centering - - \vspace{20pt} - \begin{spacing}{1.2} - \ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{} - \zihao{-0} \songti \bfseries \@titlecn - \ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{% - \\ \vspace{10pt} - \zihao{1} \@subtitlecn - } - \end{spacing} - - \vspace{100pt} - \begin{spacing}{1.8} - \ziju{0.2} \zihao{-3} \heiti - \begin{tabular}{cll} - 作者姓名 & \@authorcn \\ - 学科专业 & \multicolumn{2}{l}{\@major} \\ - 指导老师 & \@tutorcn & \@tutordegree \\ - \ifthenelse{\isundefined{\@cotutorcn}}{}{% - & \@cotutorcn & \@cotutordegree\\ - } - 培养院系 & \multicolumn{2}{l}{\@department} - \end{tabular} - \end{spacing} - - \clearautopage -}} -\newcommand{\makecoveren}{% 英文封面 -{\pdfbookmark[0]{英文封面}{makecoveren} - \centering - - \ \vspace{100pt} - - \begin{spacing}{1.2} - - {\begin{spacing}{1.2} - \zihao{-2} \bfseries - \ifthenelse{\isundefined{\@subtitleen}}{\vspace{20pt}}{} - \@titleen - \ifthenelse{\isundefined{\@subtitleen}}{\vspace{20pt}}{% - \\ \vspace{10pt} - \zihao{3} \@subtitleen} - \end{spacing} - } - - \vspace{50pt} - - {\zihao{4} - A Dissertation Submitted for the Degree of - \ifthenelse{\equal{\@thesis}{master} \OR \equal{\@thesis}{professional}}{Master}{} - \ifthenelse{\equal{\@thesis}{doctor}}{Docrtor of Philosophy}{} - } - - \vspace{100pt} - {\zihao{-3} \bfseries - \begin{tabular}{ll} - \ifthenelse{\isundefined{\@cotutorcn}}{% - \makebox[70pt][s]{Candidate}: & \@authoren \\ - \vspace{-10pt}\\ - \makebox[70pt][s]{Supervisor}: & \TranDegree{\@tutordegree} \hspace{-8pt} \@tutoren \\ - }{% - \makebox[77pt][s]{Candidate}: & \@authoren \\ - \vspace{-10pt}\\ - \makebox[77pt][s]{Supervisors}: & \TranDegree{\@tutordegree} \hspace{-8pt} \@tutoren \\ - & \TranDegree{\@cotutordegree} \hspace{-8pt} \@cotutoren\\ - } - \end{tabular} - } - \end{spacing} - - \vspace{150pt} - - \begin{spacing}{2.2} - {\zihao{-3} - \TranDepartment{\@department} \\ - Beihang University, Beijing, China - } - \end{spacing} - - \clearautopage -}} -\newcommand{\makecoverinner}{% 封面内页 -{\pdfbookmark[0]{题目页}{makecoverinner} - - {\zihao{5} \heiti \noindent - \makebox[5\ccwd][s]{中图分类号}:{\bfseries \@clc}% - \hfill \TranSecretLevel{\@permission} - \\ - \makebox[5\ccwd][s]{论文编号}:{\bfseries 10006\@studentid} - } - - \centering - \vspace{150pt} - - \begin{spacing}{1.2} - {\zihao{-2} \heiti - \ifthenelse{\equal{\@thesis}{master}}{% - \makebox[16\ccwd][s]{硕士学位论文}}{ - \ifthenelse{\equal{\@thesis}{professional}}{% - \makebox[16\ccwd][s]{硕士学位论文}}{ - \ifthenelse{\equal{\@thesis}{doctor}}{% - \makebox[16\ccwd][s]{博士学位论文}}{} - }} - - } - - \vspace{50pt} - {\begin{spacing}{1.2} - \zihao{-1} \heiti - \ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{} - \@titlecn - \ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{% - \\ \vspace{10pt} - \zihao{2} \@subtitlecn} - \end{spacing} - } - \end{spacing} - - \vspace{120pt} - \begin{spacing}{2.3} - \zihao{-4} \songti - \begin{tabular}{lrrrlrrr} - 作者姓名 & \multicolumn{3}{l}{\@authorcn} & 申请学位级别 & \multicolumn{3}{l}{ \hspace{-6pt} - \@branch \hspace{-0.5\ccwd} - \ifthenelse{\equal{\@thesis}{master} \OR \equal{\@thesis}{professional}}{硕士}{ - \ifthenelse{\equal{\@thesis}{doctor}}{博士}{}} - } \\ - 指导老师姓名 & \multicolumn{3}{l}{\@tutorcn} & 职\hspace{2\ccwd}称 & \multicolumn{3}{l}{\@tutordegree} \\ - 学科专业 & \multicolumn{3}{l}{\@major} & 研究方向 & \multicolumn{3}{l}{\@feild} \\ - 学习时间自 & \@dateenrolly\ 年 & \@dateenrollm\ 月 & \@dateenrolld\ 日 & 起至 & \@dategraduatey\ 年 & \@dategraduatem\ 月 & \@dategraduated\ 日止 \\ - 论文提交日期 & \@datesubmity\ 年 & \@datesubmitm\ 月 & \@datesubmitd\ 日 & 论文答辩日期 & \@datedefencey \ 年 & \@datedefencem \ 月 & \@datedefenced \ 日\hspace{\ccwd} \\ - 学位授予单位 & \multicolumn{3}{l}{北京航空航天大学} & 学位授予日期 & 年 & 月 & 日\hspace{\ccwd} \\ - \end{tabular} - \end{spacing} - \clearautopage -}} -\newcommand{\makestatementbuaa}{% 北航声明 -{\pdfbookmark[0]{北航声明}{makestatementbuaa} - - \begin{spacing}{1.7}%1.5+0.2 - {\zihao{3} \heiti \centerline{关于学位论文的独创性声明}} - {\zihao{-4} \songti ~\par - 本人郑重声明:所呈交的论文是本人在指导教师指导下独立进行研究工作所取得的 - 成果,论文中有关资料和数据是实事求是的。尽我所知,除文中已经加以标注和致谢外, - 本论文不包含其他人已经发表或撰写的研究成果,也不包含本人或他人为获得北京航空 - 航天大学或其它教育机构的学位或学历证书而使用过的材料。与我一同工作的同志对研 - 究所做的任何贡献均已在论文中作出了明确的说明。 - - 若有不实之处,本人愿意承担相关法律责任。 \\ - - {\zihao{5}\ \ 学位论文作者签名:\underline{\hspace{7\ccwd}} \hspace{4\ccwd} - 日期:\hspace{3\ccwd}年\hspace{2\ccwd}月\hspace{2\ccwd}日} - } - - \vspace{50pt} - - {\zihao{3} \heiti \centerline{学位论文使用授权}} - {\zihao{-4} \songti ~\par - 本人完全同意北京航空航天大学有权使用本学位论文(包括但不限于其印刷版和电 - 子版),使用方式包括但不限于:保留学位论文,按规定向国家有关部门(机构)送交学 - 位论文,以学术交流为目的赠送和交换学位论文,允许学位论文被查阅、借阅和复印, - 将学位论文的全部或部分内容编入有关数据库进行检索,采用影印、缩印或其他复制手 - 段保存学位论文。 - - 保密学位论文在解密后的使用授权同上。 \\ - - {\zihao{5}\ \ 学位论文作者签名:\underline{\hspace{7\ccwd}} \hspace{4\ccwd} - 日期:\hspace{3\ccwd}年\hspace{2\ccwd}月\hspace{2\ccwd}日} - - {\zihao{5}\ \ 指导教师签名:\underline{\hspace{9\ccwd}} \hspace{4\ccwd} - 日期:\hspace{3\ccwd}年\hspace{2\ccwd}月\hspace{2\ccwd}日} - } - - \end{spacing} - \clearautopage -}} - - -\newcommand{\abstructkeyword}{% 摘要 -{\pdfbookmark[0]{中英摘要}{abstructkeyword} - - \begin{spacing}{1.7}%1.5+0.2 - - {\zihao{3} \heiti \centerline{摘~~~~要}} - {\zihao{-4} \songti ~\par - \@abstrctcn \par ~\par - {\heiti 关键字:} \@keywordcn - } - - \clearpage - %\ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage} - - {\zihao{3} \bfseries \centerline{Abstract}} - {\zihao{-4} ~\par - \@abstrcten \par ~\par - {\bfseries Key words:} \@keyworden - } - - \end{spacing} - - \ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage} -}} -\newcommand{\makecontextlist}{% 目录 -{\pdfbookmark[0]{目录}{makecontextlist} - \tableofcontents - \renewcommand\addvspace[1]{} - \ifthenelse{\isundefined{\@listfigtab}}{}{% - \ifthenelse{\equal{\@listfigtab}{on}}{% - \renewcommand{\addvspace}[1]{} - \clearpage - \pdfbookmark[0]{图目录}{listoffigures} - \listoffigures - \clearpage - \pdfbookmark[0]{表目录}{listoftables} - \listoftables - }{} - } - \ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage} -}} -\newcommand{\denotation}{% 缩写定义 -{\ifthenelse{\isundefined{\@abbreviations}}{}{% - \pdfbookmark[0]{主要符号表}{denotation} - \chapter*{主要符号表} - %\centering - %\begin{tabular}{cl} - \@abbreviations - %\end{tabular}% - \ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage} - } -}} - - -\newcommand{\chaptera}[1]{%无章号但编入目录 - \ctexset{chapter/numbering=false} - \chapter{#1} - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{subsubsection}{0}% - % - \gdef\thesection{\@Alph\c@section}% - \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% - % - - \renewcommand{\thefigure}{A\arabic{figure}} - \setcounter{figure}{0} - \renewcommand{\thetable}{A\arabic{table}} - \setcounter{table}{0} - \renewcommand{\theequation}{A\arabic{equation}} - \setcounter{equation}{0} -} -\newcommand{\summary}{%结论 - \ctexset{chapter/numbering=false} - \chapter{结~~~~论} - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{subsubsection}{0}% - % - \gdef\thesection{\@Alph\c@section}% - \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% - % - - \renewcommand{\thefigure}{A\arabic{figure}} - \setcounter{figure}{0} - \renewcommand{\thetable}{A\arabic{table}} - \setcounter{table}{0} - \renewcommand{\theequation}{A\arabic{equation}} - \setcounter{equation}{0} -} -\newcommand{\Bib}[2]{%参考文献 - \bibliographystyle{#1} - \clearpage - \phantomsection - \addcontentsline{toc}{chapter}{参考文献} - \bibliography{#2} -} -\renewcommand{\appendix}{% 附录 - \ctexset{chapter/numbering=false} - \chapter{附~~~~录} - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{subsubsection}{0}% - % - \gdef\thesection{\@Alph\c@section}% - \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% - % - - \renewcommand{\thefigure}{A\arabic{figure}} - \setcounter{figure}{0} - \renewcommand{\thetable}{A\arabic{table}} - \setcounter{table}{0} - \renewcommand{\theequation}{A\arabic{equation}} - \setcounter{equation}{0} -} -\newcommand{\achievement}{%学术成果 - \ctexset{chapter/numbering=false} - \ifthenelse{\equal{\@thesis}{master}}{\chapter{攻读硕士学位期间取得的学术成果}}{ - \ifthenelse{\equal{\@thesis}{professional}}{\chapter{攻读硕士学位期间取得的学术成果}}{ - \ifthenelse{\equal{\@thesis}{doctor}}{\chapter{攻读博士学位期间取得的研究成果}}{ - }}} - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{subsubsection}{0}% - % - \gdef\thesection{\@Alph\c@section}% - \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% - % - - \renewcommand{\thefigure}{A\arabic{figure}} - \setcounter{figure}{0} - \renewcommand{\thetable}{A\arabic{table}} - \setcounter{table}{0} - \renewcommand{\theequation}{A\arabic{equation}} - \setcounter{equation}{0} -} -\newcommand{\acknowledgments}{%致谢 - \ctexset{chapter/numbering=false} - \chapter{致~~~~谢} - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{subsubsection}{0}% - % - \gdef\thesection{\@Alph\c@section}% - \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% - % - - \renewcommand{\thefigure}{A\arabic{figure}} - \setcounter{figure}{0} - \renewcommand{\thetable}{A\arabic{table}} - \setcounter{table}{0} - \renewcommand{\theequation}{A\arabic{equation}} - \setcounter{equation}{0} -} -\newcommand{\biography}{%作者简介 - \ctexset{chapter/numbering=false} - \chapter{作者简介} - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \setcounter{subsubsection}{0}% - % - \gdef\thesection{\@Alph\c@section}% - \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% - % - - \renewcommand{\thefigure}{A\arabic{figure}} - \setcounter{figure}{0} - \renewcommand{\thetable}{A\arabic{table}} - \setcounter{table}{0} - \renewcommand{\theequation}{A\arabic{equation}} - \setcounter{equation}{0} -} - -%% --END-- -\endinput diff --git a/tex/chap_instruction.tex b/tex/chap_instruction.tex index cda603a..8579976 100644 --- a/tex/chap_instruction.tex +++ b/tex/chap_instruction.tex @@ -14,18 +14,17 @@ \section{宏包使用} 请将以下文件与此LaTeX文件放在同一目录中: \begin{tabular}{ll} - \verb|buaa.cls | & $\triangleright$ LaTeX宏模板文件 \\ - \verb|buaa_mac.cls | & $\triangleright$ LaTeX宏模板文件(For Mac with XeLaTeX) \\ - \verb|GBT7714-2005.bst| & $\triangleright$ 国标参考文献BibTeX样式文件2005 \\ - \verb|GBT7714-2015.bst| & $\triangleright$ 国标参考文献BibTeX样式文件2015 \\ - \verb|logo-buaa.eps| & $\triangleright$ 论文封皮北航字样 \\ - \verb|head-doctor.eps| & $\triangleright$ 论文封皮北博士学位论文标题\\ - \verb|head-master.eps| & $\triangleright$ 论文封皮北学硕学位论文标题 \\ - \verb|head-professional.eps| & $\triangleright$ 论文封皮北专硕学位论文标题\\ - \verb|tex/*.tex| & $\triangleright$ 本模板样例中的独立章节\\ + \verb|buaa.cls | & $\triangleright$ LaTeX宏模板文件 \\ + \verb|bst/GBT7714-2005.bst| & $\triangleright$ 国标参考文献BibTeX样式文件2005 \\ + \verb|bst/GBT7714-2015.bst| & $\triangleright$ 国标参考文献BibTeX样式文件2015 \\ + \verb|pic/logo-buaa.eps| & $\triangleright$ 论文封皮北航字样 \\ + \verb|pic/head-doctor.eps| & $\triangleright$ 论文封皮北博士学位论文标题\\ + \verb|pic/head-master.eps| & $\triangleright$ 论文封皮北学硕学位论文标题 \\ + \verb|pic/head-professional.eps| & $\triangleright$ 论文封皮北专硕学位论文标题\\ + \verb|tex/*.tex| & $\triangleright$ 本模板样例中的独立章节\\ \end{tabular}\\ -通过 \verb|\documentclass[,,,]{buaa}|载入宏包: +通过 \verb|\documentclass[,,,,]{buaa}|载入宏包: \begin{itemize}[leftmargin=3cm] \item[{\tt thesis} $\triangleright$] 论文类型(thesis),可选值:\\ a) 学术硕士论文(\verb|master|)[缺省值]\\ @@ -49,21 +48,28 @@ \section{宏包使用} --- e.2) 绝密5年(\verb|topsecret5|)\\ --- e.3) 绝密10年(\verb|topsecret10|)\\ --- e.4) 绝密永久(\verb|topsecret*|) - \item[{\tt printtype} $\triangleright$] 打印属性(printtype),可选值: \\ + \item[{\tt printtype} $\triangleright$] 打印设置(printtype),可选值: \\ a) 单面打印(\verb|oneside|)[缺省值]\\ b) 双面打印(\verb|twoside|) + \item[{\tt ostype} $\triangleright$] 系统类型(printtype),可选值: \\ + a) Windows(\verb|win|)[缺省值]\\ + b) Linux(\verb|linux|)\\ + c) Mac(\verb|mac|) \item[{\tt ctexbookoptions} $\triangleright$] {\tt ctexbook}文档类支持的其他选项: \\ 使用{\tt ctexbookoptions}选项传递{\tt ctexbook}文档类支持的其他选项。 例如,使用{\tt fontset=founder}选项启用方正字体以避免生僻字乱码的问题\footnote{需要系统安装方正字体。}。 \end{itemize} 模板已内嵌LaTeX工具包: - {\tt ifthen},{\tt etoolbox},{\tt titletoc},{\tt remreset},{\tt remreset}, - {\tt geometry},{\tt fancyhdr},{\tt setspace},{\tt caption},{\tt float}, - {\tt graphicx},{\tt subfigure},{\tt epstopdf}, - {\tt book\-tabs},{\tt longtable},{\tt multirow},{\tt array}, {\tt enumitem}, - {\tt algorithm2e},{\tt amsmath},{\tt amsthm},{\tt listings}, - {\tt pifont},{\tt color},{\tt soul}, {\tt newtxtext}, {\tt newtxmath}。 + {\tt ifthen},{\tt etoolbox},{\tt titletoc},{\tt remreset}, + {\tt geometry},{\tt fancyhdr},{\tt setspace},{\tt float}, + {\tt graphicx},{\tt subfigure},{\tt epstopdf},{\tt array}, {\tt enumitem}, + {\tt booktabs},{\tt longtable},{\tt multirow},{\tt caption}, + {\tt listings},{\tt algorithm2e},{\tt amsmath},{\tt amsthm}, + {\tt hyperref},{\tt pifont},{\tt color},{\tt soul};\\ + For Windows: {\tt times}, {\tt newtxmath};\\ + For Linux: {\tt newtxtext}, {\tt newtxmath};\\ + For Mac: {\tt times}, {\tt fontspec}。 模板已内嵌宏:\verb|\highlight{text}|(黄色高亮)。 @@ -78,7 +84,7 @@ \section{选项设置} \item[{\tt $\backslash$refcolor} $\triangleright$] 开启/关闭引用编号颜色,包括参考文献,公式,图,表,算法等\\ \texttt{on}:开启 [默认]\\ \texttt{off}:关闭 - \item[{\tt $\backslash$beginright} $\triangleright$] 摘要和正文从右侧开始\\ + \item[{\tt $\backslash$beginright} $\triangleright$] 摘要和正文从右侧页开始\\ \texttt{on}:开启 [默认]\\ \texttt{off}:关闭 \item[{\tt $\backslash$emptypageword} $\triangleright$] 空白页留字 @@ -112,10 +118,9 @@ \section{章节撰写} \section{注意事项} \begin{itemize} \item[$\triangleright$] \textit{中文斜体}将转换为楷体; - \item[$\triangleright$] \verb|buaa.cls|采用包{\tt newtxtext}和{\tt newtxmath},\textbf{中文粗体}在Windows下转换为黑体(有可能是因为newtx包没安装好,By WeiQM),Linux下正常(By QiaoJF); - \item[$\triangleright$] \verb|buaa_mac.cls|采用包{\tt times},\textbf{中文粗体}转换为黑体(By CaiBW); + \item[$\triangleright$] \textbf{中文粗体}在Windows(From WeiQM)和Mac(From CaiBW)下转换为黑体,Linux下正常(From QiaoJF); \item[$\triangleright$] \verb|\label{}|中不能使用中文; - \item[$\triangleright$] 浮动体与正文之间的距离是弹性的; + \item[$\triangleright$] 浮动体与正文之间的距离是弹性的,根据内容调整,不太好控制; \item[$\triangleright$] 命令符与汉字之间请注意加空格以避免undefined错误(pdfLaTeX下好像一般不存在这个问题,主要在XeLaTeX编译环境下发生); \end{itemize} @@ -129,6 +134,5 @@ \section{ToDo} %----------------------------- \section{意见及问题反馈} -\indent E-mail:weiqm@buaa.edu.cn - +\indent E-mail:weiqm@buaa.edu.cn \\ \indent GitHub:\href{https://github.com/CheckBoxStudio/BUAAThesis/issues}{https://github.com/CheckBoxStudio/BUAAThesis/issues} diff --git a/tex/chap_intro.tex b/tex/chap_intro.tex index 077fa38..cf24f5f 100644 --- a/tex/chap_intro.tex +++ b/tex/chap_intro.tex @@ -5,11 +5,11 @@ \chapter{绪论} 大家好,这是北航论文\LaTeX{}模板(\CTeX{}-Based)---\BUAAThesis{}。 -\BUAAThesis{}为北航研究生学位论文模板,适用于理工类博士、学术硕士和专业硕士。本\LaTeX{}模板参考自2015年8月版北航《研究生手册》(以下简称《手册》),具体要求请参见各自的《手册》,最终成文格式需参考学院要求及打印方意见。本模板中大量内容和说明直接摘抄自《手册》(2015年8月版),基本覆盖了论文内容和格式方面的要求。Mac系统下请采用\verb|buaa_mac|宏包并使用XeLaTeX编译。 +\BUAAThesis{}为北航研究生学位论文模板,适用于理工类博士、学术硕士和专业硕士。本\LaTeX{}模板参考自2015年8月版北航《研究生手册》(以下简称《手册》),具体要求请参见各自的《手册》,最终成文格式需参考学院要求及打印方意见。本模板中大量内容和说明直接摘抄自《手册》(2015年8月版),基本覆盖了论文内容和格式方面的要求。 文献著录BibTeX样式采用Haixing Hu开源的2005版参考文献著录BibTeX样式\href{https://github.com/Haixing-Hu/GBT7714-2005-BibTeX-Style}{GBT~7714-2005}及Zeping Lee开源的2015版参考文献著录BibTeX样式\href{https://github.com/zepinglee/gbt7714-bibtex-style}{GBT7714-2015},在此感谢两位的开源分享。请自行选用:\\ -\verb|\Bib{GBT7714-2005}{yourRefFile}|或\\ -\verb|\Bib{GBT7714-2015}{yourRefFile}|。 +\verb|\Bib{bst/GBT7714-2005}{yourRefFile}|或\\ +\verb|\Bib{bst/GBT7714-2015}{yourRefFile}|。 本模板已上传GitHub\footnote{\href{https://github.com/CheckBoxStudio/BUAAThesis}{https://github.com/CheckBoxStudio/BUAAThesis}},该仓库中同时也包含了相应的Word模板。