7

我想blockquote在 RMarkdownioslides演示文稿中包含 a 但 RMarkdown 语法blockquote似乎不适用于ioslides_presentation输出。

这是我的代码:

---
title: "La recherche reproductible"
date: '2017-08-06'
output: 
  ioslides_presentation:
    css: style_presentation.css
---

## First slide 

> Every project you work on, always at least have one collaborator, and that's future you.
Hadley Wickham, chief scientist at RStudio

这是我的输出的屏幕截图。在此处输入图像描述

谢谢你的帮助!

4

1 回答 1

4

我现在才偶然发现你 1.5 年前的帖子,有类似的要求/问题(如何在ioslides演示文稿中获得块引用)。

对于它的(仍然)价值,这就是我想出的。

首先,我们blockquote向 CSS 文件添加自定义样式(改编自此处):

blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 1.5em;
}

然后假设styles.css是包含上述blockquote样式的 CSS 文件

---
title: "La recherche reproductible"
date: '2017-08-06'
output:
  ioslides_presentation:
    css: styles.css
---

## First slide

<blockquote>
Every project you work on, always at least have one collaborator, and that's future you.
Hadley Wickham, chief scientist at RStudio
</blockquote>

生产

在此处输入图像描述

或者稍微简洁一点(感谢@KonradRudolph),我们可以使用>自定义 CSS 的常用语法

> Every project you work on, always at least have one collaborator, and that's future you.
> Hadley Wickham, chief scientist at RStudio
于 2019-04-12T08:20:03.277 回答