Tabular formatting determines the physical dimensions of tables according to size constraints. Many factors contribute to the complexity of the formatting process so we analyze the computational complexity of tabular formatting with respect to different restrictions. We also present an algorithm for tabular formatting that we have implemented in a prototype system. It supports automatic line breaking and size constraints expressed as linear equalities or inequalities. This algorithm determines in polynomial time the physical dimensions for many tables although it takes exponential-time in the worst case. Indeed, we have shown elsewhere that the formatting problem it solves is NP-complete.
[1]
Derick Wood,et al.
Xtable : a tabular editor and formatter
,
1996
.
[2]
Nesa L'abbe Wu,et al.
Linear programming and extensions
,
1981
.
[3]
Xinxin Wang,et al.
Tabular Abstraction, Editing, and Formatting
,
1996
.
[4]
George B. Dantzig,et al.
Linear programming and extensions
,
1965
.
[5]
Richard John Beach.
Setting tables and illustrations with style
,
1985
.
[6]
Akira Suzuki,et al.
Tafel Musik: Formatting algorithm of tables
,
1997
.