哈工大毕业设计模板
Author
刘勇杰
Last Updated
7 лет назад
License
Creative Commons CC BY 4.0
Аннотация
Harbin Institute of Technology thesis template
Harbin Institute of Technology thesis template
% !Mode:: "TeX:UTF-8"
\def\usewhat{xelatex} % 定义编译方式 pdflatex, dvipdfmx, or xelatex
\def \xuewei{Bachelor} % 定义学位 Doctor, Master or Bachelor
\def\xueke{Engineering} % 定义学科 Engineering, Science, Management, Arts, Philosophy, Economics, Laws, Education, or History
\newif\ifusexelatex %判断编译环境
\def\temp{xelatex}
\ifx\temp\usewhat
\usexelatextrue
\fi
\ifusexelatex
\documentclass[cs4size,openany,twoside,UTF8,normalindentfirst,nofonts]{ctexbook}
\else
\documentclass[cs4size,openany,twoside,UTF8]{ctexbook}
\fi
\input{setup/type.tex} % 类型定义
\ifusexelatex
\input{setup/xepackage.tex} % 引用xe的宏包
\else
\input{setup/package.tex} % 引用的宏包
\fi
\graphicspath{{figures/}} %定义所有的eps文件在 figures 子目录下
\begin{document}
\ifusexelatex
\input{setup/xeDefinition} % 文本xe格式定义
\else
\input{setup/Definition} % 文本格式定义
\fi
\frontmatter
\ifxueweibachelor
\ifusexelatex
\input{setup/xebformat} % 本科xe蛋疼格式
\else
\input{setup/bformat} % 本科蛋疼格式
\fi
\else
\ifusexelatex
\input{setup/xeformat} % 硕博xe格式
\else
\input{setup/format} % 硕博格式
\fi
\fi
\frontmatter
\ifxueweibachelor
\input{bcover} % 本科蛋疼封面
\else
\input{cover} % 硕博封面
\fi
% 中英目录
\defaultfont
\clearpage{\pagestyle{empty}\cleardoublepage}
\pdfbookmark[0]{目~~~~录}{mulu}
\tableofcontents % 中文目录
\clearpage{\pagestyle{empty}\cleardoublepage}
\ifxueweidoctor
\tableofengcontents % 英文目录
\clearpage{\pagestyle{empty}\cleardoublepage} % 清除目录后面空页的页眉和页脚
\fi
\mainmatter\defaultfont\sloppy\raggedbottom
% Only for compiling the example successfully with XeLaTex here
% Use your own content here
\ifusexelatex
\include{body/xeintroduction}
\else
\include{body/introduction}
\fi
\include{body/figures}
\include{body/tables}
\ifusexelatex
\include{body/xeequations}
\else
\include{body/equations}
\fi
\include{body/others}
\include{body/conclusion} % 结论
%\include{body/simplefigure}
%\include{body/simpletable}
%\include{body/simpleequation}
%\include{body/simplereference}
%参考文献
\defaultfont
\bibliographystyle{GBT7714-2005NLang-HIT}
\addcontentsline{toc}{chapter}{参考文献} % 参考文献加入到中文目录
\addcontentsline{toe}{chapter}{\bfseries References} % 参考文献加入到英文目录
\addtolength{\bibsep}{-0.8em}
\nocite{*} %若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献列表中。
\bibliography{reference}
\include{appendix/appA} % 附录
\include{appendix/publications} % 所发文章
\ifxueweibachelor
\include{appendix/bAuthorization} % 本科蛋疼承诺
\else
\include{appendix/Authorization} % 硕博承诺
\fi
\include{appendix/acknowledgements}% 致谢
\ifxueweidoctor
\include{appendix/Resume} % 博士学位论文有个人简介
\fi
\clearpage
\end{document}