Skip to content

Commit 098d412

Browse files
cwickhamgordonwoodhull
authored andcommitted
Split margin for revealjs and typst
1 parent 8e1f5da commit 098d412

6 files changed

Lines changed: 273 additions & 209 deletions

File tree

src/resources/editor/tools/vs-code.mjs

Lines changed: 79 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -16697,6 +16697,55 @@ var require_yaml_intelligence_resources = __commonJS({
1669716697
long: "For HTML output, sets the `margin-bottom` property on the Body element.\n\nFor LaTeX output, sets the bottom margin if `geometry` is not \nused (otherwise `geometry` overrides this value)\n\nFor ConTeXt output, sets the bottom margin if `layout` is not used, \notherwise `layout` overrides these.\n\nFor `wkhtmltopdf` sets the bottom page margin.\n"
1669816698
}
1669916699
},
16700+
{
16701+
name: "margin",
16702+
tags: {
16703+
formats: [
16704+
"typst"
16705+
]
16706+
},
16707+
schema: {
16708+
object: {
16709+
closed: true,
16710+
properties: {
16711+
x: {
16712+
string: {
16713+
description: "Horizontal margin (e.g. 1.5in)"
16714+
}
16715+
},
16716+
y: {
16717+
string: {
16718+
description: "Vertical margin (e.g. 1.5in)"
16719+
}
16720+
},
16721+
top: {
16722+
string: {
16723+
description: "Top margin (e.g. 1.5in)"
16724+
}
16725+
},
16726+
bottom: {
16727+
string: {
16728+
description: "Bottom margin (e.g. 1.5in)"
16729+
}
16730+
},
16731+
left: {
16732+
string: {
16733+
description: "Left margin (e.g. 1.5in)"
16734+
}
16735+
},
16736+
right: {
16737+
string: {
16738+
description: "Right margin (e.g. 1.5in)"
16739+
}
16740+
}
16741+
}
16742+
}
16743+
},
16744+
description: {
16745+
short: "Page margins for Typst output.",
16746+
long: "A dictionary specifying page margins. Use `x` and `y` for symmetric\nhorizontal/vertical margins, or `top`, `bottom`, `left`, `right` for\nindividual sides. Values should include units (e.g. `1.5in`, `2cm`).\n"
16747+
}
16748+
},
1670016749
{
1670116750
name: "geometry",
1670216751
schema: {
@@ -18830,54 +18879,12 @@ var require_yaml_intelligence_resources = __commonJS({
1883018879
name: "margin",
1883118880
tags: {
1883218881
formats: [
18833-
"revealjs",
18834-
"typst"
18835-
]
18836-
},
18837-
schema: {
18838-
anyOf: [
18839-
"number",
18840-
{
18841-
object: {
18842-
closed: true,
18843-
properties: {
18844-
x: {
18845-
string: {
18846-
description: "Horizontal margin (e.g. 5cm)"
18847-
}
18848-
},
18849-
y: {
18850-
string: {
18851-
description: "Vertical margin (e.g. 5cm)"
18852-
}
18853-
},
18854-
top: {
18855-
string: {
18856-
description: "Top margin (e.g. 5cm)"
18857-
}
18858-
},
18859-
bottom: {
18860-
string: {
18861-
description: "Bottom margin (e.g. 5cm)"
18862-
}
18863-
},
18864-
left: {
18865-
string: {
18866-
description: "Left margin (e.g. 5cm)"
18867-
}
18868-
},
18869-
right: {
18870-
string: {
18871-
description: "Right margin (e.g. 5cm)"
18872-
}
18873-
}
18874-
}
18875-
}
18876-
}
18882+
"revealjs"
1887718883
]
1887818884
},
18885+
schema: "number",
1887918886
default: 0.1,
18880-
description: "For `revealjs`, the factor of the display size that should remain empty around the content (e.g. 0.1).\n\nFor `typst`, a dictionary with the fields defined in the Typst documentation:\n`x`, `y`, `top`, `bottom`, `left`, `right` (margins are specified in `cm` units,\ne.g. `5cm`).\n"
18887+
description: "Factor of the display size that should remain empty around the content (e.g. 0.1)."
1888118888
},
1888218889
{
1888318890
name: "min-scale",
@@ -20644,6 +20651,9 @@ var require_yaml_intelligence_resources = __commonJS({
2064420651
dashboard: {
2064520652
title: "Dashboard"
2064620653
},
20654+
typst: {
20655+
title: "Typst"
20656+
},
2064720657
options: {
2064820658
title: "Format Options"
2064920659
},
@@ -23292,17 +23302,17 @@ var require_yaml_intelligence_resources = __commonJS({
2329223302
"Sets the CSS <code>color</code> property.",
2329323303
{
2329423304
short: "Sets the color of hyperlinks in the document.",
23295-
long: 'For HTML output, sets the CSS <code>color</code> property on all\nlinks.\nFor LaTeX output, The color used for internal links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor ConTeXt output, sets the color for both external links and links\nwithin the document.'
23305+
long: 'For HTML output, sets the CSS <code>color</code> property on all\nlinks.\nFor LaTeX output, The color used for internal links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor ConTeXt output, sets the color for both external links and links\nwithin the document.\nFor Typst output, sets the color of internal hyperlinks using Typst\ncolor syntax.'
2329623306
},
2329723307
"Sets the CSS <code>background-color</code> property on code elements\nand adds extra padding.",
2329823308
"Sets the CSS <code>background-color</code> property on the html\nelement.",
2329923309
{
23300-
short: "The color used for external links using color options allowed by\n<code>xcolor</code>",
23301-
long: 'The color used for external links using color options allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.'
23310+
short: "The color used for external links.",
23311+
long: 'For LaTeX output, the color used for external links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor Typst output, sets the color of external file links using Typst\ncolor syntax.'
2330223312
},
2330323313
{
23304-
short: "The color used for citation links using color options allowed by\n<code>xcolor</code>",
23305-
long: 'The color used for citation links using color options allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.'
23314+
short: "The color used for citation links.",
23315+
long: 'For LaTeX output, the color used for citation links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor Typst output, sets the color of citation links using Typst color\nsyntax.'
2330623316
},
2330723317
{
2330823318
short: "The color used for linked URLs using color options allowed by\n<code>xcolor</code>",
@@ -23498,6 +23508,10 @@ var require_yaml_intelligence_resources = __commonJS({
2349823508
short: "Sets the font used for when displaying code.",
2349923509
long: 'For HTML output, sets the CSS font-family property on code\nelements.\nFor PowerPoint output, sets the font used for code.\nFor LaTeX output, the monospace font family for use with\n<code>xelatex</code> or <code>lualatex</code>: take the name of any\nsystem font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.\nFor ConTeXt output, the monspace font family. Use the name of any\nsystem font. See <a href="https://wiki.contextgarden.net/Fonts">ConTeXt\nFonts</a> for more information.'
2350023510
},
23511+
{
23512+
short: "Sets the font used for code in Typst output.",
23513+
long: "For Typst output, sets the font used for displaying code. Takes the\nname of any font available to Typst (system fonts or fonts in\ndirectories specified by <code>font-paths</code>)."
23514+
},
2350123515
{
2350223516
short: "Sets the main font size for the document.",
2350323517
long: "For HTML output, sets the base CSS <code>font-size</code>\nproperty.\nFor LaTeX and ConTeXt output, sets the font size for the document\nbody text."
@@ -23519,8 +23533,8 @@ var require_yaml_intelligence_resources = __commonJS({
2351923533
long: 'The sans serif font family for use with <code>xelatex</code> or\n<code>lualatex</code>. Takes the name of any system font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.'
2352023534
},
2352123535
{
23522-
short: "The math font family for use with <code>xelatex</code> or\n<code>lualatex</code>.",
23523-
long: 'The math font family for use with <code>xelatex</code> or\n<code>lualatex</code>. Takes the name of any system font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.'
23536+
short: "The math font family for use with <code>xelatex</code>,\n<code>lualatex</code>, or Typst.",
23537+
long: 'For LaTeX output, the math font family for use with\n<code>xelatex</code> or <code>lualatex</code>. Takes the name of any\nsystem font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.\nFor Typst output, sets the font used for mathematical content.'
2352423538
},
2352523539
{
2352623540
short: "The CJK main font family for use with <code>xelatex</code> or\n<code>lualatex</code>.",
@@ -23558,7 +23572,7 @@ var require_yaml_intelligence_resources = __commonJS({
2355823572
"The line height, for example, <code>12p</code>.",
2355923573
{
2356023574
short: "Sets the line height or spacing for text in the document.",
23561-
long: 'For HTML output sets the CSS <code>line-height</code> property on the\nhtml element, which is preferred to be unitless.\nFor LaTeX output, adjusts line spacing using the <a href="https://ctan.org/pkg/setspace">setspace</a> package, e.g.&nbsp;1.25,\n1.5.'
23575+
long: 'For HTML output sets the CSS <code>line-height</code> property on the\nhtml element, which is preferred to be unitless.\nFor LaTeX output, adjusts line spacing using the <a href="https://ctan.org/pkg/setspace">setspace</a> package, e.g.&nbsp;1.25,\n1.5.\nFor Typst output, adjusts the spacing between lines of text.'
2356223576
},
2356323577
"Adjusts line spacing using the <code>\\setupinterlinespace</code>\ncommand.",
2356423578
"The typeface style for links in the document.",
@@ -25134,9 +25148,15 @@ var require_yaml_intelligence_resources = __commonJS({
2513425148
"internal-schema-hack",
2513525149
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019.",
2513625150
{
25137-
short: "Sets the font used for code in Typst output.",
25138-
long: "For Typst output, sets the font used for displaying code. Takes the\nname of any font available to Typst (system fonts or fonts in\ndirectories specified by <code>font-paths</code>)."
25139-
}
25151+
short: "Page margins for Typst output.",
25152+
long: "A dictionary specifying page margins. Use <code>x</code> and\n<code>y</code> for symmetric horizontal/vertical margins, or\n<code>top</code>, <code>bottom</code>, <code>left</code>,\n<code>right</code> for individual sides. Values should include units\n(e.g.&nbsp;<code>1.5in</code>, <code>2cm</code>)."
25153+
},
25154+
"Horizontal margin (e.g.&nbsp;1.5in)",
25155+
"Vertical margin (e.g.&nbsp;1.5in)",
25156+
"Top margin (e.g.&nbsp;1.5in)",
25157+
"Bottom margin (e.g.&nbsp;1.5in)",
25158+
"Left margin (e.g.&nbsp;1.5in)",
25159+
"Right margin (e.g.&nbsp;1.5in)"
2514025160
],
2514125161
"schema/external-schemas.yml": [
2514225162
{
@@ -25366,12 +25386,12 @@ var require_yaml_intelligence_resources = __commonJS({
2536625386
mermaid: "%%"
2536725387
},
2536825388
"handlers/mermaid/schema.yml": {
25369-
_internalId: 222606,
25389+
_internalId: 222771,
2537025390
type: "object",
2537125391
description: "be an object",
2537225392
properties: {
2537325393
"mermaid-format": {
25374-
_internalId: 222598,
25394+
_internalId: 222763,
2537525395
type: "enum",
2537625396
enum: [
2537725397
"png",
@@ -25387,7 +25407,7 @@ var require_yaml_intelligence_resources = __commonJS({
2538725407
exhaustiveCompletions: true
2538825408
},
2538925409
theme: {
25390-
_internalId: 222605,
25410+
_internalId: 222770,
2539125411
type: "anyOf",
2539225412
anyOf: [
2539325413
{

src/resources/editor/tools/yaml/all-schema-definitions.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)