PageSourceSearch

https://touying-typ.github.io/assets/js/dbd03a54.7594ac8c.js

js touying-typ.github.io collected 2026-10-03 10:07:18 UTC 3,524 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3243],{26700:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>d,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var t=r(85893),i=r(11151);const o={sidebar_position:5,description:"Wrapper for a slide function to make it can receive self as an argument.",toc_max_heading_level:2},s="touying-slide-wrapper",a={id:"reference/core/touying-slide-wrapper",title:"touying-slide-wrapper",description:"Wrapper for a slide function to make it can receive self as an argument.",source:"@site/docs/reference/core/touying-slide-wrapper.mdx",sourceDirName:"reference/core",slug:"/reference/core/touying-slide-wrapper",permalink:"/docs/reference/core/touying-slide-wrapper",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5,description:"Wrapper for a slide function to make it can receive self as an argument.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"touying-fn-wrapper",permalink:"/docs/reference/core/touying-fn-wrapper"},next:{title:"jump",permalink:"/docs/reference/core/jump"}},c={},l=[{value:"fn : <TypeLink></TypeLink>",id:"fn",level:3}];function p(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,i.a)(),...e.components},{Param:r,Parameters:o,Signature:s,SignatureName:a,SignatureParam:c,SourceLink:l,TypeLink:p}=n;return r||u("Param",!0),o||u("Parameters",!0),s||u("Signature",!0),a||u("SignatureName",!0),c||u("SignatureParam",!0),l||u("SourceLink",!0),p||u("TypeLink",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"touying-slide-wrapper",children:"touying-slide-wrapper"}),"\n",(0,t.jsx)(s,{children:(0,t.jsxs)("code",{children:[(0,t.jsx)(a,{children:"touying-slide-wrapper"}),"(",(0,t.jsx)(c,{children:(0,t.jsx)(n.a,{href:"#fn",children:"fn"})}),")",(0,t.jsx)(l,{href:"https://github.com/touying-typ/touying/blob/main/src/core.typ#L1178"})]})}),"\n",(0,t.jsxs)(n.p,{children:["Wrapper for a slide function to make it can receive ",(0,t.jsx)(n.code,{children:"self"})," as an argument."]}),"\n",(0,t.jsx)(n.p,{children:"Notice: This function is necessary for the slide function to work in Touying."}),"\n",(0,t.jsx)(n.p,{children:"Example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-typst",children:"#let slide(..args) = touying-slide-wrapper(self => {\n  touying-slide(self: self, ..args)\n})\n"})}),"\n",(0,t.jsxs)(o,{children:[(0,t.jsxs)(n.h3,{id:"fn",children:["fn : ",(0,t.jsx)(p,{type:"function"})]}),(0,t.jsx)(r,{children:(0,t.jsxs)(n.p,{children:["The function that will be called with an argument ",(0,t.jsx)(n.code,{children:"self"})," like ",(0,t.jsx)(n.code,{children:"self => { .. }"}),"."]})})]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Returns:"})," ",(0,t.jsx)(p,{type:"content"})]})]})}function d(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}function u(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,r)=>{r.d(n,{Z:()=>a,a:()=>s});var t=r(67294);const i={},o=t.createContext(i);function s(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),t.createElement(o.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.