How to feed an array of selectors to outline's target?

I have an array of locations and I’d like to feed it to the outline’s argument target so I can display them on the index. How can I do it?

You can use selector.or(..listOfSelectors) when specifying the target:

#outline(
  title: [= All Figures],
  target: figure
)

#let targets = (
  figure.where(kind: image),
  figure.where(kind: table)
)
#outline(
  title: [= Only Image and Table],
  target: selector.or(..targets)
)

#figure(
  kind: table,
  table([Table])
)

#figure(
  kind: image,
  supplement: "image",
  box(width: 2cm, height: 1cm, stroke: 1pt)[Image]
)

#figure(
  kind: "math",
  supplement: "Equation",
  $ y = m * x + b $
)

(this was based on SillyFreak’s answer here)


If this doesn’t solve your problem can you give more details please.

1 Like

It works. Thank you!

1 Like