Read the file /Users/user_0a329be7/Downloads/graduate/docs/thesis/HUSTthesis.tex and return its COMPLETE contents. Do not truncate or summarize - I need every line.
Assistant
Here is the complete file (492 lines):
latex
%!TEX program = xelatex
% HUSTthesis.tex @ https://github.com/zfengg/HUSTtex/tree/master/HUSTthesis
%
% A simple tex template for the undergraduate thesis at HUST.
%
% author: Zhou Feng @ 2019
%
% requirements:
% TeX environments: TeXlive/MacTeX or MiKTeX
% compiler: XeLaTeX
%
% ---------------------------------------------------------------------------- %
% preamble %
% ---------------------------------------------------------------------------- %
\documentclass[a4paper]{article}
% 10.5pt = 5 hao
% ---------------------------------- layout ---------------------------------- %
\usepackage[a4paper,top=2.5cm,bottom=2.5cm,left=3cm,right=3cm,% margins
headheight=1.5cm,headsep=1.5em,
footskip=2em,
]{geometry}
% ------------------------------- math symbols ------------------------------- %
% 载入常用的数学包, 符号包
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
%----------------------------------------------------------------%
%% linespace 行间距,段间距等等
\usepackage{setspace}
% \usepackage{indentfirst} % then the first line of each title should start with a indent.
% 定义标题和段落样式
% 定义1.5倍行距
\renewcommand{\baselinestretch}{1.62}
\setlength{\baselineskip}{12pt} % set the fixed value of the lineskip
\setlength\parskip{\baselineskip} % set the space between the paragraphs, set the variable \parskip \baselineskip
% parindent
\setlength{\parindent}{0pt}
%----------------------------------------------------------------%
% fonts (style, color, size). 字体的大小,颜色,以及定义常用的字号
\usepackage[fontset=none]{ctex} % Keep CTEX features but use the project-defined fonts below.
% Chinese font
\usepackage{xeCJK} % For the Chinese through XeLaTex
\xeCJKsetup{AutoFakeBold=true, % use fake-bold when the bold font is not set priorly
AutoFakeSlant=true, % for fake-slant, similarly as above
% EmboldenFactor=4, % weight for fake-bold, default: 4
% SlantFactor=0.167, % angle for fake-slant, default: 0.167 in [-0.999, 0.999]
}
\setCJKmainfont{SimSun} % set the mainfont of Chinese as songti. (serif) for
\setCJKsansfont{SimSun} % sans serif font for \textsf
\setCJKmonofont{SimSun} % monospace font for \texttt
% \punctstyle{kaiming} % Remove the space used by symbols like comma. Special for the mainland students like us HUSTers.
\setCJKfamilyfont{song}{SimSun} % 宋体 song
\newcommand{\song}{\CJKfamily{song}}
\setCJKfamilyfont{kai}{KaiTi} % 楷体 kai
\newcommand{\kai}{\CJKfamily{kai}}
\setCJKfamilyfont{hwzs}{STZhongsong} % 华文中宋 hwzs
\newcommand{\hwzs}{\CJKfamily{hwzs}}
\setCJKfamilyfont{hei}{SimHei} % 黑体 hei
\newcommand{\hei}{\CJKfamily{hei}}
\newcommand{\heiti}{\hei}
% English font
\usepackage{fontspec}% Then you can use the fonts installed at your device.
\setmainfont{Times New Roman}
\setsansfont{Times New Roman}
\setmonofont{Times New Roman}
%\setsansfont{[foo.ttf]} % for the fonts at this default path.
% font Color 利用definecolor自己可以定义颜色
\usepackage{xcolor}
\definecolor{MSBlue}{rgb}{.204,.353,.541}
\definecolor{MSLightBlue}{rgb}{.31,.506,.741}
% font Size (I use pinyin represents the corresponding size in Microsorft Word)
% \newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont}
\newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont}
% \newcommand{\yihao}{\fontsize{28pt}{\baselineskip}\selectfont}
\newcommand{\erhao}{\fontsize{21pt}{\baselineskip}\selectfont}
\newcommand{\xiaoerhao}{\fontsize{18pt}{\baselineskip}\selectfont}
\newcommand{\sanhao}{\fontsize{15.75pt}{\baselineskip}\selectfont}
\newcommand{\sihao}{\fontsize{14pt}{18pt}\selectfont}
\newcommand{\xiaosihao}{\fontsize{12pt}{18pt}\selectfont}
\newcommand{\wuhao}{\fontsize{10.5pt}{18pt}\selectfont}
% \newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont}
% \newcommand{\liuhao}{\fontsize{7.875pt}{\baselineskip}\selectfont}
% \newcommand{\qihao}{\fontsize{5.25pt}{\baselineskip}\selectfont}
% ---------------------------------------------------------------------------- %
%% header and footer 页眉,页脚
\usepackage{fancyhdr} % for header and footer
% 设置页眉样式
\newcommand{\headstyle}{
\fancyhead[C]{ \hwzs\wuhao 华\hspace{0.5em}中\hspace{0.5em}科\hspace{0.5em}技\hspace{0.5em}大\hspace{0.5em}学\hspace{0.5em}毕\hspace{0.5em}业\hspace{0.5em}设\hspace{0.5em}计\hspace{0.5em}(论\hspace{0.5em}文)}
}
% 设置页脚样式
\newcommand{\footstyle}{\fancyfoot[C]{\wuhao\thepage}
\fancyfoot[L]{\rule[5pt]{6.7cm}{0.4pt}}
\fancyfoot[R]{\rule[5pt]{6.7cm}{0.4pt}}
}
\pagestyle{fancy}
\fancyhf{} % 清空原有样式
\headstyle
\footstyle
% 定义一种新的格式叫做main
\fancypagestyle{main}{%
\fancyhf{} % 清空原有样式
\headstyle
\footstyle
}
\renewcommand{\headrulewidth}{0.4pt}
% \renewcommand{\footrulewidth}{0.4pt}
% \renewcommand{\headrule}{\rule{\textwidth}{0.4pt}}
% ---------------------------------------------------------------------------- %
% set the styles of sections at all levels
% 设置各个标题样式
% 不需要使用part和chapter层级
\usepackage{titlesec}
\usepackage{titletoc}
\titleformat{\section}{\centering\hei\bfseries\xiaoerhao}{\thesection}{1em}{} % 在section标题编号后面加个点
% \titlelabel{\thetitle.\quad} % add a dot after the counter for all levels of sections
% \titleformat*{\section}{\wuhao\bfseries} % 设置标签的形式,5号加粗
\titleformat*{\subsection}{\raggedright\hei\bfseries\sihao}
\titleformat*{\subsubsection}{\raggedright\hei\bfseries\xiaosihao}
\titleformat{\paragraph}[hang]{\raggedright\hei\bfseries\xiaosihao}{\theparagraph}{1em}{}[]
% manual
% \titleformat{command}[shape]{format}{label}{sep}{before-code}[after-code]
% \titlespacing{command}{left}{before-sep}{after-sep}
% 设置新的层级subsubsubsection
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\newcommand{\sectionbreak}{\clearpage} % 小节从新的一页开始
% 根据学校要求设置新的section, subsection, subsection, paragraph
% set the content of section and so on
\newcommand\seccontent{
\song
\xiaosihao % 默认五号字体, 行间距为1.5*\baselineskip
\setlength{\parindent}{2em} % 首段缩进两个M字符
\setlength{\parskip}{0pt}
}
\newcommand\tabcontent{
\song
\wuhao % 默认五号字体, 行间距为1.5*\baselineskip
\setlength{\parindent}{2em} % 首段缩进两个M字符
\setlength{\parskip}{0pt}
}
% ---------------------------------------------------------------------------- %
% for the style of theorems, definitions, proofs and remarks 定义数学里面一些常用的环境
\usepackage{amsthm}
\newtheorem{thm}{\textbf{定理}}[section]
% The section in [] can be replaced by chapter or subsection
\theoremstyle{definition}
\theoremstyle{plain}
\theoremstyle{remark}
% ---------------------------------------------------------------------------- %
% for the caption and reference 图表及公式的编号规范
\usepackage{float} % table figure positioning
\usepackage{caption}
\captionsetup[figure]{labelformat=default, labelsep=quad,name={图}}
\captionsetup[table]{labelformat=default,labelsep=quad,name={表}}
% 设置图表标题的计数方式
\renewcommand{\thefigure}{\ifnum \thesection>0 \thesection-\fi \arabic{figure}} % set caption label style to 2-1
\renewcommand{\thetable}{\ifnum \thesection>0 \thesection-\fi \arabic{table}} % set caption label style to 2-1
\DeclareCaptionFont{mylabelfont}{\hei\xiaosihao}
\captionsetup[figure]{font=mylabelfont}
\captionsetup[table]{font=mylabelfont}
% 设置图表的autoref的格式
\newcommand{\reffig}[1]{图 \ref{#1}}
\newcommand{\reftab}[1]{表 \ref{#1}}
% 公式的编号格式
\renewcommand\theequation{\arabic{section}-\arabic{equation}}
\usepackage{graphicx} % To include graphixs 添加图所需的包
\usepackage{booktabs} % To create three line table including the commands toprule, bottomrule, and midrule
% \usepackage{colortbl} %
% 使用tabularx库并定义新的左右中格式
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{threeparttable}
\newcolumntype{L}{X}
\newcolumntype{C}{>{\centering \arraybackslash}X}
\newcolumntype{R}{>{\raggedright \arraybackslash}X}
% ---------------------------------------------------------------------------- %
% set the style of counters 设置计数器
% 设置重新计数的位置
\makeatletter
\@addtoreset{footnote}{page}
\@addtoreset{figure}{section}
\@addtoreset{table}{section}
\@addtoreset{equation}{section}
\makeatother
% ---------------------------------------------------------------------------- %
% tableofcontents, listoftables and listoffigures 目录
%\renewcommand\listfigurename{插图列表}
%\renewcommand\listtablename{表格列表}
\usepackage{tocloft}
\renewcommand{\contentsname}{\centerline{ \hei\bfseries\xiaoerhao 目\hspace{2em}录}}
% 调整目录各级条目的左右边距和样式,支持长标题自动换行
\cftsetindents{section}{0em}{4em}
\cftsetindents{subsection}{2em}{4em}
\cftsetindents{subsubsection}{4em}{4em}
\cftsetindents{paragraph}{6em}{4em}
\cftsetrmarg{4em}
\renewcommand{\cftsecfont}{\song\xiaosihao\bfseries}
\renewcommand{\cftsubsecfont}{\song\xiaosihao}
\renewcommand{\cftsubsubsecfont}{\song\xiaosihao}
\renewcommand{\cftparafont}{\song\xiaosihao}
\renewcommand{\cftsecafterpnum}{\par}
\renewcommand{\cftsubsecafterpnum}{\par}
\renewcommand{\cftsubsubsecafterpnum}{\par}
\renewcommand{\cftparaafterpnum}{\par}
% ---------------------------------------------------------------------------- %
% reference and citation 参考文献
\usepackage[numbers]{natbib}
\renewcommand{\refname}{\centering\hei\xiaoerhao 参考文献}
\bibsep=0pt % 用来设置每个\bibitem之间的间距
% \renewcommand{\bibname}{HUSTthesis} % .bib name
% \newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}} % show citation label in the upperscript
% ---------------------------------------------------------------------------- %
% 设置声明页
% 使用特殊符号
\usepackage{amssymb}
% 制作tatement中的符号
\def\HUSTcheckedbox{$\square\!\!\!\!\checkmark$}
\def\HUSTbox{$\square$}
% 设置命令
\newcommand{\statement}[2]{
\def\yearofconfidentiality{\hspace{2em}}
\def\HUSTconfidential{\HUSTbox}
\def\HUSTnotconfidential{\HUSTcheckedbox}
\ifnum #1<2
\def\HUSTconfidential{\HUSTcheckedbox}
\def\HUSTnotconfidential{\HUSTbox}
\def\yearofconfidentiality{#2}
\fi
\clearpage
\thispagestyle{main}
\vspace*{1em}
\seccontent
\begin{center}
\heiti \xiaoerhao \bfseries
学位论文原创性声明
\end{center}
本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包括任何其他个人或集体已经发表或撰写的成果作品。本人完全意识到本声明的法律后果由本人承担。
\begin{flushright}
作者签名:\hspace{6em} 年 \hspace{2em} 月 \hspace{2em} 日
\end{flushright}
\vspace{4em}
\begin{center}
\heiti \zihao{-2} \bfseries
学位论文版权使用授权书
\end{center}
本学位论文作者完全了解学校有关保障、使用学位论文的规定,同意学校保留并向有关学位论文管理部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权省级优秀学士论文评选机构将本学位论文的全部或部分内容编入有关数据进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。
本学位论文属于 1、保密 \HUSTconfidential ,在 \yearofconfidentiality 年解密后适用本授权书。
\hspace{7em} 2、不保密 \HUSTnotconfidential \hspace{1em}
。
\hspace{7em} (请在以上相应方框内打``$\checkmark$'')
\begin{flushright}
作者签名:\hspace{6em} 年 \hspace{2em} 月 \hspace{2em} 日
导师签名:\hspace{6em} 年 \hspace{2em} 月 \hspace{2em} 日
\end{flushright}
\clearpage
}
\newcommand{\makestatement}[2]{\statement{#1}{#2}}
% ---------------------------------------------------------------------------- %
% 定义中英文摘要和致谢环境
%
% 中文摘要环境
\newenvironment{cnabstract}[1]{
\def \cnkeyword {#1}
\clearpage
\phantomsection
\addcontentsline{toc}{section}{摘要}
\vspace*{-20pt}
\begin{center}
\heiti \bfseries \xiaoerhao 摘 \hspace{2em} 要
\end{center}
\seccontent
}{
\vspace{1em}
\par\noindent {\hei\sihao \bfseries 关键词:} {\song\xiaosihao\cnkeyword}
}
% 英文摘要环境
\newenvironment{enabstract}[1]{
\def \enkeyword {#1}
\clearpage
\phantomsection
\addcontentsline{toc}{section}{Abstract}
\vspace*{-20pt}
\begin{center}
\bfseries \xiaoerhao Abstract
\end{center}
\seccontent
}{
\vspace{1em}
\par\noindent {\sihao\bfseries Key Words: }\ {\song\xiaosihao\enkeyword}
\clearpage
}
% 定义致谢环境
\newenvironment{thankpage}{
\clearpage%
\phantomsection%
\addcontentsline{toc}{section}{致谢}%
\section*{致\hspace{2em}谢}%
}{
\clearpage
}
% ---------------------------------------------------------------------------- %
% --- 定义列表项,列举的样式
\usepackage{enumitem}
\setlist{noitemsep}
% ---------------------------------------------------------------------------- %
% \usepackage{makeidx} % To create index
\usepackage{hyperref}
\usepackage{zhlipsum}
% ---------------------------------------------------------------------------- %
% --- 定义matlab代码块
\usepackage{listings}
\usepackage[most]{tcolorbox}
%\tcbuselibrary{listings}
\tcbset{
myMatlab/.style={
colframe=MSBlue,
colback=MSLightBlue!10!white,
breakable,
enhanced,
center,
fontupper=\song\wuhao,
fontlower=\song\wuhao,
% listing options={style=Matlab-editor} % 只对listing引擎有效,故不用
}
}
\lstset{
language=C++,
keywordstyle=\color{MSBlue}\bfseries,
basicstyle=\wuhao\ttfamily,
commentstyle=\color{MSLightBlue}\kaishu,
stringstyle=\color{red}\ttfamily,
numbers=left,
numberstyle={\small},
numbersep=1em,
aboveskip=0pt,
belowskip=0pt,
flexiblecolumns,
keepspaces=true,
tabsize=5,
framexleftmargin=0pt,
extendedchars=false,
breaklines=true,
xleftmargin=3.5em,
xrightmargin=0em,
frame=tlbr, framesep=0pt, framerule=0pt, % set the thickness of the frame edge
}
% ---------------------------------------------------------------------------- %
% for the titlepage 标题页
\usepackage{titling}
\renewcommand{\maketitle}{
\def\HUSTtitlelength{12em}
\begin{titlepage}
\begin{center}
\vspace*{0em}
\includegraphics[height=1.61cm]{HUSTlogo.eps}\\[4em]
{\xiaochuhao \hwzs \bfseries 本科生毕业设计[论文]}\\[6em]
{\erhao \hei \bfseries \thetitle}\\[6em]
{\sanhao \hwzs
\renewcommand\arraystretch{2.7}
\begin{tabular}{lc}
\makebox[4em][s]{院 \hfill 系} &
\underline{\makebox[\HUSTtitlelength]{\school}} \\
\makebox[4em][s]{专业班级} &
\underline{\makebox[\HUSTtitlelength]{\classnum}} \\
\makebox[4em][s]{姓 \hfill 名} &
\underline{\makebox[\HUSTtitlelength]{\theauthor}} \\
\makebox[4em][s]{学 \hfill 号} &
\underline{\makebox[\HUSTtitlelength]{\stunum}} \\
\makebox[4em][s]{指导教师} &
\underline{\makebox[\HUSTtitlelength]{\instructor}} \\
\end{tabular}
}
\\[4em]
{\sanhao \hwzs \thedate}
\end{center}
\end{titlepage}
}
% 设置封面
\input{thesis_metadata}
% ---------------------------------------------------------------------------- %
% document %
% ---------------------------------------------------------------------------- %
\begin{document}
\maketitle
% \makestatement{2}{} % 机密{} 公开{2}{}
% ----------------------------------- 声明 ----------------------------------- %
% \makestatement{2}{} % 机密声明页:第一参数为1;公开声明页:第一参数为2
\thispagestyle{main}
\pagenumbering{Roman} % 正文前的页码使用大写罗马数字: I, II, III
\setcounter{page}{1}
\renewcommand{\thepage}{\Roman{page}}
% ----------------------------------- 中文摘要 ----------------------------------- %
\begin{cnabstract}{自动驾驶;GNSS 欺骗;传感器攻击;动态攻击;扩展卡尔曼滤波;安全停车}
\input{generated/sections/abstract_cn_body}
\end{cnabstract}
% ----------------------------------- 英文摘要 ----------------------------------- %
\begin{enabstract}{autonomous driving; GNSS spoofing; sensor attack; dynamic attack; extended Kalman filter; safe-stop containment}
\input{generated/sections/abstract_en_body}
\end{enabstract}
% ----------------------------------- 目录 ----------------------------------- %
\tableofcontents
\thispagestyle{main}
\newpage
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
% ----------------------------------- 绪论 ----------------------------------- %
\input{generated/sections/introduction}
% ----------------------------------- 相关工作 ----------------------------------- %
\input{generated/sections/related_work}
% ----------------------------------- 方法框架 ----------------------------------- %
\input{generated/sections/method_framework}
% ----------------------------------- 实验设置 ----------------------------------- %
\input{generated/sections/experiment_setup}
% ----------------------------------- 脆弱性量化 ----------------------------------- %
\input{generated/sections/system_static_results}
% ----------------------------------- 动态攻击与防护 ----------------------------------- %
\input{generated/sections/phase5_phase6_results}
% ----------------------------------- 结论与展望 ----------------------------------- %
\input{generated/sections/conclusion}
% ----------------------------------- 致谢 ----------------------------------- %
\begin{thankpage}
\input{generated/sections/acknowledgment}
\end{thankpage}
% ----------------------------------- 参考文献 ----------------------------------- %
\clearpage
\phantomsection
\addcontentsline{toc}{section}{参考文献}
\bibliographystyle{plain}
\bibliography{HUSTthesis}
% 附录
% \appendix
\end{document}