PageSourceSearch

https://touying-typ.github.io/assets/js/73333305.a889c3d1.js

js touying-typ.github.io collected 2026-10-03 10:08:36 UTC 4,961 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6616],{81137:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var i=n(85893),r=n(11151);const s={sidebar_position:26,description:"Display list, enum, or terms items one by one with animation.",toc_max_heading_level:2},o="item-by-item",a={id:"reference/core/item-by-item",title:"item-by-item",description:"Display list, enum, or terms items one by one with animation.",source:"@site/docs/reference/core/item-by-item.mdx",sourceDirName:"reference/core",slug:"/reference/core/item-by-item",permalink:"/docs/reference/core/item-by-item",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:26,frontMatter:{sidebar_position:26,description:"Display list, enum, or terms items one by one with animation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"alternatives-cases",permalink:"/docs/reference/core/alternatives-cases"},next:{title:"current-bold",permalink:"/docs/reference/core/current-bold"}},c={},l=[{value:"Examples",id:"examples",level:3},{value:"start : <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>auto</code></Default>",id:"start",level:3},{value:"cont : <TypeLink></TypeLink>",id:"cont",level:3}];function d(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components},{Default:n,Param:s,Parameters:o,Signature:a,SignatureName:c,SignatureParam:l,SourceLink:d,TypeLink:p}=t;return n||m("Default",!0),s||m("Param",!0),o||m("Parameters",!0),a||m("Signature",!0),c||m("SignatureName",!0),l||m("SignatureParam",!0),d||m("SourceLink",!0),p||m("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"item-by-item",children:"item-by-item"}),"\n",(0,i.jsx)(a,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(c,{children:"item-by-item"}),"(",(0,i.jsxs)(l,{children:[(0,i.jsx)(t.a,{href:"#start",children:"start: auto"}),", "]}),(0,i.jsx)(l,{children:(0,i.jsx)(t.a,{href:"#cont",children:"cont"})}),")",(0,i.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/core.typ#L2214"})]})}),"\n",(0,i.jsx)(t.p,{children:"Display list, enum, or terms items one by one with animation."}),"\n",(0,i.jsxs)(t.p,{children:["Each item is revealed on a successive subslide.  By default (",(0,i.jsx)(t.code,{children:"start: auto"}),"),\nrevealing is relative to the current pause position \u2014 items appear one per\nsubslide starting from wherever the slide's animation has reached."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"start"})," also accepts a waypoint label (e.g. ",(0,i.jsx)(t.code,{children:"<my-wp>"}),") or any waypoint\nmarker (",(0,i.jsx)(t.code,{children:"from-wp(<wp>)"}),", ",(0,i.jsx)(t.code,{children:"get-first(<wp>)"}),", etc.) to anchor the reveal\nsequence to a named position."]}),"\n",(0,i.jsx)(t.h3,{id:"examples",children:"Examples"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-typst",children:"// Relative (auto) \u2014 items appear after any preceding #pause\n#item-by-item[\n  - first\n  - second\n  - third\n]\n\n// Anchored to a waypoint\n#waypoint(<items>)\n#item-by-item(start: <items>)[\n  - alpha\n  - beta\n]\n\n// Explicit absolute subslide number (backward compatible)\n#item-by-item(start: 3)[\n  - x\n  - y\n]\n"})}),"\n",(0,i.jsxs)(o,{children:[(0,i.jsxs)(t.h3,{id:"start",children:["start : ",(0,i.jsx)(p,{type:"auto"})," | ",(0,i.jsx)(p,{type:"int"})," | ",(0,i.jsx)(p,{type:"label"})," | ",(0,i.jsx)(p,{type:"dictionary"})," ",(0,i.jsx)(n,{children:(0,i.jsx)(t.code,{children:"auto"})})]}),(0,i.jsx)(s,{children:(0,i.jsxs)(t.p,{children:["The subslide on which the first item appears.  ",(0,i.jsx)(t.code,{children:"auto"})," (default) makes it relative to the current pause position.  An integer gives an absolute subslide number.  A label or waypoint marker resolves to the waypoint's first subslide."]})}),(0,i.jsxs)(t.h3,{id:"cont",children:["cont : ",(0,i.jsx)(p,{type:"content"})]}),(0,i.jsx)(s,{children:(0,i.jsx)(t.p,{children:"The content containing a list, enum, or terms element."})})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Returns:"})," ",(0,i.jsx)(p,{type:"content"})]})]})}function p(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}function m(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>a,a:()=>o});var i=n(67294);const r={},s=i.createContext(r);function o(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),i.createElement(s.Provider,{value:t},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.