简体   繁体   中英

How do I specify a beamer theme's customisation options in R markdown

I'm trying to get this beamer theme to work with R Markdown. Everything is working, except I can't work out how to tell R Markdown that I would like to include the "darktitle" option. In latex, this would look like \\usetheme[darktitle]{UniversityOfManchester} .

At the moment, the output portion of my R Markdown header looks like this:

output:
  beamer_presentation:
    theme: "UniversityOfManchester"

using color_theme doesn't seem to work.

Any ideas?

How about using the YAML option header-includes :

---
title: "Presentation"
output:
  beamer_presentation
header-includes:
  - \usetheme[darktitle]{UniversityOfManchester}
---

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM