Created
October 22, 2025 08:08
-
-
Save tombrk/3e34333ebf6539a6e928af3fc48f50ad to your computer and use it in GitHub Desktop.
Typst hide author on adjacent citations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #let citecollapse = state("citecollapse", none) | |
| #show cite: it => { | |
| let last = citecollapse.get() | |
| citecollapse.update(it.key) | |
| if last == it.key { | |
| return [(#it.supplement)] | |
| } | |
| it | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment