cord
May 30, 2025, 4:16pm
1
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.
If your question pertains to a bit of Typst markup you have problems with, put it in the question body! You can syntax-highlight Typst code by wrapping it in ` ```typ … ````. It will then look like this:
#set font(size: 12pt)
Hello from *Typst* at $ pi.var + 1 $ o'clock!
If you need to highlight a code or math mode snippet instead, the language tags typc
and typm
do that, respectively.
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>
For sub figures there is subpar – Typst Universe .
cord
May 30, 2025, 10:11pm
4
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
Andrew
May 30, 2025, 10:31pm
5
Indeed, if you didn’t change it, then the moderator must’ve done this.