Repository navigation
Commit 3f260eb
authored
Fall back to bottom captions for margin in beamer, slides, dashboards (#15379)
`cap-location: margin` needs a margin column, and beamer, the HTML
slide formats and dashboards have none. Beamer failed to compile with
`Environment figure* undefined` because the margin caption loads
`sidenotes`; the other formats kept the caption in flow instead. These
formats now fall back to `bottom` and print one warning per document.
- Apply the fallback to the document options, to a
`cap-location="margin"` attribute on a figure or table, and to the
`fig-cap-location` and `tbl-cap-location` knitr chunk options.
- Offer `top` and `bottom` in front matter completion for every
format, and `margin` only where it is supported. Validation still
accepts `margin` everywhere.
Fixes #153781 parent 43fdcd7 commit 3f260eb
14 files changed
Lines changed: 620 additions & 84 deletions
File tree
- news
- src/resources
- editor/tools
- yaml
- filters
- customnodes
- layout
- schema
- tests
- docs/smoke-all/2026/11/16
- unit
- schema-validation
- yaml-intelligence
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8070 | 8070 | | |
8071 | 8071 | | |
8072 | 8072 | | |
8073 | | - | |
8074 | | - | |
8075 | | - | |
| 8073 | + | |
| 8074 | + | |
8076 | 8075 | | |
8077 | 8076 | | |
8078 | 8077 | | |
8079 | 8078 | | |
8080 | | - | |
8081 | | - | |
8082 | | - | |
8083 | | - | |
| 8079 | + | |
| 8080 | + | |
| 8081 | + | |
| 8082 | + | |
| 8083 | + | |
| 8084 | + | |
| 8085 | + | |
| 8086 | + | |
| 8087 | + | |
| 8088 | + | |
| 8089 | + | |
| 8090 | + | |
| 8091 | + | |
| 8092 | + | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
| 8096 | + | |
| 8097 | + | |
| 8098 | + | |
| 8099 | + | |
| 8100 | + | |
| 8101 | + | |
| 8102 | + | |
| 8103 | + | |
| 8104 | + | |
| 8105 | + | |
8084 | 8106 | | |
8085 | 8107 | | |
8086 | 8108 | | |
| |||
8094 | 8116 | | |
8095 | 8117 | | |
8096 | 8118 | | |
8097 | | - | |
8098 | | - | |
8099 | | - | |
| 8119 | + | |
| 8120 | + | |
8100 | 8121 | | |
8101 | 8122 | | |
8102 | 8123 | | |
8103 | 8124 | | |
8104 | | - | |
8105 | | - | |
8106 | | - | |
8107 | | - | |
| 8125 | + | |
| 8126 | + | |
| 8127 | + | |
| 8128 | + | |
| 8129 | + | |
| 8130 | + | |
| 8131 | + | |
| 8132 | + | |
| 8133 | + | |
| 8134 | + | |
| 8135 | + | |
| 8136 | + | |
| 8137 | + | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
| 8147 | + | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
8108 | 8152 | | |
8109 | 8153 | | |
8110 | 8154 | | |
| |||
8118 | 8162 | | |
8119 | 8163 | | |
8120 | 8164 | | |
8121 | | - | |
8122 | | - | |
8123 | | - | |
| 8165 | + | |
| 8166 | + | |
8124 | 8167 | | |
8125 | 8168 | | |
8126 | 8169 | | |
8127 | 8170 | | |
8128 | | - | |
8129 | | - | |
8130 | | - | |
8131 | | - | |
| 8171 | + | |
| 8172 | + | |
| 8173 | + | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
| 8186 | + | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
| 8190 | + | |
| 8191 | + | |
| 8192 | + | |
| 8193 | + | |
| 8194 | + | |
| 8195 | + | |
| 8196 | + | |
| 8197 | + | |
8132 | 8198 | | |
8133 | 8199 | | |
8134 | 8200 | | |
| |||
25917 | 25983 | | |
25918 | 25984 | | |
25919 | 25985 | | |
25920 | | - | |
| 25986 | + | |
25921 | 25987 | | |
25922 | 25988 | | |
25923 | 25989 | | |
25924 | 25990 | | |
25925 | | - | |
| 25991 | + | |
25926 | 25992 | | |
25927 | 25993 | | |
25928 | 25994 | | |
| |||
25938 | 26004 | | |
25939 | 26005 | | |
25940 | 26006 | | |
25941 | | - | |
| 26007 | + | |
25942 | 26008 | | |
25943 | 26009 | | |
25944 | 26010 | | |
| |||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments