Pandoc 无法处理某些 csl 文件的文内引用

Pandoc 无法处理某些 csl 文件的文内引用

以下是输入 markdown 文件的示例:

@brandt2009two, observing programmers building an online chat room in the lab, 
found that online resources are leveraged primarily to engage in *just-in-time 
learning* of new skills and approaches, *clarify and extend* their existing 
knowledge, and *remind* themselves of details deemed not worth remembering 
[@brandt2009two].

按照文档,我希望第一个引用不带括号,引用作者姓名,第二个引用出现在括号中。这就是使用没有特殊选项的 pandoc 时发生的情况:

pandoc in.md --bibliography library.bib -o out.pdf

但我想使用 ACM 的引用样式,因此在输出中,文内引用应显示为“Brandt et al (2009), observing Programmers...”,常规引用应显示为“[1]”。

但是,添加 csl 选项时,两个引用都显示为“[1]”:

pandoc pandoc.md --smart --standalone --bibliography library.bib --template=proceedings.tex --csl=acm-sig-proceedings.csl -o out.pdf

这是 csl 文件:https://github.com/citation-style-language/styles/blob/master/acm-sig-proceedings.csl

相关内容