DefaultBaseStyle

DefaultBaseStyle
is a low-level option for formatting and related constructs that specifies a default base style to use before BaseStyle.

DetailsDetails

  • An option setting DefaultBaseStyle->spec in a construct obj specifies that the construct should automatically be displayed by default as Style[obj, spec].
  • DefaultBaseStyle is applied before BaseStyle, so that it can be overridden by BaseStyle.
  • The default setting for DefaultBaseStyle is typically different for different constructs.
  • For Button, the default setting is DefaultBaseStyle->"Button", and in general for an object named obj it is typically .
  • DefaultBaseStyle->{} introduces no default style specifications, thereby effectively allowing all outside style specifications in.
  • DefaultBaseStyle->style makes any specifications in style override corresponding outside style specifications.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

The current setting for DefaultBaseStyle:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

The default styles used:

In[1]:=
Click for copyable input
Out[1]=

Explicit settings for BaseStyle override DefaultBaseStyle:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »