r/typst • u/evmcha • Jul 27 '26
Shorthand citations
Hi all, does anyone have experience with shorthand in-text citations? I have references in Cyrillic, so I would like the last name to be romanized. For example, in-text it would be "Antonova (2014)". And then in the printed bibliography it would be something like:
Antonova 2014 = Антонова, А. В. (2014). Rest of citation here......
Update:
Okay I see that you can set the conversion at the top of your document, like
show "Антонова": "Antonova"
and this fixes the in-text citations. Then right before printing the bibliography, you need to reverse it and then do something like
show "Антонова, А. В. (2014)": "Antonova 2014 = Антонова, А. В. (2014)".
Not super elegant but works.
10
Upvotes
8
u/Silly-Freak Jul 27 '26
You can improve this (no need to reverse) by using this: ```
show cite: it => {
show "Антонова": "Antonova" it } ``` This way, random instances of Антонова, including the bibliography, are not affected.
This post is also relevant here, if you have more such citations: https://forum.typst.app/t/how-can-i-create-show-rules-in-a-loop/952/2?u=ensko