Numbers and Variables

  • Variables (or letters) are automatically displayed in a font that is much italicized than normal font used to display text.
    • This gives it a more, classic mathematical look.
  • By convention, numbers are automatically displayed in an upright font to distinguish them from variables with an italicized font.

Operators and Symbols

  • We often use operators to describe relationships between variables.
  • Some of these symbols that cannot be found in the keyboard now use special names using backslash commands \{...}
    • For example, typing the command \times will output the multiplication symbol .
    • As an another example, the command \div will give us the division symbol .
  • A smaller list of symbols can be found here.
    Click here to view all symbols supported by KaTEX.
SymbolCommandDescriptionExampleOutput
+plus symbol2 + 3 + 5
-minus symbol- 3
\timesmultiplication symbol5 \times 2
\divdivision symbol6 \div 0
\cdotcenter dota \cdot b \ cdot c
\cdotscenter ellipsis2 \times 2 \times \cdots \times 2
\ldotslower ellipsis1, 2, 3, 4, \ldots, 100
=equal1 + 2 = 3
\nenot equala(a+b) \ne 2a + b
> or \gtgreater thana \gt b
< or \ltless thana \lt b
\gegreater than or equala \ge b
\leless than or equala \le b
( and )parentheses(a + b) + c = a + (b + c)
[ and ]square brackets[(9 \times 3) + 1] \div 2
\inina \in S
\cupunion(A \cup B) \cup C
\capintersectionU \cap A = A
\circfunction composition(f \circ g)(x)
\pmplus or minusx \pm c
\mpminus or plus- (\mp c - x)
\forallfor all
\thereforetherefore
\existsexists
\toto
\landlogical AND
\lorlogical OR
\neg or \lnotlogical NOT
\emptysetempty set
\subsetsubset
\inftyinfinity