Default Template Contents
A default report template contains an empty main document that is copied to the report output to hold the report content during report generation. In addition, it contains:
A style sheet with default style definitions for report elements.
A template library that contains templates for the title page, table of contents, chapters, and chapter and section titles. The templates define page headers and footers, page size, page margins, and page orientation for a report’s title page, table of contents, and chapters. The templates also include TOC and autonumber fields used by Microsoft® Word and HTML browsers to generate table of contents and chapter and section numbers when they open a report.
Default Styles
A default report template includes styles that the Report Explorer uses to format
components during report generation. Most styles begin with rg
(for example,
rgTitle
). Styles for syntax highlighting MATLAB® code begin with MWSG
, for example,
MWSHKeywords
. The default style names and formatting are the same for the
Word and HTML templates, to the extent applicable. For example, page break formatting applies
when you use a Word template or an HTML template used for formatting PDF reports, but not an
HTML template used for formatting HTML reports..
You can modify the built-in styles, but do not delete them. In addition, you can define your own styles and use them in components that allow you to specify a style, such as the Paragraph component.
Style | Component to which the style applies |
---|---|
| MATLAB code comment |
| MATLAB code keywords |
| MATLAB code character vectors |
| Title Page component abstract |
| Title Page component abstract section |
| Title Page component front page author |
| Title Page component back page author |
| Text component |
| Chapter component |
| Chapter component title |
| Title Page component copyright |
| Paragraph that contains an image generated by a snapshot or Image component, to adjust the spacing of images relative to adjacent paragraphs |
| The caption for Image component and snapshot components |
| The Image component and snapshot components title |
| The Image component and snapshot components title number |
| The Image component and snapshot components title prefix |
| The Image component and snapshot components title text |
| Title Page component legal notice section |
| Specifies the style of lists generated by the List component. |
| The List component title |
| The List component title number |
| The List component title prefix |
| The List component title text |
| Paragraph component text |
| Paragraph component title |
| Code generated by:
|
| Title page report creation date |
| Title page report creation date prefix |
| Section title for first-level section in a chapter |
| Number for Section title for first-level section in a chapter |
| Prefix for Section title for first-level section in a chapter |
| Text for Section title for first-level section in a chapter |
| Section title for second-level section in a chapter |
| Number for Section title for second-level section in a chapter |
| Prefix for Section title for second-level section in a chapter |
| Text for Section title for second-level section in a chapter |
| Section title for third-level section in a chapter |
| Number for Section title for third-level section in a chapter |
| Prefix for Section title for third-level section in a chapter |
| Text for Section title for third-level section in a chapter |
| Section title for fourth-level section in a chapter |
| Number for Section title for fourth-level section in a chapter |
| Prefix for Section title for fourth-level section in a chapter |
| Text for Section title for fourth-level section in a chapter |
| Section title for fifth-level section in a chapter |
| Number for Section title for fifth-level section in a chapter |
| Prefix for Section title for fifth-level section in a chapter |
| Text for Section title for fifth-level section in a chapter |
| Title Page component subtitle |
| Table content |
| Table title |
| Table title number |
| Table title prefix |
| Table title text |
| Title Page component front page title abstract, and legal notice section |
| Title Page component back page title abstract, and legal notice section |
| Table of contents |
Component Templates
The component template library of a default report template contain templates to determine the page layout and formats of report sections, such as the title page, table of contents, and chapters.
Part Template | Report Explorer Components the Part Template Formats |
---|---|
| Title Page Front title page contents, including the report title, subtitle, author, and an image. |
| Title Page Back title page contents, including the date published, copyright, legal notice, and abstract. |
| The table of contents automatically generated for Word and PDF. |
| Chapter/Section Chapter (top-level section), including the title (prefix, such as Chapter, number, and title) and for the content. |
| Chapter/Section Title for a section (sections below the chapter level). The title can include a prefix (such as Chapter), number, and title. |
| List Title of the list. |
| Table, Array-BasedTable, and table components such as Handle Graphics Property Table Table title, including prefix (such as Table, number, and title) and for the content. |
| Table and Array-BasedTable Table title, including prefix (such as Table, number, and title) and for the content. |
Component Template Holes
Component templates include fill-in-the-blanks hole markup. The Report Explorer fills holes with content that components generate.
For example, the rgChapter
template in the default Word template
includes an rgChapterTitle
hole.
The Report Explorer fills the rgChapterTitle
hole with the contents of
the Title
property of top-level Chapter/Section
components in a report.
You can rearrange or delete holes to change the order in which generated content appears in the report or to omit content. Do not add holes for content that a component does not specifically address. If you add holes, the Report Explorer ignores them. If you need to add content to a Title Page or other component, use a Form or Subform component instead.
Related Examples
- Generate a Report Using a Template
- Copy a Template
- Customize Microsoft Word Report Styles
- Customize Microsoft Word Component Templates
- Customize a Microsoft Word Title Page Template