How can I put a '\n' into a caption?

gemini and perplexity are claiming that cr/lf (= \n or linefeed) is supported in a caption, but I can’t make it work. I’d like to break the following caption into two lines

#figure(
  grid(
    columns: 2,
    image("f.counts.cumulative.png", width: 90%),
    image("f.counts.weekly.png", width: 90%)
  ),
  caption: [Cumulative Thomisidae counts:
  control: orange, SNH: blue]
) <figure.temporal>

Is it possible? Thank you.

Hello. Please read How to post in the Questions category before posting, and update your post.

Are you looking for a line break?

#figure(
  grid(
    columns: 2,
    gutter: 1em,
    rect(), rect(),
  ),
  caption: [Cumulative Thomisidae counts: \
    control: orange, SNH: blue],
) <figure.temporal>

image

For sub figures there is subpar – Typst Universe.

Hi Andrew, I understand your point, but am confused about the current state of my post. Could a moderator have fixed it already? Anyway, thanks and I will try to get it right next time.

1 Like

Indeed, if you didn’t change it, then the moderator must’ve done this.