diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-19 21:59:54 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-19 22:00:02 +0200 |
| commit | 8efd05c39ca6d1d15d5d5fbbb2ae21a143c6dfd7 (patch) | |
| tree | 09550a40e9dfc1a0ba12f625b748196ac40116f8 /templates/ef/ordo.tex | |
| parent | 3f5409f79a1b82e09f72930487ca9e42a1175eed (diff) | |
| download | colitur-8efd05c39ca6d1d15d5d5fbbb2ae21a143c6dfd7.tar.gz colitur-8efd05c39ca6d1d15d5d5fbbb2ae21a143c6dfd7.zip | |
fix(templates): reserve room for the ordo booklet's running header
geometry's top=11mm/bottom=12mm seated the text block without accounting
for fancyhdr's own header/footer, which live OUTSIDE that block by
default -- pushing the running header ('Ordo 2027 . ef') partly above
the physical page edge (measured: yMin -5.5pt on a 0..595pt page) and
the footer to within 1pt of the bottom edge. The user hit this and
reported the header as clipped.
Adds includehead/includefoot to the geometry options (a5paper,
top=10mm, bottom=10mm) so the header/footer live inside the margins
instead, with headsep/footskip set explicitly (3mm/7mm) rather than
left at article's defaults -- those defaults alone would still overflow
a 10mm margin and silently added 20 extra pages to the whole booklet by
shrinking every day box.
Verified: two pdflatex passes produce a 65-page A5 PDF with the full
'Ordo 2027 . ef' header intact on every page and zero pdflatex
warnings. Golden regenerated through the test harness's own render
path (English-with-Latin-fallback), not the CLI, which defaults to
Latin only and would otherwise pin output the tests never produce.
Diffstat (limited to 'templates/ef/ordo.tex')
| -rw-r--r-- | templates/ef/ordo.tex | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/ef/ordo.tex b/templates/ef/ordo.tex index c4a15d1..6a298df 100644 --- a/templates/ef/ordo.tex +++ b/templates/ef/ordo.tex @@ -28,7 +28,20 @@ % deliberately written without ever typing two curly braces next to each % other, even to name a field. \documentclass[10pt]{article} -\usepackage[a5paper,top=11mm,bottom=12mm,inner=14mm,outer=10mm]{geometry} +% includehead/includefoot: without them geometry seats the text block at +% top=/bottom= and fancyhdr then places the running header/footer OUTSIDE +% that block -- above the top margin and below the bottom one -- which on +% this page's original top=11mm/bottom=12mm pushed the header partly above +% the physical page edge (measured: yMin -5.5pt on a 0..595pt page) and the +% footer to within 1pt of the bottom edge. With includehead/includefoot the +% header/footer live INSIDE top=/bottom= instead, so headsep/footskip are +% also set explicitly (3mm/7mm) rather than left at article's defaults +% (25pt/30pt) -- those defaults alone would still overflow a 10mm margin +% and, measured, silently added 20 extra pages to the whole booklet by +% shrinking every day box. \headheight is left at fancyhdr's own default +% (12pt, confirmed by the log, no "increase \headheight" warning) since a +% single \small header line fits it without complaint. +\usepackage[a5paper,top=10mm,bottom=10mm,inner=14mm,outer=10mm,includehead,includefoot,headsep=3mm,footskip=7mm]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{xcolor} |
