tweak theme

This commit is contained in:
Gaspard Jankowiak 2025-12-13 22:49:59 +01:00
commit 207933c534
3 changed files with 46 additions and 21 deletions

View file

@ -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

View file

@ -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},
}

View file

@ -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")
]