我的.rmd文件现在显示为:
---
title: "My title"
author: "Fix"
date: "March 28, 2016"
output: pdf_document
---
我希望能说出类似的内容:
---
title: "My title"
author: "Fix"
date: "March 28, 2016"
thanks: "Everybody that helped me!"
output: pdf_document
---
以便感谢包含在文档的标题页中......
答案 0 :(得分:2)
更简单的方法是使用latex命令\thanks
:
---
title: "My title\\thanks{I am grateful to everybody that helped me!}"
---
它将输出感谢作为标题的脚注。如果您对格式不满意,还可以change your latex template并重新定义\maketitle
,例如使用usepackage{titling}
。