Adding a footnote / thanks to Rmarkdown title slide

MichaelChirico picture MichaelChirico · Feb 5, 2016 · Viewed 13.5k times · Source

I have to include a note in my title slide declaring the source of my funding. I was able to do this in LyX / LaTeX through:

\author{Michael Chirico\thanks{These people gave me money}, Other Authors}

I have not been able to reproduce this in Rmarkdown. The site mentions using [^] anchoring to mark footnotes, and this works fine in other slides, but I couldn't get it to work in the title:

---
title: "Title"
author: "Michael Chirico[^thanks], Other Authors"
date: "February 10, 2016"
output: beamer_presentation

[^thanks]: These people gave me money
---

The .pdf compiles but there is no title slide. I think this is the relevant part of the compilation log:

pandoc: Could not parse YAML header: UnexpectedEvent {_received = Just (EventSequenceStart Nothing), _expected = Nothing} "source" (line 1, column 1)

If I move [^thanks] outside the header, the .pdf compiles but there is no footer on the title page (nor anywhere else), and [^thanks] appears as-is on the title slide.

How can I add a footnote/thanks section to the title slide?

Answer

scoa picture scoa · Feb 6, 2016

You could use an inline note. The regular footnote syntax is [^note_call] and then [^note_call]: note_content on a new line. Inline notes' syntax is just ^[note_content]

---
title: "Title"
author: "Michael Chirico^[These people gave me money], Other Authors"
date: "February 10, 2016"
output: beamer_presentation
---

Another solution that allows more flexibility, but is restricted to the beamer output, would be to change the template.