#show outline only if there is content
15 messages · Page 1 of 1 (latest)
you can check with a query
?r
#context if query(figure.where(kind: image)).len() > 0 {
outline(title: "Abbildungsverzeichnis", indent: true, target: figure.where(kind: image))
}
#figure(rect(), kind: image, caption: "x")
?r
#context if query(figure.where(kind: image)).len() > 0 {
outline(title: "Abbildungsverzeichnis", indent: true, target: figure.where(kind: image))
}
// #figure(rect(), kind: image, caption: "x")
Thanks @molten urchin
@molten urchin is it possible to invert a where clause? Like if there is a figure that is not an image?
you cant currently invert a where clause no
alright.
you can and or or them though
How would that look like?
oki doki