From cba068a10d32a507f9575b482ff8a1e1f1ea64f7 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Sun, 3 Mar 2024 13:09:35 +0100 Subject: [PATCH] Add preface page (#28) * Add empty page * Add grid to preface page * Change main.typ to better demonstrate preface page * Correct font-size on preface page --- report-template/main.typ | 7 +++++-- report-template/template.typ | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/report-template/main.typ b/report-template/main.typ index 35614d1..5e80b7e 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"), diff --git a/report-template/template.typ b/report-template/template.typ index 6297c34..f6a157e 100644 --- a/report-template/template.typ +++ b/report-template/template.typ @@ -96,6 +96,28 @@ // Table of contents. page(outline(depth: 3, indent: true)) + pagebreak() + + // Preface page. + page({ + text(16pt, weight: "extrabold")[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, 12pt, author.name)\ + #text(font: sans-font, 10pt, author.email) + ] + }) + ) + ) + }) + pagebreak() // Main body.