Edit, Save, or Delete a Stylesheet

Edit a Stylesheet

To edit a stylesheet:

  1. In Report Explorer, select a report setup file in the Outline pane on the left.

  2. From the menu bar, click Tools > Edit Stylesheet.

The Report Explorer displays as follows.

  • The Outline pane on the left displays the structure of stylesheets you create.

  • The Options pane in the middle lists stylesheets available for customizing.

      Tip   Double-click a category to collapse it. Double-click it again to expand it.

  • The Properties pane on the right shows properties of stylesheets, such as name and description.

You can use the Report Explorer to work with stylesheets as follows.

TaskPane to UseAction
Create a stylesheetProperties Click the link that corresponds to the kind of stylesheet you want to create
Open an existing stylesheet Properties Click the name of the stylesheet, which appear in the Open Stylesheets area
Select a stylesheet to use for converting an XML source fileOptionsSelect a stylesheet by clicking on it
View a list of customized styles in a stylesheetOutlineExpand any open stylesheet
View a list of styles in a stylesheetOutline or
Options
Double-click the stylesheet
View a list of stylesheets available for editing in a given categoryOptions Double-click the folder that corresponds to the kind of output you want (that is, HTML, PDF, RTF, or Word)
View open stylesheets OutlineExpand the Stylesheet Editor item in Report Explorer
Change the name or description of the current stylesheetPropertiesEdit the text in the Display Name or Description field.
Convert an XML source file using the current stylesheetPropertiesClick Send to Source File Converter in the Properties pane.
Edit customized style dataPropertiesClick the style data item, which appears in the Stylesheet Customizations area
Open a style data item for editing or viewingOptionsDouble-click the data item that you want to edit.
View a list of customized style data OutlineExpand the stylesheet

Save a Stylesheet

You must save a stylesheet before you can use it to convert a source file or associate it with a report. To use the Report Explorer to save a stylesheet:

  1. Select the stylesheet that you want to save in the Outline pane on the left.

  2. Select File > Save As from the menu bar and specify a new name for the stylesheet (to avoid overwriting built-in stylesheets). You must save the file in a folder in your MATLAB® path for the stylesheet to appear in the Report Explorer. The file name must be unique in the MATLAB path.

    By convention, MATLAB Report Generator™ stylesheets have .rgs as their file name extension.

Delete a Stylesheet

To use the Report Explorer to delete a stylesheet that you created:

  1. Select the stylesheet that you want to delete in the Outline pane on the left.

  2. Click the stylesheet to delete from the Options pane in the middle.

  3. Click Delete stylesheet in the stylesheet's Properties pane on the right.

You must restart the MATLAB software session for deleted stylesheets to disappear from the Options pane.

    Note:   You cannot delete built-in stylesheets.

Was this topic helpful?