Shift the route-D page body by TeX page origin offsets

This commit is contained in:
gloamxun committed 2026-10-23 01:55:28 +08:00
1 parent fb33ac6327
commit 5db7acaff2
7 files changed
+148 -17

No files matched your search

+8
View File
@@ -615,6 +615,12 @@ pub struct Document {
/// TeX `\parskip`: vertical glue inserted between paragraphs.
#[serde(default)]
pub par_skip: i64,
/// Extra horizontal displacement of the page origin (`\hoffset`).
#[serde(default)]
pub h_offset: i64,
/// Extra vertical displacement of the page origin (`\voffset`).
#[serde(default)]
pub v_offset: i64,
}
fn default_text_fraction() -> u8 {
@@ -673,6 +679,8 @@ impl Document {
text_float_sep: default_text_float_sep(),
in_text_sep: default_in_text_sep(),
par_skip: 0,
h_offset: 0,
v_offset: 0,
}
}