Writer Guide

Common problem areas
How do I add limits to my sum/integral?
The sum and int commands can (optionally) take the parameters
from
and
to
. These are used for lower and upper limits respectively. These
parameters can be used singly or together. Limits for integrals are
usually treated as subscripts and superscripts.
Markup Result
sum from k = 1 to n a_k
k =1
n
a
k
int from 0 to x f(t) dt
or
int_0^x f(t) dt
0
x
f tdt
or
0
x
f t dt
int from Re f
f
sum to infinity 2^{-n}
2
n
Note
For more details on integrals and sums, see page 508.
Brackets with matrices look ugly!
For background, we start with an overview of the matrix command:
Markup Result
matrix { a # b ## c # d }
a b
c d
Note
Rows are separated by two #’s and entries within each row are
separated by one #.
The first problem people have with matrices is that brackets do not
scale with the matrix:
Markup Result
( matrix { a # b ## c # d } )
a b
c d
Chapter 16 Math Objects 501