From ba374a5ee2d54258c6fa3aab92dfda9cc9f484e5 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 10 Feb 2025 19:29:49 -0800 Subject: [PATCH] Fix header --- lib/typst/local/handout/0.1.0/header.typ | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/typst/local/handout/0.1.0/header.typ b/lib/typst/local/handout/0.1.0/header.typ index a46cc67..21f2b78 100644 --- a/lib/typst/local/handout/0.1.0/header.typ +++ b/lib/typst/local/handout/0.1.0/header.typ @@ -44,6 +44,14 @@ by = text(size: 10pt, [Prepared by #by on #date]) } + let sub = () + if (by != none) { + sub.push(by) + } + if (subtitle != none) { + sub.push(subtitle) + } + // Main title align( center, @@ -61,8 +69,7 @@ // Title text(size: 20pt, title), // Subtitle - if (by != none) { text(size: 10pt, by) }, - if (subtitle != none) { text(size: 10pt, subtitle) }, + ..sub, line(length: 100%, stroke: 0.2mm), ), ),