页面与样式
这些内容放在 Document 上,用于改变模板的设置:
| 属性 | 作用 |
|---|---|
paper |
a4(默认)、a3、a5、b5、letter或legal,或带引号的尺寸,例如'15cm x 20cm'。landscape: true可将其开启。 |
margin |
一个尺寸('2.5cm'),或'2cm 3cm'(上下、左右),或像 CSS 那样四个尺寸。尺寸可以是mm、cm、in或pt,并需加引号。 |
font, heading_font |
serif(Times)、sans(Helvetica)或mono(Courier)。 |
size, line_height |
文字大小(以磅为单位,11)以及行距(作为其倍数,1.4)。 |
align |
justify、left、center 或 right。 |
accent |
标题和标题页的颜色,加引号:'#1f4e79' 或 'navy' 等名称。 |
numbered |
false 会使各节不带编号。 |
title_page, chapters |
true 将标题放在单独的页面上,并让每个顶级章节都从新页面开始。 |
citations |
numeric 或 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 |
默认的表格线:booktabs、grid 或 none。 |
language |
文本的语言,例如 'en-GB',用于 Word 的拼写检查和 HTML。 |