jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
206 stars 61 forks source link

[Typst] Short captions for figures #1448

Open roaldarbol opened 2 months ago

roaldarbol commented 2 months ago

Proposal

Normally, in Typst, the caption is used as the "title" in List of Figures. That's problematic when you have long captions (see picture below). However, it's possible to provide a short caption for this exact use case - see https://sitandr.github.io/typst-examples-book/book/snippets/chapters/outlines.html?highlight=caption#long-and-short-captions-for-the-outline.

Can we come up with a way to provide a short caption? Maybe a "title" or similar for MyST figures which is then converted into a short caption during conversion for Typst?

Screenshot 2024-08-11 at 11 50 53