Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

StylesheetTools

Guides

  • Stylesheet Tools

Symbols

  • GenerateCommonStylesheet
  • StyleDataConnectivityGraph
  • StyleDataInheritanceSummary
  • StylesheetConnectivityGraph
  • StylesheetEvaluateAndSave
  • StylesheetFlatten
  • StylesheetPathFind
  • StylesheetQ
  • StylesheetRebase
  • StylesheetRemoveRedundantOptions
  • StylesheetReplaceAll
  • StylesheetReplaceRepeated
  • StylesheetReportRedundantOptions
  • StylesheetReportSyntaxErrors
  • StylesheetReportUnintendedEvaluation
  • StylesheetWrite
Wolfram`StylesheetTools`
GenerateCommonStylesheet
​
GenerateCommonStylesheet
[{
nbPath
1
,
nbPath
2
,…}]
creates a new stylesheet notebook that contains the style definition cells that are common to the stylesheets located at
nbPath
i
.
​
Details and Options

Examples  
(4)
Basic Examples  
(1)
Create a stylesheet with common styles taken from example stylesheets provided by the StylesheetTools package:
In[1]:=
nbObj=
GenerateCommonStylesheet
[{​​"StylesheetTools/CommonExampleA.nb",​​"StylesheetTools/CommonExampleB.nb"}];​​NotebookGet[nbObj]​​NotebookClose[nbObj]
Out[1]=
Notebook[{Cell[StyleData[Foo],FontSize24],Cell[StyleData[Bar],ButtonBoxOptions{TooltipNone}]},WindowSize{581.25,654.},WindowMargins{{423,Automatic},{Automatic,40.5}},TrackCellChangeTimesFalse,FrontEndVersion13.1 for Microsoft Windows (64-bit) (August 22, 2022),StyleDefinitionsStylesheetFormatting.nb]
Comparing the resulting stylesheet with the two examples, the common option
FontSize
for the style
"Foo"
and the common sub-option
Tooltip
for the option
ButtonBoxOptions
for the style
"Bar"
were kept, while the style
"Baz"
was not used as it only appears in
"CommonExampleA.nb"
:
In[2]:=
Get
StylesheetPathFind
["StylesheetTools/CommonExampleA.nb"]
Out[2]=
Notebook[{Cell[StyleData[Foo],FontSize24,FontSlantPlain],Cell[StyleData[Bar],ButtonBoxOptions{AutoActionFalse,TooltipNone}],Cell[StyleData[Baz],FontWeightBold]},FrontEndVersion13.1 for Microsoft Windows (64-bit) (August 22, 2022),StyleDefinitionsDefault.nb]
In[3]:=
Get
StylesheetPathFind
["StylesheetTools/CommonExampleB.nb"]
Out[3]=
Notebook[{Cell[StyleData[Foo],FontSize24,FontSlantItalic],Cell[StyleData[Bar],ButtonBoxOptions{TooltipNone}]},FrontEndVersion13.1 for Microsoft Windows (64-bit) (August 22, 2022),StyleDefinitionsDefault.nb]
Possible Issues  
(3)

SeeAlso
StylesheetQ
 
▪
StyleData
 
▪
StylesheetPathFind
 
▪
StyleSheetPath
 
▪
StyleDefinitions
RelatedGuides
▪
StylesheetTools
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com