From 89b9c3805f3a8b286744dadc80bbf25cb03fbe01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Tue, 23 Sep 2025 22:36:31 +0200 Subject: [PATCH] add definition to first abbreviation instance --- template/abbreviations.typ | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template/abbreviations.typ b/template/abbreviations.typ index 70c8963..b7f0241 100644 --- a/template/abbreviations.typ +++ b/template/abbreviations.typ @@ -14,7 +14,11 @@ } "(" + abbrs.pairs().map((v) => { v.at(0) + ":\"" + v.at(1) + "\"" }).join(",") + ")" }); - abbreviation; + if type(text) != type(none) { + text + " (" + abbreviation + ")"; + } else { + abbreviation; + } } #let abbrlist() = {