来源: LaTeX:Symbols
This article will provide a short list of commonly used LaTeX symbols.
Contents
- 1 Finding Other Symbols
- 2 Operators
- 3 Relations
- 4 Greek Letters
- 5 Arrows
- 6 Dots
- 7 Accents
- 8 Others
- 9 Command Symbols
- 10 European Language Symbols
- 11 Bracketing Symbols
- 12 Multi-Size Symbols
- 13 See Also
Finding Other Symbols
Here are some external resources for finding less commonly used symbols:
-
Detexify is an app which allows you to draw the symbol you'd like and shows you the code for it!
-
MathJax (what allows us to use on the web, (technically an AJAX library simulating it.)) maintains a list of supported commands.
Operators
Relations
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
le | ge | eq | |||
sim | ll | gg | |||
doteq | simeq | subset | |||
supset | approx | asymp | |||
subseteq | supseteq | cong | |||
smile | sqsubset | sqsupset | |||
equiv | frown | sqsubseteq | |||
sqsupseteq | propto | owtie | |||
in | i | prec | |||
succ | vdash | dashv | |||
preceq | succeq | models | |||
perp | parallel | ||||
mid | umpeq |
Negations of many of these relations can be formed by just putting ot before the symbol, or by slipping an n between the and the word. Here are a couple examples, plus many other negations; it works for many of the many others as well.
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
mid | leq | geq | |||
sim | cong | parallel | |||
ot< | ot> | ot= or eq | |||
otle | otge | otsim | |||
otapprox | otcong | otequiv | |||
otparallel | less | gtr | |||
lneq | gneq | lnsim | |||
lneqq | gneqq |
To use other relations not listed here, such as =, >, and <, in LaTeX, you must use the symbols on your keyboard, they are not available in .
Greek Letters
Symbol | Command | Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|---|---|
alpha | eta | gamma | delta | ||||
epsilon | varepsilon | zeta | eta | ||||
heta | vartheta | iota | kappa | ||||
lambda | mu | u | xi | ||||
pi | varpi | ho | varrho | ||||
sigma | varsigma | au | upsilon | ||||
phi | varphi | chi | psi | ||||
omega |
Symbol | Command | Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|---|---|
Gamma | Delta | Theta | Lambda | ||||
Xi | Pi | Sigma | Upsilon | ||||
Phi | Psi | Omega |
Arrows
Symbol | Command | Symbol | Command |
---|---|---|---|
gets | o | ||
leftarrow | Leftarrow | ||
ightarrow | Rightarrow | ||
leftrightarrow | Leftrightarrow | ||
mapsto | hookleftarrow | ||
leftharpoonup | leftharpoondown | ||
ightleftharpoons | longleftarrow | ||
Longleftarrow | longrightarrow | ||
Longrightarrow | longleftrightarrow | ||
Longleftrightarrow | longmapsto | ||
hookrightarrow | ightharpoonup | ||
ightharpoondown | leadsto | ||
uparrow | Uparrow | ||
downarrow | Downarrow | ||
updownarrow | Updownarrow | ||
earrow | searrow | ||
swarrow | warrow |
(For those of you who hate typing long strings of letters, iff and implies can be used in place of Longleftrightarrow and Longrightarrow respectively.)
Dots
Symbol | Command | Symbol | Command | |
---|---|---|---|---|
cdot | vdots | |||
dots | ddots | |||
cdots | iddots |
Accents
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
hat{x} | check{x} | dot{x} | |||
reve{x} | acute{x} | ddot{x} | |||
grave{x} | ilde{x} | mathring{x} | |||
ar{x} | vec{x} |
When applying accents to i and j, you can use imath and jmath to keep the dots from interfering with the accents:
Symbol | Command | Symbol | Command |
---|---|---|---|
vec{jmath} | ilde{imath} |
ilde and hat have wide versions that allow you to accent an expression:
Symbol | Command | Symbol | Command |
---|---|---|---|
widehat{7+x} | widetilde{abc} |
Others
Command Symbols
Some symbols are used in commands so they need to be treated in a special way.
Symbol | Command | Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|---|---|
extdollar or $ | & | % | # | ||||
_ | { | } | ackslash |
(Warning: Using $ for will result in . This is a bug as far as we know. Depending on the version of this is not always a problem.)
European Language Symbols
Symbol | Command | Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|---|---|
{oe} | {ae} | {o} | |||||
{OE} | {AE} | {AA} | {O} | ||||
{l} | {ss} | ![$ ext{!}$](https://img2020.cnblogs.com/blog/1234164/202003/1234164-20200321051432721-1780033822.png) | ! |
|||||
{L} | {SS} |
Bracketing Symbols
In mathematics, sometimes we need to enclose expressions in brackets or braces or parentheses. Some of these work just as you'd imagine in LaTeX; type ( and ) for parentheses, [ and ] for brackets, and | and | for absolute value. However, other symbols have special commands:
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
{ | } | | | |||
ackslash | lfloor | floor | |||
lceil | ceil | langle | |||
angle |
You might notice that if you use any of these to typeset an expression that is vertically large, like
the parentheses don't come out the right size:
If we put left and ight before the relevant parentheses, we get a prettier expression:
gives
And with system of equations:
left{egin{array}{l}x+y=3\2x+y=5end{array}
ight.
Gives
See that there's a dot after
ight
. You must put that dot or the code won't work.
In addition to the left
and
ight
commands, when doing floor or ceiling functions with fractions, using
leftlceilfrac{x}{y}
ight
ceil
and leftlfloorfrac{x}{y}
ight
floor
give both
And, if you type this
underbrace{a_0+a_1+a_2+cdots+a_n}_{x}
Gives
Or
overbrace{a_0+a_1+a_2+cdots+a_n}^{x}
Gives
left and ight can also be used to resize the following symbols:
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
uparrow | downarrow | updownarrow | |||
Uparrow | Downarrow | Updownarrow |
Multi-Size Symbols
Some symbols render differently in inline math mode and in display mode. Display mode occurs when you use [...] or $$...$$, or environments like egin{equation}...end{equation}, egin{align}...end{align}. Read more in the commands section of the guide about how symbols which take arguments above and below the symbols, such as a summation symbol, behave in the two modes.
In each of the following, the two images show the symbol in display mode, then in inline mode.
Symbol | Command | Symbol | Command | Symbol | Command |
---|---|---|---|---|---|
sum | int | oint | |||
prod | coprod | igcap | |||
igcup | igsqcup | igvee | |||
igwedge | igodot | igotimes | |||
igoplus | iguplus |