| JJ Allaire | d708ef0 | 2016-01-30 14:30:26 -0500 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| junkka | d4b3a16 | 2015-03-16 07:49:11 +0100 | [diff] [blame] | 2 | % Please edit documentation in R/revealjs_presentation.R |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 3 | \name{revealjs_presentation} |
| 4 | \alias{revealjs_presentation} |
| 5 | \title{Convert to a reveal.js presentation} |
| 6 | \usage{ |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 7 | revealjs_presentation( |
| 8 | incremental = FALSE, |
| 9 | center = FALSE, |
| 10 | slide_level = 2, |
| Christophe Dervieux | aa008e4 | 2021-09-23 16:52:37 +0200 | [diff] [blame] | 11 | toc = FALSE, |
| 12 | toc_depth = 3, |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 13 | fig_width = 8, |
| 14 | fig_height = 6, |
| 15 | fig_retina = if (!fig_caption) 2, |
| 16 | fig_caption = FALSE, |
| Marc Kupietz | f667b98 | 2026-08-08 17:16:28 +0200 | [diff] [blame] | 17 | self_contained = FALSE, |
| 18 | theme = "ids", |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 19 | transition = "convex", |
| 20 | background_transition = "fade", |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 21 | reveal_options = NULL, |
| Marc Kupietz | 03dbc5d | 2026-08-21 15:44:25 +0200 | [diff] [blame] | 22 | reveal_plugins = c("notes", "search", "menu", "zoom"), |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 23 | highlight = "default", |
| Marc Kupietz | 725acd1 | 2026-08-28 14:03:21 +0300 | [diff] [blame] | 24 | df_print = "kable", |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 25 | mathjax = "default", |
| 26 | template = "default", |
| 27 | css = NULL, |
| 28 | includes = NULL, |
| 29 | keep_md = FALSE, |
| 30 | lib_dir = NULL, |
| 31 | pandoc_args = NULL, |
| 32 | extra_dependencies = NULL, |
| 33 | md_extensions = NULL, |
| 34 | ... |
| 35 | ) |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 36 | } |
| 37 | \arguments{ |
| 38 | \item{incremental}{\code{TRUE} to render slide bullets incrementally. Note |
| 39 | that if you want to reverse the default incremental behavior for an |
| JJ Allaire | 2915275 | 2016-03-08 15:06:38 -0500 | [diff] [blame] | 40 | individual bullet you can precede it with \code{>}. For example: |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 41 | \emph{\verb{> - Bullet Text}}. See more in |
| 42 | \href{https://pandoc.org/MANUAL.html#incremental-lists}{Pandoc's Manual}} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 43 | |
| 44 | \item{center}{\code{TRUE} to vertically center content on slides} |
| 45 | |
| JJ Allaire | 4c17805 | 2016-01-30 19:35:39 -0500 | [diff] [blame] | 46 | \item{slide_level}{Level of heading to denote individual slides. If |
| 47 | \code{slide_level} is 2 (the default), a two-dimensional layout will be |
| 48 | produced, with level 1 headers building horizontally and level 2 headers |
| 49 | building vertically. It is not recommended that you use deeper nesting of |
| 50 | section levels with reveal.js.} |
| 51 | |
| Christophe Dervieux | aa008e4 | 2021-09-23 16:52:37 +0200 | [diff] [blame] | 52 | \item{toc}{\code{TRUE} to include a table of contents in the output (only |
| 53 | level 1 headers will be included in the table of contents).} |
| 54 | |
| 55 | \item{toc_depth}{Depth of headers to include in table of contents} |
| 56 | |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 57 | \item{fig_width}{Default width (in inches) for figures} |
| 58 | |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 59 | \item{fig_height}{Default height (in inches) for figures} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 60 | |
| JJ Allaire | 82a8dee | 2016-07-12 10:25:36 -0400 | [diff] [blame] | 61 | \item{fig_retina}{Scaling to perform for retina displays (defaults to 2, which |
| 62 | currently works for all widely used retina displays). Set to \code{NULL} to |
| 63 | prevent retina scaling. Note that this will always be \code{NULL} when |
| 64 | \code{keep_md} is specified (this is because \code{fig_retina} relies on |
| 65 | outputting HTML directly into the markdown document).} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 66 | |
| 67 | \item{fig_caption}{\code{TRUE} to render figures with captions} |
| 68 | |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 69 | \item{self_contained}{Whether to generate a full LaTeX document (\code{TRUE}) |
| 70 | or just the body of a LaTeX document (\code{FALSE}). Note the LaTeX |
| 71 | document is an intermediate file unless \code{keep_tex = TRUE}.} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 72 | |
| Marc Kupietz | 9fdf0f7 | 2026-08-28 07:04:25 +0300 | [diff] [blame] | 73 | \item{theme}{Visual theme. The dedicated IDS corporate design theme |
| 74 | ("ids") is the default and the only supported theme.} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 75 | |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 76 | \item{transition}{Slide transition ( |
| 77 | "convex", "fade", "slide", "concave", "zoom", or "none" |
| 78 | )} |
| junkka | d4b3a16 | 2015-03-16 07:49:11 +0100 | [diff] [blame] | 79 | |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 80 | \item{background_transition}{Slide background-transition ( |
| 81 | "convex", "fade", "slide", "concave", "zoom", or "none" |
| 82 | )} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 83 | |
| JJ Allaire | 35c0b49 | 2017-02-10 09:30:24 -0500 | [diff] [blame] | 84 | \item{reveal_options}{Additional options to specify for reveal.js (see |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 85 | \url{https://revealjs.com/config/} for details). Options for plugins can also |
| 86 | be passed, using plugin name as first level key (e.g \code{list(slideNumber = FALSE, menu = list(number = TRUE))}).} |
| JJ Allaire | 37f45b7 | 2016-01-30 18:17:45 -0500 | [diff] [blame] | 87 | |
| JJ Allaire | 35c0b49 | 2017-02-10 09:30:24 -0500 | [diff] [blame] | 88 | \item{reveal_plugins}{Reveal plugins to include. Available plugins include |
| Marc Kupietz | 03dbc5d | 2026-08-21 15:44:25 +0200 | [diff] [blame] | 89 | "notes", "search", "zoom", "chalkboard", and "menu". Defaults to |
| 90 | \code{c("notes", "search", "menu", "zoom")}; pass \code{NULL} to render without |
| 91 | any plugins. Note that \code{self_contained} must be set to \code{FALSE} in order |
| 92 | to use Reveal plugins.} |
| JJ Allaire | 82a8dee | 2016-07-12 10:25:36 -0400 | [diff] [blame] | 93 | |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 94 | \item{highlight}{Syntax highlighting style passed to Pandoc. |
| 95 | |
| 96 | Supported built-in styles include "default", "tango", "pygments", "kate", |
| 97 | "monochrome", "espresso", "zenburn", "haddock", and "breezedark". |
| 98 | |
| 99 | Two custom styles are also included, "arrow", an accessible color scheme, |
| 100 | and "rstudio", which mimics the default IDE theme. Alternatively, supply a |
| 101 | path to a \samp{.theme} file to use |
| 102 | \href{https://pandoc.org/MANUAL.html#syntax-highlighting}{a custom Pandoc |
| 103 | style}. Note that custom theme requires Pandoc 2.0+. |
| 104 | |
| 105 | Pass \code{NULL} to prevent syntax highlighting.} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 106 | |
| Marc Kupietz | 725acd1 | 2026-08-28 14:03:21 +0300 | [diff] [blame] | 107 | \item{df_print}{Method used to print data frames in the document. The |
| 108 | default, \code{"kable"}, renders data frames as plain HTML tables styled by |
| 109 | the presentation theme, so that results look reasonable on slides without |
| 110 | any extra code. Since \code{"kable"} prints all rows, consider showing only |
| 111 | \code{head(x)} on slides with many-rowed results. Other supported methods are |
| 112 | \code{"default"} (plain text output), \code{"tibble"}, and \code{"paged"} (an |
| 113 | interactive paged table, see \code{\link[rmarkdown:html_document]{rmarkdown::html_document()}}).} |
| 114 | |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 115 | \item{mathjax}{Include mathjax. The "default" option uses an https URL from a |
| 116 | MathJax CDN. The "local" option uses a local version of MathJax (which is |
| 117 | copied into the output directory). You can pass an alternate URL or pass |
| 118 | \code{NULL} to exclude MathJax entirely.} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 119 | |
| JJ Allaire | 4c17805 | 2016-01-30 19:35:39 -0500 | [diff] [blame] | 120 | \item{template}{Pandoc template to use for rendering. Pass "default" to use |
| 121 | the rmarkdown package default template; pass \code{NULL} to use pandoc's |
| 122 | built-in template; pass a path to use a custom template that you've |
| 123 | created. Note that if you don't use the "default" template then some |
| 124 | features of \code{revealjs_presentation} won't be available (see the |
| 125 | Templates section below for more details).} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 126 | |
| Christophe Dervieux | 21239cf | 2021-09-15 15:34:01 +0200 | [diff] [blame] | 127 | \item{css}{CSS and/or Sass files to include. Files with an extension of .sass |
| 128 | or .scss are compiled to CSS via \code{sass::sass()}. Also, if \code{theme} is a |
| 129 | \code{\link[bslib:bs_theme]{bslib::bs_theme()}} object, Sass code may reference the relevant Bootstrap |
| 130 | Sass variables, functions, mixins, etc.} |
| JJ Allaire | fad5523 | 2015-10-19 07:47:26 -0400 | [diff] [blame] | 131 | |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 132 | \item{includes}{Named list of additional content to include within the |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 133 | document (typically created using the \code{\link[rmarkdown]{includes}} function).} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 134 | |
| 135 | \item{keep_md}{Keep the markdown file generated by knitting.} |
| 136 | |
| 137 | \item{lib_dir}{Directory to copy dependent HTML libraries (e.g. jquery, |
| JJ Allaire | 091cb12 | 2016-02-09 13:04:23 -0500 | [diff] [blame] | 138 | bootstrap, etc.) into. By default this will be the name of the document with |
| Marc Kupietz | f667b98 | 2026-08-08 17:16:28 +0200 | [diff] [blame] | 139 | \verb{_files} appended to it.} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 140 | |
| 141 | \item{pandoc_args}{Additional command line options to pass to pandoc} |
| JJ Allaire | 8d1c2f4 | 2016-01-30 14:56:45 -0500 | [diff] [blame] | 142 | |
| JJ Allaire | 35c0b49 | 2017-02-10 09:30:24 -0500 | [diff] [blame] | 143 | \item{extra_dependencies}{Additional function arguments to pass to the base R |
| 144 | Markdown HTML output formatter \code{\link[rmarkdown:html_document_base]{rmarkdown::html_document_base()}}.} |
| JJ Allaire | 375805c | 2016-11-15 08:56:43 -0500 | [diff] [blame] | 145 | |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 146 | \item{md_extensions}{Markdown extensions to be added or removed from the |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 147 | default definition of R Markdown. See the \code{\link[rmarkdown]{rmarkdown_format}} for |
| Atsushi Yasumoto | 7053f45 | 2020-02-15 00:08:46 +0900 | [diff] [blame] | 148 | additional details.} |
| 149 | |
| JJ Allaire | 8d1c2f4 | 2016-01-30 14:56:45 -0500 | [diff] [blame] | 150 | \item{...}{Ignored} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 151 | } |
| 152 | \value{ |
| christophe dervieux | d26add3 | 2021-09-23 16:55:00 +0200 | [diff] [blame] | 153 | R Markdown output format to pass to \code{\link[rmarkdown:render]{rmarkdown::render()}} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 154 | } |
| 155 | \description{ |
| 156 | Format for converting from R Markdown to a reveal.js presentation. |
| 157 | } |
| 158 | \details{ |
| JJ Allaire | 4c17805 | 2016-01-30 19:35:39 -0500 | [diff] [blame] | 159 | In reveal.js presentations you can use level 1 or level 2 headers for slides. |
| 160 | If you use a mix of level 1 and level 2 headers then a two-dimensional layout |
| 161 | will be produced, with level 1 headers building horizontally and level 2 |
| 162 | headers building vertically. |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 163 | |
| JJ Allaire | 4c17805 | 2016-01-30 19:35:39 -0500 | [diff] [blame] | 164 | For additional documentation on using revealjs presentations see |
| christophe dervieux | d26add3 | 2021-09-23 16:55:00 +0200 | [diff] [blame] | 165 | \url{https://github.com/rstudio/revealjs} |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 166 | } |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 167 | \section{About plugins}{ |
| Marc Kupietz | b9a8cba | 2026-08-28 06:51:28 +0300 | [diff] [blame] | 168 | The plugins \code{notes}, \code{search}, \code{menu} and \code{zoom} are activated by default; |
| 169 | only \code{chalkboard} is opt-in. Setting \code{reveal_plugins} replaces the default |
| 170 | set -- pass \code{NULL} to render without any plugins. |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 171 | \subsection{Built-in plugins with reveal.js}{ |
| 172 | \subsection{Zoom}{ |
| 173 | |
| Marc Kupietz | b9a8cba | 2026-08-28 06:51:28 +0300 | [diff] [blame] | 174 | Activated by default: ALT + Click can be used to zoom on a slide. |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | \subsection{Notes}{ |
| 178 | |
| Marc Kupietz | b9a8cba | 2026-08-28 06:51:28 +0300 | [diff] [blame] | 179 | Activated by default: shows a \href{https://revealjs.com/speaker-view/}{speaker view} in a separated |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 180 | window. This speaker view contains a timer, current slide, next slide, and |
| 181 | speaker notes. It also duplicate the window to have presentation mode |
| 182 | synchronized with main presentation. |
| 183 | |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 184 | Use |
| 185 | |
| 186 | \if{html}{\out{<div class="sourceCode markdown">}}\preformatted{::: notes |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 187 | Content of speaker notes |
| 188 | ::: |
| 189 | }\if{html}{\out{</div>}} |
| 190 | |
| Marc Kupietz | 6b65c03 | 2026-08-25 09:43:28 +0300 | [diff] [blame] | 191 | to create notes only viewable in presentation mode. Notes placed before |
| 192 | the first heading are attached to the title slide. |
| 193 | |
| 194 | On mobile browsers (touch devices), a button next to the fullscreen |
| 195 | toggle overlays the current slide with its speaker notes (plus the slide |
| 196 | title and, if present, the planned time from a timing comment), which is |
| 197 | useful for practicing a talk on a phone or tablet. It follows along as |
| 198 | you change slides and only appears if the deck contains notes at all. |
| Marc Kupietz | eaaa2b4 | 2026-08-26 09:41:27 +0300 | [diff] [blame] | 199 | |
| Marc Kupietz | 010db0b | 2026-08-26 09:56:45 +0300 | [diff] [blame] | 200 | Pressing \code{r} -- or, on touch devices, tapping the list button next to |
| 201 | the speaker notes button -- toggles a transcript view: a single |
| 202 | scrollable page containing every slide's content and speaker notes. |
| 203 | Text-to-speech ("read aloud") browser extensions cannot walk a |
| 204 | reveal.js deck, since hidden slides are not part of the visible page |
| 205 | text -- the transcript gives them something they can read from start |
| 206 | to finish. |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 207 | } |
| 208 | |
| Marc Kupietz | b066e74 | 2026-08-23 09:57:06 +0300 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | \subsection{Slide timing}{ |
| 212 | |
| 213 | Speaker time can be planned per slide and per speaker by adding a comment |
| 214 | with a speaker code and the expected duration (in \code{MM:SS}, \code{HH:MM:SS}, or |
| 215 | plain seconds format) anywhere inside a slide: |
| 216 | |
| 217 | \if{html}{\out{<div class="sourceCode markdown">}}\preformatted{## My slide title |
| 218 | |
| 219 | Some content |
| 220 | |
| 221 | <!-- MK 00:30 --> |
| 222 | }\if{html}{\out{</div>}} |
| 223 | |
| 224 | This means Marc Kupietz will need 30 seconds for that slide. For talks |
| 225 | presented by a single speaker, the speaker code can be omitted: |
| Marc Kupietz | 6b65c03 | 2026-08-25 09:43:28 +0300 | [diff] [blame] | 226 | \verb{<!-- 00:30 -->}. Comments placed before the first heading are applied to |
| 227 | the title slide. |
| Marc Kupietz | b066e74 | 2026-08-23 09:57:06 +0300 | [diff] [blame] | 228 | |
| 229 | Typically you start from a known total time budget and adjust the |
| 230 | individual slides to it. You can set this budget yourself with the |
| 231 | reveal.js \code{totalTime} option (in seconds): |
| 232 | |
| 233 | \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: |
| 234 | revealjs.ids::revealjs_presentation: |
| 235 | reveal_options: |
| 236 | totalTime: 3600 # one hour |
| 237 | }\if{html}{\out{</div>}} |
| 238 | |
| 239 | During rendering, comments are converted into \code{data-timing} attributes on |
| 240 | the slides' \verb{<section>} elements (several speakers per slide are summed |
| 241 | up), and the calculated grand total is passed to reveal.js as the |
| 242 | \code{totalTime} config value. This activates the pacing timer in the |
| 243 | \href{https://revealjs.com/speaker-view/}{speaker view}, which shows how you |
| 244 | are doing relative to your plan. A summary of the total time per speaker |
| 245 | is printed during rendering. If the document sets \code{totalTime} or |
| 246 | \code{defaultTiming} itself (via \code{reveal_options}), those take precedence. |
| 247 | |
| 248 | The function \code{\link[=slide_timing]{slide_timing()}} computes these totals directly from an |
| 249 | \code{.Rmd} source file without rendering it. |
| Marc Kupietz | 4fc867c | 2026-08-25 10:30:18 +0300 | [diff] [blame] | 250 | } |
| 251 | |
| Marc Kupietz | de3ffa4 | 2026-08-30 13:47:57 +0300 | [diff] [blame^] | 252 | \subsection{Chapter numbering}{ |
| 253 | |
| 254 | Like in the old Google Docs slide workflow, chapter headings (\verb{#}) are |
| 255 | numbered automatically: the first chapter becomes "1. Introduction", the |
| 256 | second "2. Methods", and so on. References, appendix and thank-you |
| 257 | chapters (References/Literatur/Referenzen/Publikationen/ |
| 258 | Herausgeberschaften/Appendix/Anhang, and headings containing |
| 259 | "Thank you"/"Vielen Dank") keep their bare titles and are not counted. |
| 260 | Manually typed leading numbers (\verb{# 2. Methods}) are stripped before |
| 261 | renumbering, so decks migrated from the old pipeline and repeated |
| 262 | numbering runs stay stable. The numbers are added when the presentation |
| 263 | is opened: the menu plugin and the transcript view show them, too, and |
| 264 | the overview slide's table of contents uses them as its ordered list's |
| 265 | enumeration. Decks rendered with \code{slide_level = 1} (one \verb{#} heading per |
| 266 | slide) are left unnumbered -- there, headings denote slides, not |
| 267 | chapters. |
| 268 | } |
| 269 | |
| Marc Kupietz | 4fc867c | 2026-08-25 10:30:18 +0300 | [diff] [blame] | 270 | \subsection{Overview slides}{ |
| 271 | |
| 272 | Like in the original Google Docs slide workflow, a slide titled |
| 273 | "Overview" or "Überblick" is automatically turned into a table of |
| 274 | contents: its body content is replaced at presentation time with a |
| Marc Kupietz | de3ffa4 | 2026-08-30 13:47:57 +0300 | [diff] [blame^] | 275 | clickable, ordered list of all \verb{#} chapter headings, whose enumeration |
| 276 | repeats the chapter numbers. Adding |
| Marc Kupietz | 24057e5 | 2026-08-25 10:51:06 +0300 | [diff] [blame] | 277 | \code{{data-overview-subheadings=true}} to the heading also includes the |
| 278 | \verb{##} sub-headings below their chapters, laid out in two columns. |
| Marc Kupietz | de3ffa4 | 2026-08-30 13:47:57 +0300 | [diff] [blame^] | 279 | References, appendix and thank-you chapters (References/Literatur/ |
| 280 | Literaturverzeichnis/Referenzen/Publikationen/Herausgeberschaften/ |
| 281 | Appendix/Anhang, and headings containing "Thank you"/"Vielen Dank") are |
| 282 | left out, together with their sub-slides. |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 283 | \subsection{Search}{ |
| 284 | |
| Marc Kupietz | b9a8cba | 2026-08-28 06:51:28 +0300 | [diff] [blame] | 285 | Activated by default: pressing \code{CTRL + SHIFT + F} shows a search box. |
| 286 | It will search in the whole presentation, and highlight matched words. The |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 287 | matches will also be highlighted in overview mode (pressing ESC to see all |
| 288 | slides in one scrollable view) |
| 289 | } |
| 290 | |
| 291 | } |
| 292 | |
| 293 | \subsection{Menu}{ |
| 294 | |
| Marc Kupietz | b9a8cba | 2026-08-28 06:51:28 +0300 | [diff] [blame] | 295 | Activated by default: a slideout menu plugin for Reveal.js to quickly jump |
| 296 | to any slide by title. |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 297 | |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 298 | Version is |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 299 | currently used and documentation for configurations can be found at |
| 300 | \href{https://github.com/denehyg/reveal.js-menu/blob/2.1.0/README.md}{denehyg/reveal.js-menu} |
| 301 | \subsection{Known limitations}{ |
| 302 | |
| 303 | Some configurations cannot be modified in the current template: |
| 304 | \itemize{ |
| 305 | \item \code{loadIcons: false} the fontawesome icons are loaded by \pkg{rmarkdown} |
| 306 | when this plugin is used |
| 307 | \item \code{custom: false} |
| 308 | \item \code{themes: false} |
| 309 | \item \code{transitions: false} |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | } |
| 314 | |
| 315 | \subsection{Chalkboard}{ |
| 316 | |
| Marc Kupietz | b9a8cba | 2026-08-28 06:51:28 +0300 | [diff] [blame] | 317 | An opt-in plugin adding a chalkboard and slide annotation |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 318 | |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 319 | Version is |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 320 | currently used and documentation for configurations can be found at |
| Marc Kupietz | f667b98 | 2026-08-08 17:16:28 +0200 | [diff] [blame] | 321 | \href{https://github.com/rajgoel/reveal.js-plugins/tree/4.2.5/4.1.5/chalkboard}{rajgoel/reveal.js-plugins} |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 322 | |
| 323 | By default, chalkboard and annotations modes will be accessible using keyboard |
| 324 | shortcuts, respectively, pressing B, or pressing C. |
| Christophe Dervieux | 3778209 | 2023-03-24 17:36:16 +0100 | [diff] [blame] | 325 | In addition, buttons on the bottom left can be added by using the following |
| 326 | |
| 327 | \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{reveal_plugins: |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 328 | - chalkboard |
| 329 | reveal_options: |
| 330 | chalkboard: |
| 331 | toggleNotesButton: true |
| 332 | toggleChalkboardButton: true |
| 333 | }\if{html}{\out{</div>}} |
| 334 | } |
| Marc Kupietz | ad0f24b | 2026-08-23 10:09:05 +0300 | [diff] [blame] | 335 | |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 336 | \subsection{Title slide: QR code and additional logos}{ |
| 337 | |
| 338 | Three optional yaml entries personalise the title slide for external |
| 339 | audiences (ported from \pkg{posterdown.ids}): |
| 340 | \itemize{ |
| 341 | \item \verb{website: <url>} -- a linked QR code pointing to the URL is placed in |
| 342 | the top left of the title slide. Uses the \pkg{qrcode} package. |
| 343 | \item \verb{partner_logo: <path-or-url>} -- when a presentation is given by |
| 344 | authors from two institutions, the partner institution's logo is shown |
| 345 | next to the IDS logo, in the top right of every slide. |
| 346 | \item \verb{funder_logo: <path-or-url>} -- a funder logo (e.g. "Text+") is placed |
| 347 | in the bottom left of the title slide, opposite the Leibniz |
| 348 | Gemeinschaft membership logo. It is lifted above the footer band on |
| 349 | print (pdf) pages. |
| 350 | } |
| 351 | |
| 352 | Local logo files (svg, png, jpg, gif, webp) are embedded in the html as |
| 353 | data URIs, so they do not need to be shipped with the presentation; http |
| 354 | URLs are used as-is. A QR code anywhere else on a slide can be produced |
| 355 | with \code{\link[=qrlink]{qrlink()}} from inline R code. The navigation chrome (arrows, slide |
| 356 | number, menu button) is hidden on the title slide for a bare first |
| 357 | impression. |
| 358 | } |
| 359 | |
| Marc Kupietz | ad0f24b | 2026-08-23 10:09:05 +0300 | [diff] [blame] | 360 | \subsection{Bibliography and citations}{ |
| 361 | |
| 362 | Documents with a \verb{bibliography:} in their YAML header are formatted with |
| 363 | the bundled IDS citation style (\code{ids.csl}, based on the style developed |
| 364 | for ICLC-10 2023 in Mannheim) by default. To use a different style, |
| 365 | specify it as usual with \verb{csl:} in the YAML header. |
| 366 | } |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 367 | } |
| 368 | |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 369 | \examples{ |
| 370 | \dontrun{ |
| 371 | |
| 372 | library(rmarkdown) |
| Marc Kupietz | 03dbc5d | 2026-08-21 15:44:25 +0200 | [diff] [blame] | 373 | library(revealjs.ids) |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 374 | |
| 375 | # simple invocation |
| 376 | render("pres.Rmd", revealjs_presentation()) |
| 377 | |
| 378 | # specify an option for incremental rendering |
| 379 | render("pres.Rmd", revealjs_presentation(incremental = TRUE)) |
| 380 | } |
| JJ Allaire | d708ef0 | 2016-01-30 14:30:26 -0500 | [diff] [blame] | 381 | |
| JJ Allaire | 2ec4024 | 2014-09-15 09:18:39 -0400 | [diff] [blame] | 382 | } |