Presentations
HistoryVersion 1 (current)
The first version: all of its text is new.
| 1 | # Presentations | |
| 2 | ||
| 3 | [[!style]]{theme=beamer aspect=16:9} | |
| 4 | ||
| 5 | 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. | |
| 6 | ||
| 7 | [[!notes]] | |
| 8 | 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**. | |
| 9 | [[/notes]] | |
| 10 | ||
| 11 | ## Slides | |
| 12 | ||
| 13 | - A `##` heading starts the next slide, and is its title; a `#` heading makes a title slide, like this deck's first. | |
| 14 | - A `###` heading is a heading on its slide, and `---` a rule. | |
| 15 | - `[[!notes]]`, the notes, then `[[/notes]]` hold what only the speaker sees. | |
| 16 | - Everything a page shows, a slide shows: tables, code, formulas, diagrams. | |
| 17 | ||
| 18 | [[!notes]] | |
| 19 | Mention that a presentation with no `##` heading is one slide. | |
| 20 | [[/notes]] | |
| 21 | ||
| 22 | ## Formulas | |
| 23 | ||
| 24 | Euler's identity, $e^{i\pi} + 1 = 0$, set by KaTeX, and on its own: | |
| 25 | ||
| 26 | $$ | |
| 27 | \int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi} | |
| 28 | $$ | |
| 29 | ||
| 30 | [[!notes]] | |
| 31 | The macros a page defines hold on every slide after the one that defines them. | |
| 32 | [[/notes]] | |
| 33 | ||
| 34 | ## A diagram | |
| 35 | ||
| 36 | ```mermaid | |
| 37 | flowchart LR | |
| 38 | page[A presentation] -->|## headings| slides[Slides] | |
| 39 | slides --> screen[Full screen] | |
| 40 | slides --> paper[Print to PDF] | |
| 41 | ``` | |
| 42 | ||
| 43 | ## Code | |
| 44 | ||
| 45 | ```haskell | |
| 46 | -- A deck is a presentation's Markdown, cut at its headings. | |
| 47 | deckOf :: [Block] -> Deck | |
| 48 | ``` | |
| 49 | ||
| 50 | ## Presenting | |
| 51 | ||
| 52 | | Key | What it does | | |
| 53 | | --- | --- | | |
| 54 | | β Space PageDown | the next step, then the next slide | | |
| 55 | | β PageUp | back a step, or to the slide before | | |
| 56 | | Home End | the first and the last | | |
| 57 | | f | full screen (Escape leaves it) | | |
| 58 | | n | the speaker's notes | | |
| 59 | | o | every slide, to pick one | | |
| 60 | ||
| 61 | On a touch screen, swipe. **Print** puts one slide on each page: choose "Save as PDF" to keep the deck as a file. | |
| 62 | ||
| 63 | ## Steps | |
| 64 | ||
| 65 | 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. | |
| 66 | ||
| 67 | [[!pause]] | |
| 68 | ||
| 69 | Like this line, which waited for you. β hides it again. | |
| 70 | ||
| 71 | [[!pause]] | |
| 72 | ||
| 73 | 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. | |
| 74 | ||
| 75 | [[!notes]] | |
| 76 | A pause is pandoc's in an export, so the Beamer export shows the same steps. | |
| 77 | [[/notes]] | |
| 78 | ||
| 79 | ## One item at a time | |
| 80 | ||
| 81 | A list between `[[!incremental]]` and `[[/incremental]]`, or after a line `{.incremental}`, shows its items one by one: | |
| 82 | ||
| 83 | [[!incremental]] | |
| 84 | - each press of β or Space shows the next item; | |
| 85 | - the items of nested lists come in their turn; | |
| 86 | - off the slides, it is an ordinary list. | |
| 87 | [[/incremental]] | |
| 88 | ||
| 89 | ## Themes | |
| 90 | ||
| 91 | A `[[!style]]` line at the top level of the page says how the slides look: | |
| 92 | ||
| 93 | ```markdown | |
| 94 | [[!style]]{theme=dark aspect=4:3} | |
| 95 | ``` | |
| 96 | ||
| 97 | Themes are `beamer` (the default), `light` and `dark`; slides are `16:9` (the default) or `4:3`. | |
| 98 | ||
| 99 | [^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. |