Multi-paragraph footnotes: How to decrease gap between multiple paragraphs of the same footnote?

#let leading_and_spacing = 1em
#set par(first-line-indent: 1em, justify: true, leading: leading_and_spacing)
#show par: set block(spacing: leading_and_spacing)

// --

#let fn1 = footnote[
  #lorem(25)

  #lorem(25)
]

#lorem(25)#fn1

#lorem(25)

Currently, the leading of footnote paragraphs is larger than their spacing. How to decrease their leading so that it will be the same as their spacing?

You can change the gap between footnotes using the “gap” parameter of footnote.entry like this: #set footnote.entry(gap: 0.8em)
full example (from the documentation):

#set footnote.entry(gap: 0.8em)

Footnotes:
#footnote[Spaced],
#footnote[Apart]

(details in the documentation under “gap”)
Hope this helps

2 Likes

BTW, you can link directly to the footnote page, or directly to the element or directly to the parameter.

1 Like

@jsx97 I’m a bit confused that this solves your problem: this affects the gap between different footnotes, not between paragraphs of the same footnote. Isn’t that what you actually wanted?

1 Like

@SillyFreak My bad, sorry. Yes, this is not even a workaround.

Hello, Adrian. Thanks for this suggestion, though this is not really what I’m trying to achieve. Look at the followig example, for example:

#let leading_and_spacing = 1em
#set par(first-line-indent: 1em, leading: leading_and_spacing)
#show par: set block(spacing: leading_and_spacing)
#set footnote.entry(gap: leading_and_spacing)

#let fn1 = footnote[
  #lorem(25)

  #lorem(25)
]

#let fn2 = footnote[
  #lorem(25)

  #lorem(25)
]

#lorem(25)#fn1 #lorem(25)#fn2

And here is the output I’m trying to achieve, either version:

Yeah, sry, my bad. I think the following should be what you want to achieve:
You can use

#show footnote.entry: it => [#show par: set block(spacing: 0.15cm)
#it
]

to change the content of each footnote entry. So you basically have the body of the footnote (called “it”) as an parameter. Then you can achieve the spacing by first applying #show par: set block(spacing: 0.15cm). Then you use #it to still have the content you wrote into the body of the footnote in it. It is important that the #it is in a new line, but you could also use ; instead.
Again, sry for the misunderstanding. Hope this is what you are looking for :blush:
Feel free to ask further questions if needed :slight_smile:

1 Like

Thanks a lot, this works as expected. It seems that by separating them with a semicolon, I can move #it on the same line with #show. Also, it seems that by replacing square brackets with figure ones, I can remove #:

  • #show footnote.entry: it => [#show par: set block(spacing: 0.15cm); #it]
  • #show footnote.entry: it => {show par: set block(spacing: 0.15cm); it}
1 Like