BaseStyle

BaseStyle
is an option for formatting and related constructs that specifies the base style to use for them.

DetailsDetails

  • An option setting BaseStyle->spec in a construct obj specifies that the construct should always automatically be displayed as Style[obj, spec].
  • Any style specification as used in Style can be used as a setting for BaseStyle.
  • Typical forms of settings include:
  • "style"a named style from the current stylesheets
    {opt1->val1,...}a list of explicit option settings
    {"style",opt1->val1,...}a named style modified by option settings
  • Color directives such as Red, as well as text specifications such as Bold or Small, can be given in place of options, just as in Style.
  • Any outside styles not explicitly overridden by settings in BaseStyle will still be used.
  • BaseStyle is effectively applied after DefaultBaseStyle.
  • Style specifications given in BaseStyle are typically added to default specifications given in the current stylesheet.
  • For an object of type obj, the default style specifications are typically those associated with a style named .

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Set the starting style:

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

Use a named style:

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

Set multiple font option settings:

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