Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple calls to the same footnote #129

Open
Omikhleia opened this issue Nov 9, 2024 · 0 comments
Open

Multiple calls to the same footnote #129

Omikhleia opened this issue Nov 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Omikhleia
Copy link
Owner

Just some ideas following a personal discussion.

(In Djot at least) nothing forbids a writer to call the same footnote reference multiple times.

There are some cases where this could be useful (ex. a list of items, where several call for the same details in a common footnote). One could argue that's it's only an "acceptable" solution if the calls are on the same page (or not to far away...), but that should be an author decision, not a technical limitation.

Currently, we do not reject multiple calls to the same note, but:

  • A warning is issued (Duplicate label '...': this is possibly an error)
  • Two footnotes are produced (with same content... and same cross-reference label, so only the latest will be honored if the footnote is later referred by its identifier).

It would be possible to support this is use case:

  • On first occurrence, spit out a complete footnote indeed.
  • On later occurrences, only spit out a footnote reference call (to the first call, via cross-refs)

One problem however is that the footnote reference call are not the same between SILE's regular footnote package (footnotemark) and the resilient footnote package (style-aware footnote:reference) -- They are not honoring the same "public" API here :)

@Omikhleia Omikhleia added the enhancement New feature or request label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant