Files
Hochschulmathematik/Band1/deckblatt.typ
2026-02-15 10:52:12 +01:00

80 lines
2.0 KiB
Typst

#let deckblatt(titel: "", reihe1: "", reihe2: "", titel2: "", logo: none, verlag: "", bandnr: "") = {
place(
top + left,
dx: -2.5cm, // Hebt den linken Rand auf
dy: -1cm, // Abstand von der Oberkante des Blattes
rect(
width: 15cm, // Exakte Breite A4
height: 65mm,
fill: rgb(43.9%, 19.6%, 60.4%),
inset: (right: 1cm, left: 7mm, top: 1cm),
//stroke: 0.5pt + red,
)[
#grid(
columns: (80%, 20%),
rows: (2cm, 1.5cm, 1.5cm),
//gutter: 1pt,
//stroke: 2pt + red,
align: left + horizon,
grid.cell(colspan: 2)[
#text(5.1em, white, weight: "bold", tracking: 0em, font: "Lato")[
#titel]],
text(2.1em, white, tracking: 0em,weight: "bold",font: "Lato")[#reihe1],
grid.cell(rowspan: 2, align: center + horizon)[
#rect(
width: 2.2cm,
height: 2.2cm,
fill: white,
radius: 1pt,
align(center + horizon, text(red, weight: "bold",size: 5em)[#bandnr])
)
],text(2.1em, white, tracking: 0.11em,weight: "bold",font: "Lato")[#reihe2]
)
])
place(
top + left,
dx: -2cm, // Hebt den linken Rand auf
dy: 55mm, // Abstand von der Oberkante des Blattes
rect(
width: 21cm, // Exakte Breite A4
height: 7cm,
fill: white,
inset: (right: 3cm, left: 1cm, top: 1cm),
//stroke: 0.5pt + red,
)[#set par(leading: 1.5em)
#text(2.2em, rgb(43.9%, 19.6%, 60.4%), tracking: 0em,weight: "bold", font: "Lato")[#titel2],
]
)
place(
top + left,
dx: -2.5cm, // Hebt den linken Rand auf
dy: 16cm, // Abstand von der Oberkante des Blattes
rect(
width: 17cm, // Exakte Breite A4
height: 15mm,
fill: rgb(43.9%, 19.6%, 60.4%),
inset: (right: 1cm, left: 1cm, top: 5mm),
//stroke: 0.5pt + red,
)[
#text(1.2em, white, weight: "bold", tracking: 0em)[#verlag]
]
)
if logo != none {
place(
top + right,
dx: -3cm, // Abstand vom rechten Rand
dy: 9cm, // Abstand von oben
logo
)
}
}
}