我正在使用rmarkdown在RStudio中进行投影仪演示。我想在演示文稿的顶部放上幻灯片行情自动收录器。德累斯顿主题应该支持这些滚动字幕德累斯顿
那么有可能通过使用rmarkdown来获得那些股票行情吗?当我编织pdf时,我得到的演示文稿没有幻灯片代码。
示例代码:
---
title: "Example"
output: beamer_presentation
theme: Dresden
---
# R Markdown
This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.
# Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
# Slide with R Code and Output
```{r}
summary(cars)
```
# Slide with Plot
```{r, echo=FALSE}
plot(cars)
```
我认为slide_level
选项可能是您要寻找的:
slide_level选项定义了定义单个幻灯片的标题级别。默认情况下,这是层次结构中的最高标题级别,紧随其后的是内容,而不是文档中某处的另一个标题。通过指定显式的slide_level文档来源,可以覆盖此默认值
例如slide_level: 2
:
---
title: "Example"
output:
beamer_presentation:
slide_level: 2
theme: Dresden
---
给你以下输出
但是,您需要为幻灯片标题提供较低级别的标题,例如
# R Markdown
## Description
This is an R Markdown presentation. Markdown is a simple formatting
syntax for authoring HTML, PDF, and MS Word documents. For more
details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that
includes both content as well as the output of any embedded R code
chunks within the document.
编辑若要获得与所附图像相同的输出,请按以下方式对演示文稿进行分割:
---
title: "Example"
output:
beamer_presentation:
slide_level: 3
theme: Dresden
---
# Section 1
## Subsection 1
### Title A
### Title B
## Subsection 2
### Title A
## Subsection 3
### Title A
### Title B
### Title C
# Section 2
## Subsection 1
### Title A
### Title B
并生成以下演示文稿标题:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句