[LaTeX Tutorial] 04. LaTeX inserts mathematical formulas and symbols

[LaTeX Tutorial] 04. LaTeX carets and mathematical formulas

LaTeX official

I will grasp the format of the mathematical formulas used in the recent articles for your reference.
First,
the simplest mathematical model

$xxx$   %一个$符号,中间的内容是行内模式
$$xxx$$ %两个$符号,中间的内容是行间模式(行间模式会单独占一行)

A step further is the pattern with the formula number

\begin{
    
    eqnarray}
		%输入公式,此模式公式为行间模式,并带有公式编号
\end{
    
    eqnarray}

or

\begin{
    
    equation}
		x^2+y^2=1
\end{
    
    equation}

Insert the formula in curly brackets,
typically the LJ potential commonly used in molecular dynamics simulations

    \begin{
    
    eqnarray}
    	U_\mathrm{
    
    LJ}(r)=\left\{
    
    
    	\begin{
    
    array}{
    
    rcl}
    		4\epsilon_\mathrm{
    
    LJ}\lbrack(\frac{
    
    \sigma}{
    
    r})^{
    
    12}-(\frac{
    
    \sigma}{
    
    r})^6\rbrack & & {
    
    r\leq r_c}\\
    		0                                                  &     & {
    
    r   >      r_c}\\
    	\end{
    
    array} \right.
    \end{
    
    eqnarray}

insert image description here

Superscript vs Subscript in LaTeX

subscript

Use " _ " to achieve, for example: a 0

Superscript

Use " ^ " to achieve, such as: a 0

special superscript

Adding directions to letters represents vectors: a ⃗ \vec{a}a $\vec{a}$
Overline letters: a ‾ \overline{a}a $\overline{a}$
Add a hat on the letter to indicate (linear regression, straight line equation) y point: a ^ \hat{a}a^ $\hat{a}$
Curved hats on letters:a ^ \widehat{a}a $\widehat{a}$
Overline letters: a ‾ \overline{a}a $\overline{a}$
Add small tildes to letters: a ~ \tilde{a}a~ $\tilde{a}$
Increase the tilde on the letter:a ~ \widetilde{a}a $\widetilde{a}$
Add a dot to a letter: a ˙ \dot{a}a˙Add $\dot{a}$
two dots to a letter:a ¨ \ddot{a}a¨Add $\ddot{a}$
a tone to a letter:
a ˋ \grave{a}aˋ $\grave{a}$
a ˇ \check{a} aˇ $\check{a}$
a ˊ \acute{a} aˊ $\acute{a}$
a ˘ \brief{a}a˘ $\breve{a}$

vertical subscript

For example:

example LaTeX says
∑ i = 1 n \sum\limits_{i=1}^{n} i=1n $\sum\limits_{i=1}^{n}$
Π i = 1 n \mathop{\Pi}\limits_{i=1}^{n} i=1Pin $\mathop{\Pi}\limits_{i=1}^{n}$

pay attention

Many subscripts in mathematical formulas do not need italics,
such as k B Boltzmann constant, and the lower B does not need italics ,
so you can use $k_\mathrm{B}to achieve
the same. Subscripts that have no physical meaning can use regular fonts,
such as
U Coul , the Coulomb potential Coul only represents the meaning of Coulomb, and there is also the Fene potential U FENE , and the "c" under the LJ potential U LJ
r c represents the meaning of cutoff, which has no physical meaning and does not need italics. The same is true for ε r x

Operation symbols in LaTeX

Dot product: a ⋅ \cdot b$\cdot$
cross product: a× \times× b$\times$
divided by: a÷ \div÷ b$\div$
math function
sin ⁡ \sinsin $\sin$
cos ⁡ \coscos $\cos$
ln ⁡ \ln ln $\ln$
log ⁡ \log log $\log$
sin ⁡ 2 x + cos ⁡ 2 x = 1 \sin^{2}x + \cos^2x = 1 sin2x+cos2x=1 $\sin^{2}x + \cos^2x = 1$
x 4 \sqrt[4]{x} 4x %radical $\sqrt[4]{x}$
3 4 \frac{3}{4}43%Fraction $\frac{3}{4}$

Distribution symbols in LaTeX

∼ \sim use$\sim$

Sum symbol in LaTeX

symbol position example LaTeX format
symbol on top right ∑ n \sum^n n $\sum^n$
symbol placed directly above ∑ n \sum\limits^n n $\sum\limits^n$
symbol on the bottom right ∑ k = 1 \sum_{k=1} k=1 $\sum_{k=1}$
symbol placed directly below ∑ k = 1 \sum\limits_{k=1} k=1 $\sum\limits_{k=1}$

Vector expression in LaTeX

1. The vector is not bold with arrow
v ⃗ \vec{v}v
E ⃗ \vec{E}E
E p ⃗ \vec{E_\mathrm{p}}Ep

$\vec{
    
    v}$ 
$\vec{
    
    E}$
$\vec{
    
    E_\mathrm{
    
    p}}$

2. Vector bold without arrow
v \boldsymbol{v}v

$\boldsymbol{
    
    v}$

Attached below are the special characters that can be basically used

greek letter case

Greek lowercase, uppercase LaTeX format Greek lowercase, uppercase LaTeX format
a \alphaa AAA $\alpha$ $A$ μ \mum NNN $\mu$ $N$
β \betab BBB $\beta$ $B$ ξ \xi ξ ξ \XiX $\xi$ $\Xi$
γ \gamma c C \GammaC $\gamma$ $\Gamma$ ooothe OOO $o$ $O$
d \deltad Δ \DeltaD $\delta$ $\Delta$ π \piπ Π \PiPi $\pi$ $\Pi$
ϵ \epsilonϵ ε \varepsilone EEE $\epsilon$ $\varepsilon$ $E$ ρ \rho ρ ξ \xiX $\rho$ $\xi$
ζ \zetaζ ZZZ $\zeta$ $Z$ σ \sigma σ Σ \SigmaS $\sigma$ $\Sigma$
the \etaη H H H $\eta$ $H$ τ \yeart TTT $\tau$ $T$
θ \theta θ ϑ \varthetaϑ Θ \Theta Th $\theta$ $\vartheta$ $\Theta$ υ \upsilony Y \UpsilonY $\upsilon$ $\Upsilon$
i \iotaι I I I $\iota$ $I$ ϕ \phiϕ φ \varphiφ Φ \PhiPhi $\phi$ $\varphi$ $\Phi$
k \kappaMr. KKK $\kappa$ $K$ χ \chiχ X X X $\chi$ $X$
λ \lambdaλ L \LambdaL $\lambda$ $\Lambda$ ψ \psiψ Ψ \PsiPs $\psi$ $\Psi$
μ \muμ M M M $\mu$ $M$ ω \omegaoh Oh \OmegaOh $\omega$ $\Omega$

math mode accent

math mode accent LaTeX format math mode accent LaTeX format
a ^ \hat{a} a^ $\hat{a}$ a ˇ \check{a} aˇ $\check{a}$
a ~ \tilde{a}a~ $\tilde{a}$ a ˊ \acute{a} aˊ $\acute{a}$
a ˋ \grave{a} aˋ $\grave{a}$ a ˙ \dot{a} a˙ $\dot{a}$
a ¨ \ddot{a}a¨ $\ddot{a}$ a ˘ \brief{a}a˘ $\breve{a}$
a ˉ \bar{a} aˉ $\bar{a}$ a ⃗ \vec{a}a $\vec{a}$
a ^ \widehat{a} a $\widehat{a}$ a ~ \widetilde{a} a $\widetilde{a}$

binary relational symbol

binary relational symbol LaTeX format binary relational symbol LaTeX format binary relational symbol LaTeX format
< < > > = =
≤ \the $\le$ or $\leq$ ≥ \geq $\ge$or$\geq$ ≡ \equiv $\equiv$
≪ \ll $\ll$ ≫ \gg $\gg$ ≐ \doteq $\doteq$
≺ \prec $\prec$ ≻ \succ $\succ$ ∼ \sim $\sim$
⪯ \preceq $\preceq$ ⪰ \succeq $\succeq$ ≃ \simeq $\simeq$
⊂ \subset $\subset$ ⊃ \supset $\supset$ ≈ \approx $\approx$
⊆ \subseteq $\subseteq$ ⊇ \supseteq $\supseteq$ ≅ \cong $\cong$
⊏ \sqsubset $\sqsubset$ ⊐ \sqsupset $\sqsubset$ ⋈ \Join $\Join$
⊑ \sqsubseteq $\sqsubseteq$ ⊒ \sqsupseteq $\sqsupseteq$ ⋈ \bowtie $\bowtie$
∈ \in $\in$ ∋ \ni $\ni$ or $\owns$ ∝ \propto $\propto$
⊢ \vdash $\vdash$ ⊣ \dashv $\dashv$ ⊨ \models $\models$
∣ \mid $\mid$ ∥ \parallel $\parallel$ ⊥ \perp $\perp$
⌣ \smile $\smile$ ⌢ \frown $\frown$ ≍ \asymp $\asymp$
: : ∉ \notin / $\notin$ ≠ \neq = $\neq$ or $\ne$

注意:可以在上述命令前面加上 \not 来得到否定形式

二元运算符

二元运算符 LaTeX形式 二元运算符 LaTeX形式 二元运算符 LaTeX形式
+ + - -
± \pm ± $\pm$ ∓ \mp $\mp$ ◃ \triangleleft $\triangleleft$
⋅ \cdot $\cdot$ ÷ \div ÷ $\div$ ▹ \triangleright $\triangleright$
× \times × $\times$ ∖ \setminus $\setminus$ ⋆ \star $\star$
∪ \cup $\cup$ ∩ \cap $\cap$ ∗ \ast $\ast$
⊔ \sqcup $\sqcup$ ⊓ \sqcap $\sqcap$ ∘ \circ $\circ$
∨ \vee $\vee$ ∧ \wedge $\wedge$ ∙ \bullet $\bullet$
⊕ \oplus $\oplus$ ⊖ \ominus $\ominus$ ⋄ \diamond $\diamond$
⊙ \odot $\odot$ ⊘ \oslash $\oslash$ ⊎ \uplus $\uplus$
⊗ \otimes $\otimes$ ◯ \bigcirc $\bigcirc$ ⨿ \amalg ⨿ $\amalg$
△ \bigtriangleup $\bigtriangleup$ ▽ \bigtriangledown $\bigtriangledown$ † \dagger $\dagger$
⊲ \lhd $\lhd$ ⊳ \rhd $\rhd$ ‡ \ddagger $\ddagger$
⊴ \unlhd $\unlhd$ ⊵ \unrhd $\unrhd$ ≀ \wr $\wr$

大尺寸运算符

大尺寸运算符 LaTeX形式 大尺寸运算符 LaTeX形式 大尺寸运算符 LaTeX形式 大尺寸运算符 LaTeX形式
∑ \sum $\sum$ ⋃ \bigcup $\bigcup$ ⋁ \bigvee $\bigvee$ ⨁ \bigoplus $\bigoplus
∏ \prod $\prod$ ⋂ \bigcap $\bigcap$ ⋀ \bigwedge $\bigwedge$ ⨂ \bigotimes $\bigotimes$
∐ \coprod $\coprod$ ⨆ \bigsqcup $\bigsqcup$ ⨀ \bigodot $\bigodot$
∫ \int $\int$ ∮ \oint $\oint$ ⨄ \biguplus $\biguplus$

箭头

箭头 LaTeX形式 箭头 LaTeX形式 箭头 LaTeX形式
← \leftarrow $\leftarrow$ ⟵ \longleftarrow $\longleftarrow$ ↑ \uparrow $\uparrow$
→ \rightarrow $\rightarrow$ or $\to$ ⟶ \longrightarrow $\longrightarrow$ ↓ \downarrow $\downarrow$
↔ \leftrightarrow $\leftrightarrow$ ⟷ \longleftrightarrow $\longleftrightarrow$ ↕ \updownarrow $\updownarrow$
⇐ \Leftarrow $\Leftarrow$ ⟸ \Longleftarrow $\Longleftarrow$ ⇑ \Uparrow $\Uparrow$
⇒ \Rightarrow $\Rightarrow$ or $\to$ ⟹ \Longrightarrow $\Longrightarrow$ ⇓ \Downarrow $\Downarrow$
⇔ \Leftrightarrow $\Leftrightarrow$ ⟺ \Longleftrightarrow $\Longleftrightarrow$ ⇕ \Updownarrow $\Updownarrow$
↦ \mapsto $\mapsto$ ⟼ \longmapsto $\longmapsto$ ↗ \nearrow $\nearrow$
↩ \hookleftarrow $\hookleftarrow$ ↪ \hookrightarrow $\hookrightarrow$ ↘ \searrow $\searrow$
↼ \leftharpoonup $\leftharpoonup$ ⇀ \rightharpoonup $\rightharpoonup$ ↙ \swarrow $\swarrow$
↽ \leftharpoondown $\leftharpoondown$ ⇁ \rightharpoondown $\rightharpoondown$ ↖ \nwarrow $\nwarrow$
⇌ \rightleftharpoons $\rightleftharpoons$    ⟺    \iff $\iff$ ⇝ \leadsto $\leadsto$

定界符

定界符 LaTeX形式 定界符 LaTeX形式 定界符 LaTeX形式 定界符 LaTeX形式
↑ \uparrow $\uparrow$ ⇑ \Uparrow $\Uparrow$
[ [ or $lbrack$ ] ] or $rbrack$ ↓ \downarrow $\downarrow$ ⇓ \Downarrow $\Downarrow$
{ { or $lbrace$ } } or $rbrace$ ↕ \updownarrow $\updownarrow$ ⇕ \Updownarrow $\Updownarrow$
⟨ \langle $\langle$ ⟩ \rangle $\rangle$ ∣ \vert $\vert$ ∥ \Vert $\Vert$
⌊ \lfloor $\lfloor$ ⌋ \rfloor $\rfloor$ ⌈ \lceil $\lceil$ ⌉ \rceil $\rceil$
/ / \ \backslash \ $\backslash$

大尺寸定界符

定界符 LaTeX形式 定界符 LaTeX形式 定界符 LaTeX形式 定界符 LaTeX形式
⟮ \lgroup $\lgroup$ ⟯ \rgroup $\rgroup$ ⎰ \lmoustache $\lmoustache$ ⎱ \rmoustache $\rmoustache$
∣ \vert $\vert$ ∥ \Vert $\Vert$

其他符号

符号 LaTeX形式 符号 LaTeX形式 符号 LaTeX形式 符号 LaTeX形式
… \dots $\dots$ ⋯ \cdots $\cdots$ ⋮ \vdots $\vdots$ ⋱ \dots $\ddots$
ℏ \hbar $\hbar$ i \imath $\imath$ ȷ \jmath $\jmath$ ℓ \him $\ell$
ℜ \Re $\Re$ ℑ \Im $\Im$ ℵ \aleph A $\aleph$ ℘ \wp $\wp$
∀ \for all $\forall$ ∃ \exists $\exists$ ℧ \mho $\mho$ ∂ \partial $\partial$
′ \prime $\prime$ ∅ \emptyset $\emptyset$ ∞ \infty $\infty$
∇ \nabla $\nabla$ △ \triangle $\triangle$ □ \Box $\Box$ ⋄ \diamond $\diamond$
⊥ \bot $\bot$ ⊤ \top $\top$ ∠ \angle $\angle$ √ \deaf $\surd$
♢ \diamondsuit $\diamondsuit$ ♡ \heartsuit $\heartsuit$ ♣ \clubsuit $\clubsuit$ ♠ \spadesuit $\spadesuit$
¬ \neg ¬ $\neg$ ♭ \flat $\flat$ ♮ \natural $\natural$ ♯ \sharp $\sharp$

non-mathematical symbols

symbol LaTeX format symbol LaTeX format symbol LaTeX format
† \day $\dag$ § \S § $\S$ © \copyright c $\copyright$
$\ddag$ ¶ \P $\P$ £ \pounds £ $\pounds$

AMS delimiter

symbol LaTeX format symbol LaTeX format symbol LaTeX format symbol LaTeX format
⌜ \ulcorner $\ulcorner$ ⌝ \urcorner $\urcorner$ ⌞ \llcorner $\llcorner$ ⌟ \lrcorner $\lrcorner$
∣ \lvert $\lvert$ ∣ \rvert $\rvert$ ∥ \lVert $\lVert$ ∥ \rVert $\rVert$
ϝ \digammaϝ $\digamma$ ϰ \thiefϰ $\varkappa$ ℶ \whatB $\beth$ ℸ \daleth $\daleth$
ℷ \gimelthird $\gimel$

For more detailed formula expressions, please see the following blog post:
Original text link: https://blog.csdn.net/NSJim/article/details/109045914

Guess you like

Origin blog.csdn.net/Summeroc/article/details/126527383