Skip to main content

slides-only

slides-only(body)(source)

Content that only appears in handout or presentation (slides) mode.

In article mode this content is stripped entirely. Use this for visual-only elements that don't make sense in a prose document (e.g., decorative graphics, audience prompts, transition animations).

body may itself contain slide-breaking elements (a heading, #pagebreak(), a bare ---) — they behave exactly as if this wrapper weren't there when in slides mode, and are simply never reached in article mode since the whole wrapper is skipped there.

Example:

#slides-only[
_Live demo here — see the code repository._
]
Parameters

body : content​

The slides-only content.

Returns: content