1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6449],{43825:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>d,toc:()=>a});var i=t(85893),r=t(11151);const s={sidebar_position:3,description:"Configuration for the pdfpc export.",toc_max_heading_level:2},o="config",d={id:"reference/pdfpc/config",title:"config",description:"Configuration for the pdfpc export.",source:"@site/docs/reference/pdfpc/config.mdx",sourceDirName:"reference/pdfpc",slug:"/reference/pdfpc/config",permalink:"/docs/reference/pdfpc/config",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,description:"Configuration for the pdfpc export.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"speaker-note",permalink:"/docs/reference/pdfpc/speaker-note"},next:{title:"Themes",permalink:"/docs/category/themes-1"}},c={},a=[{value:"duration-minutes : <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"duration-minutes",level:3},{value:"start-time : <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"start-time",level:3},{value:"end-time : <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"end-time",level:3},{value:"last-minutes : <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"last-minutes",level:3},{value:"note-font-size : <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"note-font-size",level:3},{value:"disable-markdown : <TypeLink></TypeLink> <Default><code>false</code></Default>",id:"disable-markdown",level:3},{value:"default-transition : <TypeLink></TypeLink> | <TypeLink></TypeLink> <Default><code>none</code></Default>",id:"default-transition",level:3}];function l(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components},{Default:t,Param:s,Parameters:o,Signature:d,SignatureName:c,SignatureParam:a,SourceLink:l,TypeLink:h}=n;return t||p("Default",!0),s||p("Param",!0),o||p("Parameters",!0),d||p("Signature",!0),c||p("SignatureName",!0),a||p("SignatureParam",!0),l||p("SourceLink",!0),h||p("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"config",children:"config"}),"\n",(0,i.jsx)(d,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(c,{children:"config"}),"(",(0,i.jsxs)(a,{children:[(0,i.jsx)(n.a,{href:"#duration-minutes",children:"duration-minutes: none"}),", "]}),(0,i.jsxs)(a,{children:[(0,i.jsx)(n.a,{href:"#start-time",children:"start-time: none"}),", "]}),(0,i.jsxs)(a,{children:[(0,i.jsx)(n.a,{href:"#end-time",children:"end-time: none"}),", "]}),(0,i.jsxs)(a,{children:[(0,i.jsx)(n.a,{href:"#last-minutes",children:"last-minutes: none"}),", "]}),(0,i.jsxs)(a,{children:[(0,i.jsx)(n.a,{href:"#note-font-size",children:"note-font-size: none"}),", "]}),(0,i.jsxs)(a,{children:[(0,i.jsx)(n.a,{href:"#disable-markdown",children:"disable-markdown: false"}),", "]}),(0,i.jsx)(a,{children:(0,i.jsx)(n.a,{href:"#default-transition",children:"default-transition: none"})}),")",(0,i.jsx)(l,{href:"https://github.com/touying-typ/touying/blob/main/src/pdfpc.typ#L124"})]})}),"\n",(0,i.jsxs)(n.p,{children:["Configuration for the pdfpc export. You can export the pdfpc file by shell command ",(0,i.jsx)(n.code,{children:'typst query --root . ./example.typ --field value --one "<pdfpc-file>" > ./example.pdfpc'}),"."]}),"\n",(0,i.jsx)(n.p,{children:"Example:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typ",children:'#pdfpc.config(\n duration-minutes: 30,\n start-time: datetime(hour: 14, minute: 10, second: 0),\n end-time: datetime(hour: 14, minute: 40, second: 0),\n last-minutes: 5,\n note-font-size: 12,\n disable-markdown: false,\n default-transition: (\n type: "push",\n duration-seconds: 2,\n angle: ltr,\n alignment: "vertical",\n direction: "inward",\n ),\n)\n'})}),"\n",(0,i.jsxs)(o,{children:[(0,i.jsxs)(n.h3,{id:"duration-minutes",children:["duration-minutes : ",(0,i.jsx)(h,{type:"int"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"The duration of the presentation in minutes."})}),(0,i.jsxs)(n.h3,{id:"start-time",children:["start-time : ",(0,i.jsx)(h,{type:"datetime"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"The start time of the presentation."})}),(0,i.jsxs)(n.h3,{id:"end-time",children:["end-time : ",(0,i.jsx)(h,{type:"datetime"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"The end time of the presentation."})}),(0,i.jsxs)(n.h3,{id:"last-minutes",children:["last-minutes : ",(0,i.jsx)(h,{type:"int"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"The number of minutes to show the last slide."})}),(0,i.jsxs)(n.h3,{id:"note-font-size",children:["note-font-size : ",(0,i.jsx)(h,{type:"float"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"The font size of the speaker notes."})}),(0,i.jsxs)(n.h3,{id:"disable-markdown",children:["disable-markdown : ",(0,i.jsx)(h,{type:"bool"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"false"})})]}),(0,i.jsx)(s,{children:(0,i.jsx)(n.p,{children:"A flag to disable markdown in the speaker notes."})}),(0,i.jsxs)(n.h3,{id:"default-transition",children:["default-transition : ",(0,i.jsx)(h,{type:"dictionary"})," | ",(0,i.jsx)(h,{type:"none"})," ",(0,i.jsx)(t,{children:(0,i.jsx)(n.code,{children:"none"})})]}),(0,i.jsx)(s,{children:(0,i.jsxs)(n.p,{children:["The default slide transition. A dictionary with optional keys: ",(0,i.jsx)(n.code,{children:"type"})," (str, e.g. ",(0,i.jsx)(n.code,{children:'"push"'}),"), ",(0,i.jsx)(n.code,{children:"duration-seconds"})," (int), ",(0,i.jsx)(n.code,{children:"angle"})," (direction, e.g. ",(0,i.jsx)(n.code,{children:"ltr"}),"), ",(0,i.jsx)(n.code,{children:"alignment"})," (str, ",(0,i.jsx)(n.code,{children:'"horizontal"'})," or ",(0,i.jsx)(n.code,{children:'"vertical"'}),"), ",(0,i.jsx)(n.code,{children:"direction"})," (str, ",(0,i.jsx)(n.code,{children:'"inward"'})," or ",(0,i.jsx)(n.code,{children:'"outward"'}),"). Default is ",(0,i.jsx)(n.code,{children:"none"}),"."]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Returns:"})," ",(0,i.jsx)(h,{type:"content"})]})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}function p(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,t)=>{t.d(n,{Z:()=>d,a:()=>o});var i=t(67294);const r={},s=i.createContext(r);function o(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),i.createElement(s.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.