Track textwidth and textheight from page geometry

This commit is contained in:
gloamxun committed 2026-10-19 13:46:25 +08:00
1 parent ed1da06685
commit 269433abdb
7 files changed
+153 -28

No files matched your search

+6
View File
@@ -165,6 +165,12 @@ options/`\geometry{...}` settings, including `paperwidth`, `paperheight`,
`textheight` sizes it below the current top margin. The chosen page size drives
the PDF pages, the positioned layout, and the SVG preview.
`\textwidth`, `\textheight`, `\linewidth`, and `\columnwidth` are live named
length registers: they start at the A4 text block and are updated by
`\documentclass` paper options, `\geometry`, and `\newgeometry`, so
`\parbox{\textwidth}`, `\rule{\textwidth}{...}`, and
`\includegraphics[width=0.5\textwidth]` all follow the current page setup.
Page styles are painted in both the PDF and the SVG preview:
`\pagestyle{empty|plain|fancy}` sets the document default,
`\thispagestyle{...}` overrides one page, and fancyhdr's `\fancyhead`/