This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Cell

Cell[contents]
is the low-level representation of a cell inside a Mathematica notebook.
Cell
represents a cell in the specified style.
  • Mathematica notebooks consist of lists of Cell objects.
  • You can see the form of a cell as an expression by using the Show Expression menu command in the standard Mathematica front end.
  • The contents of cells can be the following:
"text"plain text
TextData[exprs]general text objects
BoxData[boxes]formatted Mathematica expressions
OutputFormData["itext","otext"]
text as generated by OutputForm
RawData[data]unformatted expressions
GraphicsData["type",data]non-expression graphics or sound data
CellGroupData[{cell1,cell2,...},status]
group of cells
StyleData["style"]sample cell for a particular style
  • In any given notebook, a collection of possible cell styles is defined, typically with names such as , , , and .
  • Cells can have many options, including:
Backgroundthe color of the background for the cell
CellFramewhether to draw a frame around the cell
CellTagstags for the cell
Editablewhether to allow the contents of the cell to be edited
FontSizethe default size of text in the cell
TextAlignmenthow to align text in the cell
Create a text cell from a low-level description:
Create an expression cell from a low-level description:
Create a text cell from a low-level description:
In[1]:=
Click for copyable input
 
Create an expression cell from a low-level description:
In[1]:=
Click for copyable input
Out[1]=
Cells can contain complex typeset forms:
Cells can contain graphics:
Cells can contain interactive controls:
Cells can contain other cells:
Put a frame around a cell:
Specify a width for the frame:
Cell frame labels can be displayed without a frame:
Use a cell tag to locate a particular cell by referring to the tag:
NotebookFind can also be used:
By default cells are editable; set Editable to False to disable this behavior:
Define some text:
The same text with and without hyphenation:
Cells with and without a cell bracket:
NotebookPut creates notebook windows from low-level Notebook and Cell expressions:
NotebookRead returns a Cell expression for the selected cell:
New in 3 | Last modified in 6