KScript docs
EN

Documents: KScript.Document

Page and style

These go on Document and change what the template set:

Attribute What it does
paper a4 (default), a3, a5, b5, letter or legal, or a size in quotes such as '15cm x 20cm'. landscape: true turns it.
margin One size ('2.5cm'), or '2cm 3cm' (top and bottom, sides), or four sizes like CSS. Sizes can be mm, cm, in or pt, and go in quotes.
font, heading_font serif (Times), sans (Helvetica) or mono (Courier).
size, line_height The text size in points (11) and the line spacing as a multiple of it (1.4).
align justify, left, center or right.
accent The colour of headings and the title page, in quotes: '#1f4e79' or a name such as 'navy'.
numbered false leaves sections without numbers.
title_page, chapters true puts the title on its own page, and starts each top-level section on a new page.
citations numeric or author-year.
header, footer 'left | centre | right', with [page], [pages], [title], [author] and [date]. footer: "| Page [page] of [pages] |" centres a page count. footer: "" has none.
rules The default table lines: booktabs, grid or none.
language The text's language, such as 'en-GB', for Word's spelling and HTML.

Edit this page on GitHub