Improve recipe typst

This commit is contained in:
Joël von der Weid 2024-11-10 19:25:47 +01:00
parent 14ea605b26
commit 53d521e9f0

12
typst/recipe/recipe.typ Normal file → Executable file
View File

@ -5,6 +5,7 @@
#let template(
title: "",
subtitle: none,
persons: none,
preptime: none,
cooktime: none,
@ -23,11 +24,14 @@ set text(
)
show heading: set text(font: "Roboto")
v(0.5cm)
align(center, text(35pt, font: "Roboto")[
#text(title, weight: "medium")
#text(title, weight: "medium") \
#if subtitle != none {
v(-1cm)
text(subtitle, size: 20pt)
}
])
v(-0.8cm)
v(-0.2cm)
align(center, {
let l = [#v(-0.25em)#line(length: 1.5em, angle: 90deg)]
@ -57,7 +61,7 @@ align(center, {
..data
)
})
v(1cm)
v(0.5cm)
doc
}