add initial version
This commit is contained in:
commit
45f896c744
39
lib.typ
Normal file
39
lib.typ
Normal file
@ -0,0 +1,39 @@
|
||||
#let law(
|
||||
symbol: "§",
|
||||
cols:3,
|
||||
title: none,
|
||||
toc_show: true,
|
||||
toc_header: "Inhaltsverzeichnis",
|
||||
body,
|
||||
)={
|
||||
|
||||
set page(
|
||||
paper: "a4",
|
||||
margin: (
|
||||
top: .5cm,
|
||||
bottom: .5cm,
|
||||
left: 1.5cm,
|
||||
right: .5cm
|
||||
),
|
||||
)
|
||||
|
||||
set par(justify: true)
|
||||
set text(font: "New Computer Modern", size: 7pt, lang: "de", region: "AT")
|
||||
set par(leading: 2pt)
|
||||
|
||||
if title != none {
|
||||
heading(level: 1)[#title]
|
||||
}
|
||||
|
||||
columns(cols, gutter: 1em)[
|
||||
#if toc_show [
|
||||
#outline(title: toc_header)
|
||||
]
|
||||
// Show rule for article headers
|
||||
#show regex("^" + symbol + " \d+.*"): it => {
|
||||
heading(level: 5, numbering: none, it, outlined: false)
|
||||
}
|
||||
#body
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user