Improve recipe typst
This commit is contained in:
12
typst/recipe/recipe.typ
Normal file → Executable file
12
typst/recipe/recipe.typ
Normal file → Executable file
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#let template(
|
#let template(
|
||||||
title: "",
|
title: "",
|
||||||
|
subtitle: none,
|
||||||
persons: none,
|
persons: none,
|
||||||
preptime: none,
|
preptime: none,
|
||||||
cooktime: none,
|
cooktime: none,
|
||||||
@@ -23,11 +24,14 @@ set text(
|
|||||||
)
|
)
|
||||||
show heading: set text(font: "Roboto")
|
show heading: set text(font: "Roboto")
|
||||||
|
|
||||||
v(0.5cm)
|
|
||||||
align(center, text(35pt, font: "Roboto")[
|
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, {
|
align(center, {
|
||||||
let l = [#v(-0.25em)#line(length: 1.5em, angle: 90deg)]
|
let l = [#v(-0.25em)#line(length: 1.5em, angle: 90deg)]
|
||||||
|
|
||||||
@@ -57,7 +61,7 @@ align(center, {
|
|||||||
..data
|
..data
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
v(1cm)
|
v(0.5cm)
|
||||||
|
|
||||||
doc
|
doc
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user