diff --git a/crates/typst-layout/src/grid/layouter.rs b/crates/typst-layout/src/grid/layouter.rs index 42fe38dbe..9f714ac86 100644 --- a/crates/typst-layout/src/grid/layouter.rs +++ b/crates/typst-layout/src/grid/layouter.rs @@ -6,6 +6,7 @@ use typst_library::foundations::{Resolve, StyleChain}; use typst_library::layout::grid::resolve::{ Cell, CellGrid, Header, LinePosition, Repeatable, }; +use typst_library::layout::resolve::Footer; use typst_library::layout::{ Abs, Axes, Dir, Fr, Fragment, Frame, FrameItem, Length, Point, Region, Regions, Rel, Size, Sizing, @@ -60,6 +61,16 @@ pub struct GridLayouter<'a> { pub(super) pending_headers: &'a [Repeatable
], /// Next headers to be processed. pub(super) upcoming_headers: &'a [Repeatable
], + /// Currently repeating footers, one per level. Sorted by increasing + /// levels. + /// + /// Note that some levels may be absent, in particular level 0, which does + /// not exist (so all levels are >= 1). + pub(super) repeating_footers: Vec<&'a Footer>, + /// Next footers to be processed. + pub(super) upcoming_footers: &'a [Repeatable