Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Document Generation > CellPrint >

CellPrint

CellPrint[expr]
inserts expr as a complete cell in the current notebook just below the cell being evaluated.
CellPrint
inserts a sequence of cells.
  • If expr is a string or Text object, a text cell is created to contain it. »
  • If expr is any other type of expression, an expression cell is created to contain it. »
  • With a text-based front end, CellPrint[cell] does the same as applying Print to the contents of cell.
Create a text cell from a TextCell object:
Create a sequence of text cells:
Create a text cell from a string:
Create a text cell from a TextCell object:
In[1]:=
Click for copyable input
 
Create a sequence of text cells:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
 
Create a text cell from a string:
In[1]:=
Click for copyable input
a
Strings are converted to TextCell objects:
General expressions are converted to ExpressionCell objects:
Lists are converted to multiple cells:
Print cells with specific styles:
Print is a special case of CellPrint:
New in 3 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF