How can I bypass set/show rules to revert to the default?

I have some customized show rule for references. Now, I want to bypass these rules for one specific reference and get the default behaviour.
Is this possible?

2 Likes

No. Currently we can’t revoke set/show rules in Typst. But it’s a planned feature: Related issue, Typst Roadmap

If you want to apply two different styles to the same element, you can encapsulate the element with specific styles into a function, for example:

#let styled-text(..args) = {
  set text(font: "Buenard")

  text(..args)
}

#styled-text("123", size: 10pt)

But I guess there’s probably no way to encapsulate the default style into a function, especially when you applied a show rule.

3 Likes