-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathdocument-layout.yml
More file actions
392 lines (340 loc) · 11.7 KB
/
document-layout.yml
File metadata and controls
392 lines (340 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
- name: documentclass
schema:
string:
completions:
- scrartcl
- scrbook
- scrreprt
- scrlttr2
- article
- book
- report
- memoir
tags:
formats: [$pdf-all]
default: scrartcl
description: The document class.
- name: classoption
schema:
maybeArrayOf: string
tags:
formats: [$html-files, $pdf-all]
description:
short: Options for the document class,
long: |
For LaTeX/PDF output, the options set for the document
class.
For HTML output using KaTeX, you can render display
math equations flush left using `classoption: fleqn`
- name: pagestyle
schema:
string:
completions:
- plain
- empty
- headings
tags:
formats: [$pdf-all]
default: plain
description: Control the `\pagestyle{}` for the document.
- name: papersize
schema: string
tags:
formats: [$pdf-all, typst]
description: |
The paper size for the document.
- name: brand-mode
schema:
enum: [light, dark]
default: light
tags:
formats: [typst, revealjs]
description: |
The brand mode to use for rendering the document, `light` or `dark`.
- name: layout
schema:
maybeArrayOf: string
tags:
formats: [context]
description:
short: The options for margins and text layout for this document.
long: |
The options for margins and text layout for this document.
See [ConTeXt Layout](https://wiki.contextgarden.net/Layout) for additional information.
- name: page-layout
schema:
enum: [article, full, custom]
default: article
tags:
formats: [$html-doc]
description: The page layout to use for this document (`article`, `full`, or `custom`)
- name: page-width
tags:
formats: [docx, $odt-all]
schema: number
description:
short: |
Target page width for output (used to compute columns widths for `layout` divs)
long: |
Target body page width for output (used to compute columns widths for `layout` divs).
Defaults to 6.5 inches, which corresponds to default letter page settings in
docx and odt (8.5 inches with 1 inch for each margins).
- name: grid
tags:
formats: [$html-doc, typst]
schema:
object:
closed: true
properties:
content-mode:
enum: ["auto", "standard", "full", "slim"]
description: "Defines whether to use the standard, slim, or full content grid or to automatically select the most appropriate content grid."
sidebar-width:
string:
description: "The base width of the sidebar (left) column in an HTML page."
margin-width:
string:
description: "The base width of the margin (right) column. For Typst, this controls the width of the margin note column."
body-width:
string:
description: "The base width of the body (center) column. For Typst, this is computed as the remainder after other columns."
gutter-width:
string:
description: "The width of the gutter that appears between columns. For Typst, this is the gap between the text column and margin notes."
description:
short: "Properties of the grid system used to layout Quarto HTML and Typst pages."
- name: appendix-style
schema:
anyOf:
- enum: ["default", "plain", "none"]
default: "default"
tags:
formats: [$html-doc]
description:
short: The layout of the appendix for this document (`none`, `plain`, or `default`)
long: |
The layout of the appendix for this document (`none`, `plain`, or `default`).
To completely disable any styling of the appendix, choose the appendix style `none`. For minimal styling, choose `plain.`
- name: appendix-cite-as
schema:
anyOf:
- boolean
- maybeArrayOf:
enum: ["display", "bibtex"]
tags:
formats: [$html-doc]
description:
short: Controls the formats which are provided in the citation section of the appendix (`false`, `display`, or `bibtex`).
long: |
Controls the formats which are provided in the citation section of the appendix.
Use `false` to disable the display of the 'cite as' appendix. Pass one or more of `display` or `bibtex` to enable that
format in 'cite as' appendix.
- name: title-block-style
schema:
anyOf:
- enum: ["default", "plain", "manuscript", "none"]
default: "default"
tags:
formats: [$html-doc]
description:
short: The layout of the title block for this document (`none`, `plain`, or `default`).
long: |
The layout of the title block for this document (`none`, `plain`, or `default`).
To completely disable any styling of the title block, choose the style `none`. For minimal styling, choose `plain.`
- name: title-block-banner
schema:
anyOf:
- string
- boolean
tags:
formats: [$html-doc]
description:
short: Apply a banner style treatment to the title block.
long: |
Applies a banner style treatment for the title block. You may specify one of the following values:
`true`
: Will enable the banner style display and automatically select a background color based upon the theme.
`<css color value>`
: If you provide a CSS color value, the banner will be enabled and the background color set to the provided CSS color.
`<path>`
: If you provide the path to a file, the banner will be enabled and the background image will be set to the file path.
See `title-block-banner-color` if you'd like to control the color of the title block banner text.
- name: title-block-banner-color
schema: string
tags:
formats: [$html-doc]
description:
short: Sets the color of text elements in a banner style title block.
long: |
Sets the color of text elements in a banner style title block. Use one of the following values:
`body` | `body-bg`
: Will set the text color to the body text color or body background color, respectively.
`<css color value>`
: If you provide a CSS color value, the text color will be set to the provided CSS color.
- name: title-block-categories
schema: boolean
default: true
tags:
formats: [$html-doc]
description:
short: Enables or disables the display of categories in the title block.
- name: max-width
schema: string
tags:
formats: [$html-files]
description: Adds a css `max-width` to the body Element.
- name: margin-left
schema: string
tags:
formats: [$html-files, context, $pdf-all]
description:
short: Sets the left margin of the document.
long: |
For HTML output, sets the `margin-left` property on the Body element.
For LaTeX output, sets the left margin if `geometry` is not
used (otherwise `geometry` overrides this value)
For ConTeXt output, sets the left margin if `layout` is not used,
otherwise `layout` overrides these.
For `wkhtmltopdf` sets the left page margin.
- name: margin-right
schema: string
tags:
formats: [$html-files, context, $pdf-all]
description:
short: Sets the right margin of the document.
long: |
For HTML output, sets the `margin-right` property on the Body element.
For LaTeX output, sets the right margin if `geometry` is not
used (otherwise `geometry` overrides this value)
For ConTeXt output, sets the right margin if `layout` is not used,
otherwise `layout` overrides these.
For `wkhtmltopdf` sets the right page margin.
- name: margin-top
schema: string
tags:
formats: [$html-files, context, $pdf-all]
description:
short: Sets the top margin of the document.
long: |
For HTML output, sets the `margin-top` property on the Body element.
For LaTeX output, sets the top margin if `geometry` is not
used (otherwise `geometry` overrides this value)
For ConTeXt output, sets the top margin if `layout` is not used,
otherwise `layout` overrides these.
For `wkhtmltopdf` sets the top page margin.
- name: margin-bottom
schema: string
tags:
formats: [$html-files, context, $pdf-all]
description:
short: Sets the bottom margin of the document.
long: |
For HTML output, sets the `margin-bottom` property on the Body element.
For LaTeX output, sets the bottom margin if `geometry` is not
used (otherwise `geometry` overrides this value)
For ConTeXt output, sets the bottom margin if `layout` is not used,
otherwise `layout` overrides these.
For `wkhtmltopdf` sets the bottom page margin.
- name: margin
tags:
formats: [typst]
schema:
object:
closed: true
properties:
x:
string:
description: "Horizontal margin (e.g. 1.5in)"
y:
string:
description: "Vertical margin (e.g. 1.5in)"
top:
string:
description: "Top margin (e.g. 1.5in)"
bottom:
string:
description: "Bottom margin (e.g. 1.5in)"
left:
string:
description: "Left margin (e.g. 1.5in)"
right:
string:
description: "Right margin (e.g. 1.5in)"
description:
short: "Page margins for Typst output."
long: |
A dictionary specifying page margins. Use `x` and `y` for symmetric
horizontal/vertical margins, or `top`, `bottom`, `left`, `right` for
individual sides. Values should include units (e.g. `1.5in`, `2cm`).
- name: geometry
schema:
maybeArrayOf: string
tags:
formats: [$pdf-all]
description:
short: Options for the geometry package.
long: |
Options for the [geometry](https://ctan.org/pkg/geometry) package. For example:
```yaml
geometry:
- top=30mm
- left=20mm
- heightrounded
```
- name: hyperrefoptions
schema:
maybeArrayOf: string
tags:
formats: [$pdf-all]
description:
short: Additional non-color options for the hyperref package.
long: |
Options for the [hyperref](https://ctan.org/pkg/hyperref) package. For example:
```yaml
hyperrefoptions:
- linktoc=all
- pdfwindowui
- pdfpagemode=FullScreen
```
To customize link colors, please see the [Quarto PDF reference](https://quarto.org/docs/reference/formats/pdf.html#colors).
- name: indent
schema:
anyOf:
- boolean
- string
tags:
formats: [$pdf-all, ms]
default: false
description:
short: Whether to use document class settings for indentation.
long: |
Whether to use document class settings for indentation. If the document
class settings are not used, the default LaTeX template removes indentation
and adds space between paragraphs
For groff (`ms`) documents, the paragraph indent, for example, `2m`.
- name: block-headings
schema: boolean
tags:
formats: [$pdf-all]
description:
short: Make `\paragraph` and `\subparagraph` free-standing rather than run-in.
long: |
Make `\paragraph` and `\subparagraph` (fourth- and
fifth-level headings, or fifth- and sixth-level with book
classes) free-standing rather than run-in; requires further
formatting to distinguish from `\subsubsection` (third- or
fourth-level headings). Instead of using this option,
[KOMA-Script](https://ctan.org/pkg/koma-script) can adjust headings
more extensively:
```yaml
header-includes: |
\RedeclareSectionCommand[
beforeskip=-10pt plus -2pt minus -1pt,
afterskip=1sp plus -1sp minus 1sp,
font=\normalfont\itshape]{paragraph}
\RedeclareSectionCommand[
beforeskip=-10pt plus -2pt minus -1pt,
afterskip=1sp plus -1sp minus 1sp,
font=\normalfont\scshape,
indent=0pt]{subparagraph}
```