main.typ: fix figures' captions breaking off
This commit is contained in:
parent
1520edb9d7
commit
83a2aa0f18
8
main.typ
8
main.typ
@ -104,14 +104,10 @@
|
|||||||
set math.equation(numbering: "(1)")
|
set math.equation(numbering: "(1)")
|
||||||
show figure: fig => {
|
show figure: fig => {
|
||||||
show: pad.with(x: 1em)
|
show: pad.with(x: 1em)
|
||||||
|
show image: pad.with(y: 0.5em)
|
||||||
set image(width: 50%)
|
set image(width: 50%)
|
||||||
set align(center)
|
set align(center)
|
||||||
v(1em)
|
fig
|
||||||
fig.body
|
|
||||||
if fig.has("caption") {
|
|
||||||
v(1em, weak: true)
|
|
||||||
fig.caption
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
set table(inset: 10pt, stroke: 0.5pt + black)
|
set table(inset: 10pt, stroke: 0.5pt + black)
|
||||||
show heading: set text(font: heading_font, weight: "black")
|
show heading: set text(font: heading_font, weight: "black")
|
||||||
|
Loading…
Reference in New Issue
Block a user