Skip to content

Commit bb14001

Browse files
authored
Limit column, fig-column and tbl-column to formats that lay them out (#15370)
The formats tag added in #15329 used `$html-files` and `$pdf-all`, which also cover HTML slides, dashboards and beamer. None of these lays the options out. columns.lua skips HTML slide output and revealjs ships no column CSS. Dashboards load the Bootstrap column rules, but no element is a `.page-columns` grid, so `grid-column` has no effect. On beamer, any column class loads `sidenotes`, which needs `figure*`, so the document fails to compile. The tag drives both front matter completion and the generated reference pages on quarto.org, so it advertised the options for these formats. Narrow it to `$html-doc`, `latex`, `pdf` and `typst`. Cell option validation does not read the formats tag, so cells are unaffected. Regenerating the editor resources also picks up the `fodt` and `t2t` output formats of the bundled Pandoc 3.13.
1 parent 869009b commit bb14001

7 files changed

Lines changed: 105 additions & 53 deletions

File tree

‎news/changelog-1.12.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ All changes included in 1.12:
9797
- ([#15268](https://github.com/quarto-dev/quarto-cli/issues/15268)): Translate the `skip-to-content` language key in Bulgarian, Catalan, Czech, Danish, Finnish, Hebrew, Indonesian, Korean, Lithuanian, Norwegian Bokmål, Norwegian Nynorsk, Polish, Russian, Serbian (Latin), Slovak, Slovenian, Swedish, Turkish and Ukrainian, using reviewed machine translation.
9898
- ([#15271](https://github.com/quarto-dev/quarto-cli/issues/15271)): Translate the `tools-share` and `tools-download` language keys in Catalan, Chinese, Czech, Danish, Dutch, Finnish, French, German, Hebrew, Indonesian, Italian, Japanese, Korean, Lithuanian, Norwegian Bokmål, Norwegian Nynorsk, Polish, Portuguese, Russian, Slovak, Swedish, Turkish and Ukrainian, and `tools-share` in Serbian (Latin), using reviewed machine translation.
9999
- ([#15289](https://github.com/quarto-dev/quarto-cli/issues/15289)): Translate the `announcement-dismiss-label` language key, the accessible name of the close button of a website announcement, in Azerbaijani, Basque, Bulgarian, Catalan, Chinese (Simplified and Traditional), Czech, Dutch, Finnish, French, German, Hebrew, Icelandic, Indonesian, Italian, Japanese, Korean, Lithuanian, Norwegian Nynorsk, Polish, Portuguese, Russian, Serbian (Latin), Slovak, Slovenian, Spanish, Swedish, Turkish and Ukrainian, using reviewed machine translation.
100-
- ([#15325](https://github.com/quarto-dev/quarto-cli/issues/15325)): Validate and offer completion for `column`, `fig-column` and `tbl-column` in document front matter. They already took effect there, but an invalid value was silently accepted.
100+
- ([#15325](https://github.com/quarto-dev/quarto-cli/issues/15325)): Validate and offer completion for `column`, `fig-column` and `tbl-column` in document front matter for HTML, PDF/LaTeX and Typst, the formats that lay them out. They already took effect there, but an invalid value was silently accepted.
101101
- ([#15341](https://github.com/quarto-dev/quarto-cli/issues/15341)): Fix non-ASCII characters in large output from external tools such as Pandoc, knitr or LaTeX occasionally turning into `�`.

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

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8005,8 +8005,9 @@ var init_yaml_intelligence_resources = __esm({
80058005
"document-layout"
80068006
],
80078007
formats: [
8008-
"$html-files",
8009-
"$pdf-all",
8008+
"$html-doc",
8009+
"latex",
8010+
"pdf",
80108011
"typst"
80118012
]
80128013
},
@@ -8026,8 +8027,9 @@ var init_yaml_intelligence_resources = __esm({
80268027
"document-figures"
80278028
],
80288029
formats: [
8029-
"$html-files",
8030-
"$pdf-all",
8030+
"$html-doc",
8031+
"latex",
8032+
"pdf",
80318033
"typst"
80328034
]
80338035
},
@@ -8047,8 +8049,9 @@ var init_yaml_intelligence_resources = __esm({
80478049
"document-tables"
80488050
],
80498051
formats: [
8050-
"$html-files",
8051-
"$pdf-all",
8052+
"$html-doc",
8053+
"latex",
8054+
"pdf",
80528055
"typst"
80538056
]
80548057
},
@@ -8067,8 +8070,9 @@ var init_yaml_intelligence_resources = __esm({
80678070
"document-layout"
80688071
],
80698072
formats: [
8070-
"$html-files",
8071-
"$pdf-all",
8073+
"$html-doc",
8074+
"latex",
8075+
"pdf",
80728076
"typst"
80738077
]
80748078
},
@@ -8090,8 +8094,9 @@ var init_yaml_intelligence_resources = __esm({
80908094
"document-figures"
80918095
],
80928096
formats: [
8093-
"$html-files",
8094-
"$pdf-all",
8097+
"$html-doc",
8098+
"latex",
8099+
"pdf",
80958100
"typst"
80968101
]
80978102
},
@@ -8113,8 +8118,9 @@ var init_yaml_intelligence_resources = __esm({
81138118
"document-tables"
81148119
],
81158120
formats: [
8116-
"$html-files",
8117-
"$pdf-all",
8121+
"$html-doc",
8122+
"latex",
8123+
"pdf",
81188124
"typst"
81198125
]
81208126
},
@@ -22125,6 +22131,7 @@ var init_yaml_intelligence_resources = __esm({
2212522131
"epub2",
2212622132
"epub3",
2212722133
"fb2",
22134+
"fodt",
2212822135
"gfm",
2212922136
"haddock",
2213022137
"html",
@@ -22163,6 +22170,7 @@ var init_yaml_intelligence_resources = __esm({
2216322170
"s5",
2216422171
"slideous",
2216522172
"slidy",
22173+
"t2t",
2216622174
"tei",
2216722175
"texinfo",
2216822176
"textile",
@@ -25909,12 +25917,12 @@ var init_yaml_intelligence_resources = __esm({
2590925917
mermaid: "%%"
2591025918
},
2591125919
"handlers/mermaid/schema.yml": {
25912-
_internalId: 222313,
25920+
_internalId: 227695,
2591325921
type: "object",
2591425922
description: "be an object",
2591525923
properties: {
2591625924
"mermaid-format": {
25917-
_internalId: 222305,
25925+
_internalId: 227687,
2591825926
type: "enum",
2591925927
enum: [
2592025928
"png",
@@ -25930,7 +25938,7 @@ var init_yaml_intelligence_resources = __esm({
2593025938
exhaustiveCompletions: true
2593125939
},
2593225940
theme: {
25933-
_internalId: 222312,
25941+
_internalId: 227694,
2593425942
type: "anyOf",
2593525943
anyOf: [
2593625944
{

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

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

‎src/resources/editor/tools/yaml/web-worker.js‎

Lines changed: 23 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/resources/editor/tools/yaml/yaml-intelligence-resources.json‎

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,9 @@
978978
"document-layout"
979979
],
980980
"formats": [
981-
"$html-files",
982-
"$pdf-all",
981+
"$html-doc",
982+
"latex",
983+
"pdf",
983984
"typst"
984985
]
985986
},
@@ -999,8 +1000,9 @@
9991000
"document-figures"
10001001
],
10011002
"formats": [
1002-
"$html-files",
1003-
"$pdf-all",
1003+
"$html-doc",
1004+
"latex",
1005+
"pdf",
10041006
"typst"
10051007
]
10061008
},
@@ -1020,8 +1022,9 @@
10201022
"document-tables"
10211023
],
10221024
"formats": [
1023-
"$html-files",
1024-
"$pdf-all",
1025+
"$html-doc",
1026+
"latex",
1027+
"pdf",
10251028
"typst"
10261029
]
10271030
},
@@ -1040,8 +1043,9 @@
10401043
"document-layout"
10411044
],
10421045
"formats": [
1043-
"$html-files",
1044-
"$pdf-all",
1046+
"$html-doc",
1047+
"latex",
1048+
"pdf",
10451049
"typst"
10461050
]
10471051
},
@@ -1063,8 +1067,9 @@
10631067
"document-figures"
10641068
],
10651069
"formats": [
1066-
"$html-files",
1067-
"$pdf-all",
1070+
"$html-doc",
1071+
"latex",
1072+
"pdf",
10681073
"typst"
10691074
]
10701075
},
@@ -1086,8 +1091,9 @@
10861091
"document-tables"
10871092
],
10881093
"formats": [
1089-
"$html-files",
1090-
"$pdf-all",
1094+
"$html-doc",
1095+
"latex",
1096+
"pdf",
10911097
"typst"
10921098
]
10931099
},
@@ -15098,6 +15104,7 @@
1509815104
"epub2",
1509915105
"epub3",
1510015106
"fb2",
15107+
"fodt",
1510115108
"gfm",
1510215109
"haddock",
1510315110
"html",
@@ -15136,6 +15143,7 @@
1513615143
"s5",
1513715144
"slideous",
1513815145
"slidy",
15146+
"t2t",
1513915147
"tei",
1514015148
"texinfo",
1514115149
"textile",
@@ -18882,12 +18890,12 @@
1888218890
"mermaid": "%%"
1888318891
},
1888418892
"handlers/mermaid/schema.yml": {
18885-
"_internalId": 222313,
18893+
"_internalId": 227695,
1888618894
"type": "object",
1888718895
"description": "be an object",
1888818896
"properties": {
1888918897
"mermaid-format": {
18890-
"_internalId": 222305,
18898+
"_internalId": 227687,
1889118899
"type": "enum",
1889218900
"enum": [
1889318901
"png",
@@ -18903,7 +18911,7 @@
1890318911
"exhaustiveCompletions": true
1890418912
},
1890518913
"theme": {
18906-
"_internalId": 222312,
18914+
"_internalId": 227694,
1890718915
"type": "anyOf",
1890818916
"anyOf": [
1890918917
{

‎src/resources/schema/cell-pagelayout.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: column
22
tags:
33
contexts: [document-layout]
4-
formats: [$html-files, $pdf-all, typst]
4+
formats: [$html-doc, latex, pdf, typst]
55
schema:
66
ref: page-column
77
description:
@@ -11,7 +11,7 @@
1111
- name: fig-column
1212
tags:
1313
contexts: [document-layout, document-figures]
14-
formats: [$html-files, $pdf-all, typst]
14+
formats: [$html-doc, latex, pdf, typst]
1515
schema:
1616
ref: page-column
1717
description:
@@ -21,7 +21,7 @@
2121
- name: tbl-column
2222
tags:
2323
contexts: [document-layout, document-tables]
24-
formats: [$html-files, $pdf-all, typst]
24+
formats: [$html-doc, latex, pdf, typst]
2525
schema:
2626
ref: page-column
2727
description:
@@ -31,7 +31,7 @@
3131
- name: cap-location
3232
tags:
3333
contexts: [document-layout]
34-
formats: [$html-files, $pdf-all, typst]
34+
formats: [$html-doc, latex, pdf, typst]
3535
schema:
3636
enum: [top, bottom, margin]
3737
default: bottom
@@ -40,7 +40,7 @@
4040
- name: fig-cap-location
4141
tags:
4242
contexts: [document-layout, document-figures]
43-
formats: [$html-files, $pdf-all, typst]
43+
formats: [$html-doc, latex, pdf, typst]
4444
schema:
4545
enum: [top, bottom, margin]
4646
default: bottom
@@ -49,7 +49,7 @@
4949
- name: tbl-cap-location
5050
tags:
5151
contexts: [document-layout, document-tables]
52-
formats: [$html-files, $pdf-all, typst]
52+
formats: [$html-doc, latex, pdf, typst]
5353
schema:
5454
enum: [top, bottom, margin]
5555
default: top

0 commit comments

Comments
 (0)