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 config-colors( // Exported from official template
kfu: rgb("FED501"), kfu: rgb("FED501"),
primary: rgb("FED501"), primary: rgb("FED501"),
secondary: rgb("9933cc"),
footer: rgb("808080"), footer: rgb("808080"),
foot: rgb("e1e1e1"), foot: rgb("e1e1e1"),
web: rgb("0c5a77"), web: rgb("0c5a77"),
@ -475,8 +476,8 @@
body, body,
) => { ) => {
set text(size: 20pt, lang: "en", region: "US", font: font) set text(size: 20pt, lang: "en", region: "US", font: font)
show emph: it => { text(self.colors.primary, it.body) } show emph: it => { text(self.colors.secondary, it.body) }
show cite: it => { text(self.colors.primary, it) } show cite: it => { text(self.colors.secondary, it) }
show strong: it => { text(weight: "bold", it.body) } show strong: it => { text(weight: "bold", it.body) }
// Bibliography // Bibliography
@ -486,7 +487,7 @@
show bibliography: set grid(align: top + left) show bibliography: set grid(align: top + left)
show bibliography: set text(17pt) show bibliography: set text(17pt)
show bibliography: t => { 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 grid.cell.where(x: 0): set align(top + left)
show link: set text(fill: gray) show link: set text(fill: gray)
t t

View file

@ -3,11 +3,10 @@
// Typst's Hayagriva: // Typst's Hayagriva:
// https://github.com/typst/hayagriva/blob/main/docs/file-format.md // https://github.com/typst/hayagriva/blob/main/docs/file-format.md
@software{emg25template, @article {zola-1898,
author = {Ernesto Martínez García}, AUTHOR = {Zola, Émile},
year = {2025}, TITLE = {J'accuse},
month = {3}, JOURNAL = {L'Aurore},
title = {{ISEC Slides Typst Template}}, VOLUME = {87},
url = {https://github.com/ecomaikgolf/typst-isec-master-thesis-template}, YEAR = {1898},
urldate = {2025-08-31}
} }

View file

@ -4,13 +4,13 @@
aspect-ratio: "4-3", aspect-ratio: "4-3",
slide-alignment: top, slide-alignment: top,
progress-bar: true, progress-bar: true,
institute: [mathematik.uni-graz.at], institute: [uni-graz.at],
logo: [#unigrazgraz-logo], logo: [#unigrazgraz-logo],
config-info( config-info(
title: [Computermathematik], title: [Is that an interesting title?],
subtitle: [Einführung MATLAB], subtitle: [Yes, for a subtitle.],
authors: ([Gaspard *Jankowiak*]), authors: ([Best Author], [Good Author], [Ugly Author]),
extra: [WS 2025], extra: [1st january 2026],
footer: [Let's rock], footer: [Let's rock],
download-qr: "", download-qr: "",
), ),
@ -29,12 +29,14 @@
#slide(title: [First Slide])[ #slide(title: [First Slide])[
#quote-block[ #quote-block[
Good luck with your presentation! Preout Let there be light!
] ]
+ Let's + This is
+ test + a numbered
+ lists + list.
Below is an equation:
$ $
e^(i pi) + 1 = 0 "and" integral_0^1 sin(x) dif x = "something" 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 ;)") #note("This will show on pdfpc speaker notes ;)")
] ]
#slide(title: [Bibliography])[ #slide(title: [Code example])[
meuh 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")
] ]