1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2817],{18340:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>d});var o=t(85893),r=t(11151);const i={sidebar_position:21,description:"Display content only in handout mode.",toc_max_heading_level:2},c="handout-only",s={id:"reference/core/handout-only",title:"handout-only",description:"Display content only in handout mode.",source:"@site/docs/reference/core/handout-only.mdx",sourceDirName:"reference/core",slug:"/reference/core/handout-only",permalink:"/docs/reference/core/handout-only",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:21,frontMatter:{sidebar_position:21,description:"Display content only in handout mode.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"only",permalink:"/docs/reference/core/only"},next:{title:"alternatives-match",permalink:"/docs/reference/core/alternatives-match"}},a={},d=[{value:"cont : <TypeLink></TypeLink>",id:"cont",level:3}];function l(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components},{Param:t,Parameters:i,Signature:c,SignatureName:s,SignatureParam:a,SourceLink:d,TypeLink:l}=n;return t||h("Param",!0),i||h("Parameters",!0),c||h("Signature",!0),s||h("SignatureName",!0),a||h("SignatureParam",!0),d||h("SourceLink",!0),l||h("TypeLink",!0),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{id:"handout-only",children:"handout-only"}),"\n",(0,o.jsx)(c,{children:(0,o.jsxs)("code",{children:[(0,o.jsx)(s,{children:"handout-only"}),"(",(0,o.jsx)(a,{children:(0,o.jsx)(n.a,{href:"#cont",children:"cont"})}),")",(0,o.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/core.typ#L1881"})]})}),"\n",(0,o.jsx)(n.p,{children:"Display content only in handout mode.\nDon't reserve space when hidden, content is completely not existing there."}),"\n",(0,o.jsx)(n.p,{children:"Example:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-typst",children:"#handout-only[This content is only visible in handout mode.]\n"})}),"\n",(0,o.jsxs)(i,{children:[(0,o.jsxs)(n.h3,{id:"cont",children:["cont : ",(0,o.jsx)(l,{type:"content"})]}),(0,o.jsx)(t,{children:(0,o.jsx)(n.p,{children:"The content to display in handout mode."})})]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Returns:"})," ",(0,o.jsx)(l,{type:"content"})]})]})}function u(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}function h(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>c});var o=t(67294);const r={},i=o.createContext(r);function c(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.