pub struct NamedPageSet {
pub base: PageConfig,
pub display: Option<PageConfig>,
pub display_first: Option<PageConfig>,
pub display_left: Option<PageConfig>,
pub display_right: Option<PageConfig>,
}Expand description
The page-config family for one named page (CSS @page <name>).
base is the REAL layout config for pages in the named run — the run
starts at a forced break, so vertical margins may genuinely differ
from the document base. Horizontal margins in base must equal the
document base’s (flow width is baked); horizontal variation is
expressed by the display* configs, applied as a constant x
translation at finalize exactly like :left/:right.
Fields§
§base: PageConfigReal config for the run’s pages (vertical real, horizontal base).
display: Option<PageConfig>Display config for every page of the run (mirrored horizontal).
display_first: Option<PageConfig>Display when the run’s page is the DOCUMENT first page
(@page <name>:first — :first means page 1, per spec).
display_left: Option<PageConfig>Display for LEFT (even 1-based) pages of the run.
display_right: Option<PageConfig>Display for RIGHT (odd 1-based) pages of the run.