Code

KaTeX\KaTeX Style, Font, Size and Color Modifiers

KaTeX\KaTeXPlain Text
F=ma\color{blue} F=ma\color{blue} F=ma
textcolor{blue}{F=ma}\textcolor{blue}{F=ma}
textcolor{#228B22}{F=ma}\textcolor{#228B22}{F=ma}
colorbox{aqua}{A}\colorbox{aqua}{A}
fcolorbox{red}{aqua}{A}\fcolorbox{red}{aqua}{A}
Ab0\mathrm{Ab0}\mathrm{Ab0}
Ab0\mathbf{Ab0}\mathbf{Ab0}
Ab0\mathit{Ab0}\mathit{Ab0}
mathnormal{Ab0}\mathnormal{Ab0}
Ab0\textbf{Ab0}\textbf{Ab0}
Ab0\textit{Ab0}\textit{Ab0}
Ab0\textrm{Ab0}\textrm{Ab0}
bf Ab0\bf Ab0
it Ab0\it Ab0
rm Ab0\rm Ab0
Ab0\bold{Ab0}\bold{Ab0}
Ab0\textup{Ab0}\textup{Ab0}
textnormal{Ab0}\textnormal{Ab0}
boldsymbol{Ab}\boldsymbol{Ab}
AB\Bbb{AB}\Bbb{AB}
Ab0\text{Ab0}\text{Ab0}
Ab0\bm{Ab0}\bm{Ab0}
AB\mathbb{AB}\mathbb{AB}
Ab0\mathsf{Ab0}\mathsf{Ab0}
Ab0\textmd{Ab0}\textmd{Ab0}
Ab0\frak{Ab0}\frak{Ab0}
Ab0\textsf{Ab0}\textsf{Ab0}
Ab0\mathtt{Ab0}\mathtt{Ab0}
mathfrak{Ab0}\mathfrak{Ab0}
sf Ab0\sf Ab0
Ab0\texttt{Ab0}\texttt{Ab0}
AB0\mathcal{AB0}\mathcal{AB0}
tt Ab0\tt Ab0
AB\mathscr{AB}\mathscr{AB}
H\textsf{\textbf{H}}\textsf{\textbf{H}}
H\mathsf{\mathbf{H}}\mathsf{\mathbf{H}}
μ\pmb{\mu}\pmb{\mu}
Huge AB\Huge AB
normalsize AB\normalsize AB
huge AB\huge AB
small AB\small AB
LARGE AB\LARGE AB
footnotesize AB\footnotesize AB
Large AB\Large AB
scriptsize AB\scriptsize AB
large AB\large AB
tiny AB\tiny AB
displaystylesum_{i=1}^n\displaystyle\sum_{i=1}^n
textstylesum_{i=1}^n\textstyle\sum_{i=1}^n
scriptstyle x\scriptstyle x
scriptscriptstyle x\scriptscriptstyle x
limx\lim\limits_x\lim\limits_x
limx\lim\nolimits_x\lim\nolimits_x
x^2\verb!x^2!\verb!x^2!

0

1

Updated 2026-05-17

Tags

1Cademy