1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3535],{34677:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var s=i(85893),t=i(11151);const r={sidebar_position:5,description:"- If columns is an integer, create that many columns of width 1fr.",toc_max_heading_level:2},o="matrix-slide",c={id:"reference/themes/university/matrix-slide",title:"matrix-slide",description:"- If columns is an integer, create that many columns of width 1fr.",source:"@site/docs/reference/themes/university/matrix-slide.mdx",sourceDirName:"reference/themes/university",slug:"/reference/themes/university/matrix-slide",permalink:"/docs/reference/themes/university/matrix-slide",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5,description:"- If columns is an integer, create that many columns of width 1fr.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"focus-slide",permalink:"/docs/reference/themes/university/focus-slide"},next:{title:"university-theme",permalink:"/docs/reference/themes/university/university-theme"}},a={},l=[{value:"config : <TypeLink></TypeLink> <Default><code>(:)</code></Default>",id:"config",level:3}];function d(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",li:"li",p:"p",ul:"ul",...(0,t.a)(),...e.components},{Default:i,Param:r,Parameters:o,Signature:c,SignatureName:a,SignatureParam:l,SourceLink:d,TypeLink:h}=n;return i||u("Default",!0),r||u("Param",!0),o||u("Parameters",!0),c||u("Signature",!0),a||u("SignatureName",!0),l||u("SignatureParam",!0),d||u("SourceLink",!0),h||u("TypeLink",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"matrix-slide",children:"matrix-slide"}),"\n",(0,s.jsx)(c,{children:(0,s.jsxs)("code",{children:[(0,s.jsx)(a,{children:"matrix-slide"}),"(",(0,s.jsxs)(l,{children:[(0,s.jsx)(n.a,{href:"#config",children:"config: (:)"}),", "]}),(0,s.jsxs)(l,{children:[(0,s.jsx)(n.a,{href:"#columns",children:"columns: none"}),", "]}),(0,s.jsxs)(l,{children:[(0,s.jsx)(n.a,{href:"#rows",children:"rows: none"}),", "]}),(0,s.jsx)(l,{children:(0,s.jsx)(n.a,{href:"#bodies",children:"..bodies"})}),")",(0,s.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/themes/university.typ#L313"})]})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["If ",(0,s.jsx)(n.code,{children:"columns"})," is an integer, create that many columns of width ",(0,s.jsx)(n.code,{children:"1fr"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["If ",(0,s.jsx)(n.code,{children:"columns"})," is ",(0,s.jsx)(n.code,{children:"none"}),", create as many columns of width ",(0,s.jsx)(n.code,{children:"1fr"})," as there are content blocks."]}),"\n",(0,s.jsxs)(n.li,{children:["Otherwise assume that ",(0,s.jsx)(n.code,{children:"columns"})," is an array of widths already, use that."]}),"\n",(0,s.jsxs)(n.li,{children:["If ",(0,s.jsx)(n.code,{children:"rows"})," is an integer, create that many rows of height ",(0,s.jsx)(n.code,{children:"1fr"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["If ",(0,s.jsx)(n.code,{children:"rows"})," is ",(0,s.jsx)(n.code,{children:"none"}),", create that many rows of height ",(0,s.jsx)(n.code,{children:"1fr"})," as are needed given the number of co/ -ntent blocks and columns."]}),"\n",(0,s.jsxs)(n.li,{children:["Otherwise assume that ",(0,s.jsx)(n.code,{children:"rows"})," is an array of heights already, use that."]}),"\n",(0,s.jsx)(n.li,{children:"Check that there are enough rows and columns to fit in all the content blocks."}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["That means that ",(0,s.jsx)(n.code,{children:"#matrix-slide[...][...]"})," stacks horizontally and ",(0,s.jsx)(n.code,{children:"#matrix-slide(columns: 1)[...][...]"})," stacks vertically."]}),"\n",(0,s.jsxs)(o,{children:[(0,s.jsxs)(n.h3,{id:"config",children:["config : ",(0,s.jsx)(h,{type:"dictionary"})," ",(0,s.jsx)(i,{children:(0,s.jsx)(n.code,{children:"(:)"})})]}),(0,s.jsx)(r,{children:(0,s.jsxs)(n.p,{children:["is the configuration of the slide. Use ",(0,s.jsx)(n.code,{children:"config-xxx"})," to set individual configurations for the slide. To apply multiple configurations, use ",(0,s.jsx)(n.code,{children:"utils.merge-dicts"})," to combine them."]})})]})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(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 s=i(67294);const t={},r=s.createContext(t);function o(e){const n=s.useContext(r);return s.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(t):e.components||t:o(e.components),s.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.