Update typst

This commit is contained in:
2023-04-14 18:43:18 +02:00
parent a3bb4648ca
commit 6fa2bff614
3 changed files with 16 additions and 18 deletions
+10 -12
View File
@@ -3,17 +3,15 @@
#show link: underline
// Code formatting
#show raw.where(block: false): box.with(
fill: luma(240),
inset: (x: 3pt, y: 0pt),
outset: (y: 3pt),
radius: 2pt,
)
#show raw.where(block: true): block.with(
fill: luma(240),
inset: 10pt,
radius: 4pt,
)
#show raw.where(block: true): it => { set par(justify: false); grid(
columns: (100%, 100%),
column-gutter: -100%,
block(width: 100%, inset: 1em, for (i, line) in it.text.split("\n").enumerate() {
box(width: 0pt, align(right, str(i + 1) + h(2em)))
hide(line)
linebreak()
}),
block(radius: 1em, fill: luma(246), width: 100%, inset: 1em, it),
)}
#include "foreword/main.typ"