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.
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).
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):
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
---
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
> Every project you work on, always at least have one collaborator, and that's future you.
> Hadley Wickham, chief scientist at RStudio
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With