Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

hide
Element
Element
Element functions can be customized with set and show rules.

Hides content without affecting layout.

The hide function allows you to hide content while the layout still 'sees' it. This is useful to create whitespace that is exactly as large as some content. It may also be useful to redact content because its arguments are not included in the output.

Example

Hello Jane \
#hide[Hello] Joe
Preview

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

body
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The content to hide.

Open official docs

Search