find T (number of tabulars) and L (number of lines per tabular) so that:
(1) L is < MAX_LINES_PER_PAGE (~40)
(2) T is minimal
(3) TOTAL_LINES % T is 0, or maximal
