Latex 模块化模板

整体效果预览

  • 封面
    cover
  • 目录
    Table of contents
  • 正文
    the main
  • 引用
    the cite

全部的代码被放置在文章的最后面

1. 标题/作者…

1
2
3
\title{基于动力学方程的铁锅翻转运动分析}
\author{}
\date{}

当不为空的时候,会显示出来
使用\maketitle会将其显示出来

2. 设置缩进

当不进行缩进的时候可以使用\noident
在关键词的地方是不需要进行缩进的 ,同时需要空行和顶格

1
\setlength{\parindent}{2em} 

3. 设置目录页

1
2
3
\newpage
\tableofcontents
\thispagestyle{empty}

4. 无序列表

1
2
3
4
5
\begin{itemize}
\item \textbf{弹簧和半球壳都属于理想模型。}如果不选用理想模型,会因材料等原因导致模型性质发生改变 ,使情况变得复杂。
\item \textbf{不考虑空气阻力、接触点摩擦力等影响。}我们主要分析弹簧与铁锅系统之间的作用,应该忽略 这些次要影响因素。
\item \textbf{铁锅是刚体,不会发生形变。}铁锅上有A,B,C三个受力点,力的大小方向均不相同,若考虑形变则情况复杂。
\end{itemize}

5. 有序列表

1
2
3
4
5
\begin{enumerate}
\item one
\item two
\item ...
\end{enumerate}

6. 表格绘制

在符号说明中和其他地方需要进行表格的绘制进行符号说明,如果需要竖线可以在ccc中加入|
c的数目等同列的数目,对于横线的绘制,我们可以使用hline,但是hline报错的可能性
比较大,所以尽量选择[]rule

1
2
3
4
5
6
7
8
9
10
11
\begin{center}
\begin{tabular}{ccc}
\toprule[2pt] 符号 & 说明 & 单位\\
\midrule[1pt]
A & 吊环点1\\
B & 吊环点2\\
C & 吊环点3 \\
M & 锅的质点\\
\bottomrule[2pt]
\end{tabular}
\end{center}

7. 公式绘制

单行公式的绘制有手就行

多行公式分为两种,带大括号和不带大括号的

无大括号

1
2
3
4
5
6
7
\begin{equation}
\nonumber
\begin{split}
I &= \frac{1}{2}(\frac{2}{3}mR^2) + md^2\\
d &= \frac{R}{2}
\end{split}
\end{equation}

有大括号,需要使用\left \right.去绘制括号

1
2
3
4
5
6
7
8
9
10
\begin{equation}
\nonumber
\left\{
\begin{aligned}
&\frac{\mathrm{d}L_y}{\mathrm{d}t} = k(\frac{l}{l_B} - 1)(2x + R\cos\theta) + k(\frac{l}{l_A} - 1)(x - R\cos\theta)\\
&m\frac{\mathrm{d^2}x}{\mathrm{d}t^2} = k(\frac{l}{l_B} - 1)\cdot \frac{3}{2}R\cos\theta\cdot(2z - R\sin\theta) + k(\frac{l}{l_A} - 1)(z + R\sin\theta) + G\\
&m\frac{\mathrm{d^2}x}{\mathrm{d}t^2} = k(\frac{l}{l_B} - 1) \cdot \frac{3}{2}R[\cos\theta(2z - R\sin\theta) + \sin\theta(2x + R\cos\theta)] - R(\cos\theta + \frac{1}{2}\sin\theta)\cdot G
\end{aligned}
\right.
\end{equation}

8 图片

单张图片

1
2
3
4
5
\begin{figure}[H]
\centering
\includegraphics[scale = 0.6]{../img/two.png}
\caption{锅平面与水平面的夹角变化}
\end{figure}

多张图片,但是无子标题

1
2
3
4
5
6
7
8
9
10
11
\begin{figure}[h]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=5.2cm,height=4cm]{finger.png}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\hspace{2mm}
\includegraphics[width=5.2cm,height=4cm]{finger2.png}
\end{minipage}
\caption{pictures example}
\end{figure}

多张图片,有子标题

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\begin{figure*}[t!]
\centering
\begin{subfigure}[t]{0.4\textwidth}
\centering
\includegraphics[scale = 0.3]{../img/h.png}
\caption{法向量示意图}
\label{fig:a}
\end{subfigure}
\begin{subfigure}[t]{0.4\textwidth}
\centering
\includegraphics[scale = 0.3]{../img/tangle.png}
\caption{二面角关系示意图}
\label{fig:b}
\end{subfigure}
\caption{几何关系示意图}
\end{figure*}

对于图片位置的参数有四种选项

1
2
3
4
h here
t top
b bottom
p page of its own

The full example code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
\documentclass{article}
\usepackage{subcaption}
\usepackage{geometry}
\usepackage{ctex}
\usepackage{cite}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage{booktabs}
\usepackage{appendix}

\begin{document}

\begin{center}
\begin{tabular}{|c|c|}
\hline 队伍编号 & $\mathrm{MC2201849}$ \\
\hline 题号 & $\mathrm{A}$ \\
\hline
\end{tabular}
\end{center}
% \rule[0.25\baselineskip]{\textwidth}{1pt}
\begin{center}
\textbf{\Large title}
\end{center}
\begin{center}
\textbf{\large 摘要}
\end{center}
\qquad content\par
content\newline

\par
\noindent \textbf{关键词: 受力平衡; 动力学方程; 二面角; 向量叉乘; 龙格库塔法 }
\thispagestyle{empty}

\newpage
\tableofcontents
\thispagestyle{empty}

\newpage
\setcounter{page}{1}
\section{问题重述}
\subsection{问题背景}
background
\subsection{问题要求}
\noindent\textbf{问题1:}给出指纹快速检索的算法,说明避免筛除相似指纹的方法、算法具体的实现框架及时间、空间复杂度的分析。\par
\noindent\textbf{问题2:}使用给出的同指数据,在掺入大量异指数据的情况下验证检索算法的效果。\par
\noindent\textbf{问题3:}使用给出的乱序同指数据,按照问题2中的方式检索并给出结果。\par
\noindent\textbf{问题4:}尝试不同模型,结合检索结果给出最优检索方案;在97\%的筛选条件下,给出不同方面的改进策略。
\section{模型假设}
\begin{itemize}
\item 假设1
\item 假设2
\item 假设3
\end{itemize}
\section{符号说明}
\begin{center}
\begin{tabular}{cc}
\toprule[2pt] 符号 & 说明\\
\midrule[1pt]
$s$ & 相似度函数\\
$h$ & 哈希函数\\
$H$ & 哈希函数族\\
$b$ & LSH中桶的数量\\
$m$ & 哈希函数数量\\
$\tau$ & 哈希映射数量\\
$d$ & 特征维度\\
$k$ & k近邻选取的点个数\\
$N_f$ & 每个指纹的局部特征点数\\
$n$ & 指纹样本数量\\
\bottomrule[2pt]
\end{tabular}
\end{center}
\section{模型建立和求解}
\subsection{模型一:局部特征识别算法}
content\par
\begin{figure}[h]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=5.2cm,height=4cm]{finger.png}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\hspace{2mm}
\includegraphics[width=5.2cm,height=4cm]{finger2.png}
\end{minipage}
\caption{pictures example}
\end{figure}
\begin{equation}
\begin{aligned}
\overrightarrow{V}_{\text {Local1 }}=\left(r_{1}, \Delta \theta_{1}, \Delta \varphi_{1}\right)\\
\overrightarrow{V}_{\text {Local2 }}=\left(r_{2}, \Delta \theta_{2}, \Delta \varphi_{2}\right)\\
\overrightarrow{V}_{\text {Localk }}=\left(r_{k},\Delta \theta_{k}, \Delta \varphi_{k} \right)
\end{aligned}
\end{equation}\par
\begin{figure}[h]
\centering
\includegraphics[scale=1.0]{向量1.jpg}
\caption{旋转平移不变量}
\end{figure}
\subsection{模型二:局部敏感哈希算法}
\subsection{模型三: 局部特征的三维点集表示}
\subsection{问题一求解}
\subsection{问题二求解}
\subsection{问题三求解}
\subsection{问题四求解}

\section{灵敏度分析}
\section{模型评价}
\subsection{模型的优点}
\begin{itemize}
\item 优点1
\item 优点2
\item 优点3
\end{itemize}
\subsection{模型的缺点}
\begin{itemize}
\item 缺点1
\item 缺点2
\end{itemize}

\newpage
\begin{thebibliography}{99}
\bibitem{ref1}Dagdia Z C , Zarges C . A detailed study of the distributed rough set based locality sensitive hashing feature selection technique[J]. Fundamenta Informaticae, 2020, 182(2).
\bibitem{ref2}Phillips J M . Mathematical Foundations for Data Analysis[J]. 2021.
\bibitem{ref3}梁尧. 分布式海量指纹识别系统设计与实现[D]. 电子科技大学.
\bibitem{ref4}左龙. 基于大容量指纹库的指纹自动分类检索技术研究[D]. 中南大学, 2012.
\bibitem{ref5}向小可. 面向海量指纹图像的快速匹配算法的设计与实现[D]. 电子科技大学, 2016.
\bibitem{ref6}https://spark.apache.org/docs/latest/ml-features.html\#lsh-algorithms
\bibitem{ref7}https://en.wikipedia.org/wiki/Locality-sensitive\_hashing\#Stable\_distributions

\end{thebibliography}

\newpage
\begin{appendices}
\section{附录 1}
\end{appendices}

\end{document}