[英]Include blockquote in rmarkdown ioslides
I would like to include a blockquote
in an RMarkdown ioslides
presentation but the RMarkdown syntax for blockquote
doesn't seem to work for ioslides_presentation
output. 我想在RMarkdown ioslides
演示文稿中包含一个blockquote
,但是blockquote
的RMarkdown语法似乎不适用于ioslides_presentation
输出。
This is my code: 这是我的代码:
---
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
Here is a screenshot of my output. 这是我输出的屏幕截图。
Thanks for your help! 谢谢你的帮助!
I've only now stumbled across your post from 1.5 years ago, with a similar requirement/question (how to get blockquotes in an ioslides
presentation). 我现在只是偶然发现了1。5年前你的帖子,有类似的要求/问题(如何在ioslides
演示文稿中获得blockquotes)。
For what it's (still) worth, here's what I've come up with. 对于它(仍然)的价值,这就是我想出的。
First we add a custom blockquote
style to the CSS file (adapted from here ): 首先,我们为CSS文件添加自定义blockquote
样式(从此处改编):
blockquote {
background: #f9f9f9;
border-left: 5px solid #ccc;
margin: 1.5em 10px;
padding: 0.5em 1.5em;
}
Then assuming styles.css
is the CSS file containing above blockquote
styling 然后假设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>
produces 产生
Or slightly more concise (thanks to @KonradRudolph), we can use the usual >
syntax with the custom CSS 或者稍微简洁一些(感谢@KonradRudolph),我们可以使用通常的>
语法和自定义CSS
> Every project you work on, always at least have one collaborator, and that's future you.
> Hadley Wickham, chief scientist at RStudio
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.