Reputation: 6416
Is there any way to change RMarkdown slides to higher resolution? The previous question (RMarkdown ioslides presentation in HD) was about "zooming" the slides.
I'm more concerned about the size of images in the presentation. In default, it's possible to use image with height up to about 600px.
How change the default resolution of Markdown slides and therefore use images in a higher resolution?
Upvotes: 0
Views: 715
Reputation: 8822
Yes, you can do this using custom CSS.
First, create a CSS file in the same directory as your presentation, say "bigslides.css", with this content (adjust slide size to taste):
body slides > slide
{
height: 900px;
width: 900px;
margin-top: -450px; /* half of height */
}
Then, in your document's YAML header, add the CSS file:
---
...
output:
ioslides_presentation:
css: bigslides.css
---
You may have to adjust a few other CSS classes as well to get the effect you're after, but once you've got the above set up it should be as simple as adding rules to your CSS file.
Upvotes: 1