#let deckblatt(bandnr: "", autor: "", titel: "") = { place( top + left, dx: -20mm, // Hebt den linken Rand auf dy: -20mm, // Abstand von der Oberkante des Blattes rect( width: 163mm, // Exakte Breite A4 height: 230mm, fill: rgb(52.2%, 87.8%, 78.4%), inset: (right: 1cm, left: 7mm, top: 1cm), //stroke: 0.5pt + red, )) place( top + left, dx: -20mm, dy: 12mm, //Linie rect( width: 162mm, height: 2mm, fill: rgb(100%, 100%, 87.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) place( top + left, dx: -2.5cm, dy: 1.4cm, rect( width: 27cm, height: 2mm, fill: rgb(17.3%, 19.6%, 36.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) place( top + left, dx: -2.5cm, dy: 1.6cm, rect( width: 27cm, // Exakte Breite A4 height: 2mm, fill: rgb(100%, 100%, 87.1%), inset: (right: 1cm, left: 7mm, top: 1cm), //stroke: 0.5pt + red, )) place( top + left, dx: -2.5cm, dy: 1.8cm, rect( width: 27cm, // Exakte Breite A4 height: 2mm, fill: rgb(17.3%, 19.6%, 36.1%), inset: (right: 1cm, left: 7mm, top: 1cm), //stroke: 0.5pt + red, )) place( top + left, dx: -2.5cm, // Hebt den linken Rand auf dy: 2cm, // Abstand von der Oberkante des Blattes rect( width: 27cm, // Exakte Breite A4 height: 2mm, fill: rgb(100%, 100%, 87.1%), inset: (right: 1cm, left: 7mm, top: 1cm), //stroke: 0.5pt + red, )) place( top + left, // Wo auf der Seite (oder im Absatz) dx: 94mm, // Versatz von links dy: 85mm, // Versatz von oben { import "@preview/cetz:0.3.1" cetz.canvas({ import cetz.draw: * // Halbkreis arc((x:0,y:0), start: 0deg, stop: -180deg, radius: 17mm, fill: rgb(100%, 100%, 87.1%), stroke: none) }) } ) place( top + left, dx: -2.5cm, // Hebt den linken Rand auf dy: 2.2cm, // Abstand von der Oberkante des Blattes rect( width: 230cm, // Exakte Breite A4 height: 58mm, fill: rgb(12.9%, 18%, 32.9%), inset: (right: 1cm, left: 7mm, top: 1cm), //stroke: 0.5pt + red, )) place( top + left, dx: -2.5cm, // Hebt den linken Rand auf dy: 80mm, rect( width: 27cm, height: 2mm, fill: rgb(100%, 100%, 87.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) place( top + left, dx: -2.5cm, dy: 82mm, rect( width: 27cm, height: 2mm, fill: rgb(17.3%, 19.6%, 36.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) place( top + left, dx: -2.5cm, dy: 84mm, rect( width: 27cm, height: 2mm, fill: rgb(100%, 100%, 87.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) place( top + left, dx: -2.5cm, dy: 86mm, rect( width: 27cm, height: 2mm, fill: rgb(17.3%, 19.6%, 36.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) place( top + left, dx: -2.5cm, // Hebt den linken Rand auf dy: 88mm, rect( width: 27cm, height: 2mm, fill: rgb(100%, 100%, 87.1%), inset: (right: 1cm, left: 7mm, top: 1cm), )) /* place( top + left, dx: 7.5cm, // Hebt den linken Rand auf dy: 62mm, circle( radius: 15mm, fill: rgb(100%, 32.2%, 18.8%)), //height: 2mm, //fill: rgb(100%, 100%, 87.1%), //inset: (right: 1cm, left: 7mm, top: 1cm), ) */ place( top + left, dx: 95mm, dy: 68mm, box(width: 30mm, height: 30mm)[ #circle(radius: 16mm, fill: rgb(100%, 32.2%, 18.8%), stroke: none) #place(center + horizon)[ // Wir erzwingen hier ALLES neu #set text(font: "Fira Math", size: 48pt, fill: black) #bandnr ] ] /* { set align(center + horizon) text(weight: "bold",fill: black, size: 45pt)[$1$] }*/ ) // Text place( top + left, dx: -12mm, dy: 2.6cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { text(7.5em, fill: rgb(100%, 32.2%, 18.8%), weight: "bold",style: "italic", tracking: 0.06em, font: "Lato")[MATHEMATIK] }) ) place( top + left, dx: -12mm, dy: 4.7cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { text(2em, fill: rgb(100%, 100%, 87.1%), weight: "bold", tracking: 0em, font: "Lato")[FÜR INGENIEURE] }) ) place( top + left, dx: -0.7cm, dy: 5.4cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { text(2em, fill: rgb(100%, 100%, 87.1%), weight: "bold", tracking: 0em, font: "Lato")[NATURWISSENSCHAFTLER] }) ) place( top + left, dx: -0.7cm, dy: 6.1cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { text(2em, fill: rgb(100%, 100%, 87.1%), weight: "bold", tracking: 0em, font: "Lato")[ÖKONOMEN] })) place( top + left, dx: -0.7cm, dy: 6.8cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { text(2em, fill: rgb(100%, 100%, 87.1%), weight: "bold", tracking: 0em, font: "Lato")[LANDWIRTE] })) place( top + left, dx: -0.7cm, dy: 10cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { text(1.25em, fill: rgb(3.1%, 20%, 29%), weight: "bold", tracking: 0.05em, font: "Lato")[#autor] })) place( top + left, dx: -0.7cm, dy: 11.5cm, // box mit width: auto erlaubt der Zeile, beliebig lang zu werden box(width: 150%, { set par(leading: 1em) text(1.9em, fill: rgb(3.1%, 20%, 29%),weight: "bold", tracking: 0.0em, font: "Lato")[#titel] })) }