|
| 1 | + |
| 2 | +# xaringanExtra |
| 3 | + |
| 4 | +<!-- badges: start --> |
| 5 | +<!-- badges: end --> |
| 6 | + |
| 7 | +<!-- Links --> |
| 8 | +[xaringan]: https://slides.yihuie.name/xaringan |
| 9 | + |
| 10 | +`xaringanExtra` is a playground of enhancements and addins for [xaringan] slides. |
| 11 | + |
| 12 | +## Installation |
| 13 | + |
| 14 | +You can install the current version of xaringanExtra from GitHub. |
| 15 | + |
| 16 | +``` r |
| 17 | +# install.packages("devtools") |
| 18 | +devtools::install_github("gadenbuie/xaringanExtra") |
| 19 | +``` |
| 20 | + |
| 21 | +## 🗺 Tile View |
| 22 | + |
| 23 | +#### 📺 [Tile View Demo](https://gadenbuie.github.io/xaringanExtra/tile-view) |
| 24 | + |
| 25 | +Tile view gives you a way to quickly jump between slides. |
| 26 | +Just press <kbd>T</kbd> at any point in your slideshow and the tile view appears. |
| 27 | +Click on a slide to jump to the slide, or press <kbd>T</kbd> to exit tile view. |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +To add tile view to your xaringan presentation, |
| 32 | +add the following code chunk to your slides' R Markdown file. |
| 33 | + |
| 34 | +````markdown |
| 35 | +```{r xaringan-tile-view, echo=FALSE} |
| 36 | +xaringanExtra::xaringan_tile_view() |
| 37 | +``` |
| 38 | +```` |
| 39 | + |
| 40 | +Tile view is heavily inspired by |
| 41 | +(and is essentially a port to Vanilla JavaScript of) |
| 42 | +[a jQuery remarkjs hook](https://github.com/StephenHesperus/remark-hook/) |
| 43 | +by the same name by [Stephen Hesperus](https://github.com/StephenHesperus). |
| 44 | + |
| 45 | +## 🔊 Slide Tone |
| 46 | + |
| 47 | +#### 📺 [Slide Tone Demo](https://gadenbuie.github.io/xaringanExtra/slide-tone) |
| 48 | + |
| 49 | +Slide tone plays a subtle sound when you change slides. |
| 50 | +It was |
| 51 | +[requested by a blind R user](https://github.com/yihui/xaringan/issues/214) |
| 52 | +and enables users to hear an auditory signal of their progress through the slides. |
| 53 | + |
| 54 | +The tones increase in pitch for each slide from a low C to a high C note. |
| 55 | +The tone pitch stays the same for incremental slides. |
| 56 | + |
| 57 | +Visit the |
| 58 | +[slide tone demo slides](https://gadenbuie.github.io/xaringanExtra/slide-tone) |
| 59 | +to experience it yourself. |
| 60 | +Or include slide tone in your next xaringan presentation |
| 61 | +by adding the following code chunk to your slides' R Markdown. |
| 62 | + |
| 63 | +````markdown |
| 64 | +```{r xaringan-slide-tone, echo=FALSE} |
| 65 | +xaringanExtra::xaringan_slide_tone() |
| 66 | +``` |
| 67 | +```` |
0 commit comments