1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2374],{10123:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var o=t(85893),r=t(11151);const i={sidebar_position:44,description:"Display content only in handout mode.",toc_max_heading_level:2},s="handout-only",c={id:"reference/utils/handout-only",title:"handout-only",description:"Display content only in handout mode.",source:"@site/docs/reference/utils/handout-only.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/handout-only",permalink:"/docs/reference/utils/handout-only",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:44,frontMatter:{sidebar_position:44,description:"Display content only in handout mode.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"only",permalink:"/docs/reference/utils/only"},next:{title:"alternatives-match",permalink:"/docs/reference/utils/alternatives-match"}},a={},l=[{value:"cont : <TypeLink></TypeLink>",id:"cont",level:3}];function d(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:s,SignatureName:c,SignatureParam:a,SourceLink:l,TypeLink:d}=n;return t||h("Param",!0),i||h("Parameters",!0),s||h("Signature",!0),c||h("SignatureName",!0),a||h("SignatureParam",!0),l||h("SourceLink",!0),d||h("TypeLink",!0),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{id:"handout-only",children:"handout-only"}),"\n",(0,o.jsx)(s,{children:(0,o.jsxs)("code",{children:[(0,o.jsx)(c,{children:"handout-only"}),"(",(0,o.jsxs)(a,{children:[(0,o.jsx)(n.a,{href:"#self",children:"self: none"}),", "]}),(0,o.jsx)(a,{children:(0,o.jsx)(n.a,{href:"#cont",children:"cont"})}),")",(0,o.jsx)(l,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L2253"})]})}),"\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)(d,{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)(d,{type:"content"})]})]})}function u(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(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:()=>c,a:()=>s});var o=t(67294);const r={},i=o.createContext(r);function s(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(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.