字體
基本格式:\字體信息{內容}
羅馬體\rm
\rm{羅馬體abc}>>\(\rm{羅馬體abc}\)
意大利體\it
\it{意大利體}>>\(\it{意大利體}\)
等線體
\sf{等線體abc}>>\(\sf{等線體abc}\)
打字機體\tt
\tt{打字機體} >>$\tt{打字機體} $
花體\cal
\cal{花體abc}>>\(\cal{花體abc}\)
數學斜體
\mit{數學斜體abc}>>\(\mit{數學斜體abc}\)
手寫體\scr
\scr{手寫體abc}>>\(\scr{手寫體abc}\)
顏色
color{顏色}{文字}異或是color{#RGB}{文字}
silver
\(\color{silver}{silversilver}\)
maroon
\(\color{maroon}{maroonmaroon}\)
yellow
\(\color{yellow}{yellowyellow}\)
olive
\(\color{olive}{oliveolive}\)
teal
\(\color{teal}{tealteal}\)
blue
\(\color{blue}{blueblue}\)
purple
\(\color{purple}{purplepurple}\)>>\color{purple}{purplepurple}
grey
\(\color{grey}{greygrey}\)>>\color{grey}{greygrey}
white
\(\color{white}{whitewhite}\)>>\color{white}{whitewhite}
red
\(\color{red}{redred}\)
lime
\(\color{lime}{limelime}\)
green
\(\color{green}{greengreen}\)
auqa
\(\color{auqa}{auqaauqa}\)
navy
\(\color{navy}{navynavy}\)
fuchsia
\(\color{fuchsia}{fuchsiafuchsia}\)
black
\(\color{black}{blackblack}\)
數學標識
左下標
\sideset{a}{b}a和b分別是左右標
a和b都可以用_或者^來表示是上標還是下標
\sideset{_1}{^2}A
顯示效果如下:
左上標
\sideset{a}{b}a和b分別是左右標
a和b都可以用_或者^來表示是上標還是下標
\sideset{1}{2}A
顯示效果如下:
頭上帶點
\dot a + \dot b
矢量-頭上帶箭頭
\vec{矢量內容}
\vec{a}+\vec{b}
拔、均值
\overline{內容}
\overline{x}
省略號
1 + 2 + \dots + 100
空格
用\ 來表示
a\ b
文本
基本格式是 \text {內容}
f(n)= \begin{cases}
n/2, & \text{if $n$ is even} \\
3n+1, & \text{if $n$ is odd} \\
\end{cases}
注意在text里面,普通標記都不再有效,比如
\text{\sqrt{2x+2}}
\text{$\sqrt{2x+2}$}
參考: