How to include left side image and right side text for rmarkdown presentation

How can this be done in Markdown?

I am using ray view in Rmarkdown and I need an image on the left side of the slide and text on the right side of the slide.

Basically what it does: https://tex.stackexchange.com/questions/165475/figure-next-to-text-in-beamer

But not latex for Markdown.

+3


source to share


1 answer


Use the package 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

+5


source







All Articles