PageSourceSearch

https://touying-typ.github.io/assets/js/8ef0220f.e5291100.js

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

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4929],{3557:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>a});var i=s(85893),t=s(11151);const r={sidebar_position:1,description:"Touying slides function.",toc_max_heading_level:2},o="touying-slides",c={id:"reference/slides/touying-slides",title:"touying-slides",description:"Touying slides function.",source:"@site/docs/reference/slides/touying-slides.mdx",sourceDirName:"reference/slides",slug:"/reference/slides/touying-slides",permalink:"/docs/reference/slides/touying-slides",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,description:"Touying slides function.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"Slides",permalink:"/docs/category/slides"},next:{title:"Utils",permalink:"/docs/category/utils"}},d={},a=[{value:"..args : <TypeLink></TypeLink>",id:"args",level:3},{value:"body : <TypeLink></TypeLink>",id:"body",level:3}];function l(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,t.a)(),...e.components},{Param:s,Parameters:r,Signature:o,SignatureName:c,SignatureParam:d,SourceLink:a,TypeLink:l}=n;return s||p("Param",!0),r||p("Parameters",!0),o||p("Signature",!0),c||p("SignatureName",!0),d||p("SignatureParam",!0),a||p("SourceLink",!0),l||p("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"touying-slides",children:"touying-slides"}),"\n",(0,i.jsx)(o,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(c,{children:"touying-slides"}),"(",(0,i.jsxs)(d,{children:[(0,i.jsx)(n.a,{href:"#args",children:"..args"}),", "]}),(0,i.jsx)(d,{children:(0,i.jsx)(n.a,{href:"#body",children:"body"})}),")",(0,i.jsx)(a,{href:"https://github.com/touying-typ/touying/blob/main/src/slides.typ#L25"})]})}),"\n",(0,i.jsx)(n.p,{children:"Touying slides function."}),"\n",(0,i.jsx)(n.p,{children:"Example:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typst",children:'#show: touying-slides.with(\n  config-page(paper: "presentation-" + aspect-ratio),\n  config-common(\n    slide-fn: slide,\n  ),\n  ..args,\n)\n'})}),"\n",(0,i.jsxs)(r,{children:[(0,i.jsxs)(n.h3,{id:"args",children:["..args : ",(0,i.jsx)(l,{type:"arguments"})]}),(0,i.jsx)(s,{children:(0,i.jsxs)(n.p,{children:["The configurations of the slides. For example, you can use ",(0,i.jsx)(n.code,{children:'config-page(paper: "presentation-16-9")'})," to set the aspect ratio of the slides."]})}),(0,i.jsxs)(n.h3,{id:"body",children:["body : ",(0,i.jsx)(l,{type:"content"})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"The contents of the slides."})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Returns:"})," ",(0,i.jsx)(l,{type:"content"})]})]})}function u(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}function p(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,s)=>{s.d(n,{Z:()=>c,a:()=>o});var i=s(67294);const t={},r=i.createContext(t);function o(e){const n=i.useContext(r);return i.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(t):e.components||t:o(e.components),i.createElement(r.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.