Supplement doesn't show up in a citation that's in a footnote

The supplement works correctly outside of a footnote.

It works just fine.

#set page(height: 9em, margin: 1em)
@psychology25[supplement]#footnote[@psychology25[supplement]]

#bibliography("works.bib")

Absence of context doesn’t make it easier to guess what you mean.

works.bib

Could you elaborate? I can’t reproduce the bug you’ve described.

@key[supplement]
#footnote[@key[supplement, again]]

#bibliography(
  bytes(```
  @article{key,
    title = {Title},
  }
  ```.text), 
  style: "ieee",
)

Thanks for the responses. It seems that this occurs when using the unequivocal-ams package: unequivocal-ams – Typst Universe.

Opening the associated default template and writing #footnote[@netwok2020[supplement]] does not display the supplement text.

Are you sure? Here the supplement does not work even outside of a footnote.

#import "@preview/unequivocal-ams:0.1.2": ams-article, proof, theorem

#show: ams-article.with(
  title: [Mathematical Theorems],
  authors: (
    (
      name: "Ralph Howard",
      department: [Department of Mathematics],
      organization: [University of South Carolina],
      location: [Columbia, SC 29208],
      email: "howard@math.sc.edu",
      url: "www.math.sc.edu/~howard",
    ),
  ),
  abstract: lorem(100),
  bibliography: bibliography(
    bytes(
      ```
      @article{key,
        title = {Title},
      }
      ```.text,
    ),
  ),
)

Main text @key[supplement]

Footnote #footnote[@key[supplement, again]]

Sorry for the back and forth. Supplement works outside of footnotes with this option set #set cite(style: "alphanumeric")

That’s the key!

Due a current limitation, you have to move #set cite(style: "alphanumeric") before #show: ams-article.with(…).

Note: Set and show rules in the scope where footnote is called may not apply to the footnote’s content. See here for more information. (Footnote Function – Typst Documentation)

The footnote’s entry is layouted with the styles common to the whole flow of content it is contained in (the whole document or the closest parent column container). A show rule at the beginning of the document is shared by all content and thus applies to the flow. If just a single word is before the show rule, the show rule is not shared anymore and thus not lifted upwards and does not apply to the flow and, by extension, not to the footnotes. Spaces and blank lines before the show rules are fine because they are trimmed away. Not saying that this behaviour is ideal in this case, but that’s how it works, currently. (Text show rule sometimes not applied in footnotes · Issue #1467 · typst/typst · GitHub, 2023-06-13)


I see, that makes sense. Thank you for your patience!

1 Like