Path: blob/main/src/resources/schema/document-layout.yml
12925 views
- name: documentclass1schema:2string:3completions:4- scrartcl5- scrbook6- scrreprt7- scrlttr28- article9- book10- report11- memoir12tags:13formats: [$pdf-all]14default: scrartcl15description: The document class.1617- name: classoption18schema:19maybeArrayOf: string20tags:21formats: [$html-files, $pdf-all]22description:23short: Options for the document class,24long: |25For LaTeX/PDF output, the options set for the document26class.2728For HTML output using KaTeX, you can render display29math equations flush left using `classoption: fleqn`3031- name: pagestyle32schema:33string:34completions:35- plain36- empty37- headings38tags:39formats: [$pdf-all]40default: plain41description: Control the `\pagestyle{}` for the document.4243- name: papersize44schema: string45tags:46formats: [$pdf-all, typst]47description: |48The paper size for the document.4950- name: brand-mode51schema:52enum: [light, dark]53default: light54tags:55formats: [typst, revealjs]56description: |57The brand mode to use for rendering the document, `light` or `dark`.5859- name: layout60schema:61maybeArrayOf: string62tags:63formats: [context]64description:65short: The options for margins and text layout for this document.66long: |67The options for margins and text layout for this document.6869See [ConTeXt Layout](https://wiki.contextgarden.net/Layout) for additional information.7071- name: page-layout72schema:73enum: [article, full, custom]74default: article75tags:76formats: [$html-doc]77description: The page layout to use for this document (`article`, `full`, or `custom`)7879- name: page-width80tags:81formats: [docx, $odt-all]82schema: number83description:84short: |85Target page width for output (used to compute columns widths for `layout` divs)86long: |87Target body page width for output (used to compute columns widths for `layout` divs).88Defaults to 6.5 inches, which corresponds to default letter page settings in89docx and odt (8.5 inches with 1 inch for each margins).9091- name: grid92tags:93formats: [$html-doc, typst]94schema:95object:96closed: true97properties:98content-mode:99enum: ["auto", "standard", "full", "slim"]100description: "Defines whether to use the standard, slim, or full content grid or to automatically select the most appropriate content grid."101sidebar-width:102string:103description: "The base width of the sidebar (left) column in an HTML page."104margin-width:105string:106description: "The base width of the margin (right) column. For Typst, this controls the width of the margin note column."107body-width:108string:109description: "The base width of the body (center) column. For Typst, this is computed as the remainder after other columns."110gutter-width:111string:112description: "The width of the gutter that appears between columns. For Typst, this is the gap between the text column and margin notes."113description:114short: "Properties of the grid system used to layout Quarto HTML and Typst pages."115116- name: appendix-style117schema:118anyOf:119- enum: ["default", "plain", "none"]120default: "default"121tags:122formats: [$html-doc]123description:124short: The layout of the appendix for this document (`none`, `plain`, or `default`)125long: |126The layout of the appendix for this document (`none`, `plain`, or `default`).127128To completely disable any styling of the appendix, choose the appendix style `none`. For minimal styling, choose `plain.`129130- name: appendix-cite-as131schema:132anyOf:133- boolean134- maybeArrayOf:135enum: ["display", "bibtex"]136tags:137formats: [$html-doc]138description:139short: Controls the formats which are provided in the citation section of the appendix (`false`, `display`, or `bibtex`).140long: |141Controls the formats which are provided in the citation section of the appendix.142143Use `false` to disable the display of the 'cite as' appendix. Pass one or more of `display` or `bibtex` to enable that144format in 'cite as' appendix.145146- name: title-block-style147schema:148anyOf:149- enum: ["default", "plain", "manuscript", "none"]150default: "default"151tags:152formats: [$html-doc]153description:154short: The layout of the title block for this document (`none`, `plain`, or `default`).155long: |156The layout of the title block for this document (`none`, `plain`, or `default`).157158To completely disable any styling of the title block, choose the style `none`. For minimal styling, choose `plain.`159160- name: title-block-banner161schema:162anyOf:163- string164- boolean165tags:166formats: [$html-doc]167description:168short: Apply a banner style treatment to the title block.169long: |170Applies a banner style treatment for the title block. You may specify one of the following values:171172`true`173: Will enable the banner style display and automatically select a background color based upon the theme.174175`<css color value>`176: If you provide a CSS color value, the banner will be enabled and the background color set to the provided CSS color.177178`<path>`179: If you provide the path to a file, the banner will be enabled and the background image will be set to the file path.180181See `title-block-banner-color` if you'd like to control the color of the title block banner text.182183- name: title-block-banner-color184schema: string185tags:186formats: [$html-doc]187description:188short: Sets the color of text elements in a banner style title block.189long: |190Sets the color of text elements in a banner style title block. Use one of the following values:191192`body` | `body-bg`193: Will set the text color to the body text color or body background color, respectively.194195`<css color value>`196: If you provide a CSS color value, the text color will be set to the provided CSS color.197198- name: title-block-categories199schema: boolean200default: true201tags:202formats: [$html-doc]203description:204short: Enables or disables the display of categories in the title block.205206- name: max-width207schema: string208tags:209formats: [$html-files]210description: Adds a css `max-width` to the body Element.211212- name: margin-left213schema: string214tags:215formats: [$html-files, context, $pdf-all]216description:217short: Sets the left margin of the document.218long: |219For HTML output, sets the `margin-left` property on the Body element.220221For LaTeX output, sets the left margin if `geometry` is not222used (otherwise `geometry` overrides this value)223224For ConTeXt output, sets the left margin if `layout` is not used,225otherwise `layout` overrides these.226227For `wkhtmltopdf` sets the left page margin.228229- name: margin-right230schema: string231tags:232formats: [$html-files, context, $pdf-all]233description:234short: Sets the right margin of the document.235long: |236For HTML output, sets the `margin-right` property on the Body element.237238For LaTeX output, sets the right margin if `geometry` is not239used (otherwise `geometry` overrides this value)240241For ConTeXt output, sets the right margin if `layout` is not used,242otherwise `layout` overrides these.243244For `wkhtmltopdf` sets the right page margin.245246- name: margin-top247schema: string248tags:249formats: [$html-files, context, $pdf-all]250description:251short: Sets the top margin of the document.252long: |253For HTML output, sets the `margin-top` property on the Body element.254255For LaTeX output, sets the top margin if `geometry` is not256used (otherwise `geometry` overrides this value)257258For ConTeXt output, sets the top margin if `layout` is not used,259otherwise `layout` overrides these.260261For `wkhtmltopdf` sets the top page margin.262263- name: margin-bottom264schema: string265tags:266formats: [$html-files, context, $pdf-all]267description:268short: Sets the bottom margin of the document.269long: |270For HTML output, sets the `margin-bottom` property on the Body element.271272For LaTeX output, sets the bottom margin if `geometry` is not273used (otherwise `geometry` overrides this value)274275For ConTeXt output, sets the bottom margin if `layout` is not used,276otherwise `layout` overrides these.277278For `wkhtmltopdf` sets the bottom page margin.279280- name: margin281tags:282formats: [revealjs, typst]283schema:284anyOf:285- number286- object:287closed: true288properties:289x:290string:291description: "Horizontal margin (e.g. 1.5in)"292y:293string:294description: "Vertical margin (e.g. 1.5in)"295top:296string:297description: "Top margin (e.g. 1.5in)"298bottom:299string:300description: "Bottom margin (e.g. 1.5in)"301left:302string:303description: "Left margin (e.g. 1.5in)"304right:305string:306description: "Right margin (e.g. 1.5in)"307default: 0.1308description:309short: "Margin settings for Reveal.js or Typst output."310long: |311For `revealjs`, the factor of the display size that should remain empty around the content (e.g. 0.1).312313For `typst`, a dictionary specifying page margins. Use `x` and `y` for symmetric314horizontal/vertical margins, or `top`, `bottom`, `left`, `right` for315individual sides. Values should include units (e.g. `1.5in`, `2cm`).316317- name: geometry318schema:319maybeArrayOf: string320tags:321formats: [$pdf-all]322description:323short: Options for the geometry package.324long: |325Options for the [geometry](https://ctan.org/pkg/geometry) package. For example:326327```yaml328geometry:329- top=30mm330- left=20mm331- heightrounded332```333334- name: hyperrefoptions335schema:336maybeArrayOf: string337tags:338formats: [$pdf-all]339description:340short: Additional non-color options for the hyperref package.341long: |342Options for the [hyperref](https://ctan.org/pkg/hyperref) package. For example:343344```yaml345hyperrefoptions:346- linktoc=all347- pdfwindowui348- pdfpagemode=FullScreen349```350351To customize link colors, please see the [Quarto PDF reference](https://quarto.org/docs/reference/formats/pdf.html#colors).352353- name: indent354schema:355anyOf:356- boolean357- string358tags:359formats: [$pdf-all, ms]360default: false361description:362short: Whether to use document class settings for indentation.363long: |364Whether to use document class settings for indentation. If the document365class settings are not used, the default LaTeX template removes indentation366and adds space between paragraphs367368For groff (`ms`) documents, the paragraph indent, for example, `2m`.369370- name: block-headings371schema: boolean372tags:373formats: [$pdf-all]374description:375short: Make `\paragraph` and `\subparagraph` free-standing rather than run-in.376long: |377Make `\paragraph` and `\subparagraph` (fourth- and378fifth-level headings, or fifth- and sixth-level with book379classes) free-standing rather than run-in; requires further380formatting to distinguish from `\subsubsection` (third- or381fourth-level headings). Instead of using this option,382[KOMA-Script](https://ctan.org/pkg/koma-script) can adjust headings383more extensively:384385```yaml386header-includes: |387\RedeclareSectionCommand[388beforeskip=-10pt plus -2pt minus -1pt,389afterskip=1sp plus -1sp minus 1sp,390font=\normalfont\itshape]{paragraph}391\RedeclareSectionCommand[392beforeskip=-10pt plus -2pt minus -1pt,393afterskip=1sp plus -1sp minus 1sp,394font=\normalfont\scshape,395indent=0pt]{subparagraph}396```397398399