Skip to content

GridBox ​

A two-dimensional array of boxes: a matrix's body, a piecewise definition's cases.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageGridBox✓
GridBox([[box11, box12, …], …])A two-dimensional array of boxes: a matrix's body, a piecewise definition's cases.
Typed signatures
TypePackageApplies
(list<list<boxes>>, expression*) -> boxesboxesalways

Domain: Boxes

Details
  • Rows are lists of boxes, as in Wolfram's GridBox[{{…}, …}].
  • MathML's mtable.
  • Layout reads ColumnAlignments, ColumnSpacings, RowSpacings, GridBoxFrame and GridBoxDividers; a cell that is SpanFromLeft (or SpanFromAbove) continues the cell beside (above) it.
  • Column, Grid and Labeled lower to a GridBox in a TagBox that names the head.

Examples

Basic #

a box is inert: it evaluates to itself

live ↗
InGridBox([[1,2],[3,4]])\mathrm{GridBox}(\bigl\lbrack\bigl\lbrack\text{1}, \text{2}\bigr\rbrack, \bigl\lbrack\text{3}, \text{4}\bigr\rbrack\bigr\rbrack)OutGridBox([[1,2],[3,4]])\mathrm{GridBox}(\bigl\lbrack\bigl\lbrack\text{1}, \text{2}\bigr\rbrack, \bigl\lbrack\text{3}, \text{4}\bigr\rbrack\bigr\rbrack)
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: RowBox, FractionBox