PageSourceSearch

https://touying-typ.github.io/assets/js/936b7fc2.6d50b551.js

js touying-typ.github.io collected 2026-10-03 10:07:20 UTC 5,484 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3414],{10098:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var t=i(85893),s=i(11151);const r={sidebar_position:5,description:"New section slide for the presentation.",toc_max_heading_level:2},o="new-section-slide",c={id:"reference/themes/stargazer/new-section-slide",title:"new-section-slide",description:"New section slide for the presentation.",source:"@site/docs/reference/themes/stargazer/new-section-slide.mdx",sourceDirName:"reference/themes/stargazer",slug:"/reference/themes/stargazer/new-section-slide",permalink:"/docs/reference/themes/stargazer/new-section-slide",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5,description:"New section slide for the presentation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"outline-slide",permalink:"/docs/reference/themes/stargazer/outline-slide"},next:{title:"focus-slide",permalink:"/docs/reference/themes/stargazer/focus-slide"}},l={},d=[{value:"config : <TypeLink></TypeLink> <Default><code>(:)</code></Default>",id:"config",level:3},{value:"title : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>utils.i18n-outline-title</code></Default>",id:"title",level:3},{value:"level : <TypeLink></TypeLink> <Default><code>1</code></Default>",id:"level",level:3},{value:"numbered : <TypeLink></TypeLink> <Default><code>true</code></Default>",id:"numbered",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:r,Parameters:o,Signature:c,SignatureName:l,SignatureParam:d,SourceLink:a,TypeLink:h}=n;return i||u("Default",!0),r||u("Param",!0),o||u("Parameters",!0),c||u("Signature",!0),l||u("SignatureName",!0),d||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)(l,{children:"new-section-slide"}),"(",(0,t.jsxs)(d,{children:[(0,t.jsx)(n.a,{href:"#config",children:"config: (:)"}),", "]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(n.a,{href:"#title",children:"title: utils.i18n-outline-title"}),", "]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(n.a,{href:"#level",children:"level: 1"}),", "]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(n.a,{href:"#numbered",children:"numbered: true"}),", "]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(n.a,{href:"#args",children:"..args"}),", "]}),(0,t.jsx)(d,{children:(0,t.jsx)(n.a,{href:"#body",children:"body"})}),")",(0,t.jsx)(a,{href:"https://github.com/touying-typ/touying/blob/main/themes/stargazer.typ#L275"})]})}),"\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)(o,{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)(r,{children:(0,t.jsxs)(n.p,{children:["is 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:"content"})," | ",(0,t.jsx)(h,{type:"function"})," ",(0,t.jsx)(i,{children:(0,t.jsx)(n.code,{children:"utils.i18n-outline-title"})})]}),(0,t.jsx)(r,{children:(0,t.jsxs)(n.p,{children:["is the title of the section. The default is ",(0,t.jsx)(n.code,{children:"utils.i18n-outline-title"}),"."]})}),(0,t.jsxs)(n.h3,{id:"level",children:["level : ",(0,t.jsx)(h,{type:"int"})," ",(0,t.jsx)(i,{children:(0,t.jsx)(n.code,{children:"1"})})]}),(0,t.jsx)(r,{children:(0,t.jsxs)(n.p,{children:["is the level of the heading. The default is ",(0,t.jsx)(n.code,{children:"1"}),"."]})}),(0,t.jsxs)(n.h3,{id:"numbered",children:["numbered : ",(0,t.jsx)(h,{type:"boolean"})," ",(0,t.jsx)(i,{children:(0,t.jsx)(n.code,{children:"true"})})]}),(0,t.jsx)(r,{children:(0,t.jsxs)(n.p,{children:["is whether the heading is numbered. The default is ",(0,t.jsx)(n.code,{children:"true"}),"."]})}),(0,t.jsxs)(n.h3,{id:"body",children:["body : ",(0,t.jsx)(h,{type:"none"})]}),(0,t.jsx)(r,{children:(0,t.jsx)(n.p,{children:"is the body of the section. It will be passed by touying automatically."})})]})]})}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:()=>o});var t=i(67294);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);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:o(e.components),t.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.