polylux icon indicating copy to clipboard operation
polylux copied to clipboard

Examples should use [] instead of "" for title etc.

Open Enivex opened this issue 2 years ago • 3 comments

If you wish to use markup in a title, say an en-dash between names, or italic, you need to swap "" for []. Someone new to typst might not know this, so I think it would be good idea to use this in the documentation. That is, for instance

#show: slides.with(
    authors: [Names of author(s)],
    short-authors: [Shorter author for slide footer],
    title: [Title of the presentation],
    subtitle: [Subtitle of the presentation],
    short-title: [Shorter title for slide footer],
    date: [March 2023],
)

(I ran into this while making a presentation today.)

Enivex avatar May 08 '23 18:05 Enivex

I've also ran into this, and took me a while to figure out it needs content blocks instead of strings. I'd be happy to change the examples @andreasKroepelin ?

MarkBlyth avatar May 09 '23 10:05 MarkBlyth

I also support this change.

drupol avatar May 09 '23 16:05 drupol

I've also ran into this, and took me a while to figure out it needs content blocks instead of strings. I'd be happy to change the examples @andreasKroepelin ?

That would be great, thanks!

andreasKroepelin avatar May 19 '23 14:05 andreasKroepelin