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.

3
  • 1
    Have you read this: stackoverflow.com/questions/34814100/…
    – J_F
    Mar 9, 2017 at 12:53
  • 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 presentation Mar 9, 2017 at 17:44
  • 1
    Show us your YAML header.
    – J_F
    Mar 9, 2017 at 18:20

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.