我必须在标题幻灯片中附上注释,说明我的资金来源。我能够通过以下方式在LyX/LaTeX中做到这一点:
author{Michael Chiricothanks{These people gave me money}, Other Authors}
我无法在Rmarkdown中重现这一点。该网站提到使用[^]
锚定来标记脚注,这在其他幻灯片中效果很好,但我无法让它在标题中工作:
---
title: "Title"
author: "Michael Chirico[^thanks], Other Authors"
date: "February 10, 2016"
output: beamer_presentation
[^thanks]: These people gave me money
---
.pdf已编译,但没有标题幻灯片。我认为这是编译日志的相关部分:
pandoc:无法解析 YAML 标头:UnexpectedEvent {_received = Just (EventSequenceStart Nothing),_expected = Nothing} "source"(第 1 行,第 1 列)
如果我[^thanks]
移动到页眉之外,.pdf会编译,但标题页上(或其他任何地方)上没有页脚,[^thanks]
按原样显示在标题幻灯片上。
如何在标题幻灯片中添加脚注/感谢部分?
您可以使用内联注释。常规脚注语法[^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
---
另一种允许更大灵活性但仅限于光束器输出的解决方案是更改模板。