You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7205e8d
Browse filesBrowse the repository at this point in the historyBrowse files
Implement Tufte-style margin layout for Typst format using the marginalia
package. Features:
- Margin notes, figures, tables, and captions via .column-margin class
- Margin citations with citeproc support (citation-location: margin)
- Full-width content via .column-screen and .column-page classes
- Configurable margin-geometry following marginalia's proportions
- Support for subfigures and panel layouts in margins
- Typst show rule for automatic margin footnote placement
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/resources/editor/tools/vs-code.mjs
+91-15Lines changed: 91 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -8002,7 +8002,8 @@ var require_yaml_intelligence_resources = __commonJS({
8002
8002
],
8003
8003
formats: [
8004
8004
"$html-files",
8005
-
"$pdf-all"
8005
+
"$pdf-all",
8006
+
"typst"
8006
8007
]
8007
8008
},
8008
8009
schema: {
@@ -8024,7 +8025,8 @@ var require_yaml_intelligence_resources = __commonJS({
8024
8025
],
8025
8026
formats: [
8026
8027
"$html-files",
8027
-
"$pdf-all"
8028
+
"$pdf-all",
8029
+
"typst"
8028
8030
]
8029
8031
},
8030
8032
schema: {
@@ -8046,7 +8048,8 @@ var require_yaml_intelligence_resources = __commonJS({
8046
8048
],
8047
8049
formats: [
8048
8050
"$html-files",
8049
-
"$pdf-all"
8051
+
"$pdf-all",
8052
+
"typst"
8050
8053
]
8051
8054
},
8052
8055
schema: {
@@ -13252,6 +13255,29 @@ var require_yaml_intelligence_resources = __commonJS({
13252
13255
}
13253
13256
}
13254
13257
}
13258
+
},
13259
+
{
13260
+
id: "marginalia-side-geometry",
13261
+
object: {
13262
+
closed: true,
13263
+
properties: {
13264
+
far: {
13265
+
string: {
13266
+
description: "Distance from page edge to wideblock boundary."
13267
+
}
13268
+
},
13269
+
width: {
13270
+
string: {
13271
+
description: "Width of the margin note column."
13272
+
}
13273
+
},
13274
+
separation: {
13275
+
string: {
13276
+
description: "Gap between margin column and body text."
13277
+
}
13278
+
}
13279
+
}
13280
+
}
13255
13281
}
13256
13282
],
13257
13283
"schema/document-about.yml": [
@@ -15363,7 +15389,8 @@ var require_yaml_intelligence_resources = __commonJS({
15363
15389
"$markdown-all",
15364
15390
"muse",
15365
15391
"$html-files",
15366
-
"pdf"
15392
+
"pdf",
15393
+
"typst"
15367
15394
]
15368
15395
},
15369
15396
schema: {
@@ -16346,6 +16373,12 @@ var require_yaml_intelligence_resources = __commonJS({
16346
16373
},
16347
16374
{
16348
16375
name: "grid",
16376
+
tags: {
16377
+
formats: [
16378
+
"$html-doc",
16379
+
"typst"
16380
+
]
16381
+
},
16349
16382
schema: {
16350
16383
object: {
16351
16384
closed: true,
@@ -16366,24 +16399,24 @@ var require_yaml_intelligence_resources = __commonJS({
16366
16399
},
16367
16400
"margin-width": {
16368
16401
string: {
16369
-
description: "The base width of the margin (right) column in an HTML page."
16402
+
description: "The base width of the margin (right) column. For Typst, this controls the width of the margin note column."
16370
16403
}
16371
16404
},
16372
16405
"body-width": {
16373
16406
string: {
16374
-
description: "The base width of the body (center) column in an HTML page."
16407
+
description: "The base width of the body (center) column. For Typst, this is computed as the remainder after other columns."
16375
16408
}
16376
16409
},
16377
16410
"gutter-width": {
16378
16411
string: {
16379
-
description: "The width of the gutter that appears between columns in an HTML page."
16412
+
description: "The width of the gutter that appears between columns. For Typst, this is the gap between the text column and margin notes."
16380
16413
}
16381
16414
}
16382
16415
}
16383
16416
}
16384
16417
},
16385
16418
description: {
16386
-
short: "Properties of the grid system used to layout Quarto HTML pages."
16419
+
short: "Properties of the grid system used to layout Quarto HTML and Typst pages."
16387
16420
}
16388
16421
},
16389
16422
{
@@ -18073,7 +18106,8 @@ var require_yaml_intelligence_resources = __commonJS({
18073
18106
},
18074
18107
tags: {
18075
18108
formats: [
18076
-
"$html-doc"
18109
+
"$html-doc",
18110
+
"typst"
18077
18111
]
18078
18112
},
18079
18113
default: "document",
@@ -23772,6 +23806,10 @@ var require_yaml_intelligence_resources = __commonJS({
23772
23806
short: "Shift heading levels by a positive or negative integer. For example,\nwith <code>shift-heading-level-by: -1</code>, level 2 headings become\nlevel 1 headings.",
23773
23807
long: "Shift heading levels by a positive or negative integer. For example,\nwith <code>shift-heading-level-by: -1</code>, level 2 headings become\nlevel 1 headings, and level 3 headings become level 2 headings. Headings\ncannot have a level less than 1, so a heading that would be shifted\nbelow level 1 becomes a regular paragraph. Exception: with a shift of\n-N, a level-N heading at the beginning of the document replaces the\nmetadata title."
23774
23808
},
23809
+
{
23810
+
short: "Schema to use for numbering pages, e.g. <code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.",
23811
+
long: 'Schema to use for numbering pages, e.g. <code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.\nSee <a href="https://typst.app/docs/reference/model/numbering/">Typst\nNumbering</a> for additional information.'
23812
+
},
23775
23813
{
23776
23814
short: "Sets the page numbering style and location for the document.",
23777
23815
long: 'Sets the page numbering style and location for the document using the\n<code>\\setuppagenumbering</code> command.\nSee <a href="https://wiki.contextgarden.net/Command/setuppagenumbering">ConTeXt\nPage Numbering</a> for additional information.'
@@ -24904,10 +24942,16 @@ var require_yaml_intelligence_resources = __commonJS({
24904
24942
"Manuscript configuration",
24905
24943
"internal-schema-hack",
24906
24944
"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.",
24945
+
"Distance from page edge to wideblock boundary.",
24946
+
"Width of the margin note column.",
24947
+
"Gap between margin column and body text.",
24907
24948
{
24908
-
short: "Schema to use for numbering pages, e.g. <code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.",
24909
-
long: 'Schema to use for numbering pages, e.g. <code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.\nSee <a href="https://typst.app/docs/reference/model/numbering/">Typst\nNumbering</a> for additional information.'
24910
-
}
24949
+
short: "Advanced geometry settings for Typst margin layout.",
24950
+
long: "Fine-grained control over marginalia package geometry. Most users\nshould use <code>margin</code> and <code>grid</code> options instead;\nthese values are computed automatically.\nUser-specified values override the computed defaults."
24951
+
},
24952
+
"Inner (left) margin geometry.",
24953
+
"Outer (right) margin geometry.",
24954
+
"Minimum vertical spacing between margin notes (default: 8pt)."
24911
24955
],
24912
24956
"schema/external-schemas.yml": [
24913
24957
{
@@ -25136,12 +25180,12 @@ var require_yaml_intelligence_resources = __commonJS({
25136
25180
mermaid: "%%"
25137
25181
},
25138
25182
"handlers/mermaid/schema.yml": {
25139
-
_internalId: 218561,
25183
+
_internalId: 219143,
25140
25184
type: "object",
25141
25185
description: "be an object",
25142
25186
properties: {
25143
25187
"mermaid-format": {
25144
-
_internalId: 218553,
25188
+
_internalId: 219135,
25145
25189
type: "enum",
25146
25190
enum: [
25147
25191
"png",
@@ -25157,7 +25201,7 @@ var require_yaml_intelligence_resources = __commonJS({
25157
25201
exhaustiveCompletions: true
25158
25202
},
25159
25203
theme: {
25160
-
_internalId: 218560,
25204
+
_internalId: 219142,
25161
25205
type: "anyOf",
25162
25206
anyOf: [
25163
25207
{
@@ -25240,6 +25284,38 @@ var require_yaml_intelligence_resources = __commonJS({
25240
25284
]
25241
25285
},
25242
25286
description: "The logo image."
25287
+
},
25288
+
{
25289
+
name: "margin-geometry",
25290
+
schema: {
25291
+
object: {
25292
+
closed: true,
25293
+
properties: {
25294
+
inner: {
25295
+
ref: "marginalia-side-geometry",
25296
+
description: "Inner (left) margin geometry."
25297
+
},
25298
+
outer: {
25299
+
ref: "marginalia-side-geometry",
25300
+
description: "Outer (right) margin geometry."
25301
+
},
25302
+
clearance: {
25303
+
string: {
25304
+
description: "Minimum vertical spacing between margin notes (default: 8pt)."
25305
+
}
25306
+
}
25307
+
}
25308
+
}
25309
+
},
25310
+
tags: {
25311
+
formats: [
25312
+
"typst"
25313
+
]
25314
+
},
25315
+
description: {
25316
+
short: "Advanced geometry settings for Typst margin layout.",
25317
+
long: "Fine-grained control over marginalia package geometry. Most users should\nuse `margin` and `grid` options instead; these values are computed automatically.\n\nUser-specified values override the computed defaults.\n"
0 commit comments