implement simple pagination (ignores dropchars, widows, footnotes
and other complications for now).