From 8efd05c39ca6d1d15d5d5fbbb2ae21a143c6dfd7 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Wed, 19 Aug 2026 21:59:54 +0200 Subject: 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. --- templates/ef/ordo.tex | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'templates/ef') 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} -- cgit v1.3