Typora 插入 LaTeX 公式 (对齐)

最近写Typora,需要写公式,记录简单的LaTeX公式排版,mathpix好用,但现在免费次数越来越少了,还是得记忆一下。

公式对齐

将公式写在$$ \begin{aligned}...\end{aligned} $$中间,用&对齐,\\换行,

$$
\begin{aligned}
A & = 1 + 1 \\
  & = 2
\end{aligned}
$$

A = 1 + 1 = 2 \begin{aligned} A & = 1 + 1 \\ & = 2 \end{aligned} A=1+1=2

$$
\begin{aligned}
A & =\frac{L_2-L_1}{L_3-L_2} \cdot \frac{m_3-m_2}{m_2-m_1} \\
& =\frac{L_2-L_1}{L_3-L_2} \cdot \frac{\frac{1}{t_3}-\frac{1}{t_2}}{\frac{1}{t_2}-\frac{1}{t_1}} \\
& =\frac{t_1}{t_3} \cdot \frac{L_2-L_1}{L_3-L_2} \cdot \frac{t_3-t_2}{t_2-t_1} \\
\end{aligned}
,
\qquad
\begin{aligned}
m_0 & =\frac{m_3-m_1 A}{1-A} \\
& =\frac{\frac{1}{t_3}-\frac{1}{t_1} A}{1-A} \\
& =\frac{t_1-t_3 A}{(1-A) t_1 t_3}
\end{aligned}
$$

A = L 2 − L 1 L 3 − L 2 ⋅ m 3 − m 2 m 2 − m 1 = L 2 − L 1 L 3 − L 2 ⋅ 1 t 3 − 1 t 2 1 t 2 − 1 t 1 = t 1 t 3 ⋅ L 2 − L 1 L 3 − L 2 ⋅ t 3 − t 2 t 2 − t 1 , m 0 = m 3 − m 1 A 1 − A = 1 t 3 − 1 t 1 A 1 − A = t 1 − t 3 A ( 1 − A ) t 1 t 3 \begin{aligned} A & =\frac{L_2-L_1}{L_3-L_2} \cdot \frac{m_3-m_2}{m_2-m_1} \\ & =\frac{L_2-L_1}{L_3-L_2} \cdot \frac{\frac{1}{t_3}-\frac{1}{t_2}}{\frac{1}{t_2}-\frac{1}{t_1}} \\ & =\frac{t_1}{t_3} \cdot \frac{L_2-L_1}{L_3-L_2} \cdot \frac{t_3-t_2}{t_2-t_1} \\ \end{aligned} , \qquad \begin{aligned} m_0 & =\frac{m_3-m_1 A}{1-A} \\ & =\frac{\frac{1}{t_3}-\frac{1}{t_1} A}{1-A} \\ & =\frac{t_1-t_3 A}{(1-A) t_1 t_3} \end{aligned} A=L3L2L2L1m2m1m3m2=L3L2L2L1t21t11t31t21=t3t1L3L2L2L1t2t1t3t2,m0=1Am3m1A=1At31t11A=(1A)t1t3t1t3A

分段函数 大括号

\begin{cases}...\end{cases}表示大括号,在括号内用&对齐,\\换行

$$
y= \begin{cases}\exp (-a *(0.2-x)) \cdot 100 &,\quad x < 0.2 \\
100 &,\quad 0.2 <= x<=1 \\
\exp (-a *(x-1)) \cdot 100 &,\quad x > 1\end{cases} \\
$$

y = { exp ⁡ ( − a ∗ ( 0.2 − x ) ) ⋅ 100 , x < 0.2 100 , 0.2 < = x < = 1 exp ⁡ ( − a ∗ ( x − 1 ) ) ⋅ 100 , x > 1 y= \begin{cases}\exp (-a *(0.2-x)) \cdot 100 &,\quad x < 0.2 \\ 100 &,\quad 0.2 <= x<=1 \\ \exp (-a *(x-1)) \cdot 100 &,\quad x > 1\end{cases} \\ y= exp(a(0.2x))100100exp(a(x1))100,x<0.2,0.2<=x<=1,x>1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值