有谁知道在生成 HTML 输出时如何在 RMarkdown 中强制执行子标题?
生成 pdf 时,标题中的以下指令允许子标题:
---
...
header-includes:
-\usepackage{subfig}
---
Run Code Online (Sandbox Code Playgroud)
这将像这样实现:
```{r fig.cap="My Caption", fig.subcap=c('First','Second')
base = ggplot(data=data.frame(x=0,y=0),aes(x,y)) + geom_point()
base + labs(title="1st Plot") #Print the first
base + labs(title="2nd Plot") #Print the second
```
Run Code Online (Sandbox Code Playgroud)
现在,当使用html输出生成相同的文档时,子标题将被忽略/省略....
生成 html 时是否有一些启用子标题的内容?