From 87a99398e95d00bfc761afbb12052598529fc9f3 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 Now always register new section if new-section argument is set, and display the header additionally if there is a current section but no title. 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(