Typst + Glossarium: Show acronym as "short (long)" on first use, then only "short" afterwards

Hi everyone,
I’m using the glossarium package in my Typst project and it’s working well, but i was wondering how I could implement this behavior for each of the acronyms:

  • The first time an acronym or glossary term appears (e.g. @llm), it should expand to: “LLM (Large Language Model)”
  • Everytime I reference @llm again, it should just show the short form, e.g. just “LLM”

Has anyone implemented this behavior already, or does anyone know the best way to override @ so it tracks whether a term has already been introduced?
Thanks in advance!

Hi @Thibault_Magnin, @janro and I are working on this at feat: implement first-style feature by JKRhb · Pull Request #160 · typst-community/glossarium · GitHub.

EDIT: wait, I read too fast. @Thibault_Magnin which version of glossarium are you using? There was a bug preventing the first use from expanding to short (long). can you update and see if that fixes it?

2 Likes

Oh wow this is perfect, I was using glossarium 0.5.4 but now I updated it and it’s working perfectly! I checked the github but I didn’t really grasp the “footnote” feature even though it sounds great. Could you explain it to me please?

1 Like

Sorry about the initial message. It is irrelevant to your question! I thought you were trying to get long (short) instead of just short (long).