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(
indicates whether to include numbers before report section titles. Report sections are
numbered consecutively by default.report
,numbering
)
Input Arguments
Examples
Turn Off Section Numbering
import mlreportgen.report.* import mlreportgen.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','Image of Boeing 747',... 'Content',Image(which('b747.jpg')),'Numbered',0)); close(rpt); rptview(rpt);
Version History
Introduced in R2017b