Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Utilities for creating and editing stylesheet notebooks
Contributed by: Kevin Daily
StylesheetTools is a collection of utilities to help create and modify stylesheet notebooks. Use the functions to gather information about potential syntax errors, conveniently write or modify style definition cells, and gain a better understanding of stylesheet inheritance. The functions are designed to simplify workflows, such as flattening all style definition cells into a single private stylesheet for easier distribution of your working notebook, or simplifying a single stylesheet to make it easier to read and understand at a glance.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["Wolfram/StylesheetTools"]
To load the code after installation, evaluate this code:
Needs["Wolfram`StylesheetTools`"]
Detect whether a notebook is a valid stylesheet:
In[1]:= |
Out[1]= |
Write a style definition cell to a working notebook's private stylesheet:
In[2]:= |
Use Inherited to remove an option:
In[3]:= |
Use nested rules or lists of rules to modify sub-options:
In[4]:= |
Discover how a stylesheet inherit from other stylesheets:
In[5]:= |
Out[5]= |
Detect potential syntax errors:
In[6]:= |
Out[6]= |
Flatten a stylesheet to make it more straightforward to read:
In[7]:= |
Out[8]= |
Change the parent stylesheets without losing any of the previously inherited options:
In[9]:= |
Out[10]= |
Wolfram Language Version 13.0