Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

hide元素
Question mark
自始可用Go to source

Hides content without affecting layout.

The hide function allows you to hide content while the layout still “sees” it. This is useful for creating blank space that is exactly as large as some content.

Example

Hello Jane \ #hide[Hello] Joe

Redaction

This function may also be useful for redacting content as its arguments are neither present visually nor accessible to Assistive Technology. That said, there can be some traces of the hidden content (such as a bookmarked heading in the PDF’s Document Outline).

Note that, depending on the circumstances, it may be possible for content to be reverse engineered based on its size in the layout. We thus do not recommend using this function to hide highly sensitive information.

参数
Question mark

hide(content) → content

body
content
必需参数
Question mark
位置参数
Question mark

The content to hide.