【发布时间】:2017-08-24 11:35:17
【问题描述】:
我是使用 R 包revealjs 使用 Reveal JS 和 R Markdown 创建演示文稿的新手,但我一直不知道如何减小标题字体大小。
我看到了这个答案: Changing the font size of figure captions in RMarkdown HTML output
还检查了: http://rmarkdown.rstudio.com/revealjs_presentation_format.html#custom_css
但不幸的是,我似乎遗漏了一些东西,而且它似乎不起作用! 任何人都可以提供任何帮助将不胜感激:)
这是我的 R Markdown:
---
title: "Cars"
author: "Me"
date: "24 August 2017"
output:
revealjs::revealjs_presentation:
fig_caption: yes
---
<style>
.reveal section p.caption {
font-size: 0.2em;
}
</style>
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
```{r,echo = FALSE, warning = FALSE,message=FALSE, fig.cap= "Cars"}
library(ggplot2)
data(mtcars)
g <- ggplot(mpg, aes(class))
g <- g + geom_bar()
print(g)
```
【问题讨论】: