fit_screen | R Documentation |
This extension resizes the slides to match the browser window height and width. In other words, the slides are maximized to match the screen size. The primary use case for this extension is for when you want to show your slides in split screen, for example when demonstrating code in RStudio or another window. To enable fit-to-screen, press Alt/Option + F during the slideshow. To disable, reload the slides.
use_fit_screen()
html_dependency_fit_screen()
Anhtmltools::tagList()
with the fit-to-screen dependency, or an
htmltools::htmlDependency()
.
use_fit_screen()
: Use the fit-to-screen extension in your xaringan slides.
html_dependency_fit_screen()
: Returns an htmltools::htmlDependency()
with the fit
screen dependencies. Most users will want to use use_fit_screen()
.
To enable fit-to-screen, add the following code chunk to your slides:
```{r xaringan-fit-screen, echo=FALSE} xaringanExtra::use_fit_screen() ```
And then press Alt/Option + F at any point during your slide show to enable the extension.
use_fit_screen()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.