This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / New in Version 3.0 / Input and Output  /

  • StylePrint[ expr , " style "] creates a new cell in the current notebook with the specified style, and prints expr into it.
  • StylePrint[ expr ] uses the default style for the current notebook.
  • StylePrint creates a new cell directly after the current selection in your currently selected notebook.
  • StylePrint[ expr , " style ", opts ] can be used to specify options for the cell that is created.
  • StylePrint is a special case of NotebookWrite.
  • With a text-based front end, StylePrint does the same as Print.
  • Cells generated by StylePrint by default have GeneratedCell->True and CellAutoOverwrite->True.
  • StylePrint[ expr , " style "] generates a whole cell with the specified style; Print[StyleForm[ expr , " style "]] generates a cell with the default style but containing a StyleBox object.
  • See the Mathematica book: Section 2.8.19Section 2.10.1.
  • See also: CellPrint, Print, NotebookWrite, NotebookPrint, StyleForm.