From abf7b5aef0d4323a78a16ba18444e858d549ba77 Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Fri, 12 Dec 2025 23:04:19 +0100 Subject: [PATCH] wip uni graz --- 1.0.1/src/assets/tuglogo.svg | 47 ------------------- 1.0.1/src/assets/unigrazlogo.svg | 11 +++++ 1.0.1/src/lib.typ | 80 ++++++++++++++++---------------- 1.0.1/src/logos.typ | 31 +++---------- 1.0.1/typst.toml | 10 ++-- 5 files changed, 62 insertions(+), 117 deletions(-) delete mode 100644 1.0.1/src/assets/tuglogo.svg create mode 100644 1.0.1/src/assets/unigrazlogo.svg diff --git a/1.0.1/src/assets/tuglogo.svg b/1.0.1/src/assets/tuglogo.svg deleted file mode 100644 index e5d11af..0000000 --- a/1.0.1/src/assets/tuglogo.svg +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - diff --git a/1.0.1/src/assets/unigrazlogo.svg b/1.0.1/src/assets/unigrazlogo.svg new file mode 100644 index 0000000..e453d89 --- /dev/null +++ b/1.0.1/src/assets/unigrazlogo.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/1.0.1/src/lib.typ b/1.0.1/src/lib.typ index c996a54..b6bd1d4 100644 --- a/1.0.1/src/lib.typ +++ b/1.0.1/src/lib.typ @@ -62,6 +62,18 @@ // --------------------------------------------------------------------------- let header(self) = { // Slide Title: if the user overrides the title of a certain slide, use it + // Progress bar + if self.store.progress-bar { + place(top + left, float: false, + move(dy: 0.00cm, // Bad solution, I know + components.progress-bar( + height: 3pt, + self.colors.primary, + white, + ) + ) + ) + } let hdr = if title != auto { title } else { self.store.header } show heading: set text(size: 24pt, weight: "semibold") @@ -85,12 +97,12 @@ set text(size: 15pt, fill: self.colors.footer) grid( - columns: (self.page.margin.bottom - 1.68%, 1.3%, auto, 1cm), - block(fill: self.colors.primary)[ + columns: (self.page.margin.bottom, 1.3%, auto, 1cm), + move(dx:0.3em, dy: 0.3em, circle(radius: 0.75em, stroke: self.colors.primary + 2pt)[ #set align(center + horizon) - #set text(fill: white, size: 12pt) + #set text(size: 12pt) #utils.slide-counter.display() - ], + ]), block(), block[ #set align(left + horizon) @@ -100,18 +112,6 @@ block(), ) - // Progress bar - if self.store.progress-bar { - place(bottom + left, float: true, - move(dy: 1.05cm, // Bad solution, I know - components.progress-bar( - height: 3pt, - self.colors.primary, - white, - ) - ) - ) - } } let self = utils.merge-dicts(self, config-page( @@ -145,21 +145,17 @@ let footer-isec = [ #set text(size: 13.3pt, weight: "medium") - #let arrow-icon = [ - #move(dy: -0.05cm, dx: -0.05cm, rotate(45deg, square( + #let circle-icon = [ + #move(dy: 0.03cm, circle( fill: none, - size: 0.18cm, - stroke: ( - "top": self.colors.primary + 1.35pt, - "bottom": none, - "right": self.colors.primary + 1.35pt, - "left": none, - ), - ))) - ] + radius: 0.18cm, + stroke: self.colors.primary + 1.35pt, + ) + ) + ] #v(-0.5cm) - #box(arrow-icon) #h(0.1cm) #self.store.institute + #box(circle-icon) #h(0.1cm) #self.store.institute ] set page(footer: footer-isec, header: none) @@ -170,6 +166,10 @@ #self.store.logo ]) + place(center + horizon, dx: -15em, [ + #circle(stroke: self.colors.primary + 5em, radius: 25em) + ]) + v(0.8cm) block(width: 83%)[ @@ -199,7 +199,7 @@ block(width: 70%)[ #text( size: 28.3pt, - fill: self.colors.primary, + fill: self.colors.fore, weight: "bold", )[#info.subtitle] ] @@ -384,12 +384,12 @@ /// - handout (bool): Boolean for handout mode /// - config-colors (dict): Colors for the presentation /// - ... see definition of `#definitely-not-isec-theme` -#let definitely-not-isec-theme( +#let definitely-not-kfu-theme( aspect-ratio: "16-9", header: utils.display-current-heading(level: 1), font: "Open Sans", - institute: [isec.tugraz.at], - logo: tugraz-logo, + institute: [uni-graz.at], + logo: unigrazgraz-logo, slide-alignment: top, progress-bar: true, ..args, @@ -433,8 +433,8 @@ } ), config-colors( // Exported from official template - tug: rgb("e4154b"), - primary: rgb("e4154b"), + kfu: rgb("FED501"), + primary: rgb("FED501"), footer: rgb("808080"), isec: rgb("272733"), foot: rgb("e1e1e1"), @@ -514,16 +514,16 @@ // Lists & Enums set list( marker: ( - (move(dy: 0.11cm, square(width: 0.4em, height: 0.4em, fill: self.colors.primary))), - (move(dy: 0.11cm, square(width: 0.4em, height: 0.4em, fill: black))), - (move(dy: 0.11cm, square(width: 0.4em, height: 0.4em, fill: gray))), + (move(dx: 0.15cm, dy: 0.1cm, circle(radius: 0.2em, stroke: self.colors.primary + 2pt, fill: self.colors.primary))), + (move(dy: 0.2cm, circle(width: 0.2em, fill: black))), + (move(dy: 0.2cm, circle(width: 0.2em, fill: gray))), ), body-indent: 1.2em, ) set enum( numbering: n => { - square(stroke: none, fill: self.colors.primary, size: 0.53cm)[ - #align(center + horizon)[ #text(size: 12pt, fill: white)[#n] ] + circle(stroke: self.colors.primary + 2pt, radius: 0.3cm)[ + #align(center + horizon)[ #text(size: 12pt, fill: black)[#n] ] ] }, body-indent: 0.6cm @@ -690,7 +690,7 @@ #set align(center) #grid(columns: 3, rows: 6, column-gutter: 1.8cm, row-gutter: 0.05cm, align: left, rect(fill: self.colors.isec)[isec], - rect(fill: self.colors.tug)[tug = main], + rect(fill: self.colors.kfu)[tug = main], rect(fill: self.colors.colA)[colA = tugred], rect(fill: self.colors.csbme)[csbme = tugcyan], rect(fill: self.colors.fore)[fore], diff --git a/1.0.1/src/logos.typ b/1.0.1/src/logos.typ index 308e751..cb02504 100644 --- a/1.0.1/src/logos.typ +++ b/1.0.1/src/logos.typ @@ -2,39 +2,20 @@ #block[ #text(size: 13.5pt, weight: "medium")[#self.store.institute] #h(0.1cm) - #box(inset: 0pt, outset: 0pt)[#square( - width: 0.3cm, - height: 0.3cm, + #box(inset: 0pt, outset: 0pt, baseline: 15%)[#circle( + radius: 0.25cm, outset: 0pt, inset: 0pt, - stroke: none, - fill: self.colors.primary, + stroke: self.colors.primary + 2pt, + fill: none, )] ] ] -#let tugraz-logo = [ +#let unigrazgraz-logo = [ #set align(right) #set text(size: 12pt, tracking: 3.6pt) - #image("assets/tuglogo.svg", width: 4.1cm) - - #v(0.13cm) - - #move(dx: -0.07cm)[ - SCIENCE - ] - - #v(0.65em) - - #move(dx: -0.03cm)[ - PASSION - ] - - #v(0.65em) - - #move(dx: -0.06cm)[ - TECHNOLOGY - ] + #image("assets/unigrazlogo.svg", width: 4.1cm) ] diff --git a/1.0.1/typst.toml b/1.0.1/typst.toml index 2a3d54f..a4d96ae 100644 --- a/1.0.1/typst.toml +++ b/1.0.1/typst.toml @@ -1,15 +1,15 @@ [package] -name = "definitely-not-isec-slides" +name = "definitely-not-kfu-slides" version = "1.0.1" entrypoint = "src/lib.typ" -authors = ["Ernesto Martínez "] +authors = ["Ernesto Martínez ", "Gaspard Jankowiak"] license = "MIT" -description = "An unofficial ISEC TUGraz slides template" +description = "An unofficial UniGraz slides template" repository = "https://github.com/ecomaikgolf/typst-isec-slides-template" categories = ["presentation"] disciplines = ["computer-science", "engineering"] -keywords = ["ISEC", "Institute of Information Security", "IAIK", "TUGraz", "Graz University of Technology", "thesis", "template", "Master Thesis"] -compiler = "0.13.1" +keywords = ["University of Graz", "template"] +compiler = "0.14.0" [template] path = "template"