1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6822],{66564:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var t=i(85893),s=i(11151);const o={sidebar_position:4,description:"New section slide for the presentation.",toc_max_heading_level:2},r="new-section-slide",c={id:"reference/themes/dewdrop/new-section-slide",title:"new-section-slide",description:"New section slide for the presentation.",source:"@site/docs/reference/themes/dewdrop/new-section-slide.mdx",sourceDirName:"reference/themes/dewdrop",slug:"/reference/themes/dewdrop/new-section-slide",permalink:"/docs/reference/themes/dewdrop/new-section-slide",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4,description:"New section slide for the presentation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"outline-slide",permalink:"/docs/reference/themes/dewdrop/outline-slide"},next:{title:"focus-slide",permalink:"/docs/reference/themes/dewdrop/focus-slide"}},d={},l=[{value:"config : <TypeLink></TypeLink> <Default><code>(:)</code></Default>",id:"config",level:3},{value:"title : <TypeLink></TypeLink> <Default><code>utils.i18n-outline-title</code></Default>",id:"title",level:3},{value:"body : <TypeLink></TypeLink>",id:"body",level:3}];function a(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",...(0,s.a)(),...e.components},{Default:i,Param:o,Parameters:r,Signature:c,SignatureName:d,SignatureParam:l,SourceLink:a,TypeLink:h}=n;return i||u("Default",!0),o||u("Param",!0),r||u("Parameters",!0),c||u("Signature",!0),d||u("SignatureName",!0),l||u("SignatureParam",!0),a||u("SourceLink",!0),h||u("TypeLink",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"new-section-slide",children:"new-section-slide"}),"\n",(0,t.jsx)(c,{children:(0,t.jsxs)("code",{children:[(0,t.jsx)(d,{children:"new-section-slide"}),"(",(0,t.jsxs)(l,{children:[(0,t.jsx)(n.a,{href:"#config",children:"config: (:)"}),", "]}),(0,t.jsxs)(l,{children:[(0,t.jsx)(n.a,{href:"#title",children:"title: utils.i18n-outline-title"}),", "]}),(0,t.jsxs)(l,{children:[(0,t.jsx)(n.a,{href:"#args",children:"..args"}),", "]}),(0,t.jsx)(l,{children:(0,t.jsx)(n.a,{href:"#body",children:"body"})}),")",(0,t.jsx)(a,{href:"https://github.com/touying-typ/touying/blob/main/themes/dewdrop.typ#L242"})]})}),"\n",(0,t.jsxs)(n.p,{children:["New section slide for the presentation. You can update it by updating the ",(0,t.jsx)(n.code,{children:"new-section-slide-fn"})," argument for ",(0,t.jsx)(n.code,{children:"config-common"})," function."]}),"\n",(0,t.jsxs)(n.p,{children:["Example: ",(0,t.jsx)(n.code,{children:"config-common(new-section-slide-fn: new-section-slide.with(numbered: false))"})]}),"\n",(0,t.jsxs)(r,{children:[(0,t.jsxs)(n.h3,{id:"config",children:["config : ",(0,t.jsx)(h,{type:"dictionary"})," ",(0,t.jsx)(i,{children:(0,t.jsx)(n.code,{children:"(:)"})})]}),(0,t.jsx)(o,{children:(0,t.jsxs)(n.p,{children:["The configuration of the slide. You can use ",(0,t.jsx)(n.code,{children:"config-xxx"})," to set the configuration of the slide. For more several configurations, you can use ",(0,t.jsx)(n.code,{children:"utils.merge-dicts"})," to merge them."]})}),(0,t.jsxs)(n.h3,{id:"title",children:["title : ",(0,t.jsx)(h,{type:"string"})," ",(0,t.jsx)(i,{children:(0,t.jsx)(n.code,{children:"utils.i18n-outline-title"})})]}),(0,t.jsx)(o,{children:(0,t.jsxs)(n.p,{children:["The title of the slide. Default is ",(0,t.jsx)(n.code,{children:"utils.i18n-outline-title"}),"."]})}),(0,t.jsxs)(n.h3,{id:"body",children:["body : ",(0,t.jsx)(h,{type:"array"})]}),(0,t.jsx)(o,{children:(0,t.jsx)(n.p,{children:"The contents of the slide."})})]})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(a,{...e})}):a(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,i)=>{i.d(n,{Z:()=>c,a:()=>r});var t=i(67294);const s={},o=t.createContext(s);function r(e){const n=t.useContext(o);return t.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(s):e.components||s:r(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.