gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:23:43 30 4
gpt4 key购买 nike

这如何在 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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com