({{, (RefLink[StyleDefinitions, paclet:ref/StyleDefinitions])
is an option for notebooks that gives definitions for the styles that can be used in a notebook. }})

OpenersNotesSection(Spacer1)Details

(RefLink[StyleDefinitions, paclet:ref/StyleDefinitions])->"name.nb" specifies that style definitions from the notebook "name.nb" should be used.

The standard notebook front end comes with a selection of style definition notebooks containing styles appropriate for particular purposes.

(RefLink[StyleDefinitions, paclet:ref/StyleDefinitions])->(RefLink[Notebook, paclet:ref/Notebook])[…] allows style definitions to be given explicitly.

The definition for a style named "s" is specified by the options for the first cell whose contents is (RefLink[StyleData, paclet:ref/StyleData])["s"].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a document with styles defined in the standard stylesheet "Default.nb":

nb=CreateDocument[{TextCell["section","Section"],TextCell[StringJoin[Table["abcd ",{40}]],"Text"],ExpressionCell[f/@{x,y,z},"Input"],ExpressionCell[Graphics3D[Table[Sphere[{x,0,0},RandomReal[]],{x,0,4}]],"Output"]},StyleDefinitions->"Default.nb"];

Check the (RefLink[StyleDefinitions, paclet:ref/StyleDefinitions]) setting:

Options[nb,StyleDefinitions]

Use (RefLink[SetOptions, paclet:ref/SetOptions]) to switch to a different stylesheet:

SetOptions[nb,StyleDefinitions->FileNameJoin[{$InstallationDirectory,"SystemFiles","FrontEnd","StyleSheets","Book","Textbook.nb"}]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ScreenStyleEnvironment, paclet:ref/ScreenStyleEnvironment])  ▪  (RefLink[PrintingStyleEnvironment, paclet:ref/PrintingStyleEnvironment])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Styles and the Inheritance of Option Settings, paclet:tutorial/StylesAndTheInheritanceOfOptionSettings])}, {▪(RefLinkPlain[Options for Notebooks, paclet:tutorial/OptionsForNotebooks])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Stylesheets, paclet:guide/Stylesheets])}, {▪(RefLinkPlain[Notebook Document Generation, paclet:guide/DocumentGeneration])}, {▪(RefLinkPlain[Programmatic Notebook & Interface Customization, paclet:guide/ProgrammaticNotebookAndInterfaceCustomization])}})}})