Pandoc:多个脚注彼此相邻?

eri*_*mjl 4 latex pdflatex pandoc

如果我想将两个脚注并排引用,用逗号分隔,这样做的语法是什么?该Pandoc文档似乎没有规定如何。

作为我试图完成的一个例子:

Some text here [^fn1, ^fn2] ## this clearly isn't the syntax, I've tried this.

变成:

这里有一些文字1, 2

mb2*_*b21 7

多个脚注的语法是:

Some text here [^fn1][^fn2]

[^fn1]: foo
[^fn2]: bar
Run Code Online (Sandbox Code Playgroud)

但是,要在 PDF 输出中用逗号分隔它们,您必须通过在pandoc 模板中包含以下内容来告诉 LaTeX 这样做

\usepackage[multiple]{footmisc}
Run Code Online (Sandbox Code Playgroud)

对于 HTML 输出,你必须在 CSS 中使用类似的东西:

<style>
.footnoteRef ~ .footnoteRef :before {
  content: ', '
}
</style>
Run Code Online (Sandbox Code Playgroud)