This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Wolfram Research, Inc.

Generating Unstructured OutputRequesting Input

2.8.19 Generating Styled Output in Notebooks

Generating styled output in notebooks.

This generates a cell in section heading style.

In[1]:= StylePrint["The heading", "Section"];

This generates a cell in input style.

In[1]:= StylePrint[x^2 + y^2, "Input"]

Mathematica provides many capabilities for manipulating the contents of notebooks, as discussed in Section 2.10. StylePrint handles the simple case when all you want to do is to add a cell of a particular style.

Generating Unstructured OutputRequesting Input