Documentation
Publicon
Reference
Preferences
Formatting Options
...Specific Box Options
GridBoxOptions
{...}
GridFrame
• GridFrame is an option for cells that determines if lines are drawn around a grid box.
• GridFrame can be set to the following.
True a frame is drawn around all four sides of the grid box
False no frame is drawn around the grid box
n a frame with n times the default thickness is drawn
{{l, r},{b, t}} l, r, b, and t specify the thickness of lines drawn around the
left, right, bottom, and top sides of the box respectively.
GridFrameMargins
• GridFrameMargins is an option for cells that determines the spacing between text in a grid box and the frame surrounding it.
• GridFrameMargins
{{l, r},{b, t}}} determines the size of the left, right, bottom, and top margins respectively, in em units. The default setting is GridFrameMargins
{{0.4, 0.4}, {0.5, 0.5}}.
RowLines
• RowLines is an option for cells that determines if lines are drawn between adjacent rows in a grid box and what their thicknesses should be.
• RowLines can be set to the following.
True a line is drawn between all adjacent rows
False no lines are drawn between rows
n a line with thickness n times the default thickness is drawn
between all adjacent rows
{
,
, ....} the thickness of the ith line is determined by
, which can take values True, False, or a number. If the number of rows is greater than the number of elements in the list, the last element determines the thickness of the remaining lines.
ColumnLines
• ColumnLines is an option for cells that determines if lines should be drawn between adjacent columns in a grid box.
• ColumnLines can be set to the following.
True a line is drawn between all adjacent columns
False no lines are drawn between columns
n a line with thickness n times the default thickness is
drawn between all adjacent columns
{
,
, ....} the thickness of the ith line is determined by
, which can take values True, False, or a number. If the number of rows is greater than the number of elements in the list, the last element determines the thickness of the remaining lines.
GridBaseline
• GridBaseline is an option for cells that determines the vertical positioning of a grid box with respect to the baseline of the text surrounding it.
• With the setting GridBaseline
Top, the top of a grid box is aligned with the baseline of the surrounding text. For example, "
"
• With the setting GridBaseline
Bottom, the bottom of the grid box is aligned with the baseline of the surrounding text. For example,
"
"
• With the setting GridBaseline
Center, the center of the grid box is aligned with the baseline of the surrounding text. For example, "
"
• Another possible setting is GridBaseline
{name, {i, j}}, where name refers to the {i, j}th element instead of the entire grid box. For example, GridBaseline
{Top, {2, 1}}, means that the top of the element in the second row and first column of the grid box is aligned with the baseline of the surrounding text, as shown here. "
"
• The default setting is GridBaseline
Axis.
AutoDelete
• AutoDelete is an option for cells that determines if a grid box remains in place when all but one of its elements is deleted.
• AutoDelete controls what happens if you create a grid box and then remove all of its elements except for one. With the default setting AutoDelete
True, the grid box surrounding the remaining element disappears.
• With the setting AutoDelete
False, the single element continues to be enclosed in a grid box.
AllowScriptLevelChange
• AllowScriptLevelChange is an option for cells that determines if entries in a grid box can have a ScriptLevel of 0.
• With the default setting AllowScriptLevelChange
True, all entries in a grid box have a minimum ScriptLevel of 1. The main effect this has is to make operators affected by LimitsPositioning, such as
,
, and
, appear small, as shown below.
• With the setting AllowScriptLevelChange
False, elements of a grid box can have a ScriptLevel of 0. This allows operators such as
,
, and
, to appear larger, making for an improved visual effect, as shown below.
• See also: ScriptLevel, LimitsPositioning.
RowSpacings
• RowSpacings is an option for cells that determines the vertical spacing between successive rows of a grid box.
• The spacing is specified in units of x-heights. The default setting is RowSpacings
1.
• You can also assign a different spacing for each row. RowSpacings
{n1, n2, n3......} means that the spacing after the first row is n1, after the second row n2, and so on. If the number of rows is greater than the number of elements in the list, the last element determines the spacing for all remaining rows.
ColumnSpacings
• ColumnSpacings is an option for cells that determines the horizontal spacing between successive columns of a grid box.
• The spacing is specified in em units. The default setting is ColumnSpacings
1.
• You can also assign a different spacing for each column. ColumnSpacings
{n1, n2, n3......} means that the spacing after the first column is n1, after the second column n2, and so on. If the number of columns is greater than the number of elements in the list, the last value in the list determines the spacing for all remaining columns.
ColumnWidths
• ColumnWidths is an option for cells that determines the widths of columns in a grid box.
• With the setting ColumnWidths
n, all columns in the grid box have a width of n ems.
• With the setting ColumnWidths
{n1, n2, ....}, the first column has width n1, the second has width n2, and so on. If the number of columns is greater than the number of elements in the list, the last element determines the width of all remaining columns.
• Values between 0 and 1 specify percentages of the current formatting width. For example, ColumnWidths
{.25, .5} makes the width of the first column, 25%, and that of the second column, 50% (of the current formatting width).
• With the default setting ColumnWidths
Automatic, the columns grow to be as large as needed to fit the widest entry in a column.
• Automatic is valid wherever a number is valid, e.g., ColumnWidths
{.2, Automatic, 30}.
Note: For different columns to have different widths, the option ColumnsEqual must be set to False.
RowAlignments
• RowAlignments is an option for cells that determines the vertical alignment of the rows in a grid box.
• With the default setting RowAlignments
Baseline, all elements in the same row are vertically positioned so that their baselines coincide.
• Other possible settings are Top, Bottom, Center, and Axis.
ColumnAlignments
• ColumnAlignments is an option for cells that determines the horizontal alignment of the columns in a grid box.
• With the default setting ColumnAlignments
Center, all elements in the same row are horizontally positioned so that their vertical axes coincide.
• Other possible settings are Left, Right, and n, where n is the amount of space in ems from the left edge of the column.
RowMinHeight
• RowMinHeight is an option for cells that determines the minimum height of a row in a grid box.
• RowMinHeight is specified in units of x-heights. The default setting is RowMinHeight
1.
RowsEqual
• RowsEqual is an option for cells that determines if all rows in a grid box have the same height.
• With the default setting RowsEqual
False, each row can have a different height depending on its contents.
• With the setting RowsEqual
True, all rows are adjusted to have the same height as the row with the maximum height.
ColumnsEqual
• ColumnsEqual is an option for cells that determines if all columns in a grid box have the same width.
• With the default setting ColumnsEqual
False, each column can have a different width depending on its contents.
• With the setting ColumnsEqual
True, all columns are adjusted to have the same width as the column with the maximum width.
MultilineFunction
• MultilineFunction is an option for cells that determines if the contents of a grid box are wrapped to the next line when they do not fit within the width of the page or the column (in case of fixed column width).
• With the default setting MultilineFunction
None, the contents of the grid box are not wrapped to the next line.
• With the setting MultilineFunction
Automatic, the contents of a grid box that extend beyond the width of the page are automatically wrapped to the next line. This setting is not currently implemented.
GridDefaultElement
• GridDefaultElement is an option for cells that determines which element is placed in every element of a grid box by default.
• When a new table, matrix, or palette is created, the element specified by GridDefaultElement is automatically placed in each row and column. This element can be a character, a string, or even a typeset expression such as \!\(a\/b\) or FractionBox["a", "b"].
• The default setting is GridDefaultElement
Placeholder.