如何在 .rmd 文件上获取 knitr PDf 以影响标题参数?
How do you get knitr PDf on an .rmd file to affect the title parameters?
我的 .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
---
以便将致谢包含在文档的扉页中...
更简单的方法是使用latex命令\thanks
:
---
title: "My title\thanks{I am grateful to everybody that helped me!}"
---
它会输出感谢作为标题的脚注。如果您对格式不满意,您还可以 change your latex template 并重新定义 \maketitle
,例如使用 usepackage{titling}
.
我的 .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
---
以便将致谢包含在文档的扉页中...
更简单的方法是使用latex命令\thanks
:
---
title: "My title\thanks{I am grateful to everybody that helped me!}"
---
它会输出感谢作为标题的脚注。如果您对格式不满意,您还可以 change your latex template 并重新定义 \maketitle
,例如使用 usepackage{titling}
.