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

Formatting function affects styling of header #4860

Closed
1 task done
ElectrifyPro opened this issue Aug 29, 2024 · 2 comments
Closed
1 task done

Formatting function affects styling of header #4860

ElectrifyPro opened this issue Aug 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ElectrifyPro
Copy link

ElectrifyPro commented Aug 29, 2024

Description

I apologize in advance if this is a misunderstanding on my part.

I have the following Typst code:

#set page(
  header: [
    John Foo \
    #link("mailto:johnfoo@johnfoo.com")
    #h(1fr)
    (123) 456-7890
  ],
)

#emph(text(blue)[Blue text])

I expected that using the emph and text functions like this would only apply the emphasis and the color to the text Blue text. But this code actually applies them to the header as well:

image

Is this intended? From my previous understanding, in order to set a document-wide style, I should instead need to use #set rules at the top to apply them.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Version (commit): typst 0.11.0 (105d715)

@ElectrifyPro ElectrifyPro added the bug Something isn't working label Aug 29, 2024
@LaurenzV
Copy link
Collaborator

That was a rather long-standing bug (see #241) but was actually fixed a couple of days ago. On the newest development version of Typst, this works as expected:

image

@LaurenzV LaurenzV closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
@ElectrifyPro
Copy link
Author

Awesome! Good to know and thank you for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants