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`
StylesheetRemoveRedundantOptions
​
StylesheetRemoveRedundantOptions
[nbObj]
replaces the stylesheet
NotebookObject
nbObj
with one that has any redundant options removed.
​
​
StylesheetRemoveRedundantOptions
[nbExpr]
replaces the stylesheet
Notebook
expression
nbExpr
with one that has any redundant options removed.
​
​
StylesheetRemoveRedundantOptions
[nbPath]
replaces the stylesheet located at
nbPath
with one that has any redundant options removed.
​
Details and Options

Examples  
(6)
Basic Examples  
(3)
Remove redundancy from a stylesheet file on the local system:
In[1]:=
nbPath=FileNameJoin[{$TemporaryDirectory,"Example.nb"}];​​Quiet[DeleteFile[FileNameJoin[{$TemporaryDirectory,"Default.nb"}]]];​​Export[nbPath,Notebook[{​​Cell[StyleData[StyleDefinitions"Default.nb"]],​​Cell[StyleData["Title"],FontSize45,FontColorRed]},StyleDefinitions"StylesheetFormatting.nb"]];
FontSize
is removed because it exists in
"Default.nb"
:
In[2]:=
StylesheetRemoveRedundantOptions
[nbPath]
Out[2]=
NotebookObject
Untitled-37

​
Remove redundancy from a stylesheet
NotebookObject
:
In[1]:=
nbObj=NotebookPut[Notebook[{​​Cell[StyleData[StyleDefinitions"Default.nb"]],​​Cell[StyleData["Title"],FontSize45,FontColorRed]},StyleDefinitions"StylesheetFormatting.nb"]];
FontSize
is removed because it exists in
"Default.nb"
:
In[2]:=
StylesheetRemoveRedundantOptions
[nbObj]
​
Remove redundancy from a stylesheet
Notebook
:
In[1]:=
StylesheetRemoveRedundantOptions
[Notebook[{​​Cell[StyleData[StyleDefinitions"Default.nb"]],​​Cell[StyleData["Title"],FontSize45,FontColorRed]},StyleDefinitions"StylesheetFormatting.nb"]]
Out[1]=
NotebookObject
Untitled-43

Options  
(1)

Possible Issues  
(2)

SeeAlso
StylesheetReportRedundantOptions
 
▪
StyleData
 
▪
StyleSheetPath
TechNotes
▪
Working With Stylesheets
RelatedGuides
▪
Stylesheet Tools
""

© 2025 Wolfram. All rights reserved.

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