根据pandoc手册,可以在markdown文件的YAML中使用变量“thanks”来复制Latex的\ thanks命令,如下所示:
---
title: super awesome paper
author: albert enstein
thanks: university of alberta
---
但是它将星号放在标题上,而不是作者,它应该放在哪里。
编辑我如何感谢作者而不是pandoc的标题?
答案 0 :(得分:1)
正如评论已经指出的那样,您可能需要创建自定义模板。您描述的行为是/ thanks命令的正确行为。
您想要的是标题页的作者联属部分。这可以使用YAML头中的institute变量来完成。它仅在少数文档类中受支持。它的代码可以在默认的乳胶模板(pandoc -D latex
)中找到:
$if(institute)$
\providecommand{\institute}[1]{}
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
$endif$
尝试使用此而不是感谢变量,只需在测试之前查找哪些类支持此功能。