Latex常用符号和技巧
随笔记录,不分顺序
常用符号
公式技巧
长公式换行
代码:
\begin{equation}
\begin{aligned}
R(S_2) &= p_2\cdot S_2=\sum_{i\in \mathcal{I}^+(p_2)}B_i+\beta B_{l'} \\
&\leq \sum_{i\in \mathcal{I}^+(p_2)}B_i+B_{l'}\leq \sum_{i\in \mathcal{I}^+(p_1)}B_i \\
&\leq \sum_{i\in \mathcal{I}^+(p_1)}B_i+\alpha B_l=R(S_1)
\end{aligned}
\end{equation}
效果如下:
子公式换行
代码:
$$\sum_{\substack{\beta=k\\|\alpha|+|\beta|\le N}}$$
效果如下:
括号内换行
在括号内换行需要在换行出添加"\right.","\phantom{=;;}" 和 "\left."
代码:
\begin{align}
\min \left(1+2+3+4+5
\notag\right.
\\
\phantom{=\;\;}
\left.+6+7+8+9+10\right)
\end{align}
效果如下:
Latex插入定理、定义、引理、推论和证明
在头部引导区引入相关包:
\usepackage{amsthm} % 使用证明需要用到
\newtheorem{theorem}{Theorem} % 定理
\newtheorem{definition}{Definition} % 定义
\newtheorem{lemma}{Lemma} % 引理
\newtheorem{corollary}{Corollary} % 推论
在正文区使用示例:
% 引理1
\begin{lemma}
here is lemma 1
\end{lemma}
\begin{proof}
here is the proof of lemma 1
\end{proof}
% 定理1
\begin{theorem}
here is theorem 1
\end{theorem}
\begin{proof}
here is the proof of theorem 1
\end{proof}
\begin{definition}[Fibration]
A fibration is a mapping between two topological spaces that has the homotopy lifting property for every space $X$.
\end{definition}
效果:
参考:http://www.mohu.org/info/lshort-cn.pdf
http://mohu.org/info/symbols/symbols.htm
【持续更新中。。。】