From 3ca8409e58417f8da5304fec22ca7251baddfb0f Mon Sep 17 00:00:00 2001 From: Anton Bilous Date: Sat, 26 Apr 2025 18:38:36 +0300 Subject: [PATCH] fix: heading numbering when no title --- lib.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.typ b/lib.typ index 22bc681..6056706 100644 --- a/lib.typ +++ b/lib.typ @@ -685,7 +685,7 @@ з #if doctype == "ЛБ" [лабораторної роботи] else [практичної роботи] #if worknumber != none { - context counter(heading).update(worknumber - 1) + context counter(heading).update(worknumber - if title == none {0} else {1}) [№#worknumber] }