Style settings
A style's settings change one book's layout without changing the style. Open them from Style settings in the style gallery, or from Settings next to the style in Project Settings.
| Setting | Key | What it changes |
|---|---|---|
| Page size | pageSize | The paper: A5, A4, letter or 6in × 9in, as the style allows. |
| Top margin | marginTop | The margin above the text, in millimetres. |
| Bottom margin | marginBottom | The margin below the text, in millimetres. |
| Inner margin | marginInner | The margin on the side toward the spine, in millimetres, mirrored on facing pages. |
| Outer margin | marginOuter | The margin on the outer side, in millimetres. |
| Body text size | bodySize | The size of the running text, in points. |
| Paragraph indent | indent | The first-line indent of each paragraph, in millimetres. |
| Columns | columns | How many columns the chapters are set in, 1 to 4. |
The settings are grouped as Page (size, the four margins beside a drawing of two facing pages that shades the side being edited, and the binding), Text and, when the style adds settings of its own, This style. A Reset appears beside each setting the book changed, and Reset all returns every one to the style's defaults.
The four margins start at the style's own, so changing one side keeps the others as the style has them. Books written with a single margins value, before there were four, still have it applied to every side.
A style may set its own defaults, narrow the choices (the game manual offers letter and A4 only) or add settings of its own; each style's page lists its settings with their defaults and ranges.
A colour a style adds may be free, chosen with a colour picker, or offered among a few, shown as swatches to pick from. AD&D 2nd Ed, for instance, offers six colours for its running head, headings and table bands, after the colours of the second edition's lines; in typoteka.json the chosen one is written as its hex value ("accent": "#7A1F24").
Typing a number waits a moment before the book renders again, so a long book is not laid out once per keystroke. Reset returns a setting to the style's default.
Bound book or loose pages
Each style sets a slightly wider margin on the inner side of the page, toward the spine, as a printed book needs. For a short PDF that will be read on screen or printed loose, choose Loose pages, centred under the margins in the style settings (or Loose pages: centred under Margins in Project Settings): both sides then take the narrower of the inner and outer margins (the style's, or the ones set in its settings) and every page is centred. The choice is saved in typoteka.json as binding (see the reference).
In typoteka.json
Settings are saved with the style:
json
"style": {
"preset": "novel",
"options": { "pageSize": "A4", "bodySize": 11 }
}A value outside a setting's range, a choice the style does not offer or a setting the style does not have is ignored: the book renders with the style's default, and the editor shows a Warning in the status bar and the reason in the debug console. Choosing a different style starts from its defaults.
Margins apply to the pages of the text. A style's cover and blank pages keep their own layout: a cover stays edge to edge, without running heads.