fix: refine heading styling and export grad
This commit is contained in:
3 files changed
+27
-17
No files matched your search
@@ -23,4 +23,7 @@
|
|||||||
#let Im = math.op("Im")
|
#let Im = math.op("Im")
|
||||||
#let Re = math.op("Re")
|
#let Re = math.op("Re")
|
||||||
#let ü = text(font: "Fira Sans", size: 0.85em, weight: 600)[[Ü]]
|
#let ü = text(font: "Fira Sans", size: 0.85em, weight: 600)[[Ü]]
|
||||||
|
|
||||||
#let ord = math.op("ord")
|
#let ord = math.op("ord")
|
||||||
|
|
||||||
|
#let grad = math.op("grad")
|
||||||
+1
-1
@@ -3,4 +3,4 @@
|
|||||||
#import "title-page.typ": title-page
|
#import "title-page.typ": title-page
|
||||||
#import "lecture.typ": lecture, lecture-counter, reset-lectures
|
#import "lecture.typ": lecture, lecture-counter, reset-lectures
|
||||||
#import "boxes.typ": *
|
#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, ü
|
||||||
+23
-16
@@ -23,20 +23,23 @@
|
|||||||
set text(size: 0.8em, font: active-theme.text.sans-font)
|
set text(size: 0.8em, font: active-theme.text.sans-font)
|
||||||
let headings = query(selector(heading.where(level: 1)).before(here()))
|
let headings = query(selector(heading.where(level: 1)).before(here()))
|
||||||
|
|
||||||
grid(
|
if headings.len() > 1 {
|
||||||
columns: (1fr, 2fr, 1fr),
|
let last = headings.last()
|
||||||
align: (start, center, end),
|
|
||||||
if seminar == none { [] } else { seminar },
|
grid(
|
||||||
if headings.len() > 1 {
|
columns: (1fr, 2fr, 1fr),
|
||||||
let last = headings.last()
|
align: (start, center, end),
|
||||||
show linebreak: none
|
if seminar == none { [] } else { seminar },
|
||||||
[*#last.body*]
|
{
|
||||||
},
|
show linebreak: none
|
||||||
if lectures.len() > 0 {
|
[*#last.body*]
|
||||||
let current = lectures.last().value
|
},
|
||||||
text(fill: active-theme.colors.text)[#current.prefix #current.number, #current.date]
|
if lectures.len() > 0 {
|
||||||
},
|
let current = lectures.last().value
|
||||||
)
|
text(fill: active-theme.colors.text)[#current.prefix #current.number, #current.date]
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@@ -47,10 +50,15 @@
|
|||||||
)
|
)
|
||||||
show math.equation: set text(font: active-theme.text.math-font)
|
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 {
|
show heading.where(level: 1): it => context {
|
||||||
set text(
|
set text(
|
||||||
size: 1.25em,
|
size: 1.25em,
|
||||||
font: theme-state.get().text.sans-font,
|
|
||||||
weight: 700,
|
weight: 700,
|
||||||
fill: theme-state.get().colors.text,
|
fill: theme-state.get().colors.text,
|
||||||
)
|
)
|
||||||
@@ -70,7 +78,6 @@
|
|||||||
show heading.where(level: 2): it => context {
|
show heading.where(level: 2): it => context {
|
||||||
set text(
|
set text(
|
||||||
size: 1.15em,
|
size: 1.15em,
|
||||||
font: theme-state.get().text.sans-font,
|
|
||||||
weight: 700,
|
weight: 700,
|
||||||
fill: theme-state.get().colors.text,
|
fill: theme-state.get().colors.text,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user