Skip to content

Commit

Permalink
Merge branch 'main' into preface-page
Browse files Browse the repository at this point in the history
  • Loading branch information
krestenlaust committed Mar 3, 2024
2 parents 464fac1 + e368e76 commit 53b8d02
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
4 changes: 2 additions & 2 deletions report-template-empty/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
supervisor: (
(name: "Supervisor 1", email: "supervisor@studnet.aau.dk"),
),
date: "21. December 2023",
date: datetime.today().display()
),
// Insert your abstract after the colon, wrapped in brackets.
// Example: `abstract: [This is my abstract...]`
Expand All @@ -32,4 +32,4 @@
#include "chapters/chapter2.typ"
#pagebreak(weak: true)

#bibliography("sources/sources1.bib")
#bibliography("sources/sources1.bib")
4 changes: 2 additions & 2 deletions report-template/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
supervisor: (
(name: "Anders And", email: "abc@abc.com"),
),
date: "21. December 2023",
date: datetime.today().display()
),
// Insert your abstract after the colon, wrapped in brackets.
// Example: `abstract: [This is my abstract...]`
Expand All @@ -38,4 +38,4 @@
#include "chapters/understanding_typst.typ"
#pagebreak(weak: true)

#bibliography("sources/sample.bib")
#bibliography("sources/sample.bib")
21 changes: 20 additions & 1 deletion report-template/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,24 @@
set par(justify: true)
// Chapter Styling
show heading.where(level: 1): h => {
pagebreak(weak: true)
v(1em)
let c = luma(70)
set text(fill: c, size: 80pt)
place(left, counter(heading).display())
set text(fill: c, size: 20pt)
place(right, dy: 1.6em, {h.body})
place(right, dy: 2.7em, {line(length: 80%, stroke: 0.7pt + c)})
v(6em)
}
// Increment header for bibliography
show bibliography: body => {
counter(heading).step()
body
}
body
}
}
2 changes: 1 addition & 1 deletion singlefile-template/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(name: "Anders And", email: "abc@abc.com"),
(name: "Mickey Mouse", email: "abc@abc.com"),
),
date: "Christmas Eve",
date: datetime.today().display()
),
// Insert your abstract after the colon, wrapped in brackets.
// Example: `abstract: [This is my abstract...]`
Expand Down

0 comments on commit 53b8d02

Please sign in to comment.