extra_styles {xaringanExtra} | R Documentation |
Add Extra CSS Styles
Description
Adds CSS extras to your slides. You can select which extras you wish to add to your slides.
Usage
use_extra_styles(
hover_code_line = TRUE,
mute_unhighlighted_code = TRUE,
bundle_id = NULL
)
html_dependency_extra_styles(
hover_code_line = TRUE,
mute_unhighlighted_code = TRUE,
bundle_id = NULL
)
Arguments
hover_code_line |
Adds a hover effect for code chunks in your slides. Adds a floating pointer to the hovered line and makes the line bold. |
mute_unhighlighted_code |
On code chunks with highlights (added with
line-ending |
bundle_id |
Make the CSS bundle unique. Use this if your slides share a common resource directory and you want to include different CSS extras in different slides. |
Value
An htmltools::htmlDependency()
with the selected additional styles.
Functions
-
use_extra_styles()
: Add the extra CSS styles to your slides -
html_dependency_extra_styles()
: Returns anhtmltools::htmlDependency()
with the extra styles dependencies. Most users will want to useuse_extra_styles()
.
Examples
use_extra_styles()