fit_screen: Fit Slides to the Screen

fit_screenR Documentation

Fit Slides to the Screen

Description

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.

Usage

use_fit_screen()

html_dependency_fit_screen()

Value

Anhtmltools::tagList() with the fit-to-screen dependency, or an htmltools::htmlDependency().

Functions

  • 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().

Usage

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.

Examples

use_fit_screen()


xaringanExtra documentation built on May 29, 2024, 4:17 a.m.