I'm using the command pandoc -t beamer in.md -o out.pdf
to generate slides from a markdown file. It seems the default aspect ratio is 4:3. How do I set it to 16:9?
2 Answers
Change the aspectratio
variable in the YAML metadata at the beginning of the file:
---
title: 'My presentation'
author:
- Author One
- Author Two
...
aspectratio: 169
---
Check the man pages for more information.
You can specify the class option in the header of the .md
file:
---
classoption: "aspectratio=169"
---
test