RStudio 无法正确呈现两列 powerpoint
RStudio not rendering two column powerpoint properly
我正在尝试使用 RStudio 创建一个 powerpoint 演示文稿,很接近 following these instructions. Though I'm missing something and the two columns configuration won't work. I'm using RStudio Server 1.2.5036
on a Ubuntu machine and also this rmarkdown::pandoc_version() [1] ‘2.3.1’
. The troubleshooting page 也没有帮助我。
我的代码几乎是教程页面的复制品,但可以肯定的是,它是:
---
title: "something"
author: "me"
date: "01/01/2020"
output:
ioslides_presentation: default
slidy_presentation: default
beamer_presentation: default
powerpoint_presentation: default
---
```{r setup, include=FALSE}
library("readxl")
my_data <- read_excel("data/my_data.xlsx")
```
## Intro
Loren Ipsun
## About the data
:::::::::::::: {.columns}
::: {.column}
```{r summary, echo = FALSE}
summary(my_data)
```
:::
::: {.column}
```{r boxplot, fig.height = 6, fig.width = 4, fig.align = "right"}
boxplot(my_data)
```
:::
::::::::::::::
它生成了三张幻灯片,内容正确,但栏目内容显示在彼此的下方。我是否漏掉了一些明显的东西?
非常感谢!
您的 Rmd 文件中有 4 种输出格式。如果你只包含 powerpoint
and/or beamer
你的针织文件应该根据需要用两列呈现。
如果您想使用 slidy_presentation
,您可以执行以下操作:
<div class='left' style='float:left;width:48%'>
code or image for left of slide
</div>
<div class='right' style='float:right;width:48%'>
code or image for right
</div>
如所述here or with a custom layout as described here。
对于 ioslides_presentation
,请参阅此 ,它很好地描述了使用 ioslides
在两列之间强制中断。 (同样,您可以像上面的 slidy_presentation
示例一样简单地添加 html
标签。)
我正在尝试使用 RStudio 创建一个 powerpoint 演示文稿,很接近 following these instructions. Though I'm missing something and the two columns configuration won't work. I'm using RStudio Server 1.2.5036
on a Ubuntu machine and also this rmarkdown::pandoc_version() [1] ‘2.3.1’
. The troubleshooting page 也没有帮助我。
我的代码几乎是教程页面的复制品,但可以肯定的是,它是:
---
title: "something"
author: "me"
date: "01/01/2020"
output:
ioslides_presentation: default
slidy_presentation: default
beamer_presentation: default
powerpoint_presentation: default
---
```{r setup, include=FALSE}
library("readxl")
my_data <- read_excel("data/my_data.xlsx")
```
## Intro
Loren Ipsun
## About the data
:::::::::::::: {.columns}
::: {.column}
```{r summary, echo = FALSE}
summary(my_data)
```
:::
::: {.column}
```{r boxplot, fig.height = 6, fig.width = 4, fig.align = "right"}
boxplot(my_data)
```
:::
::::::::::::::
它生成了三张幻灯片,内容正确,但栏目内容显示在彼此的下方。我是否漏掉了一些明显的东西?
非常感谢!
您的 Rmd 文件中有 4 种输出格式。如果你只包含 powerpoint
and/or beamer
你的针织文件应该根据需要用两列呈现。
如果您想使用 slidy_presentation
,您可以执行以下操作:
<div class='left' style='float:left;width:48%'>
code or image for left of slide
</div>
<div class='right' style='float:right;width:48%'>
code or image for right
</div>
如所述here or with a custom layout as described here。
对于 ioslides_presentation
,请参阅此 ioslides
在两列之间强制中断。 (同样,您可以像上面的 slidy_presentation
示例一样简单地添加 html
标签。)