Updated November 25, 2026
Headers and Footers That Do Not Lie: Page Numbers, Sections, and the Limits of Export
A header that prints "Draft" on a released tender is not a layout problem. How running headers and footers derive from the document, how section numbering works, and which promises PDF and DOCX keep differently — with four checks before sending.
A 74-page tender goes out with "Draft — internal review" printed in the header of every page. The file is final; it was signed off the day before. The reviewer who receives it now has to ask whether the prices are binding. A document that was supposed to answer questions has created one.
Nothing in the body is wrong. The page furniture is. Headers, footers and page numbers are the part of a document that talks about the document: who issued it, which revision this is, where the reader currently sits inside it. That makes them metadata in a positional costume — and metadata typed as text goes stale at the first edit.
Three ways page furniture goes wrong
| What the reader sees | What caused it | What the reader concludes |
|---|---|---|
| "Draft" on a released document | Status written into the template as plain text | The document is not binding |
| "Page 3 of 12" on page 3 of 74 | Total page count typed once, by hand | The file is incomplete or wrongly assembled |
| Appendix restarts at "1" with no label | Numbering restarted without saying so | Pages 61–74 look like a separate, short document |
The third case is the quiet one. Restarting numbering is legitimate — front matter is often roman, appendices often start again. It only becomes an error when the page never says which part of the document it belongs to. A reader holding a page that says "7" cannot tell whether seven pages remain or seventy.
The page is a model, not a canvas
In Autype, the physical page is described by page styles: a default page entry plus variants for the situations that actually differ. Each entry is identified by an id and a variant, not by an open-ended list of exceptions.
| Variant | Applies to |
|---|---|
default | The base for every page of that id |
documentFirst | The first physical page of the document |
sectionFirst | The first page of a section |
odd / even | Left- and right-hand pages, for two-sided printing |
blank | Inserted blank pages |
Variants inherit through a fixed cascade — global defaults, then odd/even or blank, then section-first, then document-first, then the same order again for the selected page id, then local section overrides. Arrays replace, objects merge, and an explicit null clears a value instead of silently inheriting it. That last rule matters more than it sounds: it lets a cover page switch off a header it would otherwise inherit, without duplicating the whole page definition.
This is a different mental model from the classic word-processor header: three slots (left, centre, right), one excludeFirstPage checkbox, and no vocabulary for "odd pages of the appendix". Autype still reads those legacy three-slot headers and footers, and migrates them copy-on-write when you upgrade a style — left, centre and right content, rich text, header images and the first-page exclusion are all preserved.
What belongs in a header, what belongs in a footer
A header or footer region is a bounded grid, not a text box. Its cells can span tracks and hold several blocks: text, images, fields, variables, rules, spacers, QR codes, shapes. A Word-style separator line is simply a bottom border on the region or a horizontal rule block.
| Block | Sensible use | Common mistake |
|---|---|---|
image | Logo, seal | A second logo variant per department |
text | Document type, client or project name | A whole sentence of instructions |
field | Page number, page count, date, section metadata | Typing the same value as text |
variable | Issue date, revision, contract ID | Free text that should be a variable |
rule | Separator between header and body | Heavy borders that eat the margin |
qrcode | Verification link for a printed copy | Encoding the whole URL as visible text |
A workable division: the header carries identity (who, what, which client), the footer carries navigation and state (page x of y, revision, issue date). Both should stay one or two lines. Prose in a header is repeated on every page, competes with the body and, in a tagged PDF, adds noise to the reading order.
Page numbers are a property of the section, not a text field
Numbering is configured where the section is defined. The page layout reference exposes pageStart (auto, next, odd, even), restartPageNumber and pageNumberFormat (decimal, lowerRoman, upperRoman, lowerAlpha, upperAlpha) as section attributes, in the markup as well as in the page style.
---page{align=center showHeader=false showFooter=false}---
# Tender 2026-114
Northwind Utilities — Grid Maintenance
---/page---
---flow{id="appendix" pageStyleId="appendix" pageStart=odd restartPageNumber=1 pageNumberFormat=upperRoman}---
# Appendix A — Load Measurements
---/flow---
Two details are easy to miss. showHeader and showFooter let a single page section switch the furniture off — a cover does not need to be told it is page 1 of 74. And pageStart=odd is what makes a printed appendix begin on a right-hand page instead of wherever the previous section happened to end.
If numbering restarts, the header must say what the number belongs to. "Appendix A — page i" is a promise the reader can verify; a bare "i" is a riddle.
Fields beat typos: page count and date
Headers and footers have three built-in variables: {{pageNumber}}, {{totalPages}} and {{date}}. The first two remove the most common lie in generated documents, because the total is computed from the finished render rather than typed from an earlier draft.
{{date}} is more interesting than it looks. It accepts format tokens (YYYY, MMMM, DD), presets (iso, time, long, monthYear), offsets (+1d, -7d, +1m) and timezone offsets in +HH:mm form. So {{date/long//+01:00}} gives a readable date in Central European Time regardless of where the render runs.
The trap: {{date}} is the render date, not the issue date. Re-render a contract in three years for an archive copy and the header will show that day. If the document must state when it was issued, store the issue date as a document variable and use {{date}} only where "generated on" is genuinely meant — or leave it out.
Where the export decides what survives
Page furniture is a promise about the file the reader actually opens. Autype validates styles in five layers — structural schema, semantic references and grids, asset authorization, output-format capability, and physical layout with header/footer collision checks — and the fifth layer is where most surprises are caught.
| Capability | DOCX / ODT | |
|---|---|---|
| Repeating header and footer regions | Yes | Yes |
| Mirrored margins with gutter for binding | Yes | Yes |
| Odd/even variant changing header content | Yes | Yes |
| Odd/even variant changing section geometry | Yes | No — use a named page style on a dedicated section |
| PDF bleed box | Yes | Rejected as unsupported, not silently dropped |
| Relative row heights in a header grid | Yes | Rejected — Word cannot preserve them reliably |
The asymmetry is not a bug to work around; it is the reason capability checks exist. In compatible mode, non-native decisions come back as warnings. In strict mode, any unsupported decision rejects the export instead of producing a file that looks right until someone opens it in Word. The earlier article on Markdown to DOCX formatting covers the same split from the body side: tables, styles and page breaks.
Collisions between header and content are warnings; genuine impossibilities are hard errors: a non-positive content area, a region whose content exceeds its height or maxHeight, fixed grid tracks that cannot resolve to the available width, a page object outside the physical page without allowClip, a foreground object over the content area without allowOverlap.
The check that catches long names
A header that fits at design time can fail at render time. Region heights are checked against resolved runtime text and variables before the file is written, which is why an 18 mm header that held "Acme GmbH" quietly breaks when the customer is "Süddeutsche Energieversorgung Regionalnetze GmbH & Co. KG". That is the right moment to fail — at the build, not in front of the recipient.
Auto-height regions should therefore declare minHeight or maxHeight; without a bound, collision checking cannot be deterministic. And after editing a style preset, re-apply it: styles are copied into documents on apply, so a corrected header in the preset does not travel backwards into the forty documents that already carry the old copy.
What LaTeX already got right
LaTeX users have lived with this problem for decades, and the vocabulary is instructive. A page style (empty, plain, headings, myheadings) describes what the page furniture should contain; \pagestyle sets it for the current page and everything after, \thispagestyle for one page only; \pagenumbering{roman} changes the numbering style; twoside produces different furniture on even and odd pages. The Overleaf reference on headers and footers documents all of this, including the warning that appears when \headheight is too small for the header content — the same geometry-versus-content collision that Autype reports as a layout error.
The lesson transfers to any document pipeline: page furniture must be a document-level role with inheritance, not a text box that someone fills once. Autype's variants and region grids are one implementation of that idea; the failure mode it prevents is the same everywhere.
Four checks before sending
- Open the first page, one middle page and the last page of every section, not just page 1.
- Compare the printed total with the actual count. "of 74" must be true on page 74.
- Search the rendered file for stale words: "Draft", "Internal", the previous client name, last year's revision.
- Render PDF and DOCX (if DOCX is a deliverable) and compare the appendix's first page and one odd/even spread. If the two disagree, decide which one is binding before the recipient does.
A header is a small promise repeated on every page. Maintained in the template it costs minutes; discovered at the printer it costs a reprint and a conversation about whether the document was ever final.
Sources (retrieved 24 November 2026)
Autype documentation, "Document Styling": https://docs.autype.com/api-reference/json-syntax/document-styling
Autype documentation, "Variables": https://docs.autype.com/markup-reference/variables
Autype documentation, "Page Layout": https://docs.autype.com/markup-reference/page-layout
Autype documentation, "Styles Panel": https://docs.autype.com/getting-started/editor/sidebar-styles
Overleaf Learn, "Headers and footers": https://www.overleaf.com/learn/latex/Headers_and_footers
Latest Articles
Wide Tables, Narrow Pages: Column Widths, Landscape Breaks, and Pagination That Holds
Nine columns across 17 centimetres: why tables break at export, how columnWidths works as a budget, when a landscape page beats a smaller font, and six checks before sending.
Read articleWhat a Document Really Costs: Planning Credits, Renders, and Lens Runs
One render is one credit — a quote as PDF and DOCX is two. How document costs add up from credits, pages, and post-processing, where the maths tips, and which five numbers are missing before you quote.
Read articleImages That Hold Up in Print: Resolution, Crop, and Alt Text in PDF and DOCX
A 4,000-pixel photo can look soft in a PDF while a 900-pixel logo prints sharp. Why the pixel-to-millimetre ratio decides image quality, how crop, fit and focal point control the frame, and how bracket text doubles as alt text — with a resolution table and five pre-export checks.
Read articleReady to automate your documents?
Start creating business documents with Autype. No credit card required.