forked from helloMickey/Latex-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
214 lines (189 loc) · 6.96 KB
/
template.tex
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
\documentclass{template} % 12pt 为字号大小
%==========
% 正文部分
%==========
\begin{document}
% \kaiti 是楷体,参见上面的字体设置
\title{\bf{\kaiti 深度学习课程报告}}
\author{姓名:XX\hspace{1cm}学号:XX}
\date{}
\maketitle
\abstract{
在计算机视觉领域。。。
}
\paragraph{\bf{ \kaiti 关键词:计算机视觉}}
\paragraph{\\}
\section{一级标题}
\textbf{标题大小、样式可设置,见.tex源文件中\%--标题设置--部分。}
正文:人的大脑拥有复杂的结构,大脑中的视觉系统使得人拥有感知环境和描述环境的能力。
\subsection{二级标题}
正文:对于计算机视觉研究领域而言。。。
\subsubsection{三级标题}
正文:第一段。。。第一步,需要从从语义层面理解图像内容。。。一种比较常见的图像字幕生成法是基于检索技术,对于给定的查询图像,基于检索的方法首先提取图像特征,
后将所提取的特征在数据库中通过检索方法来查询一个或一组与其特征向量相似的图片,最后利用数据库中相似图片的描述直接合成检索图像的描述(或者直接使用相似度最高的图像描述作为查询图像的描述)。
第二段。。。。也就是说,生成的查询图像的描述可以是已经存在的句子,也可以是由检索到的句子组成。
\section{引用}
\subsection{图片引用}
图片引用:如图 \ref{fig:enc-dec} 所示,图中。。。\textbf{引用对应的label,注意图片的路径即可。}
\textbf{latex会根据页面的篇幅自动调整图片的位置}。
如果不想浮动的图片或表格越过某些部分,在该部分前加\textbf{$\backslash$FloatBarrier}表明该部分不想被越过。
\begin{figure}[ht]
\centering
\includegraphics[scale=1.2]{figs/pic.png}
\caption{Encoder-decoder结构}
\label{fig:enc-dec}
\end{figure}
\subsection{表格引用}
\begin{table}
\centering
% table caption is above the table
\caption{Image caption其他相关模型}
\label{tab:1}% Give a unique label
% For LaTeX tables use
\begin{tabular}{lllll}
\toprule
model & BLEU-1 & BLUE-4 & ROUGE-L & CIDEr \\
\midrule
B-up\&T-down & 77.2 & 36.2 & 56.4 & 113.5 \\
AOAnet & 77.4 & 38.1 & 58.2 & 119.8 \\
\bottomrule
\end{tabular}
\end{table}
表格引用:表 \ref{tab:1} 中。。。
\subsection{其他引用}\label{anchor-2-3}
章节引用:如 \ref{anchor-2-3} 节所描述。。。
网页引用:\href{https:www.baidu.con}{百度}上。。。
文献引用:正如Hinton在文\cite{lecun2015deep}\cite{xu2015show}中所述。。。
\textbf{注意,文献的引用需要新建 filename.bib 文件,将文献对应的bitex格式的引用复制粘贴到文件中然后再引用!}
谷歌学术或微软学术均可生成文献引用可用的Bibtex格式。
\section{其他}
\subsection{公式}
公式等号对齐:
\begin{align}
f_{att}(c_i, h_i) &= \boldsymbol{v_a}tanh(\boldsymbol{W_ac_i},\boldsymbol{W_bh_i})\\
\alpha_i &= f_{att}(\boldsymbol{c_i}, \boldsymbol{h_i})\\
\boldsymbol{s} &= softmax(\boldsymbol{\alpha})\\
\boldsymbol{z} &= \sum{s_i\boldsymbol{c_i}}
\end{align}
其中 $\boldsymbol{c_i}$表示。。。
\subsection{代码与伪代码}
{\setmainfont{Courier New Bold} % 设置代码字体
% 代码段
\begin{lstlisting}
#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::endl;
}
\end{lstlisting}
\begin{lstlisting}
#include <iostream>
int main()
{
constexpr int MAX = 100;
}
\end{lstlisting}
}
% 来自 https://blog.csdn.net/lwb102063/article/details/53046265
\makeatletter
\def\BState{\State\hskip-\ALG@thistlm}
\makeatother
\begin{algorithm}
\caption{My algorithm}\label{euclid}
\begin{algorithmic}[1]
\Procedure{MyProcedure}{}
\State $\textit{stringlen} \gets \text{length of }\textit{string}$
\State $i \gets \textit{patlen}$
\BState \emph{top}:
\If {$i > \textit{stringlen}$} \Return false
\EndIf
\State $j \gets \textit{patlen}$
\BState \emph{loop}:
\If {$\textit{string}(i) = \textit{path}(j)$}
\State $j \gets j-1$.
\State $i \gets i-1$.
\State \textbf{goto} \emph{loop}.
\State \textbf{close};
\EndIf
\State $i \gets i+\max(\textit{delta}_1(\textit{string}(i)),\textit{delta}_2(j))$.
\State \textbf{goto} \emph{top}.
\EndProcedure
\end{algorithmic}
\end{algorithm}
\subsection{公式符号表格}
表 \ref{tab:2} 来自Readme中IEEE transaction templates给出的样例。。
更过符号( \textbf{$ \Gamma \Delta \Theta \alpha \beta \gamma \delta \epsilon \zeta\eta \theta \iota \kappa \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi \omega$ })
可以参见 \href{https://www.cnblogs.com/Coolxxx/p/5982439.html}{LaTeX 符号命令大全}
% (\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta )见
\begin{table}
% 表格居中
\centering
\caption{Units for Magnetic Properties}
\label{tab:2}
\setlength{\tabcolsep}{3pt}
% 各列的宽度 50pt 150 250
\begin{tabular}{|p{50pt}|p{150pt}|p{250pt}|}
\hline
Symbol&
Quantity&
Conversion from Gaussian and \par CGS EMU to SI $^{\mathrm{a}}$ \\
\hline
$\Phi $&
magnetic flux&
1 Mx $\to 10^{-8}$ Wb $= 10^{-8}$ V$\cdot $s \\
$B$&
magnetic flux density, \par magnetic induction&
1 G $\to 10^{-4}$ T $= 10^{-4}$ Wb/m$^{2}$ \\
$H$&
magnetic field strength&
1 Oe $\to 10^{3}/(4\pi )$ A/m \\
$m$&
magnetic moment&
1 erg/G $=$ 1 emu \par $\to 10^{-3}$ A$\cdot $m$^{2} = 10^{-3}$ J/T \\
$M$&
magnetization&
1 erg/(G$\cdot $cm$^{3}) =$ 1 emu/cm$^{3}$ \par $\to 10^{3}$ A/m \\
4$\pi M$&
magnetization&
1 G $\to 10^{3}/(4\pi )$ A/m \\
$\sigma $&
specific magnetization&
1 erg/(G$\cdot $g) $=$ 1 emu/g $\to $ 1 A$\cdot $m$^{2}$/kg \\
$j$&
magnetic dipole \par moment&
1 erg/G $=$ 1 emu \par $\to 4\pi \times 10^{-10}$ Wb$\cdot $m \\
$J$&
magnetic polarization&
1 erg/(G$\cdot $cm$^{3}) =$ 1 emu/cm$^{3}$ \par $\to 4\pi \times 10^{-4}$ T \\
$\chi , \kappa $&
susceptibility&
1 $\to 4\pi $ \\
$\chi_{\rho }$&
mass susceptibility&
1 cm$^{3}$/g $\to 4\pi \times 10^{-3}$ m$^{3}$/kg \\
$\mu $&
permeability&
1 $\to 4\pi \times 10^{-7}$ H/m \par $= 4\pi \times 10^{-7}$ Wb/(A$\cdot $m) \\
$\mu_{r}$&
relative permeability&
$\mu \to \mu_{r}$ \\
$w, W$&
energy density&
1 erg/cm$^{3} \to 10^{-1}$ J/m$^{3}$ \\
$N, D$&
demagnetizing factor&
1 $\to 1/(4\pi )$ \\
\hline
% 表格底部文字描述宽度 450pt
\multicolumn{3}{p{450pt}}{$^{\mathrm{a}}$Gaussian units are the same as cg emu for magnetostatics; Mx
$=$ maxwell, G $=$ gauss, Oe $=$ oersted; Wb $=$ weber, V $=$ volt, s $=$
second, T $=$ tesla, m $=$ meter, A $=$ ampere, J $=$ joule, kg $=$
kilogram, H $=$ henry.}
\end{tabular}
\label{tab1}
\end{table}
\FloatBarrier % 在不想被浮动的表格/图片 越过的部分前加 \FloatBarrier
\clearpage
\bibliography{refs}
\bibliographystyle{plain}
\end{document}