StyleDefinitions

StyleDefinitions
is an option for notebooks that gives definitions for the styles that can be used in a notebook.

DetailsDetails

  • StyleDefinitions->"name.nb" specifies that style definitions from the notebook should be used.
  • The standard notebook front end comes with a selection of style definition notebooks containing styles appropriate for particular purposes.
  • StyleDefinitions->Notebook[...] allows style definitions to be given explicitly.
  • The definition for a style named is specified by the options for the first cell whose contents is StyleData["s"].

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Create a document with styles defined in the standard stylesheet :

Check the StyleDefinitions setting:

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

Use SetOptions to switch to a different stylesheet:

New in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »