Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

number

Class: mlreportgen.report.Section
Package: mlreportgen.report

Set section numbering

Syntax

number(report,numbering)

Description

number(report,numbering) indicates whether to include numbers before report section titles. Report sections are numbered consecutively by default.

Input Arguments

expand all

Report, specified as a report object. To create the report input, use mlreportgen.report.Report.

Choice to number report sections, specified as a logical. If numbering is true, the report sections are numbered consecutively. If numbering is false, numbers are not included for report sections. You can use the Numbered property of a section to override the numbering for that section.

Examples

Turn Off Section Numbering

import mlreportgen.report.*
import mlreportgen.dom.*
report = Report('My Report','pdf');
add(report,TitlePage('Title','My Report',...
     'Author','MathWorks'));
add(report,TableOfContents);
add(report,Chapter('Title','Boeing 747',...
     'Content','This report describes the Boeing 747.'));
mlreportgen.dom.KeepWithNext(1);
add(report,Section('Title','Image of Boeing 747',...
     'Content',Image(which('b747.jpg')),'Numbered',0));
close(report);
rptview(report);

Introduced in R2017b

Was this topic helpful?