Try   HackMD

常用LaTeX數學表示式與部份HTML語法

注意事項:

  1. 單行內使用 $[Expression]$,左邊$之後與右邊$之前不可有空白。
  2. 獨立表示使用
$$
[Expression]
$$

空格

: \square \qquad \square
:
\square \quad \square
:
\square \; \square
 :
\square \ \square
:
\square \, \square
:
\square \square
:
\square \! \square

希臘字母

小寫:

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

大寫:

Γ: \Gamma;
Δ:
\Delta;
Θ:
\Theta;
Λ:
\Lambda;
Ξ:
\Xi;
Π:
\Pi;
Σ:
\Sigma;
Υ:
\Upsilon;
Φ:
\Phi;
Ψ:
\Psi;
Ω:
\Oemga


下標(_)

a1: a_1


上標(^)

x2: x^{-2}


上下標

βj,ki: \beta^i_{j, k}

baX21: ^a_bX^1_2


根號(\sqrt, \surd)

x2+y: \sqrt {x^2+ \sqrt y}

yx: \sqrt[x]y

[x2+y3]: \surd[x^2+y^3]


Overline, 底線(\overline, \underline)

a+b: \overline{a+b}

a+b: \overline{\overline a +b}

ϕ: \underline \phi


下括號(\underbrace)

a+b+c++z26: \underbrace{a+b+c+ \cdots +z}_{26}


向量(\vec, \overrightarrow, \overleftarrow)

a: \vec a

AB: \quad \overrightarrow {AB}

α1: \overleftarrow {\alpha_1}


分數(\frac, \over)

x+7x+y: \frac{x+7}{x+y}

π(1x2)x+y: \quad \frac {\pi^{(\frac 1{x^2})}} {x+y}

x+yxy: \quad {{x+y} \over {x-y}}


和(\sum)

i=1nf(xi): \sum_{i=1}^nf(x_i)

i=1nf(xi)

\sum_{i=1}^{n}f(x_i)

行內表示式上下標與單行表示式不同


積分(\int)

02π: \int_0^{2\pi}


乘積(\prod)

ϵ: \prod_\epsilon

ϵ

\prod_\epsilon

行內表示式上下標與單行表示式不同


換行對齊(\begin{aligned}+\end{aligned})

Datadurability=1(AFR/365MTTR)Parity=1(24MTTRMTBF)Parity

\begin{aligned}
Data\,durability &= 1-(\frac{AFR}{\frac{365}{MTTR}}) ^{Parity} \\ \\ &= 1 - (\frac{24*MTTR}{MTBF}) ^{Parity}
\end{aligned}

使用\\換行,對齊處以&標註

Datadurability=1(AFR/365MTTR)Parity,AFR=24365MTBF


字母重音符號

a^: \hat a;
aˇ:
\check a;
a~:
\tilde a;
a´:
\acute a;
a`:
\grave a;
a˙:
\dot a;
a¨:
\ddot a;
a˘:
\breve a;
a¯:
\bar a;
a:
\vec a;
A^:
\widehat A;
A~:
\widetilde A


二元關係符號

<: <;
>:
>;
=:
=;
≤:
\le\leq;
≥:
\gegeq;
≡:
\equiv;
≪:
\ll;
≫:
\gg;
≐:
\doteq;
≺:
\prec;
≻:
\succ;
∼:
\sim;
⪯:
\preceq;
⪰:
\succeq;
≃:
\simeq;
⊂:
\subset;
≈:
\approx;
⊆:
\subseteq;
⊇:
\supseteq;
≅:
\cong;
⊏:
\sqsubset;
⊐:
\sqsupset;
⋈:
\JoinJ要大寫;
⊑:
\sqsubseteq;
⊒:
\sqsupseteq;
⋈:
\bowtie;
∈:
\in;
∋:
\ni\owns;
∝:
\propto;
⊢:
\vdash;
⊣:
\dashv;
⊨:
\models;
∣:
\mid;
∥:
\parallel;
⊥:
\perp;
⌣:
\smile;
⌢:
\frown;
≍:
\asymp;
::
:;
∉:
\notin;
≠:
\ne\neq;


二元運算符號

+: +;
:
-;
±:
\pm;
:
\mp;
:
\triangleleft;
:
\triangleright;
:
\cdot;
÷:
\div;
×:
\times;
:
\setminus;
:
\star;
:
\cup;
:
\cap;
:
\ast;
:
\sqcup;
:
\sqcap;
:
\circ;
:
\bullet;
:
\diamond;
:
\vee\lor;
:
\wegde\land;
:
\oplus;
:
\ominus;
:
\odot;
:
\oslash;
:
\otimes;
:
\bigcirc;
:
\uplus;
⨿:
\amalg;
:
\bigtriangleup;
:
\bigtriangledown;
⊲:
\lhd;
⊳:
\rhd;
⊴:
\unlhd;
⊵:
\unrhd;
:
\dagger;
:
\ddagger;
:
\wr;


大尺寸符號

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


定界符號

(: (;
):
);
[:
[\lbrack;
]:
]\rbrack;
{:
\{\lbrace;
}:
\}\rbrace;
:
\langle;
:
\rangle;
:
\lfloor;
:
\rfloor;
:
\lceil;
:
\rceil;
↑:
\uparrow;
⇑:
\Uparrow;
↓:
\downarrow;
⇓:
\Downarrow;
↕:
\updownarrow;
⇕:
\Updownarrow;
|:
|\vert;
:
\|\Vert;
/:
/;
:
\backslash;

例:

(xy)2(x+y)2: \langle {(x-y)^2 \over (x+y)^2} \rangle
i=0xi2,i=0xi2

\lceil {\sum^x_{i=0}i^2}, \int_{i=0}^xi^2 \rfloor


大尺寸定界符號

: \lgroup;
:
\rgroup;
:
\lmoustache;
:
\rmoustache;
:
\arrowvert;
:
\Arrowvert;
:
\bracevert;


數學符號表

: \dots;
:
\cdots;
:
\vdots;
:
\ddots;
:
\hbar;
ı:
\imath;
ȷ:
\jmath;
:
\ell;
:
\Re;
:
\Im;
:
\aleph;
:
\wp;
:
\forall;
:
\exists;
:
\mho;
:
\partial;
:
';
:
'';
:
\prime;
:
\emptyset;
:
\infty;
:
\nabla;
:
\triangle;
:
\Box;
:
\Diamond;
:
\bot;
:
\top;
:
\angle;
:
\diamondsuit;
:
\heartsuit;
:
\clubsuit;
:
\spadesuit;
¬:
\neglnot;
:
\flat;
:
\natural;
:
\sharp;


字體

ABC@123.abc: \mathcal{ABC@123.abc};
ABC@123.abc:
\mathbb{ABC@123.abc};
ABC@123.abc:
\mathbf{ABC@123.abc};
ABC@123.abc:
\mathfrak{ABC@123.abc};
ABC@123.abc:
\mathit{ABC@123.abc};
ABC@123.abc:
\mathrm{ABC@123.abc};
ABC@123.abc:
\mathsf{ABC@123.abc};
ABC@123.abc:
\mathscr{ABC@123.abc};
ABC@123.abc:
\mathtt{ABC@123.abc};

<italic>ABC@123.abc: \textit{<italic>ABC@123.abc}
<boldface>ABC@123.abc:
\textbf{<boldface>ABC@123.abc}
<roman>ABC@123.abc:
\textrm{<roman>ABC@123.abc}
<sans serif>ABC@123.abc:
\textsf{<sans serif>ABC@123.abc}
<typewriter>ABC@123.abc:
\texttt{<typewriter>ABC@123.abc}

大小

tinyABC@123.abc: \tiny tiny - ABC@123.abc測試
scriptsizeABC@123.abc:
\scriptsize script size - ABC@123.abc測試
smallABC@123.abc:
\small small - ABC@123.abc測試
normalsizeABC@123.abc:
\normalsize normal size - ABC@123.abc測試
largeABC@123.abc:
\large large - ABC@123.abc測試
LargeABC@123.abc:
\Large Large - ABC@123.abc測試
LARGEABC@123.abc:
\LARGE LARGE - ABC@123.abc測試
hugeABC@123.abc:
\huge huge - ABC@123.abc測試
HugeABC@123.abc:
\Huge Huge - ABC@123.abc測試


AMS常用其它符號(節錄)

: \hbar;
:
\hslash;
k:
\Bbbk;
:
\square;
:
\blacksquare;
:
\circledS;
:
\vartriangle;
:
\blacktriangle;
:
\triangledown;
:
\blacktriangledown;
:
\lozenge;
:
\blacklozenge;
:
\complement;
:
\Game;
:
\bigstar;
:
\measuredangle;
:
\sphericalangle;
:
\diagup;
:
\diagdown;
:
\backprime;
:
\nexists;
:
\Finv;
:
\varnothing;
ð:
\eth;


AMS二元關係符(節錄)

∴: \therefore;
∵:
\because;
≦:
\leqq;
≧:
\geqq;
≑:
\doteqdot\Ddoteq;
:
\thickapprox;
≬:
\between;
:
\blacktriangleleft;
:
\blacktriangleright;


AMS箭頭(節錄)

⇆: \leftrightarrows;
⇄:
\rightleftarrows;
⇐:
\Leftarrow;
⇒:
\Rightarrow;
↢:
\leftarrowtail;
↣:
\rightarrowtail;
⇋:
\leftrightharpoons;
:
\rightleftharpoons;
↰:
\Lsh;
↱:
\Rsh;
⇝:
\rightsquigarrow;
↫:
\looparrowleft;
↬:
\looparrowright;
↶:
\curvearrowleft;
↷:
\curvearrowright;
↺:
\circlearrowleft;
↻:
\circlearrowright;
↭:
\leftrightsquigarrow;


數學函數(例)

limx0: \lin_{x \rightarrow 0}

limx0

\lim_{x \rightarrow 0}


矩陣語法

使用\left ... \right與/或\begin{matrix}... \end{matrix}

語法:

  1. 無括號(直接使用\begin{matrix}...\end{matrix}):
    abcd

    \left. \begin{matrix} a & b \\ c & d \end{matrix} \right.

    abcd

    \begin{matrix} a & b \\ c & d\end{matrix};
  2. 小括號:
    (abcd)

    \left( \begin{matrix} a & b \\ c & d \end{matrix} \right)

    (abcd)

    \begin{pmatrix} a & b \\ c & d \end{pmatrix}
  3. 中括號:
    [abcd]

    \left[ \begin{matrix} a & b \\ c & d \end{matrix} \right]

    [abcd]

    \begin{bmatrix} a & b \\ c & d \end{bmatrix}
  4. 大括號:
    {abcd}

    \left\{ \begin{matrix} a & b \\ c & d \end{matrix} \right\}

    {abcd}

    \begin{Bmatrix} a & b \\ c & d \end{Bmatrix}
  5. 垂直線:
    |abcd|

    \left\vert \begin{matrix} a & b \\ c & d \end{matrix} \right\vert

    |abcd|

    \begin{vmatrix} a & b \\ c & d \end{vmatrix}
  6. 雙垂直線:
    abcd

    \left\Vert \begin{matrix} a & b \\ c & d \end{matrix} \right\|
    \Vert\|互通

    abcd

    \begin{Vmatrix} a & b \\ c & d \end{Vmatrix}

例一 (注意各式括號的產生方式)

(a)([834159672]}
$$
\left(
\begin{bmatrix}
8 & 3 & 4 \\
1 & 5 & 9 \\
6 & 7 & 2
\end{bmatrix}
\right\} \tag{a}
$$

使用\begin{array}{__|_}...\end{array}

{__|_}語法可調整矩陣各元素的分割與對齊方式。

例二

[(123456)}
\left[ \begin{pmatrix}
\begin{array}{c|cc}
1 & 2 & 3 \\
4 & 5 & 6
\end{array}
\end{pmatrix}
\right\}

包含文字,使用\mbox{}

例三 (注意\right.)

g(x,y)={f(x,y),if x<yf(y,x),if x>y0,otherwise.
g(x,y) = \left\{\begin{array}{ll}
f(x,y), & \mbox{if $x<y$} \\ % 文字的部份要用 \mbox
f(y,x), & \mbox{if $x>y$} \\ % 包住,讓他使用正常字體
0, & \mbox{otherwise.}
\end{array} \right.

例四 (增廣矩陣):

[11238145162171897230181425361326]
\left[
{\begin{array}{c|c}
\begin{matrix}
1 & 12 & 3 & 8 \\
14 & 5 & 16 &21\\
7 & 18 & 9 &7 \\
23 & 0 & -1 &8\\
\end{matrix}&
\begin{matrix}
1 & 4 \\
2 & 5 \\
3 & 6 \\
13 & 26 \\
\end{matrix}
\end{array}}
\right]


HTML部份語法

字型相關

文字顏色一 <font color=#FF0000>文字顏色一</font>

文字顏色二 <font style="color:blue;">文字顏色二</font>

文字背景 <font style="background-color:#ccffff;">文字背景</font>

verdana字型ABCabc123 <font style="font-family:verdana;">verdana字型ABCabc123</font>
標楷體字型ABCabc123 <font style="font-family:標楷體;">標楷體字型ABCabc123</font>
serif字型ABCabc123<span style="font-family:serif;">serif字型ABCabc123</span>
sans-serif字型ABCabc123<span style="font-family:sans-serif;">sans-serif字型ABCabc123</span>
cursive字型ABCabc123<span style="font-family:cursive;">cursive字型ABCabc123</span>
fantasy字型ABCabc123<span style="font-family:fantasy;">fantasy字型ABCabc123</span>
monospace字型ABCabc123<span style="font-family:monospace;">monospace字型ABCabc123</span>
細明體字型ABCabc123<span style="font-family:MingLiU;">細明體字型ABCabc123</span>
新細明體字型ABCabc123<span style="font-family:PMingLiU;">新細明體字型ABCabc123</span>
標楷體字型ABCabc123<span style="font-family:DFKai-sb;">標楷體字型ABCabc123</span>
微軟正黑體字型ABCabc123<span style="font-family:Microsoft JhengHei;">微軟正黑體字型ABCabc123</span>

文字大小 <font style="font-size:200%;">文字大小</font>

文字陰影。左移5像素,下移4像素,模糊半徑3像素,顏色#808080<font style="font-size:150%; text-shadow: -5px 4px 3px #808080;">文字陰影。左移5像素,下移4像素,模糊半徑3像素,顏色#808080</font>

空格相關

(No space)

 
&nbsp;

&ensp;

&emsp;


常用顏色表

https://www.ifreesite.com/color/web-color-code.htm


Emoji

https://www.webfx.com/tools/emoji-cheat-sheet/
https://emojipedia.org/emoji-15.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 →
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 →
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 →
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 →

小圖示

✨ 🤜 🤛 🏼 🤝 🥢 🏠 🏖 💰 🚗 👉 📖 👍 📅 ⏰ 📍 ⬇️