Advanced tables and statistics > Laser printed tables with PostScript > Boxes in tables
 
Boxes in tables
Quick reference
To suppress the automatic table border, type:
#nopagebox
in the font file.
To print boxes around sections of a table, type:
boxs
Start a box.
boxe
End a box.
boxl
Draw a line between each row or column within the box. In row axes this generates a horizontal line; in column axes a vertical line is drawn.
boxg
Start boxes above rather than below column headings defined with g statements. This keyword requires boxs to be specified as well.
More information
Tables printed on the PostScript printer are automatically enclosed in a border. If you want unboxed tables, place the statement #nopagebox in the font file (specified with the –f option on the command line).
Additional statements have been added to Quantum to enable you to place boxes around selected cells in a table. For example, it is possible to print a table in which rows 3 to 5 and columns 1 to 4 are enclosed in a box.
Boxes will only be drawn if these statements are present in both the row and column axes; if they are present in only one axis in a table, no boxes are drawn. Additionally, a box extends the full width of the column rather than enclosing just the numbers themselves. Any box statements in illegal or irrelevant positions are silently ignored.
Example
tab rowax colax
l rowax
n10Base
n01Brand A
boxs
n01Brand B
n01Brand C
boxe
l colax
n10Base
n01Red
boxs
n01Blue
n01Green
boxe
This generates a table with 16 cells of which four are enclosed in a box, thus:
Base Red Blue Green
Base x x x x
Brand A x x x x
------------------
Brand B x x | x x |
Brand C x x | x x |
------------------
If you wanted to draw a horizontal line between Brand B and Brand C and a vertical line between Blue and Green, thereby giving the appearance of a boxed table, you must insert boxl statements in the appropriate places as follows:
l rowax
.
boxs
n01Brand B
boxl
n01Brand C
boxe
.
l colax
boxs
n01Blue
boxl
n01Green
boxe
This generates the following table:
Base Red Blue Green
Base x x x x
Brand A x x x x
------------------
Brand B x x | x | x |
|----------|-------|
Brand C x x | x | x |
------------------
See also
Laser printed tables with PostScript