Skip to content

Package Emulation

Erik Demaine edited this page Jul 9, 2020 · 15 revisions

Most supported KaTeX functions emulate AMS-LaTeX behavior. That is, they emulate LaTeX running with the amsmath package, the amsfonts package, and the amssymb package installed (via \usepackage{amsmath,amsfonts,amssymb}).

There are several exceptions, however. Below is a list of additional functions from other LaTeX packages that are emulated by KaTeX.

arydshln package

\hdashline

: column separator in array environment

bm package

\bm

cancel package

\cancel \bcancel \xcancel

color package

\color \textcolor \colorbox \fcolorbox

extpfeil package

\xlongequal \xtwoheadleftarrow \xtwoheadrightarrow \xtofrom

hyperref package

\href

KaTeX

\KaTeX

mathabx

\widecheck

MathJax

\gt \lt (useful to avoid HTML reserved characters < and >)

mathtools package

\mathclap \mathllap \mathrlap \xleftrightarrow \xRightarrow \xLeftarrow \xLeftrightarrow \xhookleftarrow \xhookrightarrow \xmapsto \xrightharpoondown \xrightharpoonup \xleftharpoondown \xleftharpoonup \xrightleftharpoons \xleftrightharpoons \coloneqq \Coloneqq \coloneq \Coloneq \eqqcolon \Eqqcolon \eqcolon \Eqcolon \colonapprox \Colonapprox \colonsim \Colonsim \dblcolon

MnSymbol package

\overgroup \undergroup \overlinesegment \underlinesegment \overleftharpoon \overrightharpoon

overrightarrow package

\Overrightarrow

txfonts/pxfonts package

\notni

statmath package

\argmin \argmax`

stix package

\lBrace \rBrace

stmaryrd package

\llbracket \rrbracket

ulem package

\sout

undertilde package

\utilde

unicode-math package

Γ Δ Θ Λ Ξ Π Σ Υ Φ Ψ Ω α β γ δ ϵ ζ η θ ι κ λ μ ν ξ o π ρ σ τ υ ϕ χ ψ ω ε ϑ ϖ ϱ ς φ ð ± × ÷ £ ¥