How to add figure title (rather than whole caption) for outline of figures

Heya, I’d like to include a table of figures in my document.

#figure(
  image("figures/cute_kittens.svg", width: 80%),
  caption: [Image of cute kittens. As you can see, these kittens are very cute.],
) <fig_cute_kittens>

#outline(target: figure.where(kind: image))

This however includes the whole caption. I’d like to have another field in the image which would be used for the outline, perhaps the alt parameter in image? I really don’t want to redefine figures as was suggested here, I’m still beginning with typst and this looks too complex for me.

Thank you!

Hi @Vaclav_Bocan , this is a duplicate of How to have different text shown in figure caption and in outline? - #3 by flokl. You will find a quick solution which you can copy and paste to achieve what you are looking for.

2 Likes