getTitleReporter
Class: mlreportgen.report.TableOfContents
Namespace: mlreportgen.report
Get table of contents title reporter
Syntax
reporter = getTitleReporter(toc)
Description
Input Arguments
Output Arguments
Examples
Use Nondefault Table of Contents Title Style
Assume that you want a style for your table of contents title that differs from
the default. Before you run this example, create a template file named
MyTOCTemplate and customize its
TableOfContentsTitle style. Then, use the
getTitleReporter method and the
TemplateSrc property to use your
template.
import mlreportgen.report.* rpt = Report(); toc = TableOfContents(); toc.Title = "Report Contents" toc.Title = getTitleReporter(toc); toc.Title.TemplateSrc = "MyTOCTemplate"; add(rpt,toc)
Version History
Introduced in R2017b