【发布时间】:2018-02-09 23:19:35
【问题描述】:
是否可以使用 knitr 幻灯片制作长功能的垂直滚动条(使用 xaringan 自定义样式)?我根据上一个问题How to make vertical scrollbar appear in RMarkdown code chunks (html view) 尝试了一些选项,但不知道如何仅针对长功能(高度超出框架)执行此操作。任何建议都非常受欢迎。
---
title: "title"
subtitle: "subtitle"
author: "author"
date: "2017"
output:
xaringan::moon_reader:
lib_dir: libs
css: ["default", "style.css"]
nature:
highlightStyle: zenburn
highlightLines: true
countIncrementalSlides: false
---
```{r , echo=FALSE, include=FALSE}
library(knitr)
opts_chunk$set(fig.align='center', message=TRUE, error=TRUE, warning=TRUE, tidy=TRUE, comment = "##", echo = TRUE, dev='svg')
options(width=65)
```
```{r}
fu <- function(x){
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
}
```
【问题讨论】:
标签: css knitr r-markdown remarkjs xaringan