report_section
report_section(doc, title, layout='Section Header', master=None)Add a section-divider slide.
A one-line section break: a slide on the template’s “Section Header” layout, falling back to a plain titled slide when the template has none. Use a short, single-word label (“DEMOGRAPHICS”, “RATINGS”, “APPENDIX”) to chapter a deck.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| doc | pptx.Presentation or docx.Document | A document from report_new(). |
required |
| title | str | Section label. | required |
| layout | str | Section layout name. Default “Section Header”. | 'Section Header' |
| master | str | Master name. | None |
Returns
| Name | Type | Description |
|---|---|---|
| pptx.Presentation or docx.Document | The document. |
See Also
report_slide, report_title_slide
Examples
>>> doc = report_section(report_new("pptx"), "DEMOGRAPHICS")