Jack Bailey
Jack Bailey

Reputation: 9

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?

Upvotes: 0

Views: 384

Answers (1)

Martin Schmelzer
Martin Schmelzer

Reputation: 23889

How about using the YAML option header-includes:

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

Upvotes: 1

Related Questions