gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 20:29:52 28 4
gpt4 key购买 nike

我必须在我的标题幻灯片中加入一个说明,说明我的资金来源。我能够通过以下方式在 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]在页眉之外,.pdf 可以编译,但在标题页(也没有其他任何地方)上没有页脚,并且 [^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
---

另一种允许更大灵 active 但仅限于投影仪输出的解决方案是更改模板。

关于r - 添加脚注/感谢 Rmarkdown 标题幻灯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35228773/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com