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 ⁠#<<⁠ comments or starting with *), non-highlighted lines are muted and the highlighted line is full opacity.

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

Examples

use_extra_styles()


[Package xaringanExtra version 0.8.0 Index]