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
|
\documentclass{article} % 类,这里是article
% 序言区域
\tableofcontents % 目录
% 定义文档的类型,使用的语言,引入的包,以及其他模块
\begin{document} % 正文开始
First document. This is a simple example, with no
extra parameters or packages included.
Some of the \textbf{greatest} % 粗体 \textbf{...}
discoveries in \underline{science} % 下划线 \underline{...}
were made by \textbf{\textit{accident}}. % 斜体 \textit{...}
另外一个非常有用的指令是强调\emph{...}
在正常文字中,强调文字是斜体的,但是如果使用在斜体文字之中,它又会变为正常字体
\begin{figure}[h] % 把图片放置在本代码段在文本中的对应处
\centering % 居中对齐
\includegraphics[width=0.3\textwidth]{ustc-badge.pdf} % [图片宽度 = 0.3 * 文本宽度]{图片名(默认目录已被设置为figures/)}
\caption{图号、图题置于图的下方} % 图片标题
\label{fig:badge} % 图片标签,用于引用
\end{figure}
As you can see in the figure \ref{fig:badge} % 这个命令会生成图片所代表的数字
, the function grows near 0.
% 无序列表
\begin{itemize}
\item The individual entries are indicated with a black dot, a so-called bullet.
\item The text in the entries may be of any length.
\end{itemize}
% 有序列表
\begin{enumerate}
\item This is the first entry in our list
\item The list numbers increase with each entry we add
\end{enumerate}
% 公式
The mass-energy equivalence is described by the famous equation
\[ E=mc^2 \]
discovered in 1905 by Albert Einstein.
In natural units ($c = 1$), the formula expresses the identity
\begin{equation}
E=m
\end{equation}
% 表格
三线表是《撰写手册》推荐使用的格式,如表~\ref{tab:exampletable}。 % 引用格式
\begin{table}[h] % 建议使用 [htb]
\centering
\caption{表号和表题在表的正上方} % 表格标题
\label{tab:exampletable} % 表格标签,用于引用
\begin{tabular}{cl} % c 表示居中,l 表示左对齐,(r 表示右对齐)
\toprule % 表格顶部的第一道横线
类型 & 描述 \\
\midrule % 表格中间的第二道横线
挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\
无线表 & 无线表一般用于设备配置单、技术参数列表等 \\
卡线表 & 卡线表有完全表,不完全表和三线表三种 \\
\bottomrule % 表格底部的第三道横线
\end{tabular}
\note{注:表注分两种,第一种是对全表的注释,用不加阿拉伯数字排在表的下边,
前面加“注:”;第二种是和表内的某处文字或数字相呼应的注,
在表里面用带圈的阿拉伯数字在右上角标出,然后在表下面用同样的圈码注出来} % 表注,可删去。对表的解释往往直接成段
\end{table}
\end{document} % 正文结束
|