R Markdown Beamer 演示文稿:调整幻灯片的宽度/纵横比

mav*_*cks 4 markdown latex r beamer r-markdown

如何调整呈现为输出格式的 R markdown 演示文稿的幻灯片宽度beamer以生成 LaTex/PDF 文件?为了能够快速调整到给定的演示设备(宽屏、4:3 屏幕等),理想情况下可以轻松更改宽高比以采用不同的值。

微量元素:

---
title: "Adjust the width/aspect ratio of slides"
output:
  # beamer_presentation: default
  bookdown::pdf_book:
    base_format: rmarkdown::beamer_presentation
---


## Some Slides

some content
Run Code Online (Sandbox Code Playgroud)

sam*_*ter 8

您可以传递aspectratioas class 选项。查看投影仪用户指南以检查可用的比率。

---
title: "Adjust the width/aspect ratio of slides"
output:
  beamer_presentation:
    theme: "default"
    keep_tex: true
classoption: aspectratio=169    
---

## Some Slides

some content
Run Code Online (Sandbox Code Playgroud)