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.

StyleComponent to which the style applies

MWSHComment

MATLAB code comment

MWSHKeywords

MATLAB code keywords

MWSHstrings

MATLAB code character vectors

rgAbstract

Title Page component abstract

rgAbstractTitle

Title Page component abstract section

rgAuthor

Title Page component front page author

rgAuthorVerso

Title Page component back page author

rgBody

Text component

rgChapter

Chapter component

rgChapterTitle

Chapter component title

rgCopyright

Title Page component copyright

rgFigure

Paragraph that contains an image generated by a snapshot or Image component, to adjust the spacing of images relative to adjacent paragraphs

rgFigureCaption

The caption for Image component and snapshot components

rgFigureTitle

The Image component and snapshot components title

rgFigureTitleNumber

The Image component and snapshot components title number

rgFigureTitlePrefix

The Image component and snapshot components title prefix

rgFigureTitleText

The Image component and snapshot components title text

rgLegalNotice

Title Page component legal notice section

rgListStyle

Specifies the style of lists generated by the List component.

rgListTitle

The List component title

rgListTitleNumber

The List component title number

rgListTitlePrefix

The List component title prefix

rgListTitleText

The List component title text

rgParagraph

Paragraph component text

rgParagraphTitle

Paragraph component title

rgProgramListing

Code generated by:

  • Text component with Show text as syntax highlighted MATLAB code option is selected

  • MATLAB Function Block component

  • Truth Table component

rgPubDate

Title page report creation date

rgPubDatePrefix

Title page report creation date prefix

rgSect1Title

Section title for first-level section in a chapter

rgSect1TitleNumber

Number for Section title for first-level section in a chapter

rgSect1TitlePrefix

Prefix for Section title for first-level section in a chapter

rgSect1TitleText

Text for Section title for first-level section in a chapter

rgSect2Title

Section title for second-level section in a chapter

rgSect2TitleNumber

Number for Section title for second-level section in a chapter

rgSect2TitlePrefix

Prefix for Section title for second-level section in a chapter

rgSect2TitleText

Text for Section title for second-level section in a chapter

rgSect3Title

Section title for third-level section in a chapter

rgSect3TitleNumber

Number for Section title for third-level section in a chapter

rgSect3TitlePrefix

Prefix for Section title for third-level section in a chapter

rgSect3TitleText

Text for Section title for third-level section in a chapter

rgSect4Title

Section title for fourth-level section in a chapter

rgSect4TitleNumber

Number for Section title for fourth-level section in a chapter

rgSect4TitlePrefix

Prefix for Section title for fourth-level section in a chapter

rgSect4TitleText

Text for Section title for fourth-level section in a chapter

rgSect5Title

Section title for fifth-level section in a chapter

rgSect5TitleNumber

Number for Section title for fifth-level section in a chapter

rgSect5TitlePrefix

Prefix for Section title for fifth-level section in a chapter

rgSect5TitleText

Text for Section title for fifth-level section in a chapter

rgSubTitle

Title Page component subtitle

rgTable

Table content

rgTableTitle

Table title

rgTableTitleNumber

Table title number

rgTableTitlePrefix

Table title prefix

rgTableTitleText

Table title text

rgTitle

Title Page component front page title abstract, and legal notice section

rgTitleVerso

Title Page component back page title abstract, and legal notice section

rgTOCSection

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 TemplateReport Explorer Components the Part Template Formats

rgRectoTitlePage

Title Page

Front title page contents, including the report title, subtitle, author, and an image.

rgVersoTitlePage

Title Page

Back title page contents, including the date published, copyright, legal notice, and abstract.

rgTOCSectionTitle

The table of contents automatically generated for Word and PDF.

rgChapter

Chapter/Section

Chapter (top-level section), including the title (prefix, such as Chapter, number, and title) and for the content.

rgSect1Title

rgSect2Title

rgSect3Title

rgSect4Title

rgSect5Title

Chapter/Section

Title for a section (sections below the chapter level). The title can include a prefix (such as Chapter), number, and title.

rgListTitle

List

Title of the list.

rgTableTitle

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.

rgFigureTitle

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

More About