WikiAdministration

Presentations

Markdown source
Back
# Presentations

[[!style]]{theme=beamer aspect=16:9}

A presentation is a kind of page: **New page** offers it beside a document. Press **Present** above the page: this one is a presentation, and its slides tell you how it is written.

[[!notes]]
These are the speaker's notes: on the page they are a box like this one; on the slides they are hidden until you press **n**.
[[/notes]]

## Slides

- A `##` heading starts the next slide, and is its title; a `#` heading makes a title slide, like this deck's first.
- A `###` heading is a heading on its slide, and `---` a rule.
- `[[!notes]]`, the notes, then `[[/notes]]` hold what only the speaker sees.
- Everything a page shows, a slide shows: tables, code, formulas, diagrams.

[[!notes]]
Mention that a presentation with no `##` heading is one slide.
[[/notes]]

## Formulas

Euler's identity, $e^{i\pi} + 1 = 0$, set by KaTeX, and on its own:

$$
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
$$

[[!notes]]
The macros a page defines hold on every slide after the one that defines them.
[[/notes]]

## A diagram

```mermaid
flowchart LR
  page[A presentation] -->|## headings| slides[Slides]
  slides --> screen[Full screen]
  slides --> paper[Print to PDF]
```

## Code

```haskell
-- A deck is a presentation's Markdown, cut at its headings.
deckOf :: [Block] -> Deck
```

## Presenting

| Key | What it does |
| --- | --- |
| β†’ Space PageDown | the next step, then the next slide |
| ← PageUp | back a step, or to the slide before |
| Home End | the first and the last |
| f | full screen (Escape leaves it) |
| n | the speaker's notes |
| o | every slide, to pick one |

On a touch screen, swipe. **Print** puts one slide on each page: choose "Save as PDF" to keep the deck as a file.

## Steps

A slide can show its content a step at a time.[^steps] `[[!pause]]`, on a line of its own, is a pause: what follows waits for the next press of β†’ or Space.

[[!pause]]

Like this line, which waited for you. ← hides it again.

[[!pause]]

On the page itself a pause shows nothing. Printed, each slide is whole, unless you tick "each step on its own page"; a Beamer PDF has a page for each step.

[[!notes]]
A pause is pandoc's in an export, so the Beamer export shows the same steps.
[[/notes]]

## One item at a time

A list between `[[!incremental]]` and `[[/incremental]]`, or after a line `{.incremental}`, shows its items one by one:

[[!incremental]]
- each press of β†’ or Space shows the next item;
- the items of nested lists come in their turn;
- off the slides, it is an ordinary list.
[[/incremental]]

## Themes

A `[[!style]]` line at the top level of the page says how the slides look:

```markdown
[[!style]]{theme=dark aspect=4:3}
```

Themes are `beamer` (the default), `light` and `dark`; slides are `16:9` (the default) or `4:3`.

[^steps]: A footnote is shown from the step of the text that refers to it: this one from the first, a footnote after a pause with what follows the pause.

What a page can hold