LaTeX 字体样式

数学字体

符号 TeX 语法 符号 TeX 语法
$\mathbb{ABCD\;abcd\;1234}$ \mathbb{ABCD\;abcd\;1234} $\mathbf{ABCD\;abcd\;1234}$ \mathbf{ABCD\;abcd\;1234}
$\mathtt{ABCD\;abcd\;1234}$ \mathtt{ABCD\;abcd\;1234} $\mathrm{ABCD\;abcd\;1234}$ \mathrm{ABCD\;abcd\;1234}
$\mathscr{ABCD\;abcd\;1234}$ \mathscr{ABCD\;abcd\;1234} $\mathfrak{ABCD\;abcd\;1234}$ \mathfrak{ABCD\;abcd\;1234}
$\mathcal{ABCD\;abcd\;1234}$ \mathcal{ABCD\;abcd\;1234} $\mathit{ABCD\;abcd\;1234}$ \mathit{ABCD\;abcd\;1234}
$\mathsf{ABCD\;abcd\;1234}$ \mathsf{ABCD\;abcd\;1234} $\boldsymbol{ABCD\;abcd\;1234}$ \boldsymbol{ABCD\;abcd\;1234}

文本字体

符号 TeX 语法 符号 TeX 语法
$\textrm{ABCD\;abcd\;1234}$ \textrm{ABCD\;abcd\;1234} $\textit{ABCD\;abcd\;1234}$ \textit{ABCD\;abcd\;1234}
$\textrm{ABCD\;abcd\;1234}$ \textrm{ABCD\;abcd\;1234} $\textsf{ABCD\;abcd\;1234}$ \textsf{ABCD\;abcd\;1234}
$\texttt{ABCD\;abcd\;1234}$ \texttt{ABCD\;abcd\;1234} $\textbf{ABCD\;abcd\;1234}$ \textbf{ABCD\;abcd\;1234}

字体大小

符号 TeX 语法 符号 TeX 语法
$\Tiny{ABCD\;abcd\;1234}$ \Tiny{ABCD\;abcd\;1234} $\tiny{ABCD\;abcd\;1234}$ \tiny{ABCD\;abcd\;1234}
$\small{ABCD\;abcd\;1234}$ \small{ABCD\;abcd\;1234} $\normalsize{ABCD\;abcd\;1234}$ \normalsize{ABCD\;abcd\;1234}
$\large{ABCD\;abcd\;1234}$ \large{ABCD\;abcd\;1234} $\Large{ABCD\;abcd\;1234}$ \Large{ABCD\;abcd\;1234}
$\LARGE{ABCD\;abcd\;1234}$ \LARGE{ABCD\;abcd\;1234} $\huge{ABCD\;abcd\;1234}$ \huge{ABCD\;abcd\;1234}

颜色

语法:
颜色名:\color{colorname}{text}
RGB值:\color{#rgb}{text}
推荐使用RGB方式

预设颜色值

颜色 颜色名 颜色 颜色名 颜色 颜色名
$\color{black}{black}$ \color{black}{black} $\color{blue}{blue}$ \color{blue}{blue} $\color{brown}{brown}$ \color{brown}{brown}
$\color{cyan}{cyan}$ \color{cyan}{cyan} $\color{darkgray}{darkgray}$ \color{darkgray}{darkgray} $\color{gray}{gray}$ \color{gray}{gray}
$\color{green}{green}$ \color{green}{green} $\color{lightgray}{lightgray}$ \color{lightgray}{lightgray} $\color{lime}{lime}$ \color{lime}{lime}
$\color{magenta}{magenta}$ \color{magenta}{magenta} $\color{olive}{olive}$ \color{olive}{olive} $\color{orange}{orange}$ \color{orange}{orange}
$\color{pink}{pink}$ \color{pink}{pink} $\color{purple}{purple}$ \color{purple}{purple} $\color{red}{red}$ \color{red}{red}
$\color{teal}{teal}$ \color{teal}{teal} $\color{violet}{violet}$ \color{violet}{violet} $\color{white}{white}$ \color{white}{white}
$\color{yellow}{yellow}$ \color{yellow}{yellow}

例子:

\color{green}{TEXT} \quad \color{#ababab}{TEXT}  \quad \color{#abddee}{TEXT}

效果:
$$\color{green}{TEXT} \quad \color{#ababab}{TEXT} \quad \color{#abddee}{TEXT}$$

留下评论

电子邮件地址不会被公开。 必填项已用*标注