
湖北大学理工科研究生毕业论文模板
作者:
陈唯苛
最近上传:
3 天前
许可:
LaTeX Project Public License 1.3c
摘要:
本文为湖北大学理工科研究生毕业论文模板,请务必打开之后在左上角菜单栏中切换编译器,依据湖北大学研究生毕业论文格式要求整理,详情及联系方式请见摘要

本文为湖北大学理工科研究生毕业论文模板,请务必打开之后在左上角菜单栏中切换编译器,依据湖北大学研究生毕业论文格式要求整理,详情及联系方式请见摘要
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 湖北大学理工科研究生生毕业论文LaTeX模板
% 使用要求:
% 左上角菜单栏目编译器:XeLatex(2019+),建议关闭拼写检查
% 正上方齿轮设置建议关闭 显示建议
% 注:存在问题,该模板没有1.1.1.1小节
% 图目录,表目录 跨章节间距不一致
% 使用方法:
% 编辑TEX目录下的各个tex文件的文件内容,分别书写从第一章到第六章的正文内容
% Other目录下为 中文摘要,英文摘要,目录页(包括图目录,表目录),附录,致谢,文献引用
% IMA目录下为图片目录分别存放从第一章到第六章的图片内容
% References为引用目录,请将bib论文格式写入References.bib中
% 最后编译main.tex
% 警告:需要修改配置就编辑main.tex的内容,编辑内容去TEX目录下的各个文件
% 其中PDF存放1.封面 2.提名页 3.学位论文英文内封 4.学位论文原创性声明需要自己提交修改
% 本人在坚持之后实在不会做封面以及后几页,请自己上传
% 如果发生图片显示不出来的问题,请换一个浏览器尝试一下
% 表格以及图片的粘贴方法请自行百度
%
% 创建日期:2025/07/19 (湖北大学人工智能学院2023级研究生陈唯苛)
% 结束日期:2025/07/22
% 内容结构:
% 文档类型,常用宏包,页面边距,页眉页脚,章节标题,目录设置,参考文献,
% 代码环境,引用工具,其余设定,正文内容
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%文档类型%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 毕业论文选取ctexbook比较合适
% twoside命令,设置为双面排版,左右页边距会根据奇偶页自动调整
% 12pt=小四,字体大小,默认为12pt
% ctexbook默认宋体(SimSun,正文)、黑体(SimHei,标题)
\documentclass[twoside, 12pt,secnumdepth=4]{ctexbook} % 文档类型
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 常用宏包%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 数学与公式
\usepackage{amsmath, amssymb, bm, physics}
% 算法与代码
\usepackage{algorithm, algorithmic}
\usepackage{listings}
\lstset{language=Python, basicstyle=\ttfamily\small}
% 图表
\usepackage{subfigure, tikz}
\usepackage{ctex}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx} % 支持插入图片
\usepackage{unicode-math}%数字字体包
\usepackage{pdfpages} % 引入 pdfpages 包
\usepackage{booktabs}
\usepackage{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 页面边距%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%要求 学位论文的页面边距上下左右各为25mm。
\usepackage{geometry} % 页面边距包
\geometry{
a4paper,
left=25mm,
right=25mm,
top=25mm,
bottom=25mm,
headheight=5mm,
headsep=5mm, % 页眉到版心的距离(即页眉上边距)
footskip=5mm, % 页脚到版心底部的距离(即页脚下边距)
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 页眉页脚%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%要求页眉标注从论文主体部分(绪论、正文、结论)开始。页眉分奇、偶页标注,其中偶数页的页眉为 湖北大学博士/硕士学位论文 ;奇数页的页眉为章序及章标题,例如: 第三章 城市道路的景观设计研究 。页眉的上边距为15mm,在版心上边线加一行1.5磅粗的实线,其上居中打印页眉;页脚的下边距为15mm。%
% L, C, R分别表示左中右,
% E, O分别表示偶数页和奇数页
\usepackage{fancyhdr} % 页眉页脚包
\usepackage{fontspec}
\setmainfont{Times New Roman} % 设置英文字体
\setmathfont{Times New Roman} % 数学模式数字
\usepackage{setspace} % 段落行距包
\setstretch{1.5} % 设置行距为1.5倍行距
\raggedbottom
\renewcommand{\chaptermark}[1]{\markboth{第\thechapter 章\ #1}{}} % 修改章节标记格式
%设置fancyhdr
\fancypagestyle{myfancy}{%
\fancyhf{} % 清空所有定义
\fancyfoot[CE,CO]{\zihao{5}\songti \thepage} % 设置页脚为当前页码
\fancyhead[CE]{\zihao{5}\songti 湖北大学硕士学位论文} % 设置偶数页居中的页眉
\fancyhead[CO]{\zihao{5}\songti \leftmark} % 设置奇数页居中的页眉为当前章节名
% 设置页眉线的粗细为 1.5 磅
\renewcommand{\headrulewidth}{1.5pt}
% 重新定义页眉线,确保宽度与版心一致
\renewcommand{\headrule}{\hrule width\headwidth height \headrulewidth \vspace{1pt}}
% 设置页脚线的粗细为 0pt(即不显示页脚线)
\renewcommand{\footrulewidth}{0pt}
}
% 定义摘要以及后续页眉
\fancypagestyle{myfancyother}{%
\fancyhf{}
\fancyfoot[CE,CO]{\zihao{5}\songti \thepage} % 页码
\renewcommand{\headrulewidth}{0pt} % 隐藏页眉下方的水平线
}
% 定义参考文献页眉
\fancypagestyle{myfancyref}{%
\fancyhf{}
\fancyfoot[CE,CO]{\zihao{5}\songti \thepage} % 页码
\fancyhead[CE]{\zihao{5}\songti 湖北大学硕士学位论文} % 偶数页页眉
\fancyhead[CO]{\zihao{5}\songti 参考文献} % 奇数页页眉
\renewcommand{\headrulewidth}{1.5pt} % 保持页眉线
\renewcommand{\headrule}{% % 统一页眉线样式
\vspace{1pt}%
\hrule width\headwidth height \headrulewidth%
\vspace{2.5pt}%
}
}
% 定义附录页眉
\fancypagestyle{myfancyAppendix}{%
\fancyhf{}
\fancyfoot[CE,CO]{\zihao{5}\songti \thepage}
\fancyhead[CE]{\zihao{5}\songti 湖北大学硕士学位论文}
\fancyhead[CO]{\zihao{5}\songti 附录} % 固定为"致谢"
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\headrule}{\hrule width\headwidth height \headrulewidth \vspace{1pt}}
\renewcommand{\footrulewidth}{0pt}
}
% 定义致谢页眉
\fancypagestyle{myfancythanks}{%
\fancyhf{}
\fancyfoot[CE,CO]{\zihao{5}\songti \thepage}
\fancyhead[CE]{\zihao{5}\songti 湖北大学硕士学位论文}
\fancyhead[CO]{\zihao{5}\songti 致谢} % 固定为"致谢"
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\headrule}{\hrule width\headwidth height \headrulewidth \vspace{1pt}}
\renewcommand{\footrulewidth}{0pt}
}
% 定义结论页眉
\fancypagestyle{myfancyconclusion}{%
\fancyhf{}
\fancyfoot[CE,CO]{\zihao{5}\songti \thepage}
\fancyhead[CE]{\zihao{5}\songti 湖北大学硕士学位论文}
\fancyhead[CO]{\zihao{5}\songti 结论} % 固定为"致谢"
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\headrule}{\hrule width\headwidth height \headrulewidth \vspace{1pt}}
\renewcommand{\footrulewidth}{0pt}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 目录设置%%%%%%%%%%%%%%%%%%
\usepackage{titletoc}
% 目录标题设置(2号黑体、居中、不加粗)
\renewcommand{\contentsname}{\zihao{-2}\heiti\centering 目\hspace{1em}录}
% 目录层级深度
\setcounter{tocdepth}{2}
% 章节目录格式(5号宋体)
\titlecontents{chapter}[0pt]
{\addvspace{10pt}\zihao{5}\songti} % 修改为5号宋体
{\thecontentslabel \quad}
{}
{\titlerule*[8pt]{.}\contentspage}
% 节目录格式(5号宋体)
\titlecontents{section}[2em]
{\addvspace{2pt}\zihao{5}\songti} % 修改为5号宋体
{\thecontentslabel\quad}
{}
{\titlerule*[8pt]{.}\contentspage}
% 小节目录格式(5号宋体)
\titlecontents{subsection}[4em]
{\addvspace{2pt}\zihao{5}\songti} % 已经是5号宋体(保持不动)
{\thecontentslabel\quad}
{}
{\titlerule*[8pt]{.}\contentspage}
%%%%%%%%%%%%%%%%图目录设置
% 设置图目录标题格式(2号黑体、居中、不加粗)
\renewcommand{\listfigurename}{\zihao{-2}\heiti\centering 图目录}
% 设置图目录条目格式(5号宋体)
\titlecontents{figure}[0pt]
{\addvspace{4pt}\zihao{5}\songti} % 条目格式:5号宋体
{图~ \thecontentslabel\hspace{1em}} % 标签(如图1-1)
{} % 无前缀
{\titlerule*[8pt]{.}\contentspage} % 填充点和页码
% 设置表目录标题格式(2号黑体、居中、不加粗)
\renewcommand{\listtablename}{\zihao{-2}\heiti\centering 表目录}
% 设置表目录条目格式(5号宋体)
\titlecontents{table}[0pt]
{\addvspace{4pt}\zihao{5}\songti} % 条目格式:5号宋体
{表~ \thecontentslabel\hspace{1em}} % 标签(如表1-1)
{} % 无前缀
{\titlerule*[8pt]{.}\contentspage} % 填充点和页码
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 章节标题%%%%%%%%%%%%%%%%%%
\usepackage{ctex} % 使用ctex宏包处理中文
% 设置正文的行距,字体
\renewcommand{\normalsize}{\fontsize{12pt}{18pt}\selectfont} % 小四号字(12pt),1.5倍行距(18pt)
\linespread{1.5} % 行距倍数(实际为1.5倍)
% 设置各级标题的字体、格式和间距
\ctexset{
%章标题设置:小二号黑体,居中,单倍行距,段前0.5行,段后0.5行
chapter = {
format = \zihao{-2}\heiti\centering\bfseries,
name = {第,章},
number = \arabic{chapter},
beforeskip = 0.5\baselineskip,
afterskip = 0.5\baselineskip
},
%1.1节标题设置:小三号黑体,居左(空2字格),单倍行距,段前0.5行,段后0.5行
section = {
format = \indent\hspace{2em}\zihao{-3}\heiti\raggedright,
beforeskip = 0.5\baselineskip,
afterskip = 0.5\baselineskip
},
%1.1.1小节标题设置:四号黑体,居左(空2字格),单倍行距,段前0.5行,段后0.5行
subsection = {
format = \indent\hspace{2em}\zihao{4}\heiti\raggedright,
beforeskip = 0.5\baselineskip,
afterskip = 0.5\baselineskip
},
%1.1.1.1小小节标题设置:小四号黑体,居左(空2字格),单倍行距,注意该小小节标题有误
subsubsection = {
format = \indent\hspace{2em}\zihao{-4}\heiti\raggedright,
number = \arabic{subsubsection},
beforeskip = 0.5\baselineskip,
afterskip = 0.5\baselineskip
}
}
% 将所有的cleardoublepage替换为clearpage,取消章节页前存在空白页
\let\cleardoublepage\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 引用%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 参考文献(biblatex 示例)
\usepackage[style=gb7714-2015, backend=biber]{biblatex}
\renewcommand{\bibfont}{\zihao{5}\songti} % 设置参考文献内容为五号宋体
\addbibresource{References/References.bib}
% 超链接(最后加载)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 其余设置%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 正文内容%%%%%%%%%%%%%%%%%%
%请在TEX目录中编辑
\begin{document} %开始
%
\input{Other/pdf} %封面,论文提名页,英文内封,论文使用授权书(自行PDF文件夹替换)
%
\input{Other/Chinese Abstract} %中文摘要
\input{Other/English Abstract} %英文摘要
%
\input{Other/Contents} %引用目录页
%
\input{TEX/Chapter 1} %第一章书写处
%
\input{TEX/Chapter 2} %第二章书写处
%
\input{TEX/Chapter 3} %第三章书写处
%
\input{TEX/Chapter 4} %第四章书写处
%
\input{TEX/Chapter 5} %第五章书写处
%
\input{TEX/Chapter 6} %第六章书写处
%
\input{TEX/Conclusion} %结论书写处
%
\input{Other/References} %参考文献
%
\input{Other/Appendix} %附录
%
\input{Other/Thanks} %致谢
%
\end{document} %结束