fixed bottom custom image order

This commit is contained in:
2025-07-19 22:54:16 +02:00
parent 8205fefed3
commit f7eb348944
3 changed files with 8 additions and 5 deletions

View File

@ -6,13 +6,16 @@
#let render(x, y, p, bottom) = {
let style = p.resolved-style
let elmts = (style.image, p.display-name)
if bottom {
elmts = elmts.rev()
}
let shape = align(
center,
stack(
dir: ttb,
spacing: normalize-units(style.spacing) * 1pt,
style.image,
p.display-name
..elmts
)
)
let anchor = if bottom {"north"} else {"base"}