Rmarkdown Beamer 16:9 aspect ratio
Asked Answered
E

1

22

How to set the aspect ratio of beamer slides created using Rmarkdown in Rstudio to 16:9? It does not seem to be a standard option. I tried changing the \documentclass{} options using a header.tex insert but this was not successful.

Emmalineemmalyn answered 9/3, 2017 at 11:36 Comment(3)
Have you read this: #34814600Occlusion
No I did not. Thanks for pointing me to it! After reading it, I tried classoption: aspectratio=169. This did not result in an error but also not in a 16:9 presentationEmmalineemmalyn
Show us your YAML header.Occlusion
M
35

Put the option in double quotes:

output: 
  beamer_presentation:
classoption: "aspectratio=169"

Notice that classoption keyword is at the same level with output.

  • pandoc 1.19
  • texlive 2015
  • knitr 1.17
  • rmarkdown 1.6
Moolah answered 22/9, 2017 at 1:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.