page-args-from-aspect-ratio
page-args-from-aspect-ratio(aspect-ratio)(source)Convert an aspect ratio string to page configuration arguments.
For the built-in Typst presentation paper sizes ("16-9" and "4-3"), returns
a paper key. For other ratios (e.g. "16-10", "3-2"), returns explicit
width and height keys computed from the 16-9 base width (841.89pt).
Example:
config-page(..utils.page-args-from-aspect-ratio("16-10"))
Parameters
Returns: dictionary