简体   繁体   English

R 中的两列幻灯片 slidy_presentation

[英]Two-column slide in R slidy_presentation

I'm used to making two column slides in R ioslides_presentation documents, but I can't find any method that works to split a slide into two columns using R slidy_presentations which I'm trying for the first time after having used ioslides, beamer, and Rpres.我习惯在 R ioslides_presentation 文档中制作两列幻灯片,但我找不到任何可以使用 R slidy_presentations 将幻灯片分成两列的方法,这是我第一次尝试使用 ioslides 后,和Rpres。 There must be a way?一定有办法吗?

It was easier than I realized - taking the column information from the slidify customization page , rather than creating a column layout file, simply adding这比我意识到的要容易 - 从slidify 自定义页面获取列信息,而不是创建列布局文件,只需添加

<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>

to the slide in my slidy_presentation markdown file worked perfectly.到我的 slidy_presentation markdown 文件中的幻灯片完美运行。

May be the following solution is simpler:可能是以下解决方案更简单:


## Slide with 3 columns (2 or other)

::: columns

:::: {.column width=33%}
left
::::

:::: {.column width=33%}
middle
::::

:::: {.column width=33%}
right
::::

:::

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM