User`s guide
12 Classes – Alphabetical List
12-232
open(d);
dp = DocumentPart(d,'ReportTOC');
append(d,dp);
Set the OutlineLevel property internally, so that there are four levels in the table of
contents.
for i = 1:4
% set internally the OutlineLevel property
append(d,Heading(i,'My Chapter'));
append(d,Paragraph('chapter content....'));
end
Use OutlineLevel to set the level of the Glossary paragraph to 1, so that the
paragraph appears at the top level of the table of contents. Display the report.
para = append(d,Paragraph('Glossary'));
para.Style = {OutlineLevel(1)};
close(d);
rptview(d.OutputPath,d.Type);
See Also
mlreportgen.dom.Heading | mlreportgen.dom.Paragraph
More About
• “Automatically Number Document Content”