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
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.
Details

- StylePrint creates a new cell immediately after the cell that is currently being evaluated.
- 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 thing 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[Style[expr,"style"]] generates a cell with the default style but containing a StyleBox object.
See Also
Tech Notes
History
Introduced in 1996 (3.0) | Updated in 2003 (5.0)
Text
Wolfram Research (1996), StylePrint, Wolfram Language function, https://reference.wolfram.com/language/ref/StylePrint.html (updated 2003).
CMS
Wolfram Language. 1996. "StylePrint." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/StylePrint.html.
APA
Wolfram Language. (1996). StylePrint. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StylePrint.html
BibTeX
@misc{reference.wolfram_2025_styleprint, author="Wolfram Research", title="{StylePrint}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/StylePrint.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_styleprint, organization={Wolfram Research}, title={StylePrint}, year={2003}, url={https://reference.wolfram.com/language/ref/StylePrint.html}, note=[Accessed: 13-August-2025]}