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