#Figure with citation.

9 messages · Page 1 of 1 (latest)

tender zenith
#

Hi there, I'd like to create a figure with citation. The citation should be displayed in the figure caption next to the figure itself; but NOT in the list of figures.
This was easy in latex, because you could define a short caption in brakets that was used in the LOF.
How can this be achieved in Typst?

granite forge
#

I tried something more cursed

#

?r ```
#show outline: out => {
show hide: none
out
}

#show figure.caption: it => {
show hide: hidden-cap => { hidden-cap.body }
it
}

#outline(target: figure)
#figure(caption: [Test#hide[ bebop]])[]

granite forge
#

but this forbids using hide for its intended purpose

#

inside captions and outlines

tender zenith
#

This is an old issue; but the workarounds look ok.
your workaround does not use state, which seems pretty neat.
I will try it; Thank you!

granite forge
#

No worries