1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6748],{19912:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>a,contentTitle:()=>o,default:()=>c,frontMatter:()=>n,metadata:()=>l,toc:()=>d});var s=r(85893),i=r(11151);const n={sidebar_position:8,description:"Touying stargazer theme.",toc_max_heading_level:2},o="stargazer-theme",l={id:"reference/themes/stargazer/stargazer-theme",title:"stargazer-theme",description:"Touying stargazer theme.",source:"@site/docs/reference/themes/stargazer/stargazer-theme.mdx",sourceDirName:"reference/themes/stargazer",slug:"/reference/themes/stargazer/stargazer-theme",permalink:"/docs/reference/themes/stargazer/stargazer-theme",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,description:"Touying stargazer theme.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"ending-slide",permalink:"/docs/reference/themes/stargazer/ending-slide"},next:{title:"University",permalink:"/docs/category/university"}},a={},d=[{value:"aspect-ratio : <TypeLink></TypeLink> <Default><code>"16-9"</code></Default>",id:"aspect-ratio",level:3},{value:"align : <TypeLink></TypeLink> <Default><code>horizon</code></Default>",id:"align",level:3},{value:"alpha : <TypeLink></TypeLink> <Default><code>20%</code></Default>",id:"alpha",level:3},{value:"title : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"title",level:3},{value:"header-right : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>self => self.info.logo</code></Default>",id:"header-right",level:3},{value:"footer : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"footer",level:3},{value:"footer-right : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"footer-right",level:3},{value:"progress-bar : <TypeLink></TypeLink> <Default><code>true</code></Default>",id:"progress-bar",level:3},{value:"footer-columns : <TypeLink></TypeLink> <Default><code>(25%, 25%, 1fr, 5em)</code></Default>",id:"footer-columns",level:3},{value:"footer-a : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>self => self.info.author</code></Default>",id:"footer-a",level:3},{value:"footer-b : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>self => utils.display-info-date(self)</code></Default>",id:"footer-b",level:3},{value:"footer-c : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"footer-c",level:3},{value:"footer-d : <TypeLink></TypeLink> | <TypeLink></TypeLink>",id:"footer-d",level:3}];function h(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",...(0,i.a)(),...e.components},{Default:r,Param:n,Parameters:o,Signature:l,SignatureName:a,SignatureParam:d,SourceLink:h,TypeLink:c}=t;return r||f("Default",!0),n||f("Param",!0),o||f("Parameters",!0),l||f("Signature",!0),a||f("SignatureName",!0),d||f("SignatureParam",!0),h||f("SourceLink",!0),c||f("TypeLink",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"stargazer-theme",children:"stargazer-theme"}),"\n",(0,s.jsx)(l,{children:(0,s.jsxs)("code",{children:[(0,s.jsx)(a,{children:"stargazer-theme"}),"(",(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#aspect-ratio",children:'aspect-ratio: "16-9"'}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#align",children:"align: horizon"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#alpha",children:"alpha: 20%"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#title",children:"title"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#header-right",children:"header-right: self => self.info.logo"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#progress-bar",children:"progress-bar: true"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#footer-columns",children:"footer-columns: (25%, 25%, 1fr, 5em)"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#footer-a",children:"footer-a: self => self.info.author"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#footer-b",children:"footer-b: self => utils.display-info-date(self)"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#footer-c",children:"footer-c"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#footer-d",children:"footer-d"}),", "]}),(0,s.jsxs)(d,{children:[(0,s.jsx)(t.a,{href:"#args",children:"..args"}),", "]}),(0,s.jsx)(d,{children:(0,s.jsx)(t.a,{href:"#body",children:"body"})}),")",(0,s.jsx)(h,{href:"https://github.com/touying-typ/touying/blob/main/themes/stargazer.typ#L401"})]})}),"\n",(0,s.jsx)(t.p,{children:"Touying stargazer theme."}),"\n",(0,s.jsx)(t.p,{children:"Example:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typst",children:'#show: stargazer-theme.with(aspect-ratio: "16-9", config-colors(primary: blue))\n'})}),"\n",(0,s.jsx)(t.p,{children:"Consider using:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typst",children:'#set text(font: "Fira Sans", weight: "light", size: 20pt)\n#show math.equation: set text(font: "Fira Math")\n#set strong(delta: 100)\n#set par(justify: true)\n'})}),"\n",(0,s.jsx)(t.p,{children:"The default colors:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typst",children:'config-colors(\n primary: rgb("#005bac"),\n primary-dark: rgb("#004078"),\n secondary: rgb("#ffffff"),\n tertiary: rgb("#005bac"),\n neutral-lightest: rgb("#ffffff"),\n neutral-darkest: rgb("#000000"),\n)\n'})}),"\n",(0,s.jsxs)(o,{children:[(0,s.jsxs)(t.h3,{id:"aspect-ratio",children:["aspect-ratio : ",(0,s.jsx)(c,{type:"string"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:'"16-9"'})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the aspect ratio of the slides. The default is ",(0,s.jsx)(t.code,{children:"16-9"}),"."]})}),(0,s.jsxs)(t.h3,{id:"align",children:["align : ",(0,s.jsx)(c,{type:"alignment"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"horizon"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the alignment of the content. The default is ",(0,s.jsx)(t.code,{children:"horizon"}),"."]})}),(0,s.jsxs)(t.h3,{id:"alpha",children:["alpha : ",(0,s.jsx)(c,{type:"float"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"20%"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["the alpha of the covered headings in outlines. The default is ",(0,s.jsx)(t.code,{children:"20%"}),"."]})}),(0,s.jsxs)(t.h3,{id:"title",children:["title : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the title in the header of the slide. The default is ",(0,s.jsx)(t.code,{children:"self => utils.display-current-heading(depth: self.slide-level)"}),"."]})}),(0,s.jsxs)(t.h3,{id:"header-right",children:["header-right : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"self => self.info.logo"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the right part of the header. The default is ",(0,s.jsx)(t.code,{children:"self => self.info.logo"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer",children:["footer : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the footer of the slide. The default is ",(0,s.jsx)(t.code,{children:"none"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer-right",children:["footer-right : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the right part of the footer. The default is ",(0,s.jsx)(t.code,{children:'context utils.slide-counter.display() + " / " + utils.last-slide-number'}),"."]})}),(0,s.jsxs)(t.h3,{id:"progress-bar",children:["progress-bar : ",(0,s.jsx)(c,{type:"boolean"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"true"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is whether to show the progress bar in the footer. The default is ",(0,s.jsx)(t.code,{children:"true"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer-columns",children:["footer-columns : ",(0,s.jsx)(c,{type:"array"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"(25%, 25%, 1fr, 5em)"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the columns of the footer. The default is ",(0,s.jsx)(t.code,{children:"(25%, 25%, 1fr, 5em)"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer-a",children:["footer-a : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"self => self.info.author"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the left part of the footer. The default is ",(0,s.jsx)(t.code,{children:"self => self.info.author"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer-b",children:["footer-b : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})," ",(0,s.jsx)(r,{children:(0,s.jsx)(t.code,{children:"self => utils.display-info-date(self)"})})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the second left part of the footer. The default is ",(0,s.jsx)(t.code,{children:"self => utils.display-info-date(self)"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer-c",children:["footer-c : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the second right part of the footer. The default is ",(0,s.jsx)(t.code,{children:"self =>
1 if self.info.short-title == auto { self.info.title } else { self.info.short-title }"}),"."]})}),(0,s.jsxs)(t.h3,{id:"footer-d",children:["footer-d : ",(0,s.jsx)(c,{type:"content"})," | ",(0,s.jsx)(c,{type:"function"})]}),(0,s.jsx)(n,{children:(0,s.jsxs)(t.p,{children:["is the right part of the footer. The default is ",(0,s.jsx)(t.code,{children:'context utils.slide-counter.display() + " / " + utils.last-slide-number'}),"."]})})]})]})}function c(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}function f(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,r)=>{r.d(t,{Z:()=>l,a:()=>o});var s=r(67294);const i={},n=s.createContext(i);function o(e){const t=s.useContext(n);return s.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(i):e.components||i:o(e.components),s.createElement(n.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.