extra_styles: Add Extra CSS Styles

extra_stylesR 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

  • use_extra_styles(): Add the extra CSS styles to your slides

  • html_dependency_extra_styles(): Returns an htmltools::htmlDependency() with the extra styles dependencies. Most users will want to use use_extra_styles().

Examples

use_extra_styles()


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