({{, StyleForm[expr,options]
prints using the specified style options. }, {, StyleForm[expr,"style"]
prints using the specified cell style in the current notebook. }})

OpenersNotesSection(Spacer1)Details

You can use font options such as (RefLink[FontSize, paclet:ref/FontSize]), (RefLink[FontWeight, paclet:ref/FontWeight]), (RefLink[FontSlant, paclet:ref/FontSlant]), (RefLink[FontFamily, paclet:ref/FontFamily]), (RefLink[FontColor, paclet:ref/FontColor]), and (RefLink[Background, paclet:ref/Background]) in StyleForm.

Additional options can be given as in (RefLink[StyleBox, paclet:ref/StyleBox]).

StyleForm acts as a "wrapper", which affects printing, but not evaluation.

StyleForm can be used to specify the style for text in graphics.

StyleForm[expr,"style"] will work only if the notebook front end is being used; StyleForm[expr,options] for many options will work in all cases.

When StyleForm objects are nested, the options of the innermost one control the printing of a particular expression.

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Style, paclet:ref/Style])  ▪  (RefLink[StyleBox, paclet:ref/StyleBox])  ▪  (RefLink[BaseStyle, paclet:ref/BaseStyle])  ▪  (RefLink[FormatType, paclet:ref/FormatType])  ▪  (RefLink[Cell, paclet:ref/Cell])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Styles and Fonts in Output, paclet:tutorial/StylesAndFontsInOutput])}, {▪(RefLinkPlain[Formats for Text in Graphics, paclet:tutorial/FormatsForTextInGraphics])}})}})