跳到主要内容

hiding-cover

hiding-cover(source)

The default cover method (wraps Typst's own hide) and touying's default value for config-methods(cover: ..). Exposed as a stable, comparable value (rather than only living as a private default in configs.typ) so it can be named and reconfigured like any other cover method.

To tell whether a configured method genuinely removes content, ask cover-kind rather than comparing against this by identity: .with(..) produces a different function value, so identity would miss it.

Returns: function