添加脚注/感谢 Rmarkdown 标题幻灯片

Adding a footnote / thanks to Rmarkdown title slide

我必须在我的标题幻灯片中加入一条注释,声明我的资金来源。我能够通过以下方式在 LyX / LaTeX 中做到这一点:

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

我无法在 Rmarkdown 中重现此内容。 site 提到使用 [^] 锚定来标记脚注,这在其他幻灯片中工作正常,但我无法在标题中使用它:

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

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

.pdf 可以编译,但没有标题幻灯片。我认为这是编译日志的相关部分:

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

如果我将 [^thanks] 移到 header 之外,.pdf 会编译但标题页上没有页脚(其他任何地方也没有),并且 [^thanks] 出现 as-is 在标题幻灯片上。

如何向标题幻灯片添加 footnote/thanks 部分?

您可以使用 inline note。常规的脚注语法是 [^note_call],然后是 [^note_call]: note_content,另起一行。内联注释的语法只是 ^[note_content]

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

另一个允许更大灵活性但仅限于 beamer 输出的解决方案是更改模板。