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


StyleForm
StyleForm[expr,options]
prints using the specified style options.
StyleForm[expr,"style"]
prints using the specified cell style in the current notebook.
Details

- You can use font options such as FontSize, FontWeight, FontSlant, FontFamily, FontColor, and Background in StyleForm.
- Additional options can be given as in StyleBox.
- The typeset form of StyleForm[expr] is interpreted the same as expr when used in input.
- When an input evaluates to StyleForm[expr], StyleForm does not appear in the output.
- 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.
See Also
Tech Notes
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), StyleForm, Wolfram Language function, https://reference.wolfram.com/language/ref/StyleForm.html.
CMS
Wolfram Language. 1996. "StyleForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StyleForm.html.
APA
Wolfram Language. (1996). StyleForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StyleForm.html
BibTeX
@misc{reference.wolfram_2025_styleform, author="Wolfram Research", title="{StyleForm}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/StyleForm.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_styleform, organization={Wolfram Research}, title={StyleForm}, year={1996}, url={https://reference.wolfram.com/language/ref/StyleForm.html}, note=[Accessed: 08-August-2025]}