When editing a template, some changes belong across the whole document, such as a new font or shared margins. Other parts may need their own treatment, like a cover with a colored background followed by white content pages.
Tembuilder lets you do both: set shared defaults in Global, then give individual pages their own margins and backgrounds in Structure. This guide shows you where to choose paper size and adjust typography, margins, and backgrounds.
1. Choose the paper size
Use the paper-size control in the preview area, shown as A4 below. Paper size applies to the whole template; individual pages do not have a separate paper-size setting in Config.
Tembuilder supports 9 paper sizes:
| Paper size | Dimensions (width × height, mm) |
|---|---|
| A0 | 841 × 1189 |
| A1 | 594 × 841 |
| A2 | 420 × 594 |
| A3 | 297 × 420 |
| A4 | 210 × 297 |
| A5 | 148 × 210 |
| A6 | 105 × 148 |
| US Letter | 215.9 × 279.4 |
| Legal | 215.9 × 355.6 |
2. Set shared typography in Global
Open Structure → Global → Config → Typography.
| Setting | Value and units |
|---|---|
| Font size | Size in pt, such as 12. |
| Line height | A multiplier of the font size, such as 1.4; do not enter px or pt. |
| Letter spacing | Character spacing in em, such as 0.02. |
| Text align | Left, Center, Right, or Justify. |
| Text color | The shared text color. |
These are default values. If a section sets its own font-size, color, or line-height in CSS, changing that setting in Global does not override the section’s CSS. If part of the content does not respond to a Global change, check that section’s CSS tab.
3. Add and order fonts
Open Global → Config → Fonts → Add font, search for a Google Font, and add it to the list.
The list order sets font priority. Drag a font to the top or use the up/down controls to make it the first choice. Later fonts are fallbacks when an earlier one is unavailable or lacks a character.
A section with its own CSS font-family uses that font declaration instead of Global’s default order.
4. Set content margins
Open Global → Config → Content margin, enable margins, and enter Top, Right, Bottom, and Left in mm.
For example, A4 is 210 mm wide. With left and right margins of 14 mm each, the content area is 182 mm wide. That is the width available for tables and sections.
Use page margins for the inset from the paper’s edges. Use padding and margin in a section’s CSS for spacing within or between content blocks.
Mirror margin swaps the left and right margins on even sheets for double-sided, bound documents. With Left 24 and Right 12, odd sheets have a 24 mm left margin and even sheets have a 24 mm right margin.
5. Override a page’s margins and background
Select a page in Structure → Config to override Global:
- Custom margins → Content: enable a separate content margin for the page.
- Background → Page background: enable a separate background color or image.
These settings are independent. A cover can have its own background while keeping shared margins, or a page containing a wide table can have its own margins.
Disable an override to use the current Global value again. While an override is enabled, changes to that Global setting do not apply to the page.
Headers and footers have their own margin and background settings when enabled. See Headers and footers or Using images for the relevant details.
6. Structure pages and PDF sheets
A page in Structure groups sections; it is not limited to one sheet of paper. Longer content can produce several PDF sheets from that group, and the page’s configuration continues to apply to those sheets.
To give a cover different margins or a background, make it a separate page in Structure. To control where content moves onto the next sheet, use the page-break settings.