Format and insert text into report
This component formats and inserts text into the report. It
must have the
Paragraph component as its parent.
Text to include in report: Specifies text to include in the report.
Style Name: Specifies the style to use with the text. To specify a style:
Set the report's File format to
one of the
from template options, for example,
PDF (from template).
Set Style Name to
In the Style Name text box, type a style name.
To take effect, the style you specify must be a paragraph (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 Report Conversion Templates.
In Microsoft® Word, paragraph styles and text styles applied using a named style can interact when you apply both to the same text. This interaction occurs for formatting properties that paragraphs and text have in common, such as bold, italic, and underline.
Suppose that you apply the paragraph style
a paragraph and that
MyStyle specifies bold formatting. Suppose
that you then apply a text style named
text in the paragraph. The text formatted with
the paragraph style bold off.
One way to make sure that the text is bold is to create a text style that does not use bold but has the other properties you want to apply to text in that type of paragraph.
You can enter
%<VariableName> in this
field (and in any field where the text appears blue) to include the
value of a variable from the base MATLAB® workspace. You cannot
enter more than one variable in
%<>. If you
enter an invalid variable name, the report includes the text
of the value of the variable.
Enter the following text:
I have a %<ObjName> and it has %<NumLeaves> leaves. The word '%<ObjName>' has %<size(ObjName)> letters.
Generate the report. It looks as follows:
I have a plant and it has 3 leaves. The word 'plant' has 5 letters.
Note: If you use the Style Name field to specify a style for this text component, 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.
Subscript: Formats text as a subscript, in a smaller font than the other text, set slightly below the other text.
Superscript: Formats text as a superscript, in a smaller font than the other text, set slightly above the other text.
Retain spaces and carriage returns: Formats the text in the report as you entered it.
Show text as syntax-highlighted MATLAB code: Shows the text as syntax-highlighted MATLAB code.
Color: Specifies the color of the text.
Select a color from a list of colors.
Enter an RGB (truecolor) value as #RRGGBB. For example,
a shade of blue.