User's Manual

Complex layout
Complex layout
Often, the problem is not in writing the equation as such, but obtaining the desired layout.
There are some features that can help:
Adjust alignment with “alignl” (left alignment), “alignr” (right alignment) and
“alignc” (centered).
Use matrices for columned layout.
Use white space and several lines to make your equation understandable.
Use ~ or ‘ to produce white space on the equation.
Tip: You can insert white space and additional lines in the markup without affecting the output
of the equation.
The following example illustrates most of the above.
Display Command
S
n
= 1rr
2
⋯r
n
rS
n
= r⋯r
n
r
n1
1r S
n
= 1r
n1
S
n
=
1r
n1
1r
matrix {
S_n #{}={}# alignl 1 + r + r^2 + dotsaxis + r^n ##
rS_n #{}={}# alignl r + dotsaxis + r^n + r^{n+1} ##
(1-r)S_n #{}={}# alignl 1 - r^{n+1} ##
S_n #{}={}# alignl {1 - r^{n+1} } over {1-r}
}
In addition to matrices, you can also used the newline command to move to a new line.
Notice (below) that the newline command does not have to be on a line of its own.
Display Command
x y=3
x y=1
x + y = 3 newline x – y = 1
Math Objects 5