[Guide](https://komalang.org/guide/) · 5 of 8

# Pages and settings

Split the document into pages, and set a theme or a layout in a few lines.

## Start a second page

Put `+++` on a line of its own between pages. The first page needs no separator.

```koma
[title: Night at the library]
[subtitle: Friday · 7–10 pm]

+++

[title: Door to the reading room]
[subtitle: Second floor, east wing]
[main: Take the stairs beside the entrance.]
```

> Page 1: The title and time for Night at the library.
>
> Page 2: Directions to the reading room via the stairs beside the entrance.

## Set a theme or layout

Write document settings between `===` lines at the top. Page settings go between `---` lines, just after the page starts. Here they give the schedule its own section layout.

```koma
===
theme: default
===

[title: Night at the library]
[subtitle: Friday · 7–10 pm]

+++

---
layout: section
---

[title: Evening programme]
[subtitle: Two short talks, then the book swap]
```

> Page 1: The library notice uses the Default theme.
>
> Page 2: A section page titled Evening programme, with the subtitle Two short talks, then the book swap.

## Related rules

- [Page boundaries](https://komalang.org/spec/structure/#page-break)
- [Document settings](https://komalang.org/spec/structure/#deck-settings)

- [Page settings](https://komalang.org/spec/structure/#page-settings)
- [Page layouts](https://komalang.org/spec/structure/#layouts)

- [Choosing a theme](https://komalang.org/spec/styles/#theme-reference)
