当前位置:网站首页>Edit mathematical formulas in markdown
Edit mathematical formulas in markdown
2022-07-25 02:50:00 【Drinking wine under the lone shadow moon】
1. summary
stay Markdown To input mathematical formulas in LaTeX Grammar support .
2. Basic grammar
The general formula is divided into two forms , It can be understood as a special code block ,
In line formula :
Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt. Γ(z)=∫0∞tz−1e−tdt.
The block formula :
Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. Γ(z)=∫0∞tz−1e−tdt.
Line formula , Is to add $, Followed by $ Composed of . The block formula is Input $$ and $$ Before and after the formula .
3. The Greek letter
| name | Capitalization | Tex | A lowercase letter | Tex |
|---|---|---|---|---|
| alpha | A | A | α | \alpha |
| beta | B | B | β | \beta |
| gamma | Γ | \Gamma | γ | \gamma |
| delta | Δ | \Delta | δ | \delta |
| epsilon | E | E | ϵ | \epsilon |
| zeta | Z | Z | ζ | \zeta |
| eta | H | H | η | \eta |
| theta | Θ | \Theta | θ | \theta |
| iota | I | I | ι | \iota |
| kappa | K | K | κ | \kappa |
| lambda | Λ | \Lambda | λ | \lambda |
| mu | M | M | μ | \mu |
| nu | N | N | ν | \nu |
| xi | Ξ | \Xi | ξ | \xi |
| omicron | O | O | ο | \omicron |
| pi | Π | \Pi | π | \pi |
| rho | P | P | ρ | \rho |
| sigma | Σ | \Sigma | σ | \sigma |
| tau | T | T | τ | \tau |
| phi | Φ | \Phi | ϕ | \phi |
| chi | X | X | χ | \chi |
| psi | Ψ | \Psi | ψ | \psi |
| omega | Ω | \Omega | ω | \omega |
4. Superscript and subscript
| explain | Code | result |
|---|---|---|
Epiglottic ^ | $x^2$ | x 2 x^2 x2 |
Inferior infill _ | $x_i$ | x i x_i xi |
$\log_2 x$ | l o g 2 x log_2x log2x |
5. Brackets
| Code | result |
|---|---|
$(\frac{\sqrt x}{y^3})$ | ( x y 3 ) (\frac{\sqrt x}{y^3}) (y3x) |
$\left(\frac{\sqrt x}{y^3}\right)$ | ( x y 3 ) \left(\frac{\sqrt x}{y^3}\right) (y3x) |
$\{ x \}$ | { x } \{ x \} { x} |
$\vert x \vert$ | ∣ x ∣ \vert x \vert ∣x∣ |
$\Vert x \Vert$ | ∥ x ∥ \Vert x \Vert ∥x∥ |
$\langle x \rangle$ | * x * \langle x \rangle *x* |
$\lceil x \rceil$ | ⌈ x ⌉ \lceil x \rceil ⌈x⌉ |
$\lfloor x \rfloor$ | ⌊ x ⌋ \lfloor x \rfloor ⌊x⌋ |
6. Sum and integral
| Code | result |
|---|---|
$\sum_1^n$ | ∑ 1 n \sum_1^n ∑1n |
$\sum_{i=0}^\infty i^2$ | ∑ i = 0 ∞ i 2 \sum_{i=0}^\infty i^2 ∑i=0∞i2 |
$\prod$ | ∏ \prod ∏ |
$\int$ | ∫ \int ∫ |
$\bigcup$ | ⋃ \bigcup ⋃ |
$\bigcap$ | ⋂ \bigcap ⋂ |
$\iint$ | ∬ \iint ∬ |
$\iiint$ | ∭ \iiint ∭ |
7. Fraction and radical
- The first one is , Use
\frac ab,\fracAct on the next two groupsa,b, The result is a b \frac ab ba . If your numerator or denominator is not a single character , Please use{..}To group . - The second kind , Use
\overTo separate the front and back parts of a group , Such as{a+1\over b+1}: a + 1 b + 1 {a+1\over b+1} b+1a+1 .
| Code | result |
|---|---|
$\frac ab$ | a b \frac ab ba |
$\frac{a+1}{b+1}$ | a + 1 b + 1 \frac{a+1}{b+1} b+1a+1 |
${a+1\over b+1}$ | a + 1 b + 1 {a+1\over b+1} b+1a+1 |
$\sqrt[x]{y}$ | y x \sqrt[x]{y} xy |
8. Multiline expressions
8.1 Classification expression
Basic grammar \begin{cases}…\end{cases}
Use \\ To classify , If you want to increase the distance between vertical classifications , have access to \\[2ex] Instead of \\, Use & Indicates where alignment is required
f(n)=
\begin{cases}
\cfrac n5, &if\ n\ is\ even\\
5n + 5, &if\ n\ is\ odd
\end{cases}
f ( n ) = { n 5 , i f n i s e v e n 5 n + 5 , i f n i s o d d f(n)= \begin{cases} \cfrac n5, &if\ n\ is\ even\\[3ex] 5n + 5, &if\ n\ is\ odd \end{cases} f(n)=⎩⎪⎪⎨⎪⎪⎧5n,5n+5,if n is evenif n is odd
8.2 Equations expression
Use \begin{array}...\end{array} And \left \{ And \right. Coordinate representation equations
$$
\left \{
\begin{array}{c}
a_1x+b_1y+c_1z=d_1 \\
a_2x+b_2y+c_2z=d_2 \\
a_3x+b_3y+c_3z=d_3
\end{array}
\right.
$$
{ a 1 x + b 1 y + c 1 z = d 1 a 2 x + b 2 y + c 2 z = d 2 a 3 x + b 3 y + c 3 z = d 3 \left \{ \begin{array}{c} a_1x+b_1y+c_1z=d_1 \\ a_2x+b_2y+c_2z=d_2 \\ a_3x+b_3y+c_3z=d_3 \end{array} \right. ⎩⎨⎧a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
Be careful : Usually MathJax Manage the space inside the formula through internal policies , therefore a…b And a…….b (. Said the blank space ) It will all show as ab . It can be done by ab Inter join \ , Add a little clearance ,\; Increase wider clearance ,\quad And \qquad Will add more clearance .
9. Special functions
| Code | result |
|---|---|
$\lim_{x\to 0}$ | lim x → 0 \lim_{x\to 0} limx→0 |
$\sin x$ | sin x \sin x sinx |
10. Special symbols
| Code | result |
|---|---|
$\lt\, \gt\, \le\, \ge\, \neq,\not\lt$ | < > ≤ ≥ ≠ ≮ \lt\, \gt\, \le\, \ge\, \neq\,\not\lt <>≤≥=< |
$\times\, \div\, \pm\, \mp$ | × ÷ ± ∓ \times\, \div\, \pm\, \mp ×÷±∓ |
$\cup\, \cap\, \setminus\, \subset\, \subseteq \,\subsetneq \,\supset\, \in\, \notin\, \emptyset\, \varnothing$ | ∪ ∩ ∖ ⊂ ⊆ ⊊ ⊃ ∈ ∉ ∅ ∅ \cup\, \cap\, \setminus\, \subset\, \subseteq \,\subsetneq \,\supset\, \in\, \notin\, \emptyset\, \varnothing ∪∩∖⊂⊆⊊⊃∈∈/∅∅ |
$\to\, \rightarrow\, \leftarrow\, \Rightarrow\, \Leftarrow\, \mapsto$ | → → ← ⇒ ⇐ ↦ \to\, \rightarrow\, \leftarrow\, \Rightarrow\, \Leftarrow\, \mapsto →→←⇒⇐↦ |
$\land\, \lor\, \lnot\, \forall\, \exists\, \top\, \bot\, \vdash\, \vDash$ | ∧ ∨ ¬ ∀ ∃ ⊤ ⊥ ⊢ ⊨ \land\, \lor\, \lnot\, \forall\, \exists\, \top\, \bot\, \vdash\, \vDash ∧∨¬∀∃⊤⊥⊢⊨ |
$\star\, \ast\, \oplus\, \circ\, \bullet$ | ⋆ ∗ ⊕ ∘ ∙ \star\, \ast\, \oplus\, \circ\, \bullet ⋆∗⊕∘∙ |
$\approx\, \sim \, \simeq\, \cong\, \equiv\, \prec, \lhd$ | ≈ ∼ ≃ ≅ ≡ ≺ ⊲ \approx\, \sim \, \simeq\, \cong\, \equiv\, \prec\, \lhd ≈∼≃≅≡≺⊲ |
$\hat x$ | x ^ \hat x x^ |
$\widehat{xy}$ | x y ^ \widehat{xy} xy |
$\bar x$ | x ˉ \bar x xˉ |
$\overline{xyz}$ | x y z ‾ \overline{xyz} xyz |
$\vec x$ | x ⃗ \vec x x |
$\overrightarrow{xy}$ | x y → \overrightarrow{xy} xy |
$\dot x^2$ | x ˙ 2 \dot x^2 x˙2 |
$\ddot x$ | x ¨ \ddot x x¨ |
11. matrix
Use \begin{matrix}…\end{matrix} This form is used to represent the matrix , stay \begin And \end Add elements in the matrix between . Between the rows of the matrix \\ Separate , Use between columns & Separate .
$$
\begin{matrix}
1 & x & x^2 \\
1 & y & y^2 \\
1 & z & z^2 \\
\end{matrix}
$$
1 x x 2 1 y y 2 1 z z 2 \begin{matrix} 1 & x & x^2 \\ 1 & y & y^2 \\ 1 & z & z^2 \\ \end{matrix} 111xyzx2y2z2
11.1 Brackets
| Code | result |
|---|---|
$\begin{pmatrix}1 & 2 \\ 3 & 4\\ \end{pmatrix}$ | ( 1 2 3 4 ) \begin{pmatrix}1 & 2 \\ 3 & 4\\ \end{pmatrix} (1324) |
$\begin{bmatrix}1 & 2 \\ 3 & 4\\ \end{bmatrix}$ | [ 1 2 3 4 ] \begin{bmatrix}1 & 2 \\ 3 & 4\\ \end{bmatrix} [1324] |
$\begin{Bmatrix}1 & 2 \\ 3 & 4\\ \end{Bmatrix}$ | { 1 2 3 4 } \begin{Bmatrix}1 & 2 \\ 3 & 4\\ \end{Bmatrix} { 1324} |
$\begin{vmatrix}1 & 2 \\ 3 & 4\\ \end{vmatrix}$ | ∣ 1 2 3 4 ∣ \begin{vmatrix}1 & 2 \\ 3 & 4\\ \end{vmatrix} ∣∣∣∣1324∣∣∣∣ |
$\begin{Vmatrix}1 & 2 \\ 3 & 4\\ \end{Vmatrix}$ | ∥ 1 2 3 4 ∥ \begin{Vmatrix}1 & 2 \\ 3 & 4\\ \end{Vmatrix} ∥∥∥∥1324∥∥∥∥ |
11.2 Elements are omitted
Use \cdots:⋯,\ddots:⋱ ,\vdots:⋮ To omit the elements in the matrix , Such as
$$
\begin{pmatrix}
1&a_1&a_1^2&\cdots&a_1^n\\
1&a_2&a_2^2&\cdots&a_2^n\\
\vdots&\vdots&\vdots&\ddots&\vdots\\
1&a_m&a_m^2&\cdots&a_m^n\\
\end{pmatrix}
$$
( 1 a 1 a 1 2 ⋯ a 1 n 1 a 2 a 2 2 ⋯ a 2 n ⋮ ⋮ ⋮ ⋱ ⋮ 1 a m a m 2 ⋯ a m n ) \begin{pmatrix} 1&a_1&a_1^2&\cdots&a_1^n\\ 1&a_2&a_2^2&\cdots&a_2^n\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&a_m&a_m^2&\cdots&a_m^n\\ \end{pmatrix} ⎝⎜⎜⎜⎛11⋮1a1a2⋮ama12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn⎠⎟⎟⎟⎞
Reference link :
1.https://blog.csdn.net/lilongsy/article/details/79378620
2.https://www.jianshu.com/p/25f0139637b7
边栏推荐
- Class notes (4) (2) -- 572. Compete
- Apk packaging process
- Cloudrev deploy your own public cloud disk (pagoda installation method)
- Details of happens before rules
- Project management tool Zen
- Rotating frame target detection mmrotate v0.3.1 training hrsc2016 data set (II)
- Explorer TSSD 2019 software installation package download and installation tutorial
- What are you working for? Don't give up is our only choice, come on, everyone
- Summary thinking caused by the function of a SMS verification code [easy to understand]
- How to communicate with aliens
猜你喜欢

After six years of precipitation, new consumption has found a digital transformation paradigm

Arduino IDE for raspberry PI Pico development firmware localization installation tutorial

6.0 cancellation of member registration verification code

Digital commerce cloud fine chemical industry management platform integrated informatization solution

Coal industry supply chain centralized mining system: digitalization to promote the transformation and upgrading of coal industry

Domestic edge computing organization and product research

B2B e-commerce trading platform of heavy metal industry: breaking the state of data isolation and improving the benefits of heavy metal industry

How to use blender to make 360 degree panorama and panoramic video?

Pypi counts the number of Downloads

Request and response
随机推荐
Explorer TSSD 2019 software installation package download and installation tutorial
Do you know about real-time 3D rendering? Real time rendering software and application scenarios are coming
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
Visualization of correlation coefficient matrix
Class notes (4) (2) -- 572. Compete
Cookies and sessions
Digital commerce cloud fine chemical industry management platform integrated informatization solution
Flume's study notes
Clothing ERP | ten advantages of clothing ERP for enterprises
After working for two months in the summer vacation, I understood three routing schemes of keepalived high availability
String class
C language: Structure -- a detailed explanation of memory byte alignment
Insertion of balanced binary tree (AVL tree)
BGP introduction
Mp4 package analysis
Componentization and modularization
[pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)
Read and upgrade st-link chip information and SWD burning media through STM32 stlink utility tool
Keil compile download error: no algorithm found for: 08000000h - 08001233h solution
# CF #807 Div.2(A - D)