Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pandoc: multiple footnotes next to one another?

If I want to have two footnotes cited next to one another, separated by a comma, what is the syntax for doing so? The Pandoc documentation doesn't seem to specify how.

As an example of what I'm trying to accomplish:

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

becomes:

Some text here 1, 2.

like image 540
ericmjl Avatar asked Mar 10 '23 21:03

ericmjl


1 Answers

The syntax for multiple footnotes would be:

Some text here [^fn1][^fn2]

[^fn1]: foo
[^fn2]: bar

However, to separate them by comma in PDF output, you'll have to tell LaTeX to do so by including the following in your pandoc template:

\usepackage[multiple]{footmisc}

For HTML output, you'd have to to something similar in CSS:

<style>
.footnote-ref ~ .footnote-ref :before {
  content: ', '
}
</style>
like image 194
mb21 Avatar answered Mar 19 '23 18:03

mb21