Skip to main content

config

Configuration for the pdfpc export. You can export the pdfpc file by shell command typst query --root . ./example.typ --field value --one "<pdfpc-file>" > ./example.pdfpc.

Example:

#pdfpc.config(
duration-minutes: 30,
start-time: datetime(hour: 14, minute: 10, second: 0),
end-time: datetime(hour: 14, minute: 40, second: 0),
last-minutes: 5,
note-font-size: 12,
disable-markdown: false,
default-transition: (
type: "push",
duration-seconds: 2,
angle: ltr,
alignment: "vertical",
direction: "inward",
),
)
Parameters

duration-minutes : int    default: none

The duration of the presentation in minutes.

start-time : datetime    default: none

The start time of the presentation.

end-time : datetime    default: none

The end time of the presentation.

last-minutes : int    default: none

The number of minutes to show the last slide.

note-font-size : float    default: none

The font size of the speaker notes.

disable-markdown : bool    default: false

A flag to disable markdown in the speaker notes.

default-transition : dictionary | none    default: none

The default slide transition. A dictionary with optional keys: type (str, e.g. "push"), duration-seconds (int), angle (direction, e.g. ltr), alignment (str, "horizontal" or "vertical"), direction (str, "inward" or "outward"). Default is none.

Returns: content