itex is very close to LaTeX but with a few minor differences, namely:
<
and >
don’t work. Use \lt
and \gt
instead.
- The
gather
environment is called gathered
.
- The
align
environment is called aligned
.
- There is no
multline
environment.
- Arrays
Below is a list of
itex commands
and corresponding rendered results, grouped by category.
Greek Letters
Command |
Result |
Command |
Result |
Command |
Result |
\alpha |
|
|
|
\Alpha |
|
\beta |
|
|
|
\Beta |
|
\gamma |
|
|
|
\Gamma |
|
\delta |
|
|
|
\Delta |
|
\epsilon |
|
\varepsilon |
|
E |
|
\zeta |
|
|
|
\Zeta |
|
\eta |
|
|
|
\Eta |
|
\theta |
|
\vartheta |
|
\Theta |
|
\iota |
|
|
|
\Iota |
|
\kappa |
|
\varkappa |
|
\Kappa |
|
\lambda |
|
|
|
\Lambda |
|
\mu |
|
|
|
\Mu |
|
\nu |
|
|
|
\Nu |
|
\xi |
|
|
|
\Xi |
|
\omicron |
|
|
|
O |
|
\pi |
|
\varpi |
|
\Pi |
|
\rho |
|
\varrho |
|
\Rho |
|
\sigma |
|
\varsigma |
|
\Sigma |
|
\tau |
|
|
|
\Tau |
|
\upsilon |
|
|
|
\Upsilon |
|
\phi |
|
\varphi |
|
\Phi |
|
\chi |
|
|
|
X |
|
\psi |
|
|
|
\Psi |
|
\omega |
|
|
|
\Omega |
|
Archaic Letters and Other Symbols
Command |
Result |
\backepsilon |
|
\digamma |
|
\mho |
|
Log-like Symbols
Command |
Result |
Command |
Result |
Command |
Result |
\arccos{x} |
|
\exp{x} |
|
\max{x} |
|
\arcsin{x} |
|
\gcd{x} |
|
\min{x} |
|
\arctan{x} |
|
\inf{x} |
|
x \mod{m} |
|
\arg{x} |
|
\hom{x} |
|
x \pmod{m} |
|
\cos{x} |
|
\ker{x} |
|
\Pr{x} |
|
\cosh{x} |
|
\lg{x} |
|
\sec{x} |
|
\cot{x} |
|
\lim{x} |
|
\sin{x} |
|
\coth{x} |
|
\liminf{x} |
|
\sinh{x} |
|
\csc{x} |
|
\limsup{x} |
|
\sup{x} |
|
\deg{x} |
|
\ln{x} |
|
\tan{x} |
|
\det{x} |
|
\log{x} |
|
\tanh{x} |
|
\dim{x} |
|
|
|
|
Operators
Command |
Result |
Command |
Result |
\amalg |
|
\clubsuit |
|
\angle |
|
\diamondsuit |
|
\measuredangle |
|
\heartsuit |
|
\sphericalangle |
|
\spadesuit |
|
\approx |
|
\circ |
|
\approxeq |
|
\bigcirc |
|
\thickapprox |
|
\cong |
|
\asymp |
|
\ncong |
|
\backslash |
|
\dagger |
|
\because |
|
\ddagger |
|
\between |
|
\dashv |
|
\bottom (\bot ) |
|
\Vdash |
|
\boxminus (\minusb ) |
|
\vDash |
|
\boxplus (\plusb ) |
|
\nvDash |
|
\boxtimes (\timesb ) |
|
\VDash |
|
\bowtie |
|
\nVDash |
|
\bullet |
|
\vdash |
|
\cap (\intersection ) |
|
\nvdash |
|
\cup (\union ) |
|
\Vvdash |
|
\cdot |
|
\Diamond |
|
Command |
Result |
Command |
Result |
\diamond |
|
\gg |
|
\div |
|
\ggg |
|
\equiv |
|
\geq (\ge ) |
|
\eqcirc |
|
\ngeq |
|
\neq (\ne ) |
|
\geqq |
|
\Bumpeq |
|
\ngeqq |
|
\bumpeq |
|
\geqslant |
|
\circeq |
|
\ngeqslant |
|
\doteq |
|
\eqslantgtr |
|
\doteqdot |
|
\gneq |
|
\fallingdotseq |
|
\gneqq |
|
\risingdotseq |
|
\gnapprox |
|
\exists |
|
\gnsim |
|
\nexists |
|
\gtrapprox |
|
\flat |
|
\gtrsim |
|
\forall |
|
\gtrdot |
|
\frown |
|
\gtreqless |
|
\gt |
|
\gtreqqless |
|
\ngtr |
|
\gtrless |
|
Command |
Result |
Command |
Result |
\gvertneqq |
|
\lesseqgtr |
|
\in |
|
\lesseqqgtr |
|
\notin |
|
\lessgtr |
|
\ni |
|
\lesssim |
|
\notni |
|
\lnapprox |
|
\lhd |
|
\lneq |
|
\unlhd |
|
\lneqq |
|
\lt |
|
\lnsim |
|
\nless |
|
\ltimes |
|
\ll |
|
\lvertneqq |
|
\lll |
|
\lozenge |
|
\leq (\le ) |
|
\blacklozenge |
|
\nleq |
|
\mid (\shortmid ) |
|
\leqq |
|
\nmid |
|
\nleqq |
|
\nshortmid |
|
\leqslant |
|
\models |
|
\nleqslant |
|
\multimap |
|
\eqslantless |
|
\nabla (\Del ) |
|
\lessapprox |
|
\natural |
|
\lessdot |
|
\not (\neg ) |
|
Command |
Result |
Command |
Result |
\odot |
|
\curlyeqprec |
|
\odash (\circleddash ) |
|
\precsim |
|
\otimes |
|
\precnsim |
|
\oplus |
|
\prime |
|
\parallel |
|
\backprime |
|
\nparallel |
|
\propto |
|
\shortparallel |
|
\varpropto |
|
\nshortparallel |
|
\rhd |
|
\partial |
|
\unrhd |
|
\perp |
|
\rtimes |
|
\pitchfork |
|
\setminus |
|
\pm |
|
\smallsetminus |
|
\mp |
|
\sharp |
|
\prec |
|
\sim |
|
\nprec |
|
\nsim |
|
\precapprox |
|
\backsim |
|
\precnapprox |
|
\simeq |
|
\preceq |
|
\backsimeq |
|
\npreceq |
|
\thicksim |
|
\preccurlyeq |
|
\smile |
|
Command |
Result |
Command |
Result |
\subset |
|
\succnsim |
|
\nsubset |
|
\supset |
|
\subseteq |
|
\nsupset |
|
\nsubseteq |
|
\supseteq |
|
\subseteqq |
|
\nsupseteq |
|
\nsubseteqq |
|
\supseteqq |
|
\subsetneq |
|
\supsetneq |
|
\subsetneqq |
|
\supsetneqq |
|
\varsubsetneq |
|
\varsupsetneq |
|
\varsubsetneqq |
|
\varsupsetneqq |
|
\Subset |
|
\Supset |
|
\succ |
|
\square (\Box ) |
|
\nsucc |
|
\blacksquare (\qed ) |
|
\succeq |
|
\sqcup |
|
\nsucceq |
|
\sqcap |
|
\succapprox |
|
\sqsubset |
|
\succnapprox |
|
\sqsubseteq |
|
\succcurlyeq |
|
\sqsupset |
|
\curlyeqsucc |
|
\sqsupseteq |
|
\succsim |
|
\star |
|
Command |
Result |
\bigstar |
|
\therefore |
|
\times |
|
\top |
|
\triangle |
|
\triangledown |
|
\triangleleft |
|
\triangleright |
|
\blacktriangle |
|
\blacktriangledown |
|
\bigtriangleup |
|
\bigtriangledown |
|
\uplus |
|
\vee |
|
\wedge |
|
\wr |
|
Arrows
Command |
Result |
\rightarrow (\to ) |
|
\longrightarrow |
|
\Rightarrow (\implies ) |
|
\hookrightarrow (\embedsin ) |
|
\mapsto (\map ) |
|
\leftarrow |
|
\longleftarrow |
|
\Leftarrow (\impliedby ) |
|
\hookleftarrow |
|
\leftrightarrow |
|
\Leftrightarrow |
|
\Longleftrightarrow (\iff ) |
|
\nearrow (\nearr ) |
|
\nwarrow (\nwarr ) |
|
\searrow (\searr ) |
|
\swarrow (\swarr ) |
|
\neArrow (\neArr ) |
|
\nwArrow (\nwArr ) |
|
\seArrow (\seArr ) |
|
\swArrow (\swArr ) |
|
Command |
Result |
\darr |
|
\Downarrow |
|
\uparr |
|
\Uparrow |
|
\downuparrow (\duparr , \updarr ) |
|
\Updownarrow |
|
\leftsquigarrow |
|
\rightsquigarrow |
|
\leftrightsquigarrow |
|
\upuparrows |
|
\rightleftarrows |
|
\rightrightarrows |
|
\dashleftarrow |
|
\dashrightarrow |
|
\curvearrowleft |
|
\curvearrowbotright |
|
\downdownarrows |
|
\leftleftarrows |
|
\leftrightarrows |
|
\righttoleftarrow |
|
\lefttorightarrow |
|
\circlearrowleft |
|
\circlearrowright |
|
Delimiters
Command |
Result |
(x) |
|
[x] |
|
\langle x \rangle (\lang x \rang ) |
|
\lbrace x \rbrace (\{x\} ) |
|
\lceil x \rceil |
|
\lfloor x \rfloor |
|
\uparrow |
|
\downarrow |
|
\updownarrow |
|
x \vert y |
|
\Vert x \Vert |
|
x/y |
|
Large Math Operators and Integrals
Command |
Result |
\bigcup (\Union ) |
|
\bigcap (\Intersection ) |
|
\bigodot |
|
\bigoplus (\Oplus ) |
|
\bigotimes (\Otimes ) |
|
\bigsqcup |
|
\biguplus |
|
\bigwedge (\Wedge ) |
|
\bigvee (\Vee ) |
|
\coprod (\coproduct ) |
|
\prod (\product ) |
|
\sum |
|
\int (\integral ) |
|
\iint (\doubleintegral ) |
|
\iiint (\tripleintegral ) |
|
\iiiint (\quadrupleintegral ) |
|
\oint (\conint , \contourintegral ) |
|
Stretchiness?
Command |
Result |
{\int e^{-\sqrt{\frac{a x + b}{c x + d}}} d x} |
|
\int e^{-\sqrt{\frac{a x + b}{c x + d}}} d x |
|
{\sum_{n=1}^\infty \frac{x^n}{\left(1- \frac{1}{x^n}\right)}} |
|
\sum_{n=1}^\infty \frac{x^n}{\left(1- \frac{1}{x^n}\right)} |
|
{\prod_{n=0}^\infty{\left(\frac{z^n-1}{z^n+1}\right)}^{-n}} |
|
\prod_{n=0}^\infty{\left(\frac{z^n-1}{z^n+1}\right)}^{-n} |
|
Punctuation
Dots
Command |
Result |
\dots |
|
\ldots |
|
\cdots |
|
\ddots |
|
\udots |
|
\vdots |
|
Spaces
Command |
Result |
a \, b , a \thinspace b |
, |
a \: b , a \medspace b |
, |
a \; b , a \thickspace b |
, |
a \quad b |
|
a \qquad b |
|
a \! b , a \negspace b |
, |
A + B \phantom{+ C} + D |
|
\left( \space{5}{0}{20} \right) |
|
Note: the command \space{ht}{dp}{wd}
creates a space of height ht
,
baseline depth dp
, and width wd
where ht
and dp
are measured in tenths
of an ex (the height of the letter x) and wd
is measured in tenths of an em
(the width of the letter M).
Accents
Command |
Result |
\bar{x} |
|
\overline{a b c} |
|
( = \closure{a b c} ) |
|
( = \widebar{a b c} ) |
|
\vec{x} |
|
\widevec{a b c} |
|
\dot{x} |
|
\ddot{x} |
|
\tilde{x} |
|
\widetilde{a b c} |
|
\check{x} |
|
\widecheck{a b c} |
|
\hat{x} |
|
\widehat{a b c} |
|
\slash{D} |
|
Symbols
Command |
Result |
\aleph |
|
\beth |
|
\ell |
|
\hbar |
|
\Im |
|
\imath |
|
\jmath |
|
\eth |
|
\Re |
|
\wp |
|
\infty (\infinity ) |
|
\empty (\emptyset ) |
|
\varnothing |
|
Fractions, Sub/Superscripts and Roots
\frac{x}{y}
\tfrac{x}{y}
\binom{m}{n}
{x \over y}
{x \atop y}
\sum_{\substack{0 \leq i \leq n \\ 0 \leq j \leq m}}A_{ij}
\overset{u}{\overbrace{w x y z}}
\underset{u}{\underbrace{v w x y z}}
\underset{x y z}{\longrightarrow}
\overset{x y z}{\to}
- ( =
\stackrel{x y z}{\to}
),
\underoverset{x y z}{2}{\Rightarrow}
\tensor{X}{_i_j^k^l}
\multiscripts{^2_0_1}{X}{^j_i_k}
\sqrt{\frac{a x +b}{c x + d}}
\root{n}{x}
\mathop{plim}{X_n}
Sizes
Command |
Result |
\displaystyle{\prod} |
|
\textstyle{\prod} |
|
\textsize{\prod} |
|
\scriptsize{\prod} |
|
\scriptscriptsize{\prod} |
|
Styles
Command |
Result |
\mathit{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} |
|
\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ} (\boldsymbol{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ) |
|
\mathrm{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} |
|
\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ} |
|
\mathbb{abcdefghijklmnopqrstuvwxyz} |
|
\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ} (\mathfr{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ) |
|
\mathfrak{abcdefghijklmnopqrstuvwxyz} |
|
\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ} |
|
\mathcal{abcdefghijklmnopqrstuvwxyz} |
|
Matrices
No delimiters
\begin{matrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{matrix}
Parenthesis
\begin{pmatrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{pmatrix}
Bracketed
\begin{bmatrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{bmatrix}
Braces
\begin{Bmatrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{Bmatrix}
Vertical bars
\begin{vmatrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{vmatrix}
Double vertical bars
\begin{Vmatrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{Vmatrix}
Small
\begin{smallmatrix}
x_{11} & x_{12} \\
x_{21} & x_{22}
\end{smallmatrix}
Alignment
Cases
f(x|\lambda) =
\begin{cases}
\lambda e^{-\lambda x} & x \geq 0, \\
0 & \text{otherwise}
\end{cases}
Aligned
\begin{aligned}
y_1 &= \beta_{11} + \beta_{12} x + \varepsilon_1 \\
y_2 &= \alpha_{21} y_1 + \beta_{21} + \beta_{22} x + \varepsilon_2
\end{aligned}
Gathered
\begin{gathered}
y_1 = \beta_{11} + \beta_{12} x + \varepsilon_1 \\
y_2 = \alpha_{21} y_1 + \beta_{21} + \beta_{22} x + \varepsilon_2
\end{gathered}
Split
\begin{split}
\mathop{E}\frac{\partial \ln L}{\partial \theta}
&=\mathop{E}\left[\frac{1}{L} \frac{\partial L}{\partial \theta}\right]\\
&=\int\left[\frac{1}{L} \frac{\partial L}{\partial \theta}\right] L\;dz\\
&=\int\frac{\partial L}{\partial \theta}\;dz
\end{split}
Colors
Named HTML colors are supported: aqua
, black
, blue
, fuchsia
, gray
,
green
, lime
, maroon
, navy
, olive
, purple
, red
, silver
, teal
,
white
, and yellow
as well as RGB hexadecimal colors of the form #rgb or #rrggbb.
Foreground
a { b \color{red} c \color{#0F0} d } e
Background
a {b \bgcolor{red} c \bgcolor{#0F0} d } e
{\bgcolor{red} a b} c {\bgcolor{#0F0}d e}