main.typ: fix figures' captions breaking off

This commit is contained in:
dogeystamp 2023-12-27 20:25:06 -05:00
parent 1520edb9d7
commit 83a2aa0f18
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -104,14 +104,10 @@
set math.equation(numbering: "(1)")
show figure: fig => {
show: pad.with(x: 1em)
show image: pad.with(y: 0.5em)
set image(width: 50%)
set align(center)
v(1em)
fig.body
if fig.has("caption") {
v(1em, weak: true)
fig.caption
}
fig
}
set table(inset: 10pt, stroke: 0.5pt + black)
show heading: set text(font: heading_font, weight: "black")