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`
StylesheetEvaluateAndSave
​
StylesheetEvaluateAndSave
[nbPath]
gets the notebook expression at
nbPath
and exports the expression back to
nbPath
.
​
​
StylesheetEvaluateAndSave
[nbPath,nbExpr]
exports the notebook expression
nbExpr
to
nbPath
.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
A generated notebook may have been saved to the local file system without an outline cache:
In[1]:=
nbPath=FileNameJoin[{$TemporaryDirectory,"Example.nb"}];​​Export[nbPath,Notebook[{Cell[StyleData["Title"],FontColorRed]},StyleDefinitions"StylesheetFormatting.nb"],"String"];​​FilePrint[nbPath]
Notebook[{Cell[StyleData[Title], FontColor -> RGBColor[1, 0, 0]]}, StyleDefinitions -> StylesheetFormatting.nb]
Save the stylesheet to regenerate its outline file cache and add additional options:
In[2]:=
StylesheetEvaluateAndSave
[nbPath]​​FilePrint[nbPath]
(* Content-type: application/vnd.wolfram.mathematica *)
​
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
​
(* CreatedBy='Mathematica 13.1' *)
​
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 1271, 43]
NotebookOptionsPosition[ 673, 24]
NotebookOutlinePosition[ 1295, 45]
CellTagsIndexPosition[ 1252, 42]
WindowFrame->Normal*)
​
(* Beginning of Notebook Content *)
Notebook[{
Cell[StyleData[Title],
FontColor->RGBColor[
1, 0, 0],ExpressionUUID->851e6649-75ae-4bca-9607-204963cdfca0]
},
WindowSize->{581.25, 654.},
WindowMargins->{{423, Automatic}, {Automatic, 40.5}},
FrontEndVersion->13.1 for Microsoft Windows (64-bit) (August 22, 2022),
StyleDefinitions->Notebook[{
Cell[
BoxData[
Dot[StylesheetFormatting, $CellContext`nb]], Input]}, Visible -> False,
FrontEndVersion -> 13.1 for Microsoft Windows (64-bit) (August 22, 2022),
StyleDefinitions -> Default.nb],
ExpressionUUID->383b27f1-939e-42c7-932f-e8a35f17ab4e
]
(* End of Notebook Content *)
​
(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[558, 20, 111, 2, 70, 22, 0, StyleData, None, All,ExpressionUUID->851e6649-75ae-4bca-9607-204963cdfca0]
}
]
*)
​
(* End of internal cache information *)
​
SeeAlso
StylesheetReportUnintendedEvaluation
 
▪
StyleSheetPath
TechNotes
▪
Working With Stylesheets
RelatedGuides
▪
Stylesheet Tools
""

© 2025 Wolfram. All rights reserved.

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