-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathdocx.json
More file actions
379 lines (379 loc) · 19.1 KB
/
docx.json
File metadata and controls
379 lines (379 loc) · 19.1 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
[
{
"name": "attributes",
"title": "Title & Author",
"options": [
{
"name": "title",
"description": "Document title"
},
{
"name": "subtitle",
"description": "Identifies the subtitle of the document."
},
{
"name": "date",
"description": "Document date"
},
{
"name": "author",
"description": "Author or authors of the document"
},
{
"name": "abstract",
"description": "Summary of document"
},
{
"name": "abstract-title",
"description": "Title used to label document abstract"
},
{
"name": "order",
"description": "Order for document when included in a website automatic sidebar menu."
}
]
},
{
"name": "options",
"title": "Format Options",
"options": [
{
"name": "reference-doc",
"description": "Use the specified file as a style reference in producing a docx, \npptx, or odt file.\n"
},
{
"name": "quarto-required",
"description": "A semver version range describing the supported quarto versions for this document\nor project.\n\nExamples:\n\n- `>= 1.1.0`: Require at least quarto version 1.1\n- `1.*`: Require any quarto versions whose major version number is 1\n"
}
]
},
{
"name": "toc",
"title": "Table of Contents",
"options": [
{
"name": "toc",
"description": "Include an automatically generated table of contents (or, in\nthe case of `latex`, `context`, `docx`, `odt`,\n`opendocument`, `rst`, or `ms`, an instruction to create\none) in the output document. This option has no effect\nif `standalone` is `false`.\n\nNote that if you are producing a PDF via `ms`, the table\nof contents will appear at the beginning of the\ndocument, before the title. If you would prefer it to\nbe at the end of the document, use the option\n`pdf-engine-opt: --no-toc-relocation`.\n"
},
{
"name": "toc-depth",
"description": "Specify the number of section levels to include in the table of contents.\nThe default is 3\n"
},
{
"name": "toc-title",
"description": "The title used for the table of contents."
}
]
},
{
"name": "numbering",
"title": "Numbering",
"options": [
{
"name": "number-sections",
"description": "Number section headings rendered output. By default, sections are not numbered.\nSections with class `.unnumbered` will never be numbered, even if `number-sections`\nis specified.\n"
},
{
"name": "number-depth",
"description": "By default, all headings in your document create a \nnumbered section. You customize numbering depth using \nthe `number-depth` option. \n\nFor example, to only number sections immediately below \nthe chapter level, use this:\n\n```yaml \nnumber-depth: 1\n```\n"
},
{
"name": "number-offset",
"description": "Offset for section headings in output (offsets are 0 by default)\nThe first number is added to the section number for\ntop-level headings, the second for second-level headings, and so on.\nSo, for example, if you want the first top-level heading in your\ndocument to be numbered \"6\", specify `number-offset: 5`. If your\ndocument starts with a level-2 heading which you want to be numbered\n\"1.5\", specify `number-offset: [1,4]`. Implies `number-sections`\n"
},
{
"name": "shift-heading-level-by",
"description": "Shift heading levels by a positive or negative integer.\nFor example, with `shift-heading-level-by: -1`, level 2\nheadings become level 1 headings, and level 3 headings\nbecome level 2 headings. Headings cannot have a level\nless than 1, so a heading that would be shifted below level 1\nbecomes a regular paragraph. Exception: with a shift of -N,\na level-N heading at the beginning of the document\nreplaces the metadata title.\n"
}
]
},
{
"name": "layout",
"title": "Layout",
"options": [
{
"name": "page-width",
"description": "Target page width for output (used to compute columns widths for `layout` divs).\nDefaults to 6.5 inches, which corresponds to default letter page settings in \ndocx and odt.\n"
},
{
"name": "grid",
"description": "Properties of the grid system used to layout Quarto HTML pages."
}
]
},
{
"name": "code",
"title": "Code",
"options": [
{
"name": "code-annotations",
"description": "The style to use when displaying code annotations. Set this value\nto false to hide code annotations.\n"
},
{
"name": "highlight-style",
"description": "Specifies the coloring style to be used in highlighted source code.\n\nInstead of a *STYLE* name, a JSON file with extension\n` .theme` may be supplied. This will be parsed as a KDE\nsyntax highlighting theme and (if valid) used as the\nhighlighting style.\n"
},
{
"name": "syntax-definitions",
"description": "KDE language syntax definition files (XML)"
},
{
"name": "indented-code-classes",
"description": "Specify classes to use for all indented code blocks"
}
]
},
{
"name": "execute",
"title": "Execution",
"description": "Execution options should be specified within the `execute` key. For example:\n\n```yaml\nexecute:\n echo: false\n warning: false\n```\n",
"options": [
{
"name": "eval",
"description": "Evaluate code cells (if `false` just echos the code into output).\n\n- `true` (default): evaluate code cell\n- `false`: don't evaluate code cell\n- `[...]`: A list of positive or negative line numbers to selectively include or exclude lines \n (explicit inclusion/excusion of lines is available only when using the knitr engine)\n"
},
{
"name": "echo",
"description": "Include cell source code in rendered output.\n\n- `true` (default in most formats): include source code in output\n- `false` (default in presentation formats like `beamer`, `revealjs`, and `pptx`): do not include source code in output\n- `fenced`: in addition to echoing, include the cell delimiter as part of the output.\n- `[...]`: A list of positive or negative line numbers to selectively include or exclude lines\n (explicit inclusion/excusion of lines is available only when using the knitr engine)\n"
},
{
"name": "output",
"description": "Include the results of executing the code in the output. Possible values:\n\n- `true`: Include results.\n- `false`: Do not include results.\n- `asis`: Treat output as raw markdown with no enclosing containers.\n"
},
{
"name": "warning",
"description": "Include warnings in rendered output."
},
{
"name": "error",
"description": "Include errors in the output (note that this implies that errors executing code\nwill not halt processing of the document).\n"
},
{
"name": "include",
"description": "Catch all for preventing any output (code or results) from being included in output.\n"
},
{
"name": "cache",
"description": "Cache results of computations (using the [knitr cache](https://yihui.org/knitr/demo/cache/) \nfor R documents, and [Jupyter Cache](https://jupyter-cache.readthedocs.io/en/latest/) \nfor Jupyter documents).\n\nNote that cache invalidation is triggered by changes in chunk source code \n(or other cache attributes you've defined). \n\n- `true`: Cache results\n- `false`: Do not cache results\n- `refresh`: Force a refresh of the cache even if has not been otherwise invalidated.\n"
},
{
"name": "freeze",
"description": "Control the re-use of previous computational output when rendering.\n\n- `true`: Never recompute previously generated computational output during a global project render\n- `false` (default): Recompute previously generated computational output\n- `auto`: Re-compute previously generated computational output only in case their source file changes\n"
}
]
},
{
"name": "figures",
"title": "Figures",
"options": [
{
"name": "fig-align",
"description": "Figure horizontal alignment (`default`, `left`, `right`, or `center`)"
},
{
"name": "fig-width",
"description": "Default width for figures generated by Matplotlib or R graphics.\n\nNote that with the Jupyter engine, this option has no effect when\nprovided at the cell level; it can only be provided with\ndocument or project metadata.\n"
},
{
"name": "fig-height",
"description": "Default height for figures generated by Matplotlib or R graphics.\n\nNote that with the Jupyter engine, this option has no effect when\nprovided at the cell level; it can only be provided with\ndocument or project metadata.\n"
},
{
"name": "fig-format",
"description": "Default format for figures generated by Matplotlib or R graphics (`retina`, `png`, `jpeg`, `svg`, or `pdf`)"
},
{
"name": "fig-dpi",
"description": "Default DPI for figures generated by Matplotlib or R graphics.\n\nNote that with the Jupyter engine, this option has no effect when\nprovided at the cell level; it can only be provided with\ndocument or project metadata.\n"
},
{
"name": "fig-asp",
"description": "The aspect ratio of the plot, i.e., the ratio of height/width. When `fig-asp` is specified,\nthe height of a plot (the option `fig-height`) is calculated from `fig-width * fig-asp`.\n\nThe `fig-asp` option is only available within the knitr engine.\n"
}
]
},
{
"name": "tables",
"title": "Tables",
"options": [
{
"name": "df-print",
"description": "Method used to print tables in Knitr engine documents:\n\n- `default`: Use the default S3 method for the data frame.\n- `kable`: Markdown table using the `knitr::kable()` function.\n- `tibble`: Plain text table using the `tibble` package.\n- `paged`: HTML table with paging for row and column overflow.\n\nThe default printing method is `kable`.\n"
}
]
},
{
"name": "references",
"title": "References",
"options": [
{
"name": "bibliography",
"description": "Document bibliography (BibTeX or CSL). May be a single file or a list of files\n"
},
{
"name": "csl",
"description": "Citation Style Language file to use for formatting references."
},
{
"name": "citeproc",
"description": "Turn on built-in citation processing. To use this feature, you will need\nto have a document containing citations and a source of bibliographic data: \neither an external bibliography file or a list of `references` in the \ndocument's YAML metadata. You can optionally also include a `csl` \ncitation style file.\n"
},
{
"name": "citation-abbreviations",
"description": "JSON file containing abbreviations of journals that should be\nused in formatted bibliographies when `form=\"short\"` is\nspecified. The format of the file can be illustrated with an\nexample:\n\n```json\n{ \"default\": {\n \"container-title\": {\n \"Lloyd's Law Reports\": \"Lloyd's Rep\",\n \"Estates Gazette\": \"EG\",\n \"Scots Law Times\": \"SLT\"\n }\n }\n}\n```\n"
},
{
"name": "link-citations",
"description": "If true, citations will be hyperlinked to the corresponding bibliography entries (for author-date and numerical styles only). Defaults to false."
},
{
"name": "link-bibliography",
"description": "If true, DOIs, PMCIDs, PMID, and URLs in bibliographies will be rendered as hyperlinks. (If an entry contains a DOI, PMCID, PMID, or URL, but none of \nthese fields are rendered by the style, then the title, or in the absence of a title the whole entry, will be hyperlinked.) Defaults to true.\n"
},
{
"name": "notes-after-punctuation",
"description": "If true (the default for note styles), Quarto (via Pandoc) will put footnote references or superscripted numerical citations after \nfollowing punctuation. For example, if the source contains blah blah [@jones99]., the result will look like blah blah.[^1], with \nthe note moved after the period and the space collapsed. \n\nIf false, the space will still be collapsed, but the footnote will not be moved after the punctuation. The option may also be used \nin numerical styles that use superscripts for citation numbers (but for these styles the default is not to move the citation).\n"
}
]
},
{
"name": "crossref",
"title": "Cross-References",
"options": [
{
"name": "crossref",
"description": "Configuration for crossref labels and prefixes. See [Cross-Reference Options](https://quarto.org/docs/reference/metadata/crossref.html) for more details."
}
]
},
{
"name": "citation",
"title": "Citation",
"options": [
{
"name": "citation",
"description": "Citation information for the document itself specified as [CSL](https://docs.citationstyles.org/en/stable/specification.html) \nYAML in the document front matter.\n\nFor more on supported options, see [Citation Metadata](https://quarto.org/docs/reference/metadata/citation.html).\n"
}
]
},
{
"name": "language",
"title": "Language",
"options": [
{
"name": "lang",
"description": "Identifies the main language of the document using IETF language tags \n(following the [BCP 47](https://www.rfc-editor.org/info/bcp47) standard), \nsuch as `en` or `en-GB`. The [Language subtag lookup](https://r12a.github.io/app-subtags/) \ntool can look up or verify these tags. \n\nThis affects most formats, and controls hyphenation \nin PDF output when using LaTeX (through [`babel`](https://ctan.org/pkg/babel) \nand [`polyglossia`](https://ctan.org/pkg/polyglossia)) or ConTeXt.\n"
},
{
"name": "language",
"description": "YAML file containing custom language translations"
},
{
"name": "dir",
"description": "The base script direction for the document (`rtl` or `ltr`).\n\nFor bidirectional documents, native pandoc `span`s and\n`div`s with the `dir` attribute can\nbe used to override the base direction in some output\nformats. This may not always be necessary if the final\nrenderer (e.g. the browser, when generating HTML) supports\nthe [Unicode Bidirectional Algorithm].\n\nWhen using LaTeX for bidirectional documents, only the\n`xelatex` engine is fully supported (use\n`--pdf-engine=xelatex`).\n"
}
]
},
{
"name": "includes",
"title": "Includes",
"options": [
{
"name": "metadata-files",
"description": "Read metadata from the supplied YAML (or JSON) files. This\noption can be used with every input format, but string scalars\nin the YAML file will always be parsed as Markdown. Generally,\nthe input will be handled the same as in YAML metadata blocks.\nValues in files specified later in the list will be preferred\nover those specified earlier. Metadata values specified inside\nthe document, or by using `-M`, overwrite values specified with\nthis option.\n"
}
]
},
{
"name": "metadata",
"title": "Metadata",
"options": [
{
"name": "keywords",
"description": "List of keywords to be included in the document metadata."
},
{
"name": "subject",
"description": "The document subject"
},
{
"name": "description",
"description": "The document description. Some applications show this as `Comments` metadata."
},
{
"name": "category",
"description": "The document category."
}
]
},
{
"name": "render",
"title": "Rendering",
"options": [
{
"name": "from",
"description": "Format to read from. Extensions can be individually enabled or disabled by appending +EXTENSION or -EXTENSION to the format name (e.g. markdown+emoji).\n"
},
{
"name": "output-file",
"description": "Output file to write to"
},
{
"name": "output-ext",
"description": "Extension to use for generated output file\n"
},
{
"name": "standalone",
"description": "Produce output with an appropriate header and footer (e.g. a standalone HTML, LaTeX, TEI, or RTF file, not a fragment)\n"
},
{
"name": "filters",
"description": "Specify executables or Lua scripts to be used as a filter transforming\nthe pandoc AST after the input is parsed and before the output is written.\n"
},
{
"name": "shortcodes",
"description": "Specify Lua scripts that implement shortcode handlers\n"
},
{
"name": "keep-md",
"description": "Keep the markdown file generated by executing code"
},
{
"name": "keep-ipynb",
"description": "Keep the notebook file generated from executing code."
},
{
"name": "ipynb-filters",
"description": "Filters to pre-process ipynb files before rendering to markdown"
},
{
"name": "ipynb-shell-interactivity",
"description": "Specify which nodes should be run interactively (displaying output from expressions)\n"
},
{
"name": "extract-media",
"description": "Extract images and other media contained in or linked from the source document to the\npath DIR, creating it if necessary, and adjust the images references in the document\nso they point to the extracted files. Media are downloaded, read from the file\nsystem, or extracted from a binary container (e.g. docx), as needed. The original\nfile paths are used if they are relative paths not containing ... Otherwise filenames\nare constructed from the SHA1 hash of the contents.\n"
},
{
"name": "resource-path",
"description": "List of paths to search for images and other resources.\n"
},
{
"name": "default-image-extension",
"description": "Specify a default extension to use when image paths/URLs have no\nextension. This allows you to use the same source for formats that\nrequire different kinds of images. Currently this option only affects\nthe Markdown and LaTeX readers.\n"
},
{
"name": "abbreviations",
"description": "Specifies a custom abbreviations file, with abbreviations one to a line.\nThis list is used when reading Markdown input: strings found in this list\nwill be followed by a nonbreaking space, and the period will not produce sentence-ending space in formats like LaTeX. The strings may not contain\nspaces.\n"
},
{
"name": "dpi",
"description": "Specify the default dpi (dots per inch) value for conversion from pixels to inch/\ncentimeters and vice versa. (Technically, the correct term would be ppi: pixels per\ninch.) The default is `96`. When images contain information about dpi internally, the\nencoded value is used instead of the default specified by this option.\n"
},
{
"name": "html-table-processing",
"description": "If `none`, do not process tables in HTML input."
}
]
}
]