使用Typora时LaTeX内联公式简单汇总

0、前言

在使用Typora写笔记时,有时候需要添加上LaTeX排版的公式。以下是整理出的一份简单笔记,方便记忆不清楚时查阅。笔记暂时不够完善,之后再补充。

注:有些公式语法KateX不能解析,但在Typora中可以使用(不用在意)



1、一些基本内联公式

位置关系

展示LaTeX说明
x 2 x^{2} x2x^{2}右上标
x 2 x_{2} x2x_{2}右下标
2 x {}^{2}x 2x{}^{2}x左上标
2 x {}_{2}x 2x{}_{2}x左下标
x 2 \frac{x}{2} 2x\frac{x}{2}分数

数学符号

展示LaTeX说明
± \pm ±\pm正负
∓ \mp \mp负正
× \times ×\times叉乘
⋅ \cdot \cdot点乘
⊕ \oplus \oplus
⊗ \otimes \otimes异或
∘ \circ \circ
÷ \div ÷\div除号
≠ \neq =\neq不等号
≈ \approx \approx约等于
≡ \equiv \equiv
≤ \leq \leq小于等于
≥ \geq \geq大于等于
∀ \forall \forall任意
∃ \exists \exists存在
∅ \emptyset \emptyset空集
∇ \nabla \nabla哈密顿算子
⊥ \bot \bot垂直
∠ \angle \angle
∵ \because \because因为
∴ \therefore \therefore所以
∼ \sim \sim等价
∣ \mid \mid
∂ \partial \partial偏导
∞ \infty \infty无穷大
… \dots \dots省略
∈ \in \in属于
∉ \notin /\notin不属于
⊂ \subset \subset
⊆ \subseteq \subseteq
∪ \cup \cup
∩ \cap $\cap
展示LaTeX说明
a ˙ \dot{a} a˙\dot{a}
a ¨ \ddot{a} a¨\ddot{a}
a ^ \hat{a} a^\hat{a}
a ⃗ \vec{a} a \vec{a}单字母向量
a ‾ \overline{a} a$\overline{a}上横线
a ‾ \underline{a} a\underline{a}下横线
a ~ \tilde{a} a~\tilde{a}上波浪线
A B → \overrightarrow{AB} AB \overrightarrow{AB}多字母向量
A B ^ \widehat{AB} AB \widehat{AB}将就算是一个弧线吧(本来是用\usepackage{yhmath} \wideparen{ABCDEFG},但是Typora不能用)
删除线~~ 内容放中间 ~~删除线
展示LaTeX说明
⌊ x ⌋ \lfloor x \rfloor x\lfloor x \rfloor向下取整
⌈ x ⌉ \lceil x \rceil x\lceil x \rceil向上取整
x \sqrt{x} x \sqrt{x}根号
lim ⁡ n → ∞ \lim_{n\rightarrow\infin} limn\lim_{n\rightarrow\infin}极限
f ′ f' ff’一阶导数
∫ 0 1 \int_{0}^{1} 01\int_{0}^{1}定积分
∮ \oint \oint
∑ i = 0 n \sum_{i=0}^{n} i=0n\sum_{i=0}^{n}求和
∏ i = 1 n \prod_{i=1}^{n} i=1n\prod_{i=1}^{n}连乘
( n 2 ) \binom{n}{2} (2n)\binom{n}{2}二项式系数,同: C n 2 C^{2}_{n} Cn2

其他字符

展示LaTeX展示LaTeX
← \leftarrow \leftarrow ⟵ \longleftarrow \longleftarrow
↔ \leftrightarrow \leftrightarrow ⟷ \longleftrightarrow \longleftrightarrow
⇒ \Rightarrow \Rightarrow ⟹ \Longrightarrow \Longrightarrow
⇔ \Leftrightarrow \Leftrightarrow ⟺ \Longleftrightarrow \Longleftrightarrow
↑ \uparrow \uparrow ↓ \downarrow \downarrow
⇑ \Uparrow \Uparrow ⇓ \Downarrow \Downarrow


2、希腊字母内联公式

小写字母LaTeX大写字母LaTeX
α \alpha α\alpha A \Alpha A\Alpha
β \beta β\beta B \Beta B\Beta
γ \gamma γ\gamma Γ \Gamma Γ\Gamma
δ \delta δ\delta Δ \Delta Δ\Delta
ϵ \epsilon ϵ\epsilon E \Epsilon E\Epsilon
ε \varepsilon ε\varepsilon
ζ \zeta ζ\zeta Z \Zeta Z\Zeta
η \eta η\eta H \Eta H\Eta
θ \theta θ\theta Θ \Theta Θ\Theta
ι \iota ι\iota I \Iota I\Iota
κ \kappa κ\kappa K \Kappa K\Kappa
λ \lambda λ\lambda Λ \Lambda Λ\Lambda
μ \mu μ\mu M \Mu M\Mu
ν \nu ν\nu N \Nu N\Nu
ξ \xi ξ\xi Ξ \Xi Ξ\Xi
ο \omicron ο\omicron O \Omicron O\Omicron
π \pi π\pi Π \Pi Π\Pi
ρ \rho ρ\rho P \Rho P\Rho
σ \sigma σ\sigma Σ \Sigma Σ\Sigma
τ \tau τ\tau T \Tau T\Tau
υ \upsilon υ\upsilon Υ \Upsilon Υ\Upsilon
ϕ \phi ϕ\phi Φ \Phi Φ\Phi
φ \varphi φ\varphi
χ \chi χ\chi X \Chi X\Chi
ψ \psi ψ\psi Ψ \Psi Ψ\Psi
ω \omega ω\omega Ω \Omega Ω\Omega


3、常见数学函数内联公式

函数类型LaTeX
sin ⁡ x \sin{x} sinx\sin{x}
cos ⁡ x \cos{x} cosx\cos{x}
tan ⁡ x \tan{x} tanx\tan{x}
cot ⁡ x \cot{x} cotx\cot{x}
sec ⁡ x \sec{x} secx\sec{x}
csc ⁡ x \csc{x} cscx\csc{x}
arcsin ⁡ x \arcsin{x} arcsinx\arcsin{x}
arccos ⁡ x \arccos{x} arccosx\arccos{x}
arctan ⁡ x \arctan{x} arctanx\arctan{x}
arccot x\arccot{x}
arcsec x\arcsec{x}
arccsc x\arccsc{x}
log ⁡ 2 x \log_{2}{x} log2x\log_{2}{x}
ln ⁡ x \ln{x} lnx\ln{x}
lg ⁡ x \lg{x} lgx\lg{x}


4、较复杂公式系列

其他

展示LaTeX说明
x n \sqrt[n]{x} nx \sqrt[\leftroot{-4}\uproot{4}n]{x}根号n(那个什么uproot啥的就是控制n的位置)
x → d − e − f a + b + c y x\xrightarrow[d-e-f]{a+b+c}y xa+b+c defyx\xrightarrow[d-e-f]{a+b+c}y
d o g e \color{red}doge doge\color{red}doge字体颜色样式

4.1、间隔

a  ⁣ b a b a   b a    b a   b a b a b a\!b \\ ab \\ a\,b \\ a\;b \\ a\ b \\ a\quad b \\ a\qquad b ababababa babab

a\!b \\
ab \\
a\,b \\
a\;b \\
a\ b \\
a\quad b \\
a\qquad b

4.2、矩阵

( 1 0 ⋯ 0 0 1 ⋯ 0 ⋮ ⋮ ⋱ ⋮ 0 0 ⋯ 1 ) \left( \begin{matrix} 1&0&\cdots&0\\ 0&1&\cdots&0\\ \vdots&\vdots&\ddots&\vdots\\ 0&0&\cdots&1 \end{matrix} \right) 100010001

\left(
\begin{matrix}
1 & 0 & \cdots & 0 \\
0 & 1 & \cdots & 0 \\
\vdots &\vdots & \ddots & \vdots \\
0 & 0 & \cdots & 1
\end{matrix}
\right)

4.3、行列式

∣ 1 0 0 0 1 0 0 0 1 ∣ \left| \begin{matrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{matrix} \right| 100010001

\left|
\begin{matrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{matrix}
\right|

4.4、方程组

{ x + y + z = 1 x 2 + y 2 + z 2 = 1 z = 0 \begin{cases} x+y+z=1\\ x^2+y^2+z^2=1\\ z=0 \end{cases} x+y+z=1x2+y2+z2=1z=0

\begin{cases}
x+y+z=1\\
x^2+y^2+z^2=1\\
z=0
\end{cases}

4.5、多行等式

x = ( a + b ) 2 − ( a − b ) 2 = 4 a b \begin{aligned} x &= (a+b)^2-(a-b)^2\\ &= 4ab \end{aligned} x=(a+b)2(ab)2=4ab

\begin{aligned}
x &= (a+b)^2-(a-b^2)\\
  &= 4ab
\end{aligned}

4.5、分段函数

f ( x ) = { x , x ≥ 0 0 , x < 0 f(x)= \begin{cases} x,\quad x\geq0\\ 0,\quad x<0 \end{cases} f(x)={x,x00,x<0

f(x)=
\begin{cases}
x,\quad x\geq0\\
0,\quad x<0
\end{cases}

4.6、表格

1 2 3 4 5 6 7 8 9 \begin{array}{|c|l|r|} \hline 1&2&3\\ \hline 4&5&6\\ \hline 7&8&9\\ \hline \end{array} 147258369

\begin{array}{|c|l|r|}
\hline 1&2&3\\
\hline 4&5&6\\
\hline 7&8&9\\
\hline
\end{array}

4.7、其他

式子后边的标签的添加
y = x + 1 (1) \begin{aligned} y=x+1 \end{aligned} \tag{1} y=x+1(1)

\begin{equation}
y=x+1
\end{equation} \tag{1}
  • 17
    点赞
  • 61
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值