Skip to content

Commit

Permalink
Add preface page (#28)
Browse files Browse the repository at this point in the history
* Add empty page

* Add grid to preface page

* Change main.typ to better demonstrate preface page

* Correct font-size on preface page
  • Loading branch information
krestenlaust authored Mar 3, 2024
1 parent e368e76 commit cba068a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
7 changes: 5 additions & 2 deletions report-template/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
22 changes: 22 additions & 0 deletions report-template/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cba068a

Please sign in to comment.