1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3421],{61867:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>i,default:()=>f,frontMatter:()=>o,metadata:()=>p,toc:()=>s});var r=n(85893),c=n(11151);const o={sidebar_position:1,description:"Generate pdfpc metadata for the presentation.",toc_max_heading_level:2},i="pdfpc-file",p={id:"reference/pdfpc/pdfpc-file",title:"pdfpc-file",description:"Generate pdfpc metadata for the presentation.",source:"@site/docs/reference/pdfpc/pdfpc-file.mdx",sourceDirName:"reference/pdfpc",slug:"/reference/pdfpc/pdfpc-file",permalink:"/docs/reference/pdfpc/pdfpc-file",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,description:"Generate pdfpc metadata for the presentation.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"Pdfpc",permalink:"/docs/category/pdfpc"},next:{title:"speaker-note",permalink:"/docs/reference/pdfpc/speaker-note"}},a={},s=[];function d(e){const t={a:"a",code:"code",h1:"h1",p:"p",strong:"strong",...(0,c.a)(),...e.components},{Signature:n,SignatureName:o,SignatureParam:i,SourceLink:p,TypeLink:a}=t;return n||l("Signature",!0),o||l("SignatureName",!0),i||l("SignatureParam",!0),p||l("SourceLink",!0),a||l("TypeLink",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pdfpc-file",children:"pdfpc-file"}),"\n",(0,r.jsx)(n,{children:(0,r.jsxs)("code",{children:[(0,r.jsx)(o,{children:"pdfpc-file"}),"(",(0,r.jsx)(i,{children:(0,r.jsx)(t.a,{href:"#loc",children:"loc"})}),")",(0,r.jsx)(p,{href:"https://github.com/touying-typ/touying/blob/main/src/pdfpc.typ#L7"})]})}),"\n",(0,r.jsxs)(t.p,{children:["Generate pdfpc metadata for the presentation. Called internally in the preamble when ",(0,r.jsx)(t.code,{children:"enable-pdfpc"})," is ",(0,r.jsx)(t.code,{children:"true"}),". Query the result with ",(0,r.jsx)(t.code,{children:'typst query --root . ./example.typ --field value --one "<pdfpc-file>" > ./example.pdfpc'}),"."]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Returns:"})," ",(0,r.jsx)(a,{type:"content"})]})]})}function f(e={}){const{wrapper:t}={...(0,c.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}function l(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,n)=>{n.d(t,{Z:()=>p,a:()=>i});var r=n(67294);const c={},o=r.createContext(c);function i(e){const t=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function p(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),r.createElement(o.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.