David1
1
Hi, I would like to have a short caption for the list of figures, and a long caption, which is displayed under the image directly.
I tried this, but I get an error:
#figure(
image("eval_compare_datasetSizes_acc.png", width: 100%),
caption: ([Short caption], [Long caption]),
kind: image
)
I am new to Typst, I already consultet the Documentation, but I couldn’t figure out my problem.
Please let me know, what my fault is. Thank you :)
Hi there @David1 , welcome to the forum.
The code you provided can’t work as the caption parameter of figure does not accept an array like you provided.
You will need to use some custom function like flex-caption described here: How to have different text shown in figure caption and in outline? - #3 by flokl
Could I please ask you to edit your previous post and enclose your code in backticks ``` ?
This is a duplicate question.
1 Like
Duplicate of
Thanks for pointing it out @vmartel08! @David1, feel free to flag your own post/message me if you think this is an error.