diff --git a/src/Analysis_rewrite.typ b/src/Analysis_rewrite.typ index b1bee0b..3704924 100644 --- a/src/Analysis_rewrite.typ +++ b/src/Analysis_rewrite.typ @@ -1,3 +1,5 @@ +#import "lib/common_rewrite.typ" : * + #set page( paper: "a4", margin: ( @@ -50,7 +52,6 @@ #let colorAbleitung = color.hsl(356.92deg, 92.13%, 75.1%) #let colorIntegral = color.hsl(34.87deg, 92.13%, 75.1%) -#let bgBlock(body, fill: color) = block(body, fill:fill.lighten(80%), width: 100%, inset: (bottom: 2mm)) #columns(4, gutter: 2mm)[ #bgBlock(fill: colorAllgemein)[ diff --git a/src/lib/common_rewrite.typ b/src/lib/common_rewrite.typ new file mode 100644 index 0000000..2521372 --- /dev/null +++ b/src/lib/common_rewrite.typ @@ -0,0 +1,24 @@ +#let bgBlock(body, fill: color) = block(body, fill:fill.lighten(80%), width: 100%, inset: (bottom: 2mm)) + +#let SeperatorLine = line(length: 100%, stroke: (paint: black, thickness: 0.3mm)) +#let MathAlignLeft(e) = { + align(left, block(e)) +} + +#let subHeading(it: content, fill: color) = { + box( + align( + top+center, + text( + it, + size: 10pt, + weight: "regular", + style: "italic", + ) + ), + fill: fill, + width: 100%, + inset: 1mm, + height: auto + ) +}