commit 203bd9b8bcaa387779ef10491eb2e7fce7d5cc72 Author: Klagarge Date: Sat Aug 17 20:38:14 2024 +0200 Initial commit diff --git a/example.typ b/example.typ new file mode 100644 index 0000000..b7e05e1 --- /dev/null +++ b/example.typ @@ -0,0 +1,19 @@ +// HEADER +#import "./src/summary.typ": * + +#show: summary.with( + title: "Titre", + student: "John Doe", + //picture: "./myThesisPicture.svg", + year: "2024", + degree: "Systems Engineer", + field: "Infotronic", + professor: (name: "Prof. William Shakespeare", email: "william.shakespeare@hevs.ch"), + //partner: partner, + //objective: [] // one sentence with max. 240 characters, with spaces. + + // body max. 1200 characters, with spaces. +) + +#text(red)[Description (max. 1200 characters, with spaces.)] +#lorem(120) diff --git a/src/equal_salary.png b/src/equal_salary.png new file mode 100644 index 0000000..60002c1 Binary files /dev/null and b/src/equal_salary.png differ diff --git a/src/hei-vs-light.svg b/src/hei-vs-light.svg new file mode 100644 index 0000000..7e0ed10 --- /dev/null +++ b/src/hei-vs-light.svg @@ -0,0 +1,163 @@ + +image/svg+xml diff --git a/src/hes-adresse.png b/src/hes-adresse.png new file mode 100644 index 0000000..4366ec2 Binary files /dev/null and b/src/hes-adresse.png differ diff --git a/src/placeholder.svg b/src/placeholder.svg new file mode 100644 index 0000000..1911dab --- /dev/null +++ b/src/placeholder.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/summary.typ b/src/summary.typ new file mode 100644 index 0000000..40ca03c --- /dev/null +++ b/src/summary.typ @@ -0,0 +1,145 @@ +// HEADER +#let summary( + title: none, + student: none, + picture: none, + year: none, + degree: none, + field: none, + professor: none, + partner: none, + objective: none, + meth_exp_res: none, + body +) = { + set page( + margin: ( + top: 4.5cm, + bottom: 3cm, + x: 1.8cm, + ), + header: [ + #image("./hei-vs-light.svg", width: 7.5cm) + ], + footer: [ + #table( + columns: (11cm, 4cm, 1.5cm, auto), + stroke: none, + align: left + horizon, + [ + #image("./hes-adresse.png", width: 6.8cm) + ],[ + #image("./swissuniversities.png", width: 3.3cm) + ],[ + #image("./equal_salary.png", width: 1cm) + ],[ + #image("./valais_excellence.png", width: 1.1cm) + ] + ) + ], + ) + + set text(size: 9pt) + + table( + columns: (5.4cm, 1.2cm, 1fr), + stroke: none, + inset: 0pt, + [ + #if picture != none { + image(picture, width: 5.4cm, height: 8.1cm) + } else { + image("./placeholder.svg", width: 5.4cm, height: 8.1cm) + } + + #v(1cm) + + #align(center)[ + #heading(level: 3, numbering:none, outlined: false)[ + #text(15pt)[ + Bachelor's Thesis\ | #h(0.3cm) #year #h(0.3cm) | + ] + ] + ] + + + #v(0.5cm) + + #square(size: 0.7cm, fill: blue.lighten(70%)) + + #v(0.6cm) + #set text(size: 10pt) + + Degree programme\ + _#[#degree]_ + + #v(0.6cm) + + Field of application\ + _#[#field]_ + + #v(0.6cm) + + #if professor != none {[ + Supervision professor\ + _#[#professor.name]_\ + _#[#professor.email]_ + #v(0.6cm) + ]} + + + #if partner != none {[ + Patner\ + _#[#partner.name]_\ + _#[#partner.affiliation]_ + ]} + + ],[],[ + #align(left, text(15pt)[ + #heading(numbering:none, outlined: false)[#title] + ]) + #table( + columns: (1cm, 3.5cm, 1fr), + stroke: none, + align: left + horizon, + [ + #square(size: 0.7cm, fill: blue.lighten(70%)) + ],[ + #set text( + size: 12pt, + fill: gray.darken(50%), + ) + Graduate + ],[ + #set text(size: 10pt) + #student + ] + ) + + #v(1.5cm) + + #heading(level: 3, numbering:none, outlined: false)[ + #text(12pt)[Objective] + ] + + #if objective == none { + text(red)[Description (one sentence with max. 240 characters, with spaces.) ] + lorem(20) + + } else { + objective + } + + #v(0.6cm) + + #heading(level: 3, numbering:none, outlined: false)[ + #text(12pt)[Methods | Experiences | Results] + ] + + #body + ] + ) +} + + + diff --git a/src/swissuniversities.png b/src/swissuniversities.png new file mode 100644 index 0000000..73eccdd Binary files /dev/null and b/src/swissuniversities.png differ diff --git a/src/valais_excellence.png b/src/valais_excellence.png new file mode 100644 index 0000000..6fe6d61 Binary files /dev/null and b/src/valais_excellence.png differ