From f35047052017fe457fe8a09077525eaf7d1745d3 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Wed, 21 Feb 2024 11:05:17 +0100 Subject: [PATCH 1/4] Add empty page --- report-template/template.typ | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/report-template/template.typ b/report-template/template.typ index 0a2ba5b..73bf529 100644 --- a/report-template/template.typ +++ b/report-template/template.typ @@ -96,6 +96,11 @@ // Table of contents. page(outline(depth: 3, indent: true)) + pagebreak() + + // Preface page. + page([Preface]) + pagebreak() // Main body. From bc5fcd02ea6efc53a804de8bac7737a944e7454a Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Wed, 28 Feb 2024 15:30:09 +0100 Subject: [PATCH 2/4] Add grid to preface page --- report-template/template.typ | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/report-template/template.typ b/report-template/template.typ index 73bf529..2371b79 100644 --- a/report-template/template.typ +++ b/report-template/template.typ @@ -99,7 +99,24 @@ pagebreak() // Preface page. - page([Preface]) + page({ + text(size: 16pt)[Preface] + align( + center + bottom, + grid( + columns: (auto, auto), + row-gutter: 5em, + column-gutter: 2em, + ..meta.participants.map(author => { + align(center)[ + #line(length: 100%) + #text(font: sans-font, 1.5em, author.name)\ + #text(font: sans-font, 1em, author.email) + ] + }) + ) + ) + }) pagebreak() From 464fac1cabf55b56dfe6fb99bc808f0b290743e2 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Sun, 3 Mar 2024 12:37:10 +0100 Subject: [PATCH 3/4] Change main.typ to better demonstrate preface page --- report-template/main.typ | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/report-template/main.typ b/report-template/main.typ index 49fd9e2..aa623a1 100644 --- a/report-template/main.typ +++ b/report-template/main.typ @@ -9,8 +9,11 @@ project_period: "Fall Semester 2023", project_group: "group 1", participants: ( - (name: "Kresten", email: "kresten@gmail.com"), - (name: "Laust", email: "laust@gmail.com"), + (name: "Kresten", email: "kresten@domain.com"), + (name: "Laust", email: "laust@domain.com"), + (name: "Anders", email: "anders@domain.com"), + (name: "Mikkel", email: "mikkel@domain.com"), + (name: "Cathrine", email: "cathrine@domain.com"), ), supervisor: ( (name: "Anders And", email: "abc@abc.com"), From 32f4e03231cb3091660de0331ec6720e6d342ad0 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Sun, 3 Mar 2024 13:06:40 +0100 Subject: [PATCH 4/4] Correct font-size on preface page --- report-template/template.typ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report-template/template.typ b/report-template/template.typ index 1167e07..f6a157e 100644 --- a/report-template/template.typ +++ b/report-template/template.typ @@ -100,7 +100,7 @@ // Preface page. page({ - text(size: 16pt)[Preface] + text(16pt, weight: "extrabold")[Preface] align( center + bottom, grid( @@ -110,8 +110,8 @@ ..meta.participants.map(author => { align(center)[ #line(length: 100%) - #text(font: sans-font, 1.5em, author.name)\ - #text(font: sans-font, 1em, author.email) + #text(font: sans-font, 12pt, author.name)\ + #text(font: sans-font, 10pt, author.email) ] }) )