LaTeX常用代码备忘录(长期更新)

作为一个初学者,记录一些经常用到的\(\LaTeX\)代码,当作备忘,避免频繁查阅说明手册。

1.数学符号

代码 效果 备注
\sum\limits_{t=1}^N \(\sum\limits_{t=1}^N\) 不折叠的求和符号
\mathop{max}_{t} \(\mathop{max}_{t}\) 自定义符号,比如max,min
\{\} \(\{\}\) 打出花括号
\Delta \(\Delta\) 三角形定义符
\triangleq \(\triangleq\) 等号上方有三角形
\Longrightarrow \(\Longrightarrow\) 长的双线右箭头
(\cdot) \((\cdot)\) 表述函数形式的原点
\sum_{k=1}^N \ s.t.m=5 \(\sum_{k=1}^N \ s.t.m=5\) 公式环境之中文字加空格
\int \(\int\) 积分符号
\lim_{t \rightarrow \infty} \(\lim_{t \rightarrow \infty}\) 极限和无穷符号
\prod \(\prod\) 累乘
\Phi \(\Phi\) 大写的fai
\varphi \(\varphi\) 小写的fai
\phi \(\phi\) 小写的fai
\xi \(\xi\)
\chi \(\chi\) 卡方分布符号
\to \(\to\) 右箭头的简写
\in \(\in\) 属于
\subseteq \(\subseteq\) 含于
\because \(\because\) 因为
\therefore \(\therefore\) 因此
\forall \(\forall\) 任意
\neq \(\neq\) 不等于
\hat{k} \(\hat{k}\) 戴帽子k
\tilde{k} \(\tilde{k}\) 波浪线k
\# \(\#\) 使用#符号
\_ \(\_\) 使用下划线
\% \(\%\) 使用百分号
\& \(\&\) 使用和符号
\approx \(\approx\) 约等于
\Longleftrightarrow \(\Longleftrightarrow\) 双向长箭头
\sim \(\sim\) 波浪线
\dot{k} \(\dot{k}\) 字母上方加点
\equiv \(\equiv\) 恒等于
\Pi \(\Pi\) 连乘符
`\bigg _{\tau = 1}` \(\bigg|_{\tau = 1}\)
\Leftrightarrow \(\Leftrightarrow\) 双向箭头
\times \(\times\) 乘号
\perp \(\perp\) 正交

2.多行公式

  • 使用align会自动产生公式编号,如果不需要可以在公式后添加\notag选项。
  • 也可直接使用align*环境,统一不加编号。
\begin{align}
\Theta &= \sum\limits_{t=1}^N e^t \notag \\
       &= ........ \notag 
\end{align}

\[\begin{align} \Theta &= \sum\limits_{t=1}^N e^t \notag \\ &= ........ \notag \end{align} \]


3.引用公式

\begin{equation} \label{eq1}
x^2 + y^2 = z^2
\end{equation}
in the above equation (\ref{eq1})

\[\begin{equation} \label{eq1} x^2 + y^2 = z^2 \end{equation}\]

in the above equation (\ref{eq1})


4.矩阵运算(下方括弧注释)

$$
   \underbrace{
    \begin{bmatrix}
        1 & -(\alpha - 1) \beta \overline{c} A \alpha \overline{k}^{\alpha - 2} \\
        0 & 1
    \end{bmatrix} 
   }_\text{J}   
   \underbrace{
    \begin{bmatrix}
        \tilde{c}_{t+1} \\
        \tilde{k}_{t+1}
    \end{bmatrix} 
   }_\text{u}
    + 
   \underbrace{
    \begin{bmatrix}
        -1 & 0 \\
        1 & - \dfrac{1}{\beta}
    \end{bmatrix} 
   }_\text{M}
   \underbrace{
    \begin{bmatrix}
        \tilde{c}_t \\
        \tilde{k}_t
    \end{bmatrix} 
   }_\text{v}
    =
   \underbrace{
    \begin{bmatrix}
        0 \\
        0
    \end{bmatrix}  
   }_\text{d}  
$$

\[ \underbrace{ \begin{bmatrix} 1 & -(\alpha - 1) \beta \overline{c} A \alpha \overline{k}^{\alpha - 2} \\ 0 & 1 \end{bmatrix} }_\text{J} \underbrace{ \begin{bmatrix} \tilde{c}_{t+1} \\ \tilde{k}_{t+1} \end{bmatrix} }_\text{u} + \underbrace{ \begin{bmatrix} -1 & 0 \\ 1 & - \dfrac{1}{\beta} \end{bmatrix} }_\text{M} \underbrace{ \begin{bmatrix} \tilde{c}_t \\ \tilde{k}_t \end{bmatrix} }_\text{v} = \underbrace{ \begin{bmatrix} 0 \\ 0 \end{bmatrix} }_\text{d} \]

posted @ 2020-10-10 15:33  Econ_Sea  阅读(745)  评论(0)    收藏  举报