文本格式
文字居中
1、文字居中:
<center>SILVER</center>
2、左對齊:
<p align="left">silver</p>
silver
字體
字體顏色
深紅色文字:<font color="#660000">深紅色文字</font>
深紅色文字:深紅色文字
字體大小
size爲1:<font size="1">size爲1</font> size爲2:<font size="2">size爲2</font> size爲3:<font size="3">size爲3</font>
size爲1:size爲1
size爲2:size爲2
size爲3:size爲3
背景色
<table><tr><td bgcolor=#D1EEEE>背景色的設置是按照十六進制顏色值:#D1EEEE</td></tr></table>
背景色的設置是按照十六進制顏色值:#D1EEEE |
顏色
<table><tbody>
<tr>
<th>顏色名</th><th>十六進制顏色值</th><th>顏色</th>
</tr>
<tr>
<td><font color="AliceBlue">AliceBlue</font></td><td><font color="AliceBlue">F0F8FF</font></td><td bgcolor="AliceBlue">rgb(240, 248, 255)</td>
</tr>
<tr>
<td><font color="AntiqueWhite">AntiqueWhite</font></td><td><font color="AntiqueWhite">#FAEBD7</font></td><td bgcolor="AntiqueWhite">rgb(250, 235, 215)</td>
</tr>
<tr>
<td><font color="Lavender">Lavender</font></td><td><font color="Lavender">#E6E6FA</font></td><td bgcolor="Lavender">rgb(230, 230, 250)</td>
</tr>
<tr>
<td><font color="LavenderBlush">LavenderBlush</font></td><td><font color="LavenderBlush">#FFF0F5</font></td><td bgcolor="LavenderBlush">rgb(255, 240, 245)</td>
</tr>
<tr>
<td><font color=" LightPink"> LightPink</font></td><td><font color=" LightPink">#FFB6C1</font></td><td bgcolor=" LightPink">rgb(255, 182, 193)</td>
</tr>
<tr>
<td><font color="LightSalmon">LightSalmon</font></td><td><font color="LightSalmon">#FFA07A</font></td><td bgcolor="LightSalmon">rgb(255, 160, 122)</td>
</tr>
<tr>
<td><font color="MintCream">MintCream</font></td><td><font color="MintCream">#F5FFFA</font></td><td bgcolor="MintCream">rgb(245, 255, 250)</td>
</tr>
<tr>
<td><font color="MistyRose">MistyRose</font></td><td><font color="MistyRose">#FFE4E1</font></td><td bgcolor="MistyRose">rgb(255, 228, 225)</td>
</tr>
<tr>
<td><font color="Moccasin">Moccasin</font></td><td><font color="Moccasin">#FFE4B5</font></td><td bgcolor="Moccasin">rgb(255, 228, 181)</td>
</tr>
<tr>
<td><font color="MintCream">MintCream</font></td><td><font color="MintCream">#F5FFFA</font></td><td bgcolor="MintCream">rgb(245, 255, 250)</td>
</tr>
<tr>
<td><font color="PaleVioletRed">PaleVioletRed</font></td><td><font color="PaleVioletRed">#D87093</font></td><td bgcolor="PaleVioletRed">rgb(216, 112, 147)</td>
</tr>
</table>`
顏色名 | 十六進制顏色值 | 顏色 |
---|---|---|
AliceBlue | F0F8FF | rgb(240, 248, 255) |
AntiqueWhite | #FAEBD7 | rgb(250, 235, 215) |
Lavender | #E6E6FA | rgb(230, 230, 250) |
LavenderBlush | #FFF0F5 | rgb(255, 240, 245) |
LightPink | #FFB6C1 | rgb(255, 182, 193) |
LightSalmon | #FFA07A | rgb(255, 160, 122) |
MintCream | #F5FFFA | rgb(245, 255, 250) |
MistyRose | #FFE4E1 | rgb(255, 228, 225) |
Moccasin | #FFE4B5 | rgb(255, 228, 181) |
MintCream | #F5FFFA | rgb(245, 255, 250) |
PaleVioletRed | #D87093 | rgb(216, 112, 147) |
數學公式
希臘字母
字母 | 實現 | 字母 | 實現 |
---|---|---|---|
A | A |
α | \alhpa |
B | B |
β | \beta |
Γ | \Gamma |
γ | \gamma |
Δ | \Delta |
δ | \delta |
E | E |
ϵ | \epsilon |
Z | Z |
ζ | \zeta |
H | H |
η | \eta |
Θ | \Theta |
θ | \theta |
I | I |
ι | \iota |
K | K |
κ | \kappa |
Λ | \Lambda |
λ | \lambda |
M | M |
μ | \mu |
N | N |
ν | \nu |
Ξ | \Xi |
ξ | \xi |
O | O |
ο | \omicron |
Π | \Pi |
π | \pi |
P | P |
ρ | \rho |
Σ | \Sigma |
σ | \sigma |
T | T |
τ | \tau |
Υ | \Upsilon |
υ | \upsilon |
Φ | \Phi |
ϕ | \phi |
X | X |
χ | \chi |
Ψ | \Psi |
ψ | \psi |
Ω | \v |
ω | \omega |
行內與獨行
- 行內公式:將公式插入到本行內,符號:
$公式內容$
,如: - 獨行公式:將公式插入到新的一行內,並且居中,符號:
$$公式內容$$
,如:
上標、下標與組合
- 上標符號,符號:
^
,如: - 下標符號,符號:
_
,如: - 組合符號,符號:
{}
,如:
漢字、字體與格式
- 漢字形式,符號:
\mbox{}
,如:KaTeX parse error: Expected '}', got '\mbox' at position 4: V_{\̲m̲b̲o̲x̲{初始}} - 字體控制,符號:
\displaystyle
,如: - 下劃線符號,符號:
\underline
,如: - 標籤,符號
\tag{數字}
,如:KaTeX parse error: \tag works only in display equations - 上大括號,符號:
\overbrace{算式}
,如: - 下大括號,符號:
\underbrace{算式}
,如: - 上位符號,符號:
\stacrel{上位符號}{基位符號}
,如:
佔位符
- 兩個quad空格,符號:
\qquad
,如: - quad空格,符號:
\quad
,如: - 大空格,符號
\
,如: - 中空格,符號
\:
,如: - 小空格,符號
\,
,如: - 沒有空格,符號``,如:
- 緊貼,符號
\!
,如:
定界符與組合
- 括號,符號:
()\big(\big) \Big(\Big) \bigg(\bigg) \Bigg(\Bigg)
,如: - 中括號,符號:
[]
,如: - 大括號,符號:
\{ \}
,如: - 自適應括號,符號:
\left \right
,如:, - 組合公式,符號:
{上位公式 \choose 下位公式}
,如: - 組合公式,符號:
{上位公式 \atop 下位公式}
,如:
四則運算
- 加法運算,符號:
+
,如: - 減法運算,符號:
-
,如: - 加減運算,符號:
\pm
,如: - 減甲運算,符號:
\mp
,如: - 乘法運算,符號:
\times
,如: - 點乘運算,符號:
\cdot
,如: - 星乘運算,符號:
\ast
,如: - 除法運算,符號:
\div
,如: - 斜法運算,符號:
/
,如: - 分式表示,符號:
\frac{分子}{分母}
,如: - 分式表示,符號:
{分子} \voer {分母}
,如: - 絕對值表示,符號:
||
,如:
高級運算
-
平均數運算,符號:
\overline{算式}
,如: -
開二次方運算,符號:
\sqrt
,如: -
開方運算,符號:
\sqrt[開方數]{被開方數}
,如: -
對數運算,符號:
\log
,如: -
極限運算,符號:
\lim
,如: -
極限運算,符號:
\displaystyle \lim
,如: -
求和運算,符號:
\sum
,如: -
求和運算,符號:
\displaystyle \sum
,如: -
積分運算,符號:
\int
,如: -
積分運算,符號:
\displaystyle \int
,如: -
微分運算,符號:
\partial
,如: -
矩陣表示,符號:
\begin{matrix} \end{matrix}
,如:KaTeX parse error: Expected & or \\ or \cr or \end at position 38: …1 &2 &\cdots &4\̲5̲ &6 &\cdots &8\… -
下劃線、上劃線等
-
上劃線命令: \overline{公式}
-
下劃線命令:\underline{公式}
-
例如:
$\overline{\overline{a^2}+\underline{ab}+\bar{a}^3}$
顯示爲
-
-
上花括弧命令:\overbrace{公式}
-
下花括弧命令:\underbrace{公式}
- 例如:
$\underbrace{a+\overbrace{b+\dots+b}^{m\mbox{\tiny 個}}}_{20\mbox{\scriptsize 個}}$
顯示爲:KaTeX parse error: Expected '}', got '\mbox' at position 39: …e{b+\dots+b}^{m\̲m̲b̲o̲x̲{\tiny 個}}}_{20…
- 例如:
-
邏輯運算
- 等於運算,符號:
=
,如: - 大於運算,符號:
>
,如: - 小於運算,符號:
<
,如: - 大於等於運算,符號:
\geq
,如: - 小於等於運算,符號:
\leq
,如: - 不等於運算,符號:
\neq
,如: - 不大於等於運算,符號:
\ngeq
,如: - 不大於等於運算,符號:
\not\geq
,如: - 不小於等於運算,符號:
\nleq
,如: - 不小於等於運算,符號:
\not\leq
,如: - 約等於運算,符號:
\approx
,如: - 恆定等於運算,符號:
\equiv
,如:
集合運算
- 屬於運算,符號:
\in
,如: - 不屬於運算,符號:
\notin
,如: - 不屬於運算,符號:
\not\in
,如: - 子集運算,符號:
\subset
,如: - 子集運算,符號:
\supset
,如: - 真子集運算,符號:
\subseteq
,如: - 非真子集運算,符號:
\subsetneq
,如: - 真子集運算,符號:
\supseteq
,如: - 非真子集運算,符號:
\supsetneq
,如: - 非子集運算,符號:
\not\subset
,如: - 非子集運算,符號:
\not\supset
,如: - 並集運算,符號:
\cup
,如: - 交集運算,符號:
\cap
,如: - 差集運算,符號:
\setminus
,如: - 同或運算,符號:
\bigodot
,如: - 同與運算,符號:
\bigotimes
,如: - 實數集合,符號:
\mathbb{R}
,如: - 自然數集合,符號:
\mathbb{Z}
,如 - 空集,符號:
\emptyset
,如:
數學符號
- 無窮,符號:
\infty
,如: - 虛數,符號:
\imath
,如: - 虛數,符號:
\jmath
,如: - 數學符號,符號
\hat{a}
,如: - 數學符號,符號
\check{a}
,如: - 數學符號,符號
\breve{a}
,如: - 數學符號,符號
\tilde{a}
,如: - 數學符號,符號
\bar{a}
,如: - 矢量符號,符號
\vec{a}
,如: - 數學符號,符號
\acute{a}
,如: - 數學符號,符號
\grave{a}
,如: - 數學符號,符號
\mathring{a}
,如: - 一階導數符號,符號
\dot{a}
,如: - 二階導數符號,符號
\ddot{a}
,如: - 上箭頭,符號:
\uparrow
,如: - 上箭頭,符號:
\Uparrow
,如: - 下箭頭,符號:
\downarrow
,如: - 下箭頭,符號:
\Downarrow
,如: - 左箭頭,符號:
\leftarrow
,如: - 左箭頭,符號:
\Leftarrow
,如: - 右箭頭,符號:
\rightarrow
,如: - 右箭頭,符號:
\Rightarrow
,如: - 底端對齊的省略號,符號:
\ldots
,如: - 中線對齊的省略號,符號:
\cdots
,如: - 豎直對齊的省略號,符號:
\vdots
,如: - 斜對齊的省略號,符號:
\ddots
,如:
7、多種矩陣形式輸入
-
不帶括號的:
$$\begin{matrix} 1&2 \\ 3&4 \\ 5&6 \end{matrix} $$
$$\begin{matrix}
1&2 \ 3&4 \ 5&6
\end{matrix} -
帶大括號的:
$$\left\{ \begin{matrix} 1&2 \\ 3&4 \\ 5&6 \end{matrix} \right\} $$
-
帶中括號的:
$$\left[ \begin{matrix} 1&2 \\ 3&4 \\ 5&6 \end{matrix} \right] $$