Try   HackMD

整理一些我自己用過的 LaTex 數學符號指令,下次就不用再像無頭蒼蠅般亂找了 XD

不過我的使用情境多數是在寫網誌時,插入公式用,偶爾寫寫課堂上的證明題,比較少拿它來寫文件,所以缺少關於排版部分的語法,只在文章後面稍微提到了點公式的排版。

是說,後面部分有點亂,是不是應該把這篇拆成兩篇?

目錄

  1. 二元運算號
  2. 二元關係符號
  3. 邏輯符號
  4. 上標、下標及Head
  5. 大尺寸運算符號
  6. 標準函式符號
  7. 根號與分數
  8. 微積分符號
  9. 二項式係數
  10. 箭號
  11. 分隔符號
  12. 希臘字母
  13. 陣列與方程式
  14. 空格
  15. 書寫時, 英文字體顯示
  16. 公式對齊

Warning
下列指令前後應該皆用 $$ 包圍,告訴編譯器這邊是應該用 mathjax 來渲染。
$$ 指令 $$

二元運算號

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
+
+
-
±
\pm
\mp
×
\times
\ast
\star
\cdot
÷
\div
\setminus
\oplus
\ominus
\otimes
\odot
\oslash
\bigcirc
\vee
\wedge
\uplus
\circ
\bullet
\diamond
\triangleright
\triangleleft

二元關係符號

預覽 指令 . 預覽 指令 . 預覽 指令
<
<
>
>
=
=
\le
\ge
\equiv
\ll
\gg
\doteq
\prec
\succ
\sim
\preceq
\succeq
\simeq
\subset
\supset
\approx
\subseteq
\supseteq
\cong
\sqsubset
\sqsupset
\cong
\sqsubseteq
\sqsupseteq
\bowtie
\in
\ni
\propto
\vdash
\dashv
\models
\perp
\mid
\parallel
\smile
\frown
\asymp

可在前面加上 \not 得到否定形式,ex:\not < 得到

邏輯符號

預覽 指令 . 預覽 指令 . 預覽 指令
\forall
\exists
\nexists
\therefore
\because
&
\And
\lor
\vee
\curlyvee
\bigvee
\land
\wedge
\curlywedge
\bigwedge
¬
\neg

上標、下標及Head

預覽 指令 . 預覽 指令 . 預覽 指令
ab
a^b
at
a_t
atb
a^b_t
at+1b+1
a^{b+1}_{t+1}
m+n
\overline{m+n}
m+n
\underline{m+n}
m++n26
\overbrace{m+\cdots+n}^{26}
m++n26
\underbrace{m+\cdots+n}_{26}
a¯
\bar{a}
a
\vec{a}
a^
\hat{a}
a˙
\dot{a}
ab
\overrightarrow{ab}
ab
\overleftarrow{ab}
abc^
\widehat{abc}
ab
\overset{\frown} {ab}

大尺寸運算符號

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
\sum
\bigcap
\bigcup
\biguplus
\bigsqcup
\prod
\coprod
\bigodot
\bigotimes
\bigoplus
\bigwedge
\bigvee
\int
\oint

標準函式符號

預覽 指令 . 預覽 指令 . 預覽 指令
sin
\sin
cos
\cos
tan
\tan
sec
\sec
csc
\csc
cot
\cot
arcsin
\arcsin
arccos
\arccos
arctan
\arctan
sinh
\sinh
cosh
\cosh
tanh
\tanh
exp
\exp
log
\log
ln
\ln
lim
\lim
lim inf
\liminf
lim sup
\limsup
inf
\inf
max
\max
min
\min
deg
\deg
arg
\arg
gcd
\gcd

根號與分數

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
\surd
2
\sqrt{2}
n
\sqrt[n]{}
23
\sqrt[3]{2}
24
\frac{2}{4}
24
\tfrac{2}{4}
24
\cfrac{2}{4}

微積分符號

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
x
\nabla{x}
x
\partial{x}
x
x^{\prime}
NNexdx
\int_{-N}^{N} e^x, dx
\infty

二項式係數

預覽 指令 . 預覽 指令
(nr)
\dbinom{n}{r}
(nnr)
\binom{n}{n-r}

箭號

預覽 指令 . 預覽 指令
\leftarrow
\rightarrow
\longleftarrow
\longrightarrow
\Leftarrow
\Rightarrow
\Longleftarrow
\Longrightarrow
\leftharpoonup
\rightharpoonup
\leftharpoondown
\rightharpoondown
\hookleftarrow
\hookrightarrow
\mapsto
\longmapsto
\leftrightarrow
\longleftrightarrow
\Leftrightarrow
\Longleftrightarrow
\rightleftharpoons
\uparrow
\downarrow
\Uparrow
\Downarrow
\updownarrow
\Updownarrow
\nearrow
\searrow
\swarrow
\nwarrow

分隔符號

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
(
(
)
)
[
[
]
]
{
\{
}
\}
\langle
\rangle
\lfloor
\rfloor
\lceil
\rceil
|
\vert
\Vert
/
/
\backslash

希臘字母

大寫字母

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
Γ
\Gamma
Δ
\Delta
Λ
\Lambda
Ξ
\Xi
Π
\Pi
Σ
\Sigma
Υ
\Upsilon
Φ
\Phi
Ψ
\Psi
Ω
\Omega

小寫字母

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
α
\alpha
β
\beta
γ
\gamma
δ
\delta
ϵ
\epsilon
ε
\varepsilon
ζ
\zeta
η
\eta
θ
\theta
ϑ
\vartheta
ι
\iota
κ
\kappa
λ
\lambda
μ
\mu
ν
\nu
ξ
\xi
o
o
π
\pi
ϖ
\varpi
ρ
\rho
ϱ
\varrho
σ
\sigma
ς
\varsigma
τ
\tau
υ
\upsilon
ϕ
\phi
φ
\varphi
χ
\chi
ψ
\psi
ω
\omega

陣列與方程式

陣列

a+bc95x2+y387z1

指令

\begin{matrix}
a+b & c     & 9   \\
5   & x^2+y & 3   \\
8   & 7     & z_1 \\
\end{matrix}

.

|xyzv|

指令

\begin{vmatrix}
x & y \\
z & v
\end{vmatrix}

.

真值表

abS001011101110

\begin{array}{|c|c||c|} a & b & S \\
\hline
0&0&1\\
0&1&1\\
1&0&1\\
1&1&0\\
\end{array}

.

方程組

{3x+5y+z7x2y+4z6x+3y+2z

指令

\begin{cases}
3x + 5y +  z \\
7x - 2y + 4z \\
-6x + 3y + 2z
\end{cases}

空格

效果說明 指令 預覽 . 效果說明 指令 預覽 . 效果說明 指令 預覽
大空格 \
a b
兩個quad空格 \qquad
ab
没有空格
ab
中空格 \;
ab
一個quad空格 \quad
ab
緊貼 \!
ab
小空格 \,
ab
換行 \\
ab

書寫時, 英文字體顯示

預覽 指令 . 預覽 指令 . 預覽 指令 . 預覽 指令
if
if
 if 
\text{ if }
R
\mathbb{R}
C
\mathrm{C}

公式對齊

a=b+c=d+f

指令

\begin{aligned}		
	a &= b + c \\
	   &= d  +f 
\end{aligned}

參考資料

  1. TeX / LaTeX 數學模式符號指令
  2. 常用数学符号的 LaTeX 表示方法
  3. 使用說明:數學公式|維基百科
  4. Latex数学公式中的空格|王志 新浪博客
  5. 【LaTeX入门】05、换行、换段、换页、首行缩进等命令|xiazdong

更新紀錄

最後更新日期:2022-10-03
  • 2022-10-03 更新:新增微積分符號
  • 2019-01-05 發布



本文作者:辛西亞.Cynthia
網站連結辛西亞的技能樹 / hackmd 版本
版權聲明:部落格中所有文章,均採用 CC BY-NC-SA 4.0 許可協議。轉載請標明作者、連結與出處!

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →