1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6502],{27093:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>l,metadata:()=>r,toc:()=>d});var n=t(85893),s=t(11151);const l={sidebar_position:3,description:"Outline slide for the presentation.",toc_max_heading_level:2},o="outline-slide",r={id:"reference/themes/metropolis/outline-slide",title:"outline-slide",description:"Outline slide for the presentation.",source:"@site/docs/reference/themes/metropolis/outline-slide.mdx",sourceDirName:"reference/themes/metropolis",slug:"/reference/themes/metropolis/outline-slide",permalink:"/docs/reference/themes/metropolis/outline-slide",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,description:"Outline slide for the presentation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"title-slide",permalink:"/docs/reference/themes/metropolis/title-slide"},next:{title:"new-section-slide",permalink:"/docs/reference/themes/metropolis/new-section-slide"}},c={},d=[{value:"config : <TypeLink></TypeLink> <Default><code>(:)</code></Default>",id:"config",level:3},{value:"level : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>auto</code></Default>",id:"level",level:3},{value:"title : <TypeLink></TypeLink> <Default><code>[Outline]</code></Default>",id:"title",level:3},{value:"spacing : <TypeLink></TypeLink> <Default><code>2em</code></Default>",id:"spacing",level:3},{value:"..args : <TypeLink></TypeLink>",id:"args",level:3}];function a(e){const i={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",...(0,s.a)(),...e.components},{Default:t,Param:l,Parameters:o,Signature:r,SignatureName:c,SignatureParam:d,SourceLink:a,TypeLink:h}=i;return t||u("Default",!0),l||u("Param",!0),o||u("Parameters",!0),r||u("Signature",!0),c||u("SignatureName",!0),d||u("SignatureParam",!0),a||u("SourceLink",!0),h||u("TypeLink",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.h1,{id:"outline-slide",children:"outline-slide"}),"\n",(0,n.jsx)(r,{children:(0,n.jsxs)("code",{children:[(0,n.jsx)(c,{children:"outline-slide"}),"(",(0,n.jsxs)(d,{children:[(0,n.jsx)(i.a,{href:"#config",children:"config: (:)"}),", "]}),(0,n.jsxs)(d,{children:[(0,n.jsx)(i.a,{href:"#level",children:"level: auto"}),", "]}),(0,n.jsxs)(d,{children:[(0,n.jsx)(i.a,{href:"#title",children:"title: [Outline]"}),", "]}),(0,n.jsxs)(d,{children:[(0,n.jsx)(i.a,{href:"#spacing",children:"spacing: 2em"}),", "]}),(0,n.jsx)(d,{children:(0,n.jsx)(i.a,{href:"#args",children:"..args"})}),")",(0,n.jsx)(a,{href:"https://github.com/touying-typ/touying/blob/main/themes/metropolis.typ#L200"})]})}),"\n",(0,n.jsx)(i.p,{children:"Outline slide for the presentation."}),"\n",(0,n.jsx)(i.p,{children:"Example:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-typst",children:"#show: metropolis-theme.with(\n config-info(\n title: [Title],\n logo: emoji.city,\n ),\n)\n\n#outline-slide(indent: (1em,), depth: 1, title: [Contents])\n"})}),"\n",(0,n.jsxs)(o,{children:[(0,n.jsxs)(i.h3,{id:"config",children:["config : ",(0,n.jsx)(h,{type:"dictionary"})," ",(0,n.jsx)(t,{children:(0,n.jsx)(i.code,{children:"(:)"})})]}),(0,n.jsx)(l,{children:(0,n.jsx)(i.p,{children:"The configuration of the slide."})}),(0,n.jsxs)(i.h3,{id:"level",children:["level : ",(0,n.jsx)(h,{type:"int"})," | ",(0,n.jsx)(h,{type:"auto"})," ",(0,n.jsx)(t,{children:(0,n.jsx)(i.code,{children:"auto"})})]}),(0,n.jsx)(l,{children:(0,n.jsxs)(i.p,{children:["The level of the outline. Default is ",(0,n.jsx)(i.code,{children:"auto"}),", which uses the slide-level configured in the ",(0,n.jsx)(i.code,{children:"config-common"}),"."]})}),(0,n.jsxs)(i.h3,{id:"title",children:["title : ",(0,n.jsx)(h,{type:"string"})," ",(0,n.jsx)(t,{children:(0,n.jsx)(i.code,{children:"[Outline]"})})]}),(0,n.jsx)(l,{children:(0,n.jsx)(i.p,{children:'The title of the slide. Default is "Outline".'})}),(0,n.jsxs)(i.h3,{id:"spacing",children:["spacing : ",(0,n.jsx)(h,{type:"length"})," ",(0,n.jsx)(t,{children:(0,n.jsx)(i.code,{children:"2em"})})]}),(0,n.jsx)(l,{children:(0,n.jsx)(i.p,{children:"The spacing between the outline entries. Default is 2em."})}),(0,n.jsxs)(i.h3,{id:"args",children:["..args : ",(0,n.jsx)(h,{type:"any"})]}),(0,n.jsx)(l,{children:(0,n.jsxs)(i.p,{children:["The arguments to pass to the custom-progressive-outline, see ",(0,n.jsx)(i.a,{href:"https://touying-typ.github.io/docs/reference/components/custom-progressive-outline",children:"https://touying-typ.github.io/docs/reference/components/custom-progressive-outline"}),". Some values like numbering have defaults to mimic the style of the metropolis theme."]})})]})]})}function h(e={}){const{wrapper:i}={...(0,s.a)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}function u(e,i){throw new Error("Expected "+(i?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,i,t)=>{t.d(i,{Z:()=>r,a:()=>o});var n=t(67294);const s={},l=n.createContext(s);function o(e){const i=n.useContext(l);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(l.Provider,{value:i},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.