Executing the Column command produces a function call.
By using additional commands from the Layout Constructors package a nested function call can be produced which represents an entire worksheet.
That XML representation of a worksheet can be inserted directly.
In the next example the Table constructor computes the total column span of Cells in Rows and automatically generates the Columns within the Table.
Some text.
|
More text.
|
Yet more text.
|
A
|
B
|
C
|
D
|
|
|
When the interior borders of a Table are specified to be shown by group then the absence of a separator to the left of any Column is revealed.
Some text
|
Some text
|
Some text
|
Some text
|
Some text
|
Some text
|
|
|
The widths of Columns are relative to their weights. The default Column weight is 100. And by default the Table extends to 100% of the displayed worksheet.
Some text
|
Some text
|
Some text
|
|
|
The same effect is obtained using different weight values, as long as they are in the same relative proportion.
Some text
|
Some text
|
Some text
|
|
|
The relative Column weighting can also be used when the Table is constructed to have a fixed total width in pixels. In the next example the Table has a total width of 300 pixels. The left Column has a weight of 1/6 of the total, and thus a width of 50 pixels. The center Column has a weight of 1/3 and thus a width of 100 pixels. And the right Column has a weight of 1/2 of the total, and thus a width of 150 pixels.
Some text
|
Some text
|
Some text
|
|
|