markdown latex的快速入门

本文来自 HaleyPKU 的CSDN 博客 ,全文地址请点击:
https://blog.csdn.net/HaleyPKU/article/details/80341932?utm_source=copy

公式语法

基本格式:

  • 行间 公式与当前文字不在同一行,公式会换行。
    $$公式$$

  • 行内 公式与当前文字在同一行
    $公式$

  • 上标:$$a^{2}$$
    a 2 a^{2}

  • 下标:$$a_{2}$$
    a 2 a_{2}

  • 上下标一起来:$$a^{i}_{j}$$
    a j i a^{i}_{j}

  • 分数 $$\frac{分子}{分母}$$
    \frac{分子}{分母}

  • 根式: $$\sqrt[指数]{表达式}$$
    \sqrt[指数]{表达式}

  • 求和:$$\sum_{下限}^{上限}求和表达式$$
    i = i = + 1 x d x \sum_{i=-\infty}^{i=+\infty}\frac{1}{x}dx

  • 行内求和limits模式\sum\limits_{}^{} i = i = + 1 x d x \sum\limits_{i=-\infty}^{i=+\infty}\frac{1}{x}dx

  • 积分:$$\int_{下限}^{上限}积分表达式$$
    0 1 1 x d x \int_{0}^{1}\frac{1}{x}dx

  • 双重积分\iint_{}^{}
    0 1 f ( x , y ) d x d y \iint_{0}^{1}f(x,y)dxdy

  • 矩阵: 2x2的:$$\begin{pmatrix}1 & 2\\3 &4\end{pmatrix}$$
    ( 1 2 3 4 ) \begin{pmatrix}1 & 2\\3 &4\end{pmatrix}

  • 公式中插入空格\, \; \quad \qquad间隔依次变宽:
    a   b a\,b a    b a\;b q u a d quad

  • 字母上方横线\overline{}, \bar{}
    x y z \overline{xyz}

  • 字母下方横线\underline{}
    a b c \underline{abc}

  • 字母上方波浪线\tilde{}, \widetilde{}
    b ~ \tilde{b} a b c ~ \widetilde{abc}

  • 字母上方尖号^\hat{}, \widehat{}
    b ^ \hat{b} a b c ^ \widehat{abc}

  • 字母上方花括号\overbrace{},或下方花括号\underbrace{}
    a b c \overbrace{abc} a b c \underbrace{abc}

  • 字母上方点号\dot{}, \ddot{}
    a ˙ \dot{a} a ¨ \ddot{a}

  • 省略号\dots, \cdots
    1 , 2 , 1,2,\dots

  • 求乘积\prod_{}^{}
    i = 1 n a i \prod_{i=1}^{n}a_{i}

  • 根号\sqrt: x 2 + y 2 \sqrt{x^2+y^2}
    多次根号\sqrt[n] x 2 / 3 = x 2 3 x^{2/3} = \sqrt[3]{x^2}

  • 分情况讨论方程式

    f(x) =
    \begin{cases}
    x^2 \qquad & a \gt 0 \\
    e^x \qquad & a \le 0
    \end{cases}
    

    f ( x ) = { x 2 a > 0 e x a 0 f(x) = \begin{cases} x^2 \qquad & a \gt 0 \\\\ e^x \qquad & a \le 0 \end{cases}


常用希腊字母表

Name Display Capital Case Display Var Case Display
\alpha α \alpha
\beta β \beta
\gamma γ \gamma \Gamma Γ \Gamma
\theta θ \theta \Theta Θ \Theta \vartheta ϑ \vartheta
\mu μ \mu
\delta δ \delta \Delta Δ \Delta
\epsilon ϵ \epsilon \varepsilon ε \varepsilon
\sigma σ \sigma \Sigma Σ \Sigma \varsigma ς \varsigma
\pi π \pi \Pi Π \Pi \varpi ϖ \varpi
\omega ω \omega \Omega Ω \Omega
\xi ξ \xi \Xi Ξ \Xi
\zeta ζ \zeta
\chi χ \chi
\rho ρ \rho \varrho ϱ \varrho
\phi ϕ \phi \Phi Φ \Phi \varphi φ \varphi
\eta η \eta
\lambda λ \lambda \Lambda Λ \Lambda
\kappa κ \kappa
\nu ν \nu
\upsilon υ \upsilon \Upsilon Υ \Upsilon
\psi ψ \psi \Psi Ψ \Psi
\tau τ \tau
\iota ι \iota
o o o

常用特殊字符表

Name Display Name Display Name Display Name Display
\times × \times \div ÷ \div \pm ± \pm \mp \mp
\otimes \otimes \ominus \ominus \oplus \oplus \odot \odot
\oslash \oslash \triangleq \triangleq \ne \ne \equiv \equiv
\lt < \lt \gt > \gt \le \le \ge \ge
\cup \cup \cap \cap \Cup \Cup \Cap \Cap
\bigcup \bigcup \bigcap \bigcap \ast \ast \star \star
\bigotimes \bigotimes \bigoplus \bigoplus \circ \circ \bullet \bullet
\bigcirc \bigcirc \amalg ⨿ \amalg \to \to \infty \infty
\vee \vee \wedge \wedge \lhd \lhd \rhd \rhd
\bigvee \bigvee \bigwedge \bigwedge \unlhd \unlhd \unrhd \unrhd
\sqcap \sqcap \sqcup \sqcup \prec \prec \succ \succ
\subset \subset \supset \supset \sim \sim \approx \approx
\subseteq \subseteq \supseteq \supseteq \cong \cong \doteq \doteq
\setminus \setminus \mid \mid \ll \ll \gg \gg
\parallel \parallel \Join \Join \in \in \notin \notin
\propto \propto \neg ¬ \neg \ldots \ldots \cdots \cdots
\forall \forall \exists \exists \vdots \vdots \ddots \ddots
\aleph \aleph \nabla \nabla \imath ı \imath \jmath ȷ \jmath
\ell \ell \partial \partial \int \int \oint \oint
\uplus \uplus \biguplus \biguplus

其他

Name Display Name Display
\triangleleft \triangleleft \triangleright \triangleright
\bigtriangleup \bigtriangleup \bigtriangledown \bigtriangledown
\uparrow \uparrow \downarrow \downarrow
\leftarrow \leftarrow \rightarrow \rightarrow
\Leftarrow \Leftarrow \Rightarrow \Rightarrow
\longleftarrow \longleftarrow \longrightarrow \longrightarrow
\Longleftarrow \Longleftarrow \Longrightarrow \Longrightarrow
\leftrightarrow \leftrightarrow \longleftrightarrow \longleftrightarrow
\Leftrightarrow \Leftrightarrow \Longleftrightarrow \Longleftrightarrow
\leftharpoonup \leftharpoonup \rightharpoonup \rightharpoonup
\leftharpoondown \leftharpoondown \rightharpoondown \rightharpoondown
\rightleftharpoons \rightleftharpoons \S KaTeX parse error: Expected 'EOF', got '\S' at position 1: \̲S̲
\nwarrow \nwarrow \nearrow \nearrow
\swarrow \swarrow \searrow \searrow
\triangle \triangle \box \Box
\diamond \diamond \diamondsuit \diamondsuit
\heartsuit \heartsuit \clubsuit \clubsuit
\spadesuit \spadesuit

其他符号

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/FK103/article/details/82876895
今日推荐