table captions left align

This commit is contained in:
2025-02-11 12:11:33 +02:00
parent 92a0c2153f
commit 658e745b68

View File

@ -101,6 +101,8 @@
// figures // figures
set figure.caption(separator: [ -- ]) set figure.caption(separator: [ -- ])
show figure.where(kind: table): set figure.caption(position: top)
show figure.caption.where(kind: table): set align(left)
let img = counter("image") let img = counter("image")
let tab = counter("table") let tab = counter("table")
@ -117,7 +119,6 @@
context str(counter(heading).get().at(0)) + "." + context tab.display() context str(counter(heading).get().at(0)) + "." + context tab.display()
}, },
) )
show figure.where(kind: table): set figure.caption(position: top) // TODO: left align the caption
// appearance of references to images and tables // appearance of references to images and tables
show ref: it => { show ref: it => {