Compare commits
2 Commits
0a291e0330
...
904fce220d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
904fce220d | ||
![]() |
694f37b38a |
@ -12,21 +12,21 @@
|
||||
\vspace{2.5cm}
|
||||
|
||||
\begin{flushleft}
|
||||
{{\CJKfamily{zhkai} \zihao{-2} \hspace{4.2em}课题名称}\quad{\dlmu[8.5cm]{ \scalebox{0.8}[1.0]{ \zihao{3}\CJKfamily{zhkai}\thesistitle} }}\par}
|
||||
{{\CJKfamily{zhkai} \zihao{-2} \hspace{3.5em}课题名称}\quad{\dlmu[8.5cm]{ \scalebox{0.8}[1.0]{ \zihao{3}\CJKfamily{zhkai}\thesistitle} }}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}学\qquad 院}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\department}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}学\qquad 院}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\department}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}专\qquad 业}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\major}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}专\qquad 业}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\major}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}班级名称}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\classname}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}班级名称}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\classname}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}学生姓名}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\studentname}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}学生姓名}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\studentname}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}学\qquad 号}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\studentid}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}学\qquad 号}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\studentid}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}指导老师}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\adviser}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}指导老师}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\adviser}\par}
|
||||
\vspace{0.5cm}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{4.2em}完成日期}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\number\year 年\number\month 月\number\day 日}\par}
|
||||
{{\CJKfamily{zhkai}\zihao{-2} \hspace{3.5em}完成日期}\quad\dlmu[8.5cm]{\zihao{3}\CJKfamily{zhkai}\number\year 年\number\month 月\number\day 日}\par}
|
||||
\end{flushleft}
|
||||
|
||||
\vspace{4cm}
|
||||
|
@ -1,169 +1,150 @@
|
||||
% 文档类设置:12pt字号,A4纸张大小
|
||||
\documentclass[12pt,a4paper]{article}
|
||||
\input{config}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{ctex}
|
||||
\usepackage{indentfirst}
|
||||
\usepackage{subcaption}
|
||||
%\graphicspath{{chapter/}{figures/}}
|
||||
|
||||
\usepackage{amsmath}%数学
|
||||
\usepackage{amssymb}%数学符号
|
||||
\usepackage{pgfplots}
|
||||
\usepackage{fancyhdr} %使用fancyhdr包自定义页眉页脚
|
||||
%\pagestyle{empty}
|
||||
% 导入基础包
|
||||
\usepackage{graphicx} % 图片支持
|
||||
\usepackage{ctex} % 中文支持
|
||||
\usepackage{indentfirst} % 首行缩进
|
||||
\usepackage{subcaption} % 子图标题
|
||||
\usepackage{amsmath} % 数学公式
|
||||
\usepackage{amssymb} % 数学符号
|
||||
\usepackage{pgfplots} % 绘图
|
||||
\usepackage{fancyhdr} % 页眉页脚
|
||||
|
||||
% 页面样式设置
|
||||
\pagestyle{fancy}
|
||||
%\pagestyle{plain}%没有页眉,页脚放页数
|
||||
|
||||
\usepackage{titlesec}%设置章节标题与正文间距为2行
|
||||
\usepackage{titlesec}
|
||||
\titlespacing{\section}{0pt}{0pt}{2em}
|
||||
|
||||
%\usepackage{enumerate}%项目编号
|
||||
% 将Figure改为图
|
||||
\renewcommand{\figurename}{图}
|
||||
|
||||
\renewcommand{\figurename}{图}%将figure改为图
|
||||
|
||||
\usepackage{caption}%去掉图片编号后的":"
|
||||
% 图片标题设置
|
||||
\usepackage{caption}
|
||||
\captionsetup{labelformat=simple, labelsep=space}
|
||||
|
||||
\renewcommand {\thefigure} {\thesection{}.\arabic{figure}}%图片索引该为按照章节
|
||||
% 图片编号格式:节号.图片序号
|
||||
\renewcommand {\thefigure} {\thesection{}.\arabic{figure}}
|
||||
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\renewcommand{\footrulewidth}{0pt}
|
||||
\lhead{}
|
||||
\chead{}
|
||||
\rhead{}
|
||||
\lfoot{}
|
||||
\cfoot{\thepage}
|
||||
\rfoot{}
|
||||
% 页眉页脚设置
|
||||
\renewcommand{\headrulewidth}{0pt} % 页眉线宽度
|
||||
\renewcommand{\footrulewidth}{0pt} % 页脚线宽度
|
||||
\lhead{} % 左页眉
|
||||
\chead{} % 中页眉
|
||||
\rhead{} % 右页眉
|
||||
\lfoot{} % 左页脚
|
||||
\cfoot{\thepage} % 中页脚(页码)
|
||||
\rfoot{} % 右页脚
|
||||
|
||||
\usepackage{booktabs}%表格用
|
||||
% 表格相关包
|
||||
\usepackage{booktabs} % 三线表
|
||||
|
||||
\usepackage{titlesec}%修改标题格式宏包
|
||||
\titleformat{\section}{\centering\zihao{3}\songti\bfseries}{\arabic{section}.}{0.5em}{}%修改section标题格式
|
||||
% 节标题格式设置
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\section}{\centering\zihao{3}\songti\bfseries}{\arabic{section}.}{0.5em}{}
|
||||
|
||||
% 设置目录格式为宋体
|
||||
% 目录标题设置
|
||||
\renewcommand\contentsname{\songti 目录}
|
||||
|
||||
\usepackage{multirow}%跨行表格
|
||||
\usepackage{abstract}%摘要
|
||||
%\usepackage{setspace} %行间距的宏包
|
||||
|
||||
\usepackage{makecell}%表格竖线连续
|
||||
|
||||
\usepackage{tikz}%绘制架构图
|
||||
% 其他功能包
|
||||
\usepackage{multirow} % 合并单元格
|
||||
\usepackage{abstract} % 摘要
|
||||
\usepackage{makecell} % 表格单元格
|
||||
\usepackage{tikz} % 绘图
|
||||
\usetikzlibrary{arrows.meta,positioning,shapes,fit,backgrounds,calc}
|
||||
|
||||
% 自定义命令:1.2pt宽度的竖线
|
||||
\def\I{\vrule width1.2pt}
|
||||
%!\I 就可以代替| 来画表格了
|
||||
|
||||
%可固定下划线长度
|
||||
% 自定义下划线命令
|
||||
\makeatletter
|
||||
\newcommand\dlmu[2][4cm]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt}
|
||||
\makeatother
|
||||
|
||||
\usepackage{float}%可以用于禁止浮动体浮动
|
||||
\usepackage{listings}%可以插入代码
|
||||
\usepackage[table]{xcolor}%语法高亮支持
|
||||
|
||||
%代码格式
|
||||
\definecolor{dkgreen}{rgb}{0,0.6,0}
|
||||
\definecolor{gray}{rgb}{0.5,0.5,0.5}
|
||||
\definecolor{mauve}{rgb}{0.58,0,0.82}
|
||||
% 形态展示相关包
|
||||
\usepackage{float}
|
||||
\usepackage{listings}
|
||||
\usepackage[table]{xcolor}
|
||||
|
||||
% 字体设置
|
||||
\usepackage{fontspec}
|
||||
|
||||
% 设置方正楷体
|
||||
\setCJKfamilyfont{fzkaiti}[
|
||||
AutoFakeBold = 1.2, % 加粗强度
|
||||
ItalicFont = 方正楷体_GBK.TTF % 防止斜体切换异常(非必须)
|
||||
AutoFakeBold = 1.2, % 伪粗体
|
||||
ItalicFont = 方正楷体_GBK.TTF % 斜体字体
|
||||
]{方正楷体_GBK.TTF}
|
||||
|
||||
\setmonofont{Consolas}
|
||||
\lstset{ %
|
||||
numbers=left,
|
||||
basicstyle=\tiny\ttfamily,
|
||||
numberstyle=\tiny,
|
||||
tabsize=4,
|
||||
numbersep=5pt,
|
||||
keywordstyle= \color{blue!70}, %关键词为蓝色
|
||||
commentstyle=\color{gray}, %注释为灰色
|
||||
frame=shadowbox, % 框架阴影效果
|
||||
rulesepcolor= \color{ red!20!green!20!blue!20} ,
|
||||
escapeinside={\%*}{*)},
|
||||
xleftmargin=2em, % 边界选项
|
||||
xrightmargin=2em, % 边界选项
|
||||
aboveskip=1em, % 边界选项
|
||||
framexleftmargin=2em, % 边界选项
|
||||
breaklines,%过长代码自动换行
|
||||
}
|
||||
|
||||
|
||||
% 章节标题格式设置
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\section}{\centering\Large\bfseries}{第\,\thesection\,章}{1em}{}
|
||||
|
||||
|
||||
% 目录格式设置
|
||||
\usepackage{titletoc}
|
||||
\titlecontents{section}[0pt]{\addvspace{1.5pt}\filright\bf}
|
||||
{\contentspush{第\thecontentslabel\ 章\quad}}
|
||||
{}{\titlerule*[8pt]{.}\contentspage}
|
||||
|
||||
|
||||
% 设置页面格式
|
||||
% 页面边距设置
|
||||
\usepackage[left=3.0cm, right=2.6cm, top=2.54cm, bottom=2.54cm]{geometry}
|
||||
|
||||
%目录超链接
|
||||
% 超链接设置
|
||||
\usepackage[hidelinks,linkcolor=black,citecolor=black]{hyperref}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
||||
% 封面部分
|
||||
\input{chapters/cover}
|
||||
|
||||
\renewcommand{\abstractname}{\scriptsize}
|
||||
% 插入封面
|
||||
\input{chapters/cover}
|
||||
|
||||
% 设置摘要标题字号
|
||||
\renewcommand{\abstractname}{\scriptsize}
|
||||
|
||||
% 插入摘要
|
||||
\input{chapters/abstract}
|
||||
\newpage
|
||||
|
||||
% 设置目录标题
|
||||
\renewcommand{\contentsname}{\centerline{\zihao{-2}\textbf{目录}}}
|
||||
|
||||
% 生成目录
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
% 正文部分,设置行距为23pt
|
||||
{
|
||||
\setlength{\baselineskip}{23pt}
|
||||
|
||||
% 插入各章节内容
|
||||
\newpage
|
||||
\input{chapters/introduction} % 引言
|
||||
\clearpage
|
||||
|
||||
%% 摘要和关键词部分
|
||||
\input{chapters/abstract}
|
||||
\newpage
|
||||
|
||||
% 目录部分
|
||||
\renewcommand{\contentsname}{\centerline{\zihao{-2}\textbf{目录}}}
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
% 正文部分
|
||||
{
|
||||
\setlength{\baselineskip}{23pt}
|
||||
|
||||
\newpage
|
||||
\input{chapters/introduction}
|
||||
\clearpage
|
||||
\newpage
|
||||
\input{chapters/technology} % 技术章节
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/technology}
|
||||
\clearpage
|
||||
\newpage
|
||||
\input{chapters/requirement} % 需求章节
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/requirement}
|
||||
\clearpage
|
||||
\newpage
|
||||
\input{chapters/implementation} % 实现章节
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/implementation}
|
||||
\clearpage
|
||||
\newpage
|
||||
\input{chapters/verification} % 验证章节
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/verification}
|
||||
\clearpage
|
||||
\newpage
|
||||
\input{chapters/conclusion} % 结论
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/conclusion}
|
||||
\clearpage
|
||||
\newpage
|
||||
\input{chapters/references} % 参考文献
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/references}
|
||||
\clearpage
|
||||
|
||||
\newpage
|
||||
\input{chapters/acknowledgement}
|
||||
\clearpage
|
||||
}
|
||||
\newpage
|
||||
\input{chapters/acknowledgement} % 致谢
|
||||
\clearpage
|
||||
}
|
||||
\end{document}
|
Loading…
x
Reference in New Issue
Block a user