From a2052c3ab2fc93de6ebd608055137669a51e8e2d Mon Sep 17 00:00:00 2001 From: Marco Rebhan Date: Thu, 23 May 2024 00:08:09 +0200 Subject: [PATCH] themes/university: Fix section handling when no title is given Closes #169. --- themes/university.typ | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/themes/university.typ b/themes/university.typ index f78b2fe..e00c2eb 100644 --- a/themes/university.typ +++ b/themes/university.typ @@ -121,12 +121,13 @@ }) let header-text = { + if new-section != none { + utils.register-section(new-section) + } + if header != none { header - } else if title != none { - if new-section != none { - utils.register-section(new-section) - } + } else if title != none or utils.current-section != none { locate( loc => { let colors = uni-colors.at(loc) block(fill: colors.c, inset: (x: .5em), grid(