【问题标题】:Setting theme options in YAML header for beamer presentation?在 YAML 标头中为投影仪演示设置主题选项?
【发布时间】:2018-10-17 02:06:26
【问题描述】:

我正在使用 Metropolis 主题在 RStudio 中进行投影仪演示。我想使用一些选项,比如 sectionpage = none,但我不知道将选项放在 YAML 标头中的哪个位置。

我只有基础知识:

---
title: "TemplatePresentation"
author: "MightyMauz"
output: 
  beamer_presentation: 
    theme: metropolis
---

如何通过metropolis主题选项?

【问题讨论】:

  • 我认为classoption 是用于将某些内容传递给\documentclass,而不是将选项传递给主题
  • 啊,我看错了你的问题。无论如何,发布的答案解决了问题。

标签: rstudio r-markdown beamer


【解决方案1】:

使用header-includes 来声明您要使用的主题:

---
title: "TemplatePresentation"
author: "MightyMauz"
classoption: "portrait"
output: beamer_presentation
header-includes:
  - \usetheme[sectionpage = none]{metropolis}
---

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-27
    • 1970-01-01
    • 2021-05-19
    • 2011-03-02
    • 2019-08-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多