助手神器:
1.花体符号:
\usepackage{amsthm,amsmath,amssymb}
\usepackage{mathrsfs}
$\mathbb{R}$
$\mathcal{R}$
$\mathscr{R}$
花体符号
2.标题居中:
{\centering\section{title}}%单一的标题居中,而其他内容不居中
3.指定section开始编号:
\setcounter{section}{4}
{\centering\section{Gowers uniformity norms, and a \\ generalized von Neumann theorem}}
4.设置定义、定理、等的字体间隔:
\newtheoremstyle{theorem}{3pt}{3pt}{\itshape}{1.5em}{\scshape}{}{.5em}{}
%\newtheoremstyle{style name}{space above}{space below}{body font}{indent amount}{head font}{head punct}{after head space}{head spec}
\theoremstyle{theorem}
\newtheorem{theorem}{Theorem}[section]
5.公式编号指定: \tag{num} num就是指定的编号
\begin{equation}
|J_{0}|^{2^{k-1}} \leqslant J_{k-1} \prod_{d=0}^{k-2} P_{d}^{2^{k-2-d}}.\tag{5.21}
\end{equation}
6.\\left和 \right
$\left\{ 内容 \right\}$
\left \right 是成对出现的,不能单独使用。比如你只想输入一个左括号{,就要写 \left \{ 之后还要写 \right.这时right后你就要加个句号而不是加 }
7.各种括号大小:
\begin{equation*}
\begin{aligned}
W(x,h) & = \mathbb{E}\Bigg(\prod_{\omega\in\{0,1\}^{k-1}}\prod_{i=1}^{k-1}\nu^{1/2}(\phi_i(y+\omega h)) \Bigg|\Bigg. y_1,\cdots,y_{k-2}\in \mathbb{Z}_N \Bigg)\\
& = \mathbb{E} \Bigg(\prod_{i=1}^{k-1} \prod_{\omega\in\{0,1\}^{k-1} {\omega_i = 0}} \nu(\phi_i(y+\omega h)) \Bigg|\Bigg. y_1,\cdots,y_{k-2}\in \mathbb{Z}_N \Bigg)
\end{aligned}
\end{equation*}
图中的左右大括号是使用 \Bigg( \Bigg) 完成的;那个大的中间线 :\Bigg|\Bigg.
下面是使用\left( \right) 进行的同样效果;后者比前者括号会更大一点。
\begin{equation*}
W(x,h) = \mathbb{E} \left( \prod_{\omega\in\{0,1\}^{k-1}}\prod_{i=1}^{k-1}\nu^{1/2}(\phi_i(y+\omega h)) \left|\right. \right)
\end{equation*}
更多括号使用:latex 括号使用
8. 设置页面边距
\usepackage{geometry}
\geometry{a4paper,scale=0.8}
\geometry{a4paper,left=2cm,right=2cm,top=1cm,bottom=1cm}
可以调整上下左右的间距
9.省略号: \cdots \ldots \ddots \vdots
10.中文latex 参考文献引用:
\usepackage{hologo}
\usepackage[numbers]{gbt7714}
\bibliographystyle{IEEEtran}
\bibliography{cankao}%cankao即为参考文献.bib文件
11. 大括号:
\begin{definition}
(标记函数) 设$A$是给定的信息系统的属性集,$\forall a\in A$定义
$$
Mark(a) \left\{ \begin{aligned}
& 0, \qquad a\text{尚未被访问}\\
& 1, \qquad a\text{被访问}
\end{aligned} \right.
$$为属性$a$的标记函数。
\end{definition}
更简单的方法:
\[ |x| =
\begin{cases}
-x & \text{if } x < 0,\\
0 & \text{if } x = 0,\\
x & \text{if } x > 0.
\end{cases} \]