fix: refine heading styling and export grad

This commit is contained in:
Popa committed 2026-10-31 18:19:51 +01:00
1 parent 0cab7726df
commit e9756f7bdd
3 files changed
+15 -5

No files matched your search

+3
View File
@@ -23,4 +23,7 @@
#let Im = math.op("Im")
#let Re = math.op("Re")
#let ü = text(font: "Fira Sans", size: 0.85em, weight: 600)[[Ü]]
#let ord = math.op("ord")
#let grad = math.op("grad")
+1 -1
View File
@@ -3,4 +3,4 @@
#import "title-page.typ": title-page
#import "lecture.typ": lecture, lecture-counter, reset-lectures
#import "boxes.typ": *
#import "helpers.typ": Im, Re, ord, qed, qed-equation, render-footnote-entry, ü
#import "helpers.typ": grad, Im, Re, ord, qed, qed-equation, render-footnote-entry, ü
+11 -4
View File
@@ -23,12 +23,14 @@
set text(size: 0.8em, font: active-theme.text.sans-font)
let headings = query(selector(heading.where(level: 1)).before(here()))
if headings.len() > 1 {
let last = headings.last()
grid(
columns: (1fr, 2fr, 1fr),
align: (start, center, end),
if seminar == none { [] } else { seminar },
if headings.len() > 1 {
let last = headings.last()
{
show linebreak: none
[*#last.body*]
},
@@ -38,6 +40,7 @@
},
)
}
}
},
)
@@ -47,10 +50,15 @@
)
show math.equation: set text(font: active-theme.text.math-font)
show heading: it => context {
set text(font: theme-state.get().text.sans-font)
show math.equation: set text(font: "Fira Math")
it
}
show heading.where(level: 1): it => context {
set text(
size: 1.25em,
font: theme-state.get().text.sans-font,
weight: 700,
fill: theme-state.get().colors.text,
)
@@ -70,7 +78,6 @@
show heading.where(level: 2): it => context {
set text(
size: 1.15em,
font: theme-state.get().text.sans-font,
weight: 700,
fill: theme-state.get().colors.text,
)