Organizing long talks: the slide picker, the chapter bar, and tables of contents
Slides before the first chapter stay ungrouped. The toc block above lists the chapters, linked to their first slides.
| Setting | Effect |
|---|---|
chapters: false |
No chapters; flat picker, no bar, empty toc blocks |
chapter_bar: true |
Labeled bar on every slide; the current chapter fills slide by slide |
chapter_bar: bars |
Same, as thin tracks without labels |
chapter_bar: slides: section-breaks |
Bar only on section breaks |
chapter_bar: progress: chapters |
Whole-chapter states: done, current, upcoming |
chapter_bar: labels: false |
Tracks only, combinable with the keys above |
footer: section_break: |
Footer zones swapped on section breaks, e.g. a white logo |
| On a slide | Effect |
|---|---|
<!-- chapter: Title --> |
Start a chapter here, or rename a section break’s chapter |
<!-- chapter: none --> |
A section break that starts no chapter |
<!-- chapter-short: Label --> |
Shorter label in the chapter bar only |
<!-- chapter-bar: bars chapters --> |
Restyle this slide’s bar: labels/bars, slides/chapters |
<!-- chapter-bar: hide --> |
Hide the bar here (also the no-chapter-bar class) |
```toc block |
List the chapters; inside a chapter, highlight it |
Every section-break slide starts a chapter named after its heading.
Click the slide counter in the footer. Slides before the first chapter sit at the top, and each chapter is a collapsible group showing its slide range.
Only the chapter you are in starts open; click another to see its slides.
Any slide with the section-break layout starts a chapter named after its heading. The chapter runs until the next one starts.
This chapter’s section break also adds <!-- chapter-short: Picker -->, so the bar below reads “Picker” while the picker and table of contents keep “Part 1: The slide picker”.
This slide is marked chapter: none, so it stays inside Part 1. The picker, the bar, and the table of contents do not list it.
The section break above adds <!-- chapter: Chapter bar -->, which renames the chapter everywhere: the picker, the table of contents, and the bar.
Use chapter-short instead when only the bar needs a shorter name.
This deck sets chapter_bar: true. Finished chapters are shaded, the current chapter’s track fills as you advance through it, and later chapters stay empty.
Click a segment to jump to that chapter. Hover it to see the full title.
<!-- chapter-bar: bars --> drops the labels on this slide. Deck-wide, use chapter_bar: bars.
The footer lifts slightly to clear the tracks, and slides keep their full content height.
<!-- chapter-bar: chapters --> shows chapters instead of slides: finished chapters are dimmed, the current one is solid and bold, and upcoming ones stay empty.
Deck-wide, use progress: chapters under chapter_bar:.
<!-- chapter-bar: bars chapters -->: whole-chapter tracks without labels.
<!-- chapter-bar: hide -->, or the no-chapter-bar class, hides the bar on one slide. Title slides never show it.
A chapter-bar directive with any other value shows the bar on its slide even when the deck has no chapter_bar setting.
The section break before this slide shows whole-chapter progress. To show the bar only on section breaks, deck-wide:
chapter_bar:
slides: section-breaks
progress: chapters
Add chapter-short labels so no name is cut off.
Section breaks sit on the accent color, so this deck swaps in a white logo there:
footer:
left: "mark.svg"
section_break:
left: "mark-white.svg"
Any footer zone (left, center, right) can be overridden this way.
A chapter directive on an ordinary content slide starts a chapter too. Inside a chapter, a toc block highlights it, so repeating it makes an agenda slide.
Set numbered: false inside the block for a plain list.
data-chapter="N" on every slide in a chapter, and data-chapter-start on its first slidewindow.colloquium.chapters with each chapter’s title and slide rangetoc blocks