Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Enivex opened this issue May 8, 2023 · 3 comments
Open

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

Enivex opened this issue May 8, 2023 · 3 comments

Comments

@Enivex
Copy link
Contributor

Enivex commented May 8, 2023

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.)

@MarkBlyth
Copy link
Contributor

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 ?

@drupol
Copy link
Contributor

drupol commented May 9, 2023

I also support this change.

@andreasKroepelin
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants