把正文进行了拆分,实现了模块化,加入了目录页面。
This commit is contained in:
+8
-111
@@ -19,48 +19,10 @@
|
||||
\usepackage[justification=centering]{caption}
|
||||
\usepackage{draftwatermark}% 所有页加水印
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% title and author
|
||||
%% 标题和作者
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\title{\bfseries\sffamily
|
||||
这是一个Latex模板\\
|
||||
\normalfont\zihao{-3}
|
||||
Subtitle Here
|
||||
}
|
||||
%%作者这里,可以加入自己的网站,图标,可以使用fontawesome
|
||||
\author{作者名字 \\ \faGithubAlt~ https://github.com/}
|
||||
%%可以加入日期
|
||||
\date{}
|
||||
\input{input/info}
|
||||
\input{input/setting}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% head and foot
|
||||
%% 页眉页脚
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\RequirePackage{fancyhdr}
|
||||
\RequirePackage{zhnumber}
|
||||
\RequirePackage{lastpage}
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\renewcommand\headrulewidth{.5pt}
|
||||
\renewcommand\footrulewidth{0pt}
|
||||
%\futurelet\TMPheadrule\def\headrule{{\color{violet}\TMPheadrule}}
|
||||
%\renewcommand{\sectionmark}[1]{\markright{#1}}
|
||||
\fancyhead[C]{\fzkai{这是一个Latex模板}}
|
||||
%\fancyhead[C]{\@title}
|
||||
%\fancyhead[R]{\thepage}
|
||||
%\fancyfoot[L]{\fzkai{\@author}}
|
||||
\fancyfoot[C]{\thepage / \pageref{LastPage}}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% 设置页面水印
|
||||
% \usepackage[firstpage]{draftwatermark} % 只有第一页加水印
|
||||
\SetWatermarkText{中国海洋大学计算机科学与技术学院} % 设置水印文字内容
|
||||
% \SetWatermarkText{\includegraphics{fig/ZJDX-WaterMark.eps}} % 设置水印LOGO
|
||||
\SetWatermarkLightness{0.95} % 设置水印透明度 0-1
|
||||
\SetWatermarkScale{0.2} % 设置水印大小 0-1
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% 正文开始
|
||||
@@ -68,81 +30,16 @@
|
||||
\begin{document}
|
||||
|
||||
\sloppy % 解决中英文混排文字超出边界问题
|
||||
%首页封面开始
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% 封面页面开始
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\input{input/cover}
|
||||
\input{input/toc}
|
||||
|
||||
\begin{titlepage}
|
||||
\centering % 居中显示
|
||||
\scshape %
|
||||
\vspace*{\baselineskip} % 顶部空白
|
||||
%------------------------------------------------
|
||||
% 标题
|
||||
%------------------------------------------------
|
||||
|
||||
\rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % 上面粗的线
|
||||
\rule{\textwidth}{0.4pt} % 细线
|
||||
|
||||
\vspace{0.75\baselineskip} % 和标题之间的空白
|
||||
|
||||
{\hm\bfseries \zihao{2} 这是一个\\ 很好用的Latex模板\\} % 标题
|
||||
|
||||
\vspace{0.75\baselineskip} % 标题下面的空白
|
||||
|
||||
\rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % 细线
|
||||
\rule{\textwidth}{1.6pt} % 粗线
|
||||
|
||||
\vspace{2\baselineskip} % 标题后的空白
|
||||
|
||||
%------------------------------------------------
|
||||
% 副标题
|
||||
%------------------------------------------------
|
||||
|
||||
{\hm \zihao{3} 这里是副标题} % 副标题
|
||||
|
||||
\vspace*{3\baselineskip} % 空白
|
||||
|
||||
%------------------------------------------------
|
||||
% 作者信息
|
||||
%------------------------------------------------
|
||||
|
||||
作者
|
||||
|
||||
\vspace{0.5\baselineskip} % 作者前空白
|
||||
|
||||
{\scshape\Large 作者名字 } % 作者列表
|
||||
|
||||
\vspace{0.5\baselineskip} % 空白
|
||||
|
||||
\fzkai{一级单位 \\ 二级单位 \\ 三级单位} % 作者单位
|
||||
|
||||
\vfill % 空白
|
||||
|
||||
%------------------------------------------------
|
||||
% 出版社或单位
|
||||
%------------------------------------------------
|
||||
|
||||
%\plogo % Publisher logo
|
||||
|
||||
\vspace{0.3\baselineskip} % 空白
|
||||
|
||||
%2017 % Publication year
|
||||
|
||||
{\large 2022年3月} % 日期
|
||||
\newpage
|
||||
|
||||
\end{titlepage}
|
||||
\begin{center}
|
||||
{\hm\bfseries \zihao{3} \themaintitle}
|
||||
\end{center}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% 封面页面结束
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% 正文开始
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\maketitle
|
||||
\thispagestyle{empty}
|
||||
|
||||
\begin{abstract}
|
||||
|
||||
Reference in New Issue
Block a user