Skip to content

Commit e94aeee

Browse files
schema changes for new typst template variables
fixed #14070 all already existed for other formats except for codefont this seems to serve the same purpose as monofont but pandoc is using the separate variable so we do as well
1 parent 11314dc commit e94aeee

3 files changed

Lines changed: 38 additions & 17 deletions

File tree

src/resources/schema/document-attributes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
- name: thanks
145145
schema: string
146146
tags:
147-
formats: [$pdf-all]
147+
formats: [$pdf-all, typst]
148148
description: The contents of an acknowledgments footnote after the document title.
149149

150150
- name: order

src/resources/schema/document-colors.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@
77
- name: linkcolor
88
schema: string
99
tags:
10-
formats: [$html-doc, context, $pdf-all]
10+
formats: [$html-doc, context, $pdf-all, typst]
1111
description:
1212
short: Sets the color of hyperlinks in the document.
1313
long: |
1414
For HTML output, sets the CSS `color` property on all links.
1515
1616
For LaTeX output, The color used for internal links using color options
17-
allowed by [`xcolor`](https://ctan.org/pkg/xcolor),
17+
allowed by [`xcolor`](https://ctan.org/pkg/xcolor),
1818
including the `dvipsnames`, `svgnames`, and
1919
`x11names` lists.
2020
2121
For ConTeXt output, sets the color for both external links and links within the document.
2222
23+
For Typst output, sets the color of internal hyperlinks using Typst color syntax.
24+
2325
- name: monobackgroundcolor
2426
schema: string
2527
tags:
@@ -36,27 +38,31 @@
3638
- name: filecolor
3739
schema: string
3840
tags:
39-
formats: [$pdf-all]
41+
formats: [$pdf-all, typst]
4042
description:
41-
short: The color used for external links using color options allowed by `xcolor`
43+
short: The color used for external links.
4244
long: |
43-
The color used for external links using color options
44-
allowed by [`xcolor`](https://ctan.org/pkg/xcolor),
45+
For LaTeX output, the color used for external links using color options
46+
allowed by [`xcolor`](https://ctan.org/pkg/xcolor),
4547
including the `dvipsnames`, `svgnames`, and
4648
`x11names` lists.
4749
50+
For Typst output, sets the color of external file links using Typst color syntax.
51+
4852
- name: citecolor
4953
schema: string
5054
tags:
51-
formats: [$pdf-all]
55+
formats: [$pdf-all, typst]
5256
description:
53-
short: The color used for citation links using color options allowed by `xcolor`
57+
short: The color used for citation links.
5458
long: |
55-
The color used for citation links using color options
56-
allowed by [`xcolor`](https://ctan.org/pkg/xcolor),
59+
For LaTeX output, the color used for citation links using color options
60+
allowed by [`xcolor`](https://ctan.org/pkg/xcolor),
5761
including the `dvipsnames`, `svgnames`, and
5862
`x11names` lists.
5963
64+
For Typst output, sets the color of citation links using Typst color syntax.
65+
6066
- name: urlcolor
6167
schema: string
6268
tags:

src/resources/schema/document-fonts.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@
3434
system font. See [ConTeXt Fonts](https://wiki.contextgarden.net/Fonts) for more
3535
information.
3636
37+
- name: codefont
38+
schema: string
39+
tags:
40+
formats: [typst]
41+
description:
42+
short: Sets the font used for code in Typst output.
43+
long: |
44+
For Typst output, sets the font used for displaying code. Takes
45+
the name of any font available to Typst (system fonts or fonts in
46+
directories specified by `font-paths`).
47+
3748
- name: fontsize
3849
schema: string
3950
tags:
@@ -106,14 +117,16 @@
106117
- name: mathfont
107118
schema: string
108119
tags:
109-
formats: [$pdf-all]
120+
formats: [$pdf-all, typst]
110121
description:
111-
short: The math font family for use with `xelatex` or `lualatex`.
122+
short: The math font family for use with `xelatex`, `lualatex`, or Typst.
112123
long: |
113-
The math font family for use with `xelatex` or
124+
For LaTeX output, the math font family for use with `xelatex` or
114125
`lualatex`. Takes the name of any system font, using the
115126
[`fontspec`](https://ctan.org/pkg/fontspec) package.
116127
128+
For Typst output, sets the font used for mathematical content.
129+
117130
- name: CJKmainfont
118131
schema: string
119132
tags:
@@ -229,16 +242,18 @@
229242
- string
230243
- number
231244
tags:
232-
formats: [$html-doc, context, $pdf-all]
245+
formats: [$html-doc, context, $pdf-all, typst]
233246
description:
234247
short: Sets the line height or spacing for text in the document.
235248
long: |
236-
For HTML output sets the CSS `line-height` property on the html
249+
For HTML output sets the CSS `line-height` property on the html
237250
element, which is preferred to be unitless.
238251
239-
For LaTeX output, adjusts line spacing using the
252+
For LaTeX output, adjusts line spacing using the
240253
[setspace](https://ctan.org/pkg/setspace) package, e.g. 1.25, 1.5.
241254
255+
For Typst output, adjusts the spacing between lines of text.
256+
242257
- name: interlinespace
243258
schema:
244259
maybeArrayOf: string

0 commit comments

Comments
 (0)