html - 如何在左侧包含图像并在右侧包含文本以进行 rmarkdown 演示

标签 html r markdown r-markdown beamer

这如何在 Markdown 中完成?

我在 Rmarkdown 中使用投影仪演示文稿,我想要幻灯片左侧的图像和幻灯片右侧的文本。

基本上,这是做什么的:https://tex.stackexchange.com/questions/165475/figure-next-to-text-in-beamer

但是对于 Markdown 不是 Latex。

最佳答案

使用 multicol包裹:

---
title: "Untitled"
author: "Martin"
date: "7/9/2017"
output: 
  beamer_presentation: 
    keep_tex: yes
header-includes:
  - \usepackage{multicol}
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```

## R Markdow

\begin{multicols}{2}

  \null \vfill
  \includegraphics[width=.3\textwidth]{unnamed.png}
  \vfill \null

\columnbreak

  \null \vfill
  \begin{itemize}
    \item Item 1
    \item Item 2
  \end{itemize}
  \vfill \null
\end{multicols}

enter image description here

关于html - 如何在左侧包含图像并在右侧包含文本以进行 rmarkdown 演示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44990903/

相关文章:

html - 如何将内容定位在布局的底部中心

javascript - CSS 转换仅不适用于 IOS

r - 从频率表创建密度

R,编织器和源函数: How to preserve source file comments for html report

javascript - 阻止 Gist MarkDown 角色相互干扰?

javascript - 如何更改IE8中TextNode的textContent?

html - 如何在 float 元素中创建可滚动元素?

r - dplyr - 根据条件从两个不同的数据帧中减去

markdown - 在 Jekyll 中使用渲染的 html(来自 markdown)创建部分

markdown - 在 html-div 内用 markdown 写文章(使用 zurb Foundation 5 和 jekyll)