Improve typst recipe
This commit is contained in:
parent
53d521e9f0
commit
5a765e1112
@ -19,16 +19,18 @@ set page(
|
||||
)
|
||||
set par(justify: true, leading: 0.6em)
|
||||
set text(
|
||||
font: "Linux Libertine",
|
||||
font: "Libertinus Serif",
|
||||
size: 12pt,
|
||||
)
|
||||
show heading: set text(font: "Roboto")
|
||||
show heading: set text(font: "Nimbus Sans")
|
||||
|
||||
align(center, text(35pt, font: "Roboto")[
|
||||
align(center, text(32pt, font: "Nimbus Sans")[
|
||||
#text(title, weight: "medium") \
|
||||
#if subtitle != none {
|
||||
v(-1cm)
|
||||
text(subtitle, size: 20pt)
|
||||
v(-0.9cm)
|
||||
text(subtitle, size: 18pt)
|
||||
} else {
|
||||
v(-0.5cm)
|
||||
}
|
||||
])
|
||||
v(-0.2cm)
|
||||
@ -68,9 +70,9 @@ doc
|
||||
|
||||
#let step(ingredients, procedure) = {
|
||||
v(2.5mm)
|
||||
style(styles => {
|
||||
let space = measure(par(ingredients, leading: 0.8em), styles).height - 0.75em
|
||||
context {
|
||||
let space = measure(par(ingredients, leading: 0.8em)).height - 0.75em
|
||||
grid(columns: (1fr, 1fr), par(ingredients, leading: 0.8em), [#v(space)#procedure])
|
||||
})
|
||||
v(2.5mm)
|
||||
v(2.5mm)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user