Resetting `show` and `set` to its default / Revoke rules
I think we need a way to reset [`show` rules](https://typst.app/docs/reference/styling/#show-rules) to their default. ```typst // introduce a custom style for all text objects #show text: box.with(stroke: .4pt + red, outset: (bottom: .3em, rest: .1em), radius: .1em) Some simple text. Some other text wrapped in a tight red box. // how do we turn it off?! #show text: it => it Ugh! ``` Similarly, after a [`set` rule](https://typst.app/docs/reference/styling/#set-rules) there is no simple way of "unsetting" it (reverting to the default), apart from explicitly writing the default or wrapping everything in a scope.
Posted by FedericoStra on Mar 29, 2023, 9:57 AM
Tags
Related issues
- 2026 - Microsoft Office 365
- [Ubuntu] `ubuntu-latest` label will use Ubuntu 26.04 in November 2026
- Gamut mapping
- [Codex Desktop] Editing and resending a queued message triggers "App-server queued follow-up no longer exists"
- [Windows] ChatGPT 26.820.60940 fails with "invalid transport in mcp_servers.codex_app"; Beta 26.727.40816 works
- [BUG]: infinite loading of videos
Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments
github (SaaS)
2026 - Microsoft Office 365
[Ubuntu] `ubuntu-latest` label will use Ubuntu 26.04 in November 2026
Gamut mapping
[Codex Desktop] Editing and resending a queued message triggers "App-server queued follow-up no longer exists"
[Windows] ChatGPT 26.820.60940 fails with "invalid transport in mcp_servers.codex_app"; Beta 26.727.40816 works
[BUG]: infinite loading of videos
Restore GPT-5.6 Sol’s 372k Codex context window, or provide an opt-in setting
Codex Desktop for macOS repeatedly triggers `syspolicyd` / `trustd` CPU and memory runaway
Resetting `show` and `set` to its default / Revoke rules
I think we need a way to reset [`show` rules](https://typst.app/docs/reference/styling/#show-rules) to their default. ```typst // introduce a custom style for all text objects #show text: box.with(stroke: .4pt + red, outset: (bottom: .3em, rest: .1em), radius: .1em) Some simple text. Some other text wrapped in a tight red box. // how do we turn it off?! #show text: it => it Ugh! ``` Similarly, after a [`set` rule](https://typst.app/docs/reference/styling/#set-rules) there is no simple way of "unsetting" it (reverting to the default), apart from explicitly writing the default or wrapping everything in a scope.
Comments (0)
No comments yet. Start the discussion.