Path: blob/main/src/resources/schema/document-fonts.yml
12925 views
- name: mainfont1schema: string2tags:3formats: [$html-doc, context, $pdf-all, typst]4description:5short: Sets the main font for the document.6long: |7For HTML output, sets the CSS `font-family` on the HTML element.89For LaTeX output, the main font family for use with `xelatex` or10`lualatex`. Takes the name of any system font, using the11[`fontspec`](https://ctan.org/pkg/fontspec) package.1213For ConTeXt output, the main font family. Use the name of any14system font. See [ConTeXt Fonts](https://wiki.contextgarden.net/Fonts) for more15information.1617- name: monofont18schema: string19tags:20formats: [$html-doc, context, $pdf-all]21description:22short: Sets the font used for when displaying code.23long: |24For HTML output, sets the CSS font-family property on code elements.2526For PowerPoint output, sets the font used for code.2728For LaTeX output, the monospace font family for use with `xelatex` or29`lualatex`: take the name of any system font, using the30[`fontspec`](https://ctan.org/pkg/fontspec) package.3132For ConTeXt output, the monspace font family. Use the name of any33system font. See [ConTeXt Fonts](https://wiki.contextgarden.net/Fonts) for more34information.3536- name: codefont37schema: string38tags:39formats: [typst]40description:41short: Sets the font used for code in Typst output.42long: |43For Typst output, sets the font used for displaying code. Takes44the name of any font available to Typst (system fonts or fonts in45directories specified by `font-paths`).4647- name: fontsize48schema: string49tags:50formats: [$html-doc, context, $pdf-all, typst]51description:52short: Sets the main font size for the document.53long: |54For HTML output, sets the base CSS `font-size` property.5556For LaTeX and ConTeXt output, sets the font size for the document body text.5758- name: fontenc59schema: string60tags:61formats: [$pdf-all]62default: T163description:64short: Allows font encoding to be specified through `fontenc` package.65long: |66Allows font encoding to be specified through [`fontenc`](https://www.ctan.org/pkg/fontenc) package.6768See [LaTeX Font Encodings Guide](https://ctan.org/pkg/encguide) for addition information on font encoding.6970- name: fontfamily71schema: string72tags:73formats: [$pdf-all, ms]74default: "Latin Modern"75description:76short: Font package to use when compiling a PDF with the `pdflatex` `pdf-engine`.77long: |78Font package to use when compiling a PDf with the `pdflatex` `pdf-engine`.7980See [The LaTeX Font Catalogue](https://tug.org/FontCatalogue/) for a81summary of font options available.8283For groff (`ms`) files, the font family for example, `T` or `P`.8485- name: fontfamilyoptions86schema:87maybeArrayOf: string88tags:89formats: [$pdf-all]90description:91short: Options for the package used as `fontfamily`.92long: |93Options for the package used as `fontfamily`.9495For example, to use the Libertine font with proportional lowercase96(old-style) figures through the [`libertinus`](https://ctan.org/pkg/libertinus) package:9798```yaml99fontfamily: libertinus100fontfamilyoptions:101- osf102- p103```104105- name: sansfont106schema: string107tags:108formats: [$pdf-all]109description:110short: The sans serif font family for use with `xelatex` or `lualatex`.111long: |112The sans serif font family for use with `xelatex` or113`lualatex`. Takes the name of any system font, using the114[`fontspec`](https://ctan.org/pkg/fontspec) package.115116- name: mathfont117schema: string118tags:119formats: [$pdf-all, typst]120description:121short: The math font family for use with `xelatex`, `lualatex`, or Typst.122long: |123For LaTeX output, the math font family for use with `xelatex` or124`lualatex`. Takes the name of any system font, using the125[`fontspec`](https://ctan.org/pkg/fontspec) package.126127For Typst output, sets the font used for mathematical content.128129- name: CJKmainfont130schema: string131tags:132formats: [$pdf-all]133description:134short: The CJK main font family for use with `xelatex` or `lualatex`.135long: |136The CJK main font family for use with `xelatex` or137`lualatex` using the [`xecjk`](https://ctan.org/pkg/xecjk) package.138139# dependencies upon other key values (e.g. pdf-engine: xelatex)140- name: mainfontoptions141schema:142maybeArrayOf: string143tags:144formats: [$pdf-all]145description:146short: The main font options for use with `xelatex` or `lualatex`.147long: |148The main font options for use with `xelatex` or `lualatex` allowing149any options available through [`fontspec`](https://ctan.org/pkg/fontspec).150151For example, to use the [TeX Gyre](http://www.gust.org.pl/projects/e-foundry/tex-gyre)152version of Palatino with lowercase figures:153154```yaml155mainfont: TeX Gyre Pagella156mainfontoptions:157- Numbers=Lowercase158- Numbers=Proportional159```160161- name: sansfontoptions162schema:163maybeArrayOf: string164tags:165formats: [$pdf-all]166description:167short: The sans serif font options for use with `xelatex` or `lualatex`.168long: |169The sans serif font options for use with `xelatex` or `lualatex` allowing170any options available through [`fontspec`](https://ctan.org/pkg/fontspec).171172- name: monofontoptions173schema:174maybeArrayOf: string175tags:176formats: [$pdf-all]177description:178short: The monospace font options for use with `xelatex` or `lualatex`.179long: |180The monospace font options for use with `xelatex` or `lualatex` allowing181any options available through [`fontspec`](https://ctan.org/pkg/fontspec).182183- name: mathfontoptions184schema:185maybeArrayOf: string186tags:187formats: [$pdf-all]188description:189short: The math font options for use with `xelatex` or `lualatex`.190long: |191The math font options for use with `xelatex` or `lualatex` allowing192any options available through [`fontspec`](https://ctan.org/pkg/fontspec).193194- name: font-paths195schema:196maybeArrayOf: string197tags:198formats: [typst]199description:200short: "Adds additional directories to search for fonts when compiling with Typst."201long: |202Locally, Typst uses installed system fonts. In addition, some custom path203can be specified to add directories that should be scanned for fonts.204Setting this configuration will take precedence over any path set in TYPST_FONT_PATHS environment variable.205206- name: CJKoptions207schema:208maybeArrayOf: string209tags:210formats: [$pdf-all]211description:212short: The CJK font options for use with `xelatex` or `lualatex`.213long: |214The CJK font options for use with `xelatex` or `lualatex` allowing215any options available through [`fontspec`](https://ctan.org/pkg/fontspec).216217- name: microtypeoptions218schema:219maybeArrayOf: string220tags:221formats: [$pdf-all]222description:223short: Options to pass to the microtype package.224long: Options to pass to the [microtype](https://ctan.org/pkg/microtype) package.225226- name: pointsize227schema: string228tags:229formats: [ms]230description: The point size, for example, `10p`.231232- name: lineheight233schema: string234tags:235formats: [ms]236description: The line height, for example, `12p`.237238- name: linestretch239schema:240anyOf:241- string242- number243tags:244formats: [$html-doc, context, $pdf-all, typst]245description:246short: Sets the line height or spacing for text in the document.247long: |248For HTML output sets the CSS `line-height` property on the html249element, which is preferred to be unitless.250251For LaTeX output, adjusts line spacing using the252[setspace](https://ctan.org/pkg/setspace) package, e.g. 1.25, 1.5.253254For Typst output, adjusts the spacing between lines of text.255256- name: interlinespace257schema:258maybeArrayOf: string259tags:260formats: [context]261description: Adjusts line spacing using the `\setupinterlinespace` command.262263- name: linkstyle264schema:265string:266completions:267- normal268- bold269- slanted270- boldslanted271- type272- cap273- small274tags:275formats: [context]276description: The typeface style for links in the document.277278- name: whitespace279schema: string280tags:281formats: [context]282description:283short: Set the spacing between paragraphs, for example `none`, `small.284long: |285Set the spacing between paragraphs, for example `none`, `small`286using the [`setupwhitespace`](https://wiki.contextgarden.net/Command/setupwhitespace)287command.288289290