From 207933c534663bf7c56297f4c3fa56555dd6d74d Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Sat, 13 Dec 2025 22:49:59 +0100 Subject: [PATCH] tweak theme --- 1.0.1/src/lib.typ | 7 ++--- 1.0.1/template/bibliography.bib | 13 +++++---- 1.0.1/template/slides.typ | 47 +++++++++++++++++++++++++-------- 3 files changed, 46 insertions(+), 21 deletions(-) diff --git a/1.0.1/src/lib.typ b/1.0.1/src/lib.typ index e83f5eb..ef40442 100644 --- a/1.0.1/src/lib.typ +++ b/1.0.1/src/lib.typ @@ -435,6 +435,7 @@ config-colors( // Exported from official template kfu: rgb("FED501"), primary: rgb("FED501"), + secondary: rgb("9933cc"), footer: rgb("808080"), foot: rgb("e1e1e1"), web: rgb("0c5a77"), @@ -475,8 +476,8 @@ body, ) => { set text(size: 20pt, lang: "en", region: "US", font: font) - show emph: it => { text(self.colors.primary, it.body) } - show cite: it => { text(self.colors.primary, it) } + show emph: it => { text(self.colors.secondary, it.body) } + show cite: it => { text(self.colors.secondary, it) } show strong: it => { text(weight: "bold", it.body) } // Bibliography @@ -486,7 +487,7 @@ show bibliography: set grid(align: top + left) show bibliography: set text(17pt) show bibliography: t => { - show grid.cell.where(x: 0): set text(fill: self.colors.primary) + show grid.cell.where(x: 0): set text(fill: self.colors.secondary) show grid.cell.where(x: 0): set align(top + left) show link: set text(fill: gray) t diff --git a/1.0.1/template/bibliography.bib b/1.0.1/template/bibliography.bib index 78d22e8..774d909 100644 --- a/1.0.1/template/bibliography.bib +++ b/1.0.1/template/bibliography.bib @@ -3,11 +3,10 @@ // Typst's Hayagriva: // https://github.com/typst/hayagriva/blob/main/docs/file-format.md -@software{emg25template, - author = {Ernesto Martínez García}, - year = {2025}, - month = {3}, - title = {{ISEC Slides Typst Template}}, - url = {https://github.com/ecomaikgolf/typst-isec-master-thesis-template}, - urldate = {2025-08-31} +@article {zola-1898, + AUTHOR = {Zola, Émile}, + TITLE = {J'accuse}, + JOURNAL = {L'Aurore}, + VOLUME = {87}, + YEAR = {1898}, } diff --git a/1.0.1/template/slides.typ b/1.0.1/template/slides.typ index 250384e..d03c42f 100644 --- a/1.0.1/template/slides.typ +++ b/1.0.1/template/slides.typ @@ -4,13 +4,13 @@ aspect-ratio: "4-3", slide-alignment: top, progress-bar: true, - institute: [mathematik.uni-graz.at], + institute: [uni-graz.at], logo: [#unigrazgraz-logo], config-info( - title: [Computermathematik], - subtitle: [Einführung MATLAB], - authors: ([Gaspard *Jankowiak*]), - extra: [WS 2025], + title: [Is that an interesting title?], + subtitle: [Yes, for a subtitle.], + authors: ([Best Author], [Good Author], [Ugly Author]), + extra: [1st january 2026], footer: [Let's rock], download-qr: "", ), @@ -29,12 +29,14 @@ #slide(title: [First Slide])[ #quote-block[ - Good luck with your presentation! Preout + Let there be light! ] - + Let's - + test - + lists + + This is + + a numbered + + list. + + Below is an equation: $ e^(i pi) + 1 = 0 "and" integral_0^1 sin(x) dif x = "something" @@ -44,7 +46,30 @@ #note("This will show on pdfpc speaker notes ;)") ] -#slide(title: [Bibliography])[ - meuh +#slide(title: [Code example])[ + The following code block + ```typst + #color-block(title: [Advantages])[ + - A + - B + - C + ] + ``` + produces this: + #color-block(title: [Advantages])[ +- A +- B +- C +] + +Let's cite @zola-1898. + +Some _emph_ text, and some *strong* text. + +] + +#slide(title: [Bibliography])[ + #set bibliography(title:"References", style: "alphanumeric") + #bibliography("bibliography.bib") ]