2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

R の Xaringan でスクロールできるようにする方法

Last updated at Posted at 2023-01-20

Xaringan でスライドのスクロールができるようにする方法

  1. libs\remark-css-0.0.1 (Xaringan テンプレートで Rmarkdown を作成した場所に自動的に作られる) に入ってある CSSファイルをRディレクトリ(Rmarkdown のファイルがあるところ)にコピペする

  2. CSSファイルを開き、以下のコードをコピペ、保存し、適当に名前を付ける (今回は "Scrollable.css")

    • .remark-slide-scaler {
      overflow-y: auto;
      }
  3. タイトルにある lib_dir: libs を削除する
    image.png

  4. 代わりに、以下のようにCSSを指定する
    image.png

これでスクロールが可能になります(スライド内容がはみ出してしまう場合)。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?