📄️ add-page-margin-dicts
Add page margin dictionary to another page margin dictionary.
📄️ add-dicts
Add a dictionary to another dictionary recursively.
📄️ merge-dicts
Merge some dictionaries recursively.
📄️ touying-progress
Get the progress of the current slide.
📄️ trim
Remove leading and trailing empty elements from an array of content.
📄️ label-it
Add a label to a content.
📄️ reconstruct
Reconstruct a content with a new body.
📄️ reconstruct-table-like
Reconstruct a table-like content with new children.
📄️ is-sequence
Determine if a content is a sequence (i.e.
📄️ is-styled
Determine if a content is styled (i.e.
📄️ is-space
Determine if a content is a space (i.e.
📄️ reconstruct-styled
Reconstruct a styled content with a new body.
📄️ is-metadata
Determine if a content is a metadata(...) element.
📄️ is-kind
Determine if a content is a metadata with a specific kind.
📄️ is-heading
Determine if a content is a heading up to specific depth.
📄️ call-or-display
Call a self => {..} function and return the result, or wrap plain content in [].
📄️ method-wrapper
Wrap a function with a self parameter to make it callable as a method.
📄️ methods
Extract all method functions from self and bind self as their first named argument.
📄️ capitalize
Capitalize a string.
📄️ titlecase
Convert a string into title case.
📄️ short-heading
Convert a heading with label to a short display form.
📄️ current-heading
Get the current heading on or before the current page.
📄️ display-current-heading
Display the current heading on the page.
📄️ display-current-heading-number
Display the current heading number on the page.
📄️ display-current-short-heading
Display the current short heading on the page.
📄️ section-relationship
Get the relationship of the current section a passed in outline entry.
📄️ display-info-date
Display the date from self.info.date formatted with self.datetime-format.
📄️ markup-text
Convert content to markup text, partly from typst-examples-book.
📄️ fit-to-height
Fit content to specified/remaining height.
📄️ fit-to-width
Fit content to specified width.
📄️ is-block
true for all typst content that is not inline.
📄️ cover-with-rect
Cover content with a rectangle of a specified color.
📄️ update-alpha
Update the alpha channel of a color.
📄️ semi-transparent-cover
Cover content with a semi-transparent rectangle matching the page background color.
📄️ color-changing-cover
Cover content with a text-color-changing mechanism.
📄️ alpha-changing-cover
Cover content with an alpha-changing mechanism.