main.typ: better spacing on figures

This commit is contained in:
dogeystamp 2023-07-11 22:34:00 -04:00
parent 44bd05b415
commit 69d1c5c088
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -74,6 +74,21 @@
set text(size: normal-size, font: font, weight: "light")
show link: body => text(fill: rgb("#777777"), weight: "bold", body)
show math.equation: eq => eq
show figure: fig => {
show: pad.with(x: 1em)
set align(center)
v(1em)
fig.body
if fig.has("caption") {
v(1em, weak: true)
[Figure ]
if fig.numbering != none {
[#counter(figure).display(fig.numbering)]
}
[. ]
fig.caption
}
}
set table(inset: 10pt)
show heading: set text(font: heading_font, weight: "black")
show raw.where(block: true): txt => pad(