1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4193],{74238:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>l,toc:()=>a});var n=i(85893),o=i(11151);const r={sidebar_position:2,description:"Title slide for the presentation.",toc_max_heading_level:2},s="title-slide",l={id:"reference/themes/metropolis/title-slide",title:"title-slide",description:"Title slide for the presentation.",source:"@site/docs/reference/themes/metropolis/title-slide.mdx",sourceDirName:"reference/themes/metropolis",slug:"/reference/themes/metropolis/title-slide",permalink:"/docs/reference/themes/metropolis/title-slide",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,description:"Title slide for the presentation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"slide",permalink:"/docs/reference/themes/metropolis/slide"},next:{title:"outline-slide",permalink:"/docs/reference/themes/metropolis/outline-slide"}},c={},a=[{value:"config : <TypeLink></TypeLink> <Default><code>(:)</code></Default>",id:"config",level:3},{value:"extra : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"extra",level:3}];function d(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",...(0,o.a)(),...e.components},{Default:i,Param:r,Parameters:s,Signature:l,SignatureName:c,SignatureParam:a,SourceLink:d,TypeLink:h}=t;return i||p("Default",!0),r||p("Param",!0),s||p("Parameters",!0),l||p("Signature",!0),c||p("SignatureName",!0),a||p("SignatureParam",!0),d||p("SourceLink",!0),h||p("TypeLink",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"title-slide",children:"title-slide"}),"\n",(0,n.jsx)(l,{children:(0,n.jsxs)("code",{children:[(0,n.jsx)(c,{children:"title-slide"}),"(",(0,n.jsxs)(a,{children:[(0,n.jsx)(t.a,{href:"#config",children:"config: (:)"}),", "]}),(0,n.jsxs)(a,{children:[(0,n.jsx)(t.a,{href:"#extra",children:"extra: none"}),", "]}),(0,n.jsx)(a,{children:(0,n.jsx)(t.a,{href:"#args",children:"..args"})}),")",(0,n.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/themes/metropolis.typ#L126"})]})}),"\n",(0,n.jsxs)(t.p,{children:["Title slide for the presentation. You should update the information in the ",(0,n.jsx)(t.code,{children:"config-info"})," function. You can also pass the information directly to the ",(0,n.jsx)(t.code,{children:"title-slide"})," function."]}),"\n",(0,n.jsx)(t.p,{children:"Example:"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-typst",children:"#show: metropolis-theme.with(\n config-info(\n title: [Title],\n logo: emoji.city,\n ),\n)\n\n#title-slide(subtitle: [Subtitle], extra: [Extra information])\n"})}),"\n",(0,n.jsxs)(s,{children:[(0,n.jsxs)(t.h3,{id:"config",children:["config : ",(0,n.jsx)(h,{type:"dictionary"})," ",(0,n.jsx)(i,{children:(0,n.jsx)(t.code,{children:"(:)"})})]}),(0,n.jsx)(r,{children:(0,n.jsxs)(t.p,{children:["The configuration of the slide. You can use ",(0,n.jsx)(t.code,{children:"config-xxx"})," to set the configuration of the slide. For several configurations, you can use ",(0,n.jsx)(t.code,{children:"utils.merge-dicts"})," to merge them."]})}),(0,n.jsxs)(t.h3,{id:"extra",children:["extra : ",(0,n.jsx)(h,{type:"string"})," | ",(0,n.jsx)(h,{type:"none"})," ",(0,n.jsx)(i,{children:(0,n.jsx)(t.code,{children:"none"})})]}),(0,n.jsx)(r,{children:(0,n.jsx)(t.p,{children:"The extra information you want to display on the title slide."})})]})]})}function h(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}function p(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,i)=>{i.d(t,{Z:()=>l,a:()=>s});var n=i(67294);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.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.