Main Content

mlreportgen.report.Section.number

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

Set section numbering

Syntax

mlreportgen.report.Section.number(report,numbering)

Description

mlreportgen.report.Section.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 thereportinput, usemlreportgen.report.Report.

Choice to number report sections, specified as a logical. If numbering istrue, the report sections are numbered consecutively. If numbering isfalse, numbers are not included for report sections. You can use theNumberedproperty of a section to override the numbering for that section.

Examples

Turn Off Section Numbering

importmlreportgen.report.*importmlreportgen.dom.*rpt = Report('My Report','pdf'); add(rpt,TitlePage('Title','My Report',...'Author','MathWorks')); add(rpt,TableOfContents); add(rpt,Chapter('Title','Boeing 747',...'Content','This report describes the Boeing 747.')); mlreportgen.dom.KeepWithNext(1); add(rpt,Section('Title',“波音747的形象”,...'Content',Image(which('b747.jpg')),'Numbered',0)); close(rpt); rptview(rpt);
Introduced in R2017b