Math Guide
Table Of Contents
Formats
Operation Command Display
Left superscript a lsup{b}
a
b
Center superscript a csup{b}
a
b
Right superscript a^{b}
a
b
Left subscript a lsub{b}
a
b
Center subscript a csub{b}
a
b
Right subscript a_{b}
a
b
Align character to left (text
is aligned center by default)
stack { Hello world # alignl
(a) }
Hello world
a
Align character to center
stack{Hello world #
alignc(a)}
Hello world
a
Align character to right
stack { Hello world #
alignr(a)}
Hello world
a
Vertical stack of 2 binom{a}{b}
a
b
Vertical stack, more than 2 stack{a # b # z}
a
b
z
Matrix
matrix{
a # b ##
c # d
}
a b
c d
Equations aligned at '='
(using 'matrix')
matrix{
a # "=" # alignl{b} ##
{} # "=" # alignl{c+1}
}
a = b
= c
Equations aligned at '='
(using 'phantom')
stack{
alignl{a} = b #
alignl{phantom{a} = c+1}
}
a = b
= c
New line asldkfjo newline sadkfj
asldkfjo
sadkfj
Small gap (grave) stuff `stuff
stuff stuff
Large gap (tilde) stuff~stuff
stuff stuff
Math commands - Reference 27