From 7ec79ee898898b8711be5fd6266c2f4b0a14aadb Mon Sep 17 00:00:00 2001 From: Anton Bilous Date: Wed, 16 Apr 2025 22:05:22 +0300 Subject: [PATCH] fix: make variant in authors truly optional In `pz-lb` template the `authors.variant` may be omitted now. --- lib.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.typ b/lib.typ index f7e776f..d249d65 100644 --- a/lib.typ +++ b/lib.typ @@ -709,7 +709,7 @@ ст. гр. #edu_program\-#author.group\ #author.name\ ] - if author.variant != none [Варіант: №#author.variant] + if "variant" in author.keys() and author.variant != none [Варіант: №#author.variant] } else [ Виконали:\ ст. гр. #edu_program\-#authors.at(0).group\