typst::layout

Function layout_fragment

source
pub fn layout_fragment(
    engine: &mut Engine<'_>,
    content: &Content,
    locator: Locator<'_>,
    styles: StyleChain<'_>,
    regions: Regions<'_>,
) -> SourceResult<Fragment>
Expand description

Lays out content into multiple regions.

When laying out into just one region, prefer layout_frame.