Paragraph

Insert paragraph text into report

Description

This component inserts a paragraph into the report. The paragraph text is taken from a child text component, or from text that you enter in the Paragraph Text field.

Title Options

  • No paragraph title (default): Specifies no title for the paragraph.

  • Get title from first child: Gets the title of the paragraph from its first child component, which should be a Text component.

  • Custom title: Specifies a custom title for the paragraph.

Style Name

Specifies the style to use with the paragraph title. To specify a style, perform these steps.

  1. In the Report Options dialog box, set File format to one of these values:

    • Word (from template)

    • HTML (from template)

    • PDF (from template)

  2. In the Paragraph properties dialog box, set Title Options to one of these values:

    • Get title from first child

    • Custom title

  3. Set Style Name to Specify.

  4. In the Style Name text box, type a style name.

    To take effect, the style you specify must be a paragraph style (or a linked paragraph/character style for Word reports) defined in the template that you use to generate the report. For more information about template styles, see Create Custom Microsoft Word Report Templates and Create Custom HTML Report Templates.

Paragraph Text

Enter paragraph text into this field. If the Paragraph component has child components, the paragraph content is taken from the paragraph text and the child components; otherwise, the Paragraph component inserts text from this field. If the Paragraph component does not have any child components and you do not enter any text into this field, nothing appears in the report.

Use the %<VariableName> notation in this field if you want to insert the value of a variable from the MATLAB® workspace. For more details about this notation, see %<VariableName> Notation on the Text component reference page.

Style Name

Specifies the style to use with the paragraph text. To specify a style, perform these steps.

  1. In the Report Options dialog box, set File format to one of these values:

    • Word (from template)

    • HTML (from template)

    • PDF (from template)

  2. Set Style Name to Specify.

  3. In the Style Name text box, type a style name.

    To take effect, the style you specify must be a paragraph style (or a linked paragraph/character style for Word reports) defined in the template that you use to generate the report. For example, if you use a Word template that defines a Normal style, you can enter Normal as the style name. For more information about template styles, see Create Custom Microsoft Word Report Templates and Create Custom HTML Report Templates.

Style

    Note:   If you use the Style Name field to specify a style for the paragraph text, the style formats below override the corresponding formats specified in the style. For example, selecting Bold makes the text bold, even if the specified style specifies regular weight text.

  • Bold: Makes the text bold.

  • Italic: Makes the text italic.

  • Underline: Underlines the text.

  • Strikethrough: Strikes through the text.

  • Retain spaces and carriage returns: Formats text in the report in the same way as it is entered.

  • Show text as syntax-highlighted MATLAB code: Displays the text as syntax-highlighted MATLAB code.

  • Color: Specifies the color of the text.

    • Select a color from a list of colors.

    • Enter %<expr>.

    • Enter an RGB (truecolor) value as #RRGGBB. For example, #0000ff is a shade of blue.

Insert Anything into Report?

Yes, depending on child components.

Class

rptgen.cfr_paragraph

Was this topic helpful?