Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Options Management >

Inherited

Inherited
represents an option value to be inherited from an enclosing style, cell or notebook.
  • opt->Inherited is equivalent to giving no setting for opt at a particular level.
  • If no explicit setting is given at any level, then a built-in default value is used.
  • Inherited is always effectively replaced by an explicit value before the option setting is used.
  • If the nearest enclosing option setting is of the form opt->{a1, b1, ...}, then an option setting in opt->{Inherited, b2, ...} is taken to be equivalent to opt->{a1, b2, ...}.
Create a cell with a font-size setting overriding the notebook-level setting:
Select the cell:
Cancel the cell-level setting for FontSize, letting the higher-level setting take effect:
Now the cell itself has no option settings:
This makes a cell in "Text" style:
This is the CellMargins setting inherited from "Text" style:
This cell uses its own setting for the right margin and inherits the other margins:
In this case, the Inherited symbol appears in the cell's CellMargins setting:
Create a cell with a font-size setting overriding the notebook-level setting:
Select the cell:
Cancel the cell-level setting for FontSize, letting the higher-level setting take effect:
Now the cell itself has no option settings:
In[4]:=
Click for copyable input
Out[4]=
 
This makes a cell in "Text" style:
In[1]:=
Click for copyable input
This is the CellMargins setting inherited from "Text" style:
In[2]:=
Click for copyable input
Out[2]=
This cell uses its own setting for the right margin and inherits the other margins:
In[3]:=
Click for copyable input
In this case, the Inherited symbol appears in the cell's CellMargins setting:
In[4]:=
Click for copyable input
Out[4]=
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team