- See Also
-
Related Guides
- Controls Options
- Colors
- Graph Visualization
- Graphics Annotation & Appearance
- Graph Styling, Labeling, and Layout
- Chart Styling & Layout
- Text Styling
- Font Options
- Notebook Document Generation
- Options & Styling for Interactive Manipulation
- Cell Styling Options
- Math Typesetting Options & Tweaking
- Graphics Directives
- Notebook Formatting & Styling
- Text Generation
- Form Structure & Layout
- Natural Language Processing
- Maps & Cartography
- Molecular Structure & Computation
- Creating Form Interfaces & Apps
- Automated Reports
- Palettes
- Workflows
- Tech Notes
-
- See Also
-
Related Guides
- Controls Options
- Colors
- Graph Visualization
- Graphics Annotation & Appearance
- Graph Styling, Labeling, and Layout
- Chart Styling & Layout
- Text Styling
- Font Options
- Notebook Document Generation
- Options & Styling for Interactive Manipulation
- Cell Styling Options
- Math Typesetting Options & Tweaking
- Graphics Directives
- Notebook Formatting & Styling
- Text Generation
- Form Structure & Layout
- Natural Language Processing
- Maps & Cartography
- Molecular Structure & Computation
- Creating Form Interfaces & Apps
- Automated Reports
- Palettes
- Workflows
- Tech Notes
Style[expr,options]
displays with expr formatted using the specified option settings.
Style[expr,"style"]
uses the option settings for the specified style in the current notebook.
Style[expr,color]
displays using the specified color.
Style[expr,Underlined]
displays with fonts underlined.
Style[expr,n]
displays with font size n.
Style
Style[expr,options]
displays with expr formatted using the specified option settings.
Style[expr,"style"]
uses the option settings for the specified style in the current notebook.
Style[expr,color]
displays using the specified color.
Style[expr,Underlined]
displays with fonts underlined.
Style[expr,n]
displays with font size n.
Details and Options
- Style can be used in both ordinary expressions and graphics.
- Style[expr,spec1,spec2,…] allows the speci to be any list or sequence of the following:
-
opt1->val1,… explicit options "style" a named style from the current stylesheets color directive color (Red, RGBColor[…], …) graphics directive (Thickness[…], …) Bold text bold (FontWeight->"Bold") Italic text italic (FontSlant->"Italic") Underlined text underlined Larger text larger Smaller text smaller n (any number) text with font size n (FontSize->n) Tiny, Small, etc. text with absolute size - Style can use any option listed in the Option Inspector in the notebook front end.
- Style can use any graphics directive or list of graphics directives.
- In Style[expr,spec1,spec2,…], explicit settings given in the speci always override settings defined by named styles in the speci, regardless of the order in which they occur.
- For explicit settings, the first occurrence of a setting for a given option will be the one used.
- Directives such as Red or Bold are treated as equivalent to their corresponding option settings.
- A few common explicit options include:
-
Background background color Editable whether the contents are editable FontFamily font family Hyphenation whether to hyphenate in text Magnification magnification Selectable whether the contents are selectable - A few common named styles include:
-
"Button" display like text in a system button "Graphics" display like graphics "Input" display like Wolfram Language input "Label" display as a sans serif label "Menu" display like a system menu item "Output" display like Wolfram Language output "Panel" display like text in a system panel "PopupMenu" display like a system popup menu "Section" display as a section heading "SmallText" display like small text "Subsection" display as a subsection heading "Text" display like ordinary text "Title" display like a title - When Style objects are nested, the specifications of the innermost one control the display of a particular expression.
Examples
open all close allBasic Examples (3)
Style[Sqrt[Sin[x] / x], Red]Specify various properties of fonts:
Text[Style["AbBbCc", Blue, Italic, 24]]Style["AbBbCc", "Title"]Specify the style of an individual graphic object:
Graphics[Style[Circle[], Pink, Thick]]Graphics3D[Style[Sphere[], Orange]]Scope (3)
Specify the font size in printer's points:
Table[Text@Style["AaBbCc", s], {s, {10, 20, 30, 40}}]Table[Text@Style["AaBbCc", Large, p], {p, {Bold, Italic, Underlined, Purple}}]Graphics[Style[Rectangle[], EdgeForm[{Blue, Thickness[.05]}], Pink]]Specify the indentation, spacing, and alignment of text:
t = StringJoin@@Table["abcde ", {40}];Framed@Text[Style[t, LineIndent -> 1]]Framed@Text[Style[t, LineSpacing -> {1.5, 0}]]Framed@Text[Style[t, TextAlignment -> Right]]Options (39)
Antialiasing (2)
Background (1)
ControlsRendering (2)
Compare the default and generic appearances of Slider:
{Slider[], Style[Slider[], ControlsRendering -> "Generic"]}{RadioButton[1, 1], Style[RadioButton[1, 1], ControlsRendering -> "Generic"]}DefaultOptions (2)
Locally set DefaultOptions:
Style[{Graphics[Circle[]], Slider[.5]}, DefaultOptions -> {Graphics -> {ImageSize -> {90, 90}, Background -> StandardBlue}, Slider -> {Appearance -> Small, Background -> ThemeColor["Accent4"]}}]ThemeColorExplicit option settings in an object override default options for that type of object:
Style[{Graphics[Circle[], Background -> Pink], Slider[.5, Appearance -> Large]}, DefaultOptions -> {Graphics -> {ImageSize -> {90, 90}, Background -> StandardBlue}, Slider -> {Appearance -> Small, Background -> ThemeColor["Accent4"]}}]Deployed (1)
DigitBlock (1)
Editable (2)
Enabled (1)
Compare enabled and disabled Slider:
{Slider[], Style[Slider[], Enabled -> False]}{RadioButton[1, 1], Style[RadioButton[1, 1], Enabled -> False]}FontColor (2)
FontFamily (1)
FontSize (2)
Specify the font size in printer's points:
Table[Text[Style["ABC", FontSize -> p]], {p, {12, 24, 36}}]Specify the absolute font size using predefined symbolic values:
Table[Text[Style["ABC", FontSize -> p]], {p, {Tiny, Small, Medium, Large}}]Specify the font size without using an option:
Table[Text[Style["ABC", s]], {s, {12, 24, 36}}]FontSlant (2)
FontTracking (1)
Different settings for FontTracking:
Framed@Column[Table[Style["AaBbCcDd", FontTracking -> t], {t, {"Narrow", "Condensed", "SemiCondensed", "Plain", "Extended", "Wide"}}]]FontVariations (1)
Style["abcd xyz", FontVariations -> {"Underline" -> True}]Style["abcd xyz", FontVariations -> {"StrikeThrough" -> True}]Style["abcd xyz", FontVariations -> {"Underline" -> True, "StrikeThrough" -> True}]FontWeight (2)
ImageSizeMultipliers (2)
Graphics[Circle[{0, 0}, {3, 1}]]Specify that the graphic inside a list is 0.4 times its normal size:
Style[{Graphics[Circle[{0, 0}, {3, 1}]]}, ImageSizeMultipliers -> {0.4, 0.2}]Specify that the graphic inside a function is 0.2 times its normal size:
Style[f[Graphics[Circle[{0, 0}, {3, 1}]]], ImageSizeMultipliers -> {0.4, 0.2}]LineIndent (1)
LineSpacing (1)
t = StringJoin@@Table["abcde ", {40}];Framed@Text[Style[t, LineSpacing -> {2, 0}]]Make the height of each line 10 printer's points:
Framed@Text[Style[t, LineSpacing -> {0, 10}]]Single spacing with 5 printer's points of extra space added to each line:
Framed@Text[Style[t, LineSpacing -> {1, 5}]]Magnification (2)
Specify the level of magnification:
Table[Style[Sqrt[2], Magnification -> m], {m, {1 / 2, 1, 2, 3}}]Table[Style[Graphics[Circle[], ImageSize -> 30], Magnification -> m], {m, {1 / 2, 1, 2, 3}}]Magnification affects everything including margins:
t = Grid[Partition[Range[9], 3], Frame -> All]Table[Style[t, Magnification -> m], {m, {1 / 2, 1, 2, 3}}]NumberSeparator (1)
ScriptBaselineShifts (1)
Default placement of subscripts and superscripts:
{Subscript[x, a], Subsuperscript[x, b, b], x^c}Shift subscripts down by 2 x-heights:
Style[{Subscript[x, a], Subsuperscript[x, b, b], x^c}, ScriptBaselineShifts -> {2, Automatic}]Shift subscripts down by 0 x-heights; shift superscripts up by 2 x-heights:
Style[{Subscript[x, a], Subsuperscript[x, b, b], x^c}, ScriptBaselineShifts -> {0, 2}]ScriptMinSize (1)
Use ScriptMinSize to keep exponents from shrinking below a certain font size:
Table[Style[x ^ m ^ n, ScriptMinSize -> min], {min, {6, 9, 12}}]ScriptSizeMultipliers (2)
Use ScriptSizeMultipliers to set the factor by which font size is reduced for superscripts:
Table[Style[x ^ m ^ n, Large, ScriptSizeMultipliers -> ssm], {ssm, {.8, .9, 1.0}}]ScriptSizeMultipliers->list uses different factors for different levels:
{Style[x ^ m ^ n ^ p, Large, ScriptSizeMultipliers -> .8], Style[x ^ m ^ n ^ p, Large, ScriptSizeMultipliers -> {.8, .9, .95}]}ShowStringCharacters (2)
SingleLetterItalics (2)
Make variables with one-letter names appear in an italicized form:
Style[Sin[x y], SingleLetterItalics -> True]Override single-letter italicization for a particular symbol in a TraditionalForm output:
Style[T, SingleLetterItalics -> False] + Sin[x y]//TraditionalFormTextAlignment (1)
t = StringJoin@@Table["abcd ", {60}];Framed@Text[Style[t, TextAlignment -> Left]]Framed@Text[Style[t, TextAlignment -> Center]]Framed@Text[Style[t, TextAlignment -> Right]]See Also
StandardForm TraditionalForm Pane Panel Inherited Highlighted Magnify BaseStyle LightDark ThemeColor
Function Repository: SetDisplayStyle
Tech Notes
Related Guides
-
▪
- Controls Options ▪
- Colors ▪
- Graph Visualization ▪
- Graphics Annotation & Appearance ▪
- Graph Styling, Labeling, and Layout ▪
- Chart Styling & Layout ▪
- Text Styling ▪
- Font Options ▪
- Notebook Document Generation ▪
- Options & Styling for Interactive Manipulation ▪
- Cell Styling Options ▪
- Math Typesetting Options & Tweaking ▪
- Graphics Directives ▪
- Notebook Formatting & Styling ▪
- Text Generation ▪
- Form Structure & Layout ▪
- Natural Language Processing ▪
- Maps & Cartography ▪
- Molecular Structure & Computation ▪
- Creating Form Interfaces & Apps ▪
- Automated Reports ▪
- Palettes
Related Workflows
- Add Styling to Math ▪
- Add Styling to Text ▪
- Display Notebooks White-on-Black
Related Links
History
Introduced in 2007 (6.0)
Text
Wolfram Research (2007), Style, Wolfram Language function, https://reference.wolfram.com/language/ref/Style.html.
CMS
Wolfram Language. 2007. "Style." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Style.html.
APA
Wolfram Language. (2007). Style. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Style.html
BibTeX
@misc{reference.wolfram_2026_style, author="Wolfram Research", title="{Style}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Style.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_style, organization={Wolfram Research}, title={Style}, year={2007}, url={https://reference.wolfram.com/language/ref/Style.html}, note=[Accessed: 12-June-2026]}