User`s guide
6 Template-Based Report Formatting
6-36
Create a Custom HTML Template
In this section...
“Copy an HTML Template” on page 6-36
“Select an HTML Editor” on page 6-37
“Edit HTML Styles in a Template” on page 6-37
Copy an HTML Template
To customize the format styles used in the default HTML template, you need to copy that
template (or a template that was copied from the default template) and modify or add
style definitions in the copy.
1
In Report Explorer, select Tools > Edit Document Conversion Template.
2
In the Library pane (middle pane), select a template from the list of HTML
templates. For example, select the DefaultHTMLTemplate.
3
In the Properties pane, click Copy template.
4
In the file browser, navigate to the location where you want to save the template file.
Select a path that is on the MATLAB path (for example, in the MATLAB folder in your
home directory).
Specify the file name, using the default file extension for a HTML template
(.htmtx). Click Save.
5
In the list of templates in the middle pane, select the template copy you just created.
6
In the Properties pane, in the Template id and Display name fields, specify a
unique ID and display name for the template.
The display name is the name that appears in the Report Explorer list of templates.
The template ID is what you use to identify a template when using a command-line
interface.
7
To save the template properties you entered, move the cursor outside of the
Properties pane and click.