1 | cases:
|
2 | - title: Table figure reference with default numref
|
3 | id: crossreference
|
4 | mdast:
|
5 | type: root
|
6 | children:
|
7 | - type: paragraph
|
8 | children:
|
9 | - type: text
|
10 | value: 'see '
|
11 | - type: mystRole
|
12 | name: numref
|
13 | value: my-table
|
14 | children:
|
15 | - type: crossReference
|
16 | kind: numref
|
17 | identifier: my-table
|
18 | label: my-table
|
19 | - type: mystDirective
|
20 | name: list-table
|
21 | args: Caption text
|
22 | options:
|
23 | name: my-table
|
24 | value: |-
|
25 | * - Head 1
|
26 | * - Row 1
|
27 | children:
|
28 | - type: container
|
29 | kind: table
|
30 | identifier: my-table
|
31 | label: my-table
|
32 | children:
|
33 | - type: caption
|
34 | children:
|
35 | - type: paragraph
|
36 | children:
|
37 | - type: text
|
38 | value: 'Caption text'
|
39 | - type: table
|
40 | children:
|
41 | - type: tableRow
|
42 | children:
|
43 | - type: tableCell
|
44 | children:
|
45 | - type: text
|
46 | value: Head 1
|
47 | - type: tableRow
|
48 | children:
|
49 | - type: tableCell
|
50 | children:
|
51 | - type: text
|
52 | value: Row 1
|
53 | myst: |-
|
54 | see {numref}`my-table`
|
55 |
|
56 | ```{list-table} Caption text
|
57 | :name: my-table
|
58 |
|
59 | * - Head 1
|
60 | * - Row 1
|
61 | ```
|
62 | html: |-
|
63 | <p>see <a href="#my-table">Table 1</a></p>
|
64 | <figure id="my-table" class="numbered">
|
65 | <figcaption>
|
66 | <p><span class="caption-number">Table 1</span>Caption text</p>
|
67 | </figcaption>
|
68 | <table>
|
69 | <thead>
|
70 | <tr>
|
71 | <th>Head 1</th>
|
72 | </tr>
|
73 | </thead>
|
74 | <tbody>
|
75 | <tr>
|
76 | <td>Row 1</td>
|
77 | </tr>
|
78 | </tbody>
|
79 | </table>
|
80 | </figure>
|
81 | - title: Table figure reference with custom numref
|
82 | mdast:
|
83 | type: root
|
84 | children:
|
85 | - type: paragraph
|
86 | children:
|
87 | - type: text
|
88 | value: 'see '
|
89 | - type: mystRole
|
90 | name: numref
|
91 | value: T%s <my-table>
|
92 | children:
|
93 | - type: crossReference
|
94 | kind: numref
|
95 | identifier: my-table
|
96 | label: my-table
|
97 | children:
|
98 | - type: text
|
99 | value: T%s
|
100 | - type: mystDirective
|
101 | name: list-table
|
102 | args: Caption text
|
103 | options:
|
104 | name: my-table
|
105 | value: |-
|
106 | * - Head 1
|
107 | * - Row 1
|
108 | children:
|
109 | - type: container
|
110 | kind: table
|
111 | identifier: my-table
|
112 | label: my-table
|
113 | children:
|
114 | - type: caption
|
115 | children:
|
116 | - type: paragraph
|
117 | children:
|
118 | - type: text
|
119 | value: 'Caption text'
|
120 | - type: table
|
121 | children:
|
122 | - type: tableRow
|
123 | children:
|
124 | - type: tableCell
|
125 | children:
|
126 | - type: text
|
127 | value: Head 1
|
128 | - type: tableRow
|
129 | children:
|
130 | - type: tableCell
|
131 | children:
|
132 | - type: text
|
133 | value: Row 1
|
134 | myst: |-
|
135 | see {numref}`T%s <my-table>`
|
136 |
|
137 | ```{list-table} Caption text
|
138 | :name: my-table
|
139 |
|
140 | * - Head 1
|
141 | * - Row 1
|
142 | html: |-
|
143 | <p>see <a href="#my-table">T1</a></p>
|
144 | <figure id="my-table" class="numbered">
|
145 | <figcaption>
|
146 | <p><span class="caption-number">Table 1</span>Caption text</p>
|
147 | </figcaption>
|
148 | <table>
|
149 | <thead>
|
150 | <tr>
|
151 | <th>Head 1</th>
|
152 | </tr>
|
153 | </thead>
|
154 | <tbody>
|
155 | <tr>
|
156 | <td>Row 1</td>
|
157 | </tr>
|
158 | </tbody>
|
159 | </table>
|
160 | </figure>
|
161 | - title: Table figure reference with default ref
|
162 | mdast:
|
163 | type: root
|
164 | children:
|
165 | - type: paragraph
|
166 | children:
|
167 | - type: text
|
168 | value: 'see '
|
169 | - type: mystRole
|
170 | name: ref
|
171 | value: my-table
|
172 | children:
|
173 | - type: crossReference
|
174 | kind: ref
|
175 | identifier: my-table
|
176 | label: my-table
|
177 | - type: mystDirective
|
178 | name: list-table
|
179 | args: Caption text
|
180 | options:
|
181 | name: my-table
|
182 | value: |-
|
183 | * - Head 1
|
184 | * - Row 1
|
185 | children:
|
186 | - type: container
|
187 | kind: table
|
188 | identifier: my-table
|
189 | label: my-table
|
190 | children:
|
191 | - type: caption
|
192 | children:
|
193 | - type: paragraph
|
194 | children:
|
195 | - type: text
|
196 | value: 'Caption text'
|
197 | - type: table
|
198 | children:
|
199 | - type: tableRow
|
200 | children:
|
201 | - type: tableCell
|
202 | children:
|
203 | - type: text
|
204 | value: Head 1
|
205 | - type: tableRow
|
206 | children:
|
207 | - type: tableCell
|
208 | children:
|
209 | - type: text
|
210 | value: Row 1
|
211 | myst: |-
|
212 | see {ref}`my-table`
|
213 |
|
214 | ```{list-table} Caption text
|
215 | :name: my-table
|
216 |
|
217 | * - Head 1
|
218 | * - Row 1
|
219 | html: |-
|
220 | <p>see <a href="#my-table">Caption text</a></p>
|
221 | <figure id="my-table" class="numbered">
|
222 | <figcaption>
|
223 | <p><span class="caption-number">Table 1</span>Caption text</p>
|
224 | </figcaption>
|
225 | <table>
|
226 | <thead>
|
227 | <tr>
|
228 | <th>Head 1</th>
|
229 | </tr>
|
230 | </thead>
|
231 | <tbody>
|
232 | <tr>
|
233 | <td>Row 1</td>
|
234 | </tr>
|
235 | </tbody>
|
236 | </table>
|
237 | </figure>
|
238 | - title: Table figure reference with custom ref
|
239 | mdast:
|
240 | type: root
|
241 | children:
|
242 | - type: paragraph
|
243 | children:
|
244 | - type: text
|
245 | value: 'see '
|
246 | - type: mystRole
|
247 | name: ref
|
248 | value: My Table <my-table>
|
249 | children:
|
250 | - type: crossReference
|
251 | kind: ref
|
252 | identifier: my-table
|
253 | label: my-table
|
254 | children:
|
255 | - type: text
|
256 | value: My Table
|
257 | - type: mystDirective
|
258 | name: list-table
|
259 | args: Caption text
|
260 | options:
|
261 | name: my-table
|
262 | value: |-
|
263 | * - Head 1
|
264 | * - Row 1
|
265 | children:
|
266 | - type: container
|
267 | kind: table
|
268 | identifier: my-table
|
269 | label: my-table
|
270 | children:
|
271 | - type: caption
|
272 | children:
|
273 | - type: paragraph
|
274 | children:
|
275 | - type: text
|
276 | value: 'Caption text'
|
277 | - type: table
|
278 | children:
|
279 | - type: tableRow
|
280 | children:
|
281 | - type: tableCell
|
282 | children:
|
283 | - type: text
|
284 | value: Head 1
|
285 | - type: tableRow
|
286 | children:
|
287 | - type: tableCell
|
288 | children:
|
289 | - type: text
|
290 | value: Row 1
|
291 | myst: |-
|
292 | see {ref}`My Table <my-table>`
|
293 |
|
294 | ```{list-table} Caption text
|
295 | :name: my-table
|
296 |
|
297 | * - Head 1
|
298 | * - Row 1
|
299 | html: |-
|
300 | <p>see <a href="#my-table">My Table</a></p>
|
301 | <figure id="my-table" class="numbered">
|
302 | <figcaption>
|
303 | <p><span class="caption-number">Table 1</span>Caption text</p>
|
304 | </figcaption>
|
305 | <table>
|
306 | <thead>
|
307 | <tr>
|
308 | <th>Head 1</th>
|
309 | </tr>
|
310 | </thead>
|
311 | <tbody>
|
312 | <tr>
|
313 | <td>Row 1</td>
|
314 | </tr>
|
315 | </tbody>
|
316 | </table>
|
317 | </figure>
|
318 | - title: Link-style table figure reference with default ref
|
319 | mdast:
|
320 | type: root
|
321 | children:
|
322 | - type: paragraph
|
323 | children:
|
324 | - type: text
|
325 | value: 'see '
|
326 | - type: link
|
327 | url: my-table
|
328 | children: []
|
329 | - type: mystDirective
|
330 | name: list-table
|
331 | args: Caption text
|
332 | options:
|
333 | name: my-table
|
334 | value: |-
|
335 | * - Head 1
|
336 | * - Row 1
|
337 | children:
|
338 | - type: container
|
339 | kind: table
|
340 | identifier: my-table
|
341 | label: my-table
|
342 | children:
|
343 | - type: caption
|
344 | children:
|
345 | - type: paragraph
|
346 | children:
|
347 | - type: text
|
348 | value: 'Caption text'
|
349 | - type: table
|
350 | children:
|
351 | - type: tableRow
|
352 | children:
|
353 | - type: tableCell
|
354 | children:
|
355 | - type: text
|
356 | value: Head 1
|
357 | - type: tableRow
|
358 | children:
|
359 | - type: tableCell
|
360 | children:
|
361 | - type: text
|
362 | value: Row 1
|
363 | myst: |-
|
364 | see [](my-table)
|
365 |
|
366 | ```{list-table} Caption text
|
367 | :name: my-table
|
368 |
|
369 | * - Head 1
|
370 | * - Row 1
|
371 | html: |-
|
372 | <p>see <a href="#my-table">Caption text</a></p>
|
373 | <figure id="my-table" class="numbered">
|
374 | <figcaption>
|
375 | <p><span class="caption-number">Table 1</span>Caption text</p>
|
376 | </figcaption>
|
377 | <table>
|
378 | <thead>
|
379 | <tr>
|
380 | <th>Head 1</th>
|
381 | </tr>
|
382 | </thead>
|
383 | <tbody>
|
384 | <tr>
|
385 | <td>Row 1</td>
|
386 | </tr>
|
387 | </tbody>
|
388 | </table>
|
389 | </figure>
|
390 | - title: Link-style table figure reference with custom ref
|
391 | mdast:
|
392 | type: root
|
393 | children:
|
394 | - type: paragraph
|
395 | children:
|
396 | - type: text
|
397 | value: 'see '
|
398 | - type: link
|
399 | url: my-table
|
400 | title: different title
|
401 | children:
|
402 | - type: text
|
403 | value: 'My '
|
404 | - type: emphasis
|
405 | children:
|
406 | - type: text
|
407 | value: Table
|
408 | - type: mystDirective
|
409 | name: list-table
|
410 | args: Caption text
|
411 | options:
|
412 | name: my-table
|
413 | value: |-
|
414 | * - Head 1
|
415 | * - Row 1
|
416 | children:
|
417 | - type: container
|
418 | kind: table
|
419 | identifier: my-table
|
420 | label: my-table
|
421 | children:
|
422 | - type: caption
|
423 | children:
|
424 | - type: paragraph
|
425 | children:
|
426 | - type: text
|
427 | value: 'Caption text'
|
428 | - type: table
|
429 | children:
|
430 | - type: tableRow
|
431 | children:
|
432 | - type: tableCell
|
433 | children:
|
434 | - type: text
|
435 | value: Head 1
|
436 | - type: tableRow
|
437 | children:
|
438 | - type: tableCell
|
439 | children:
|
440 | - type: text
|
441 | value: Row 1
|
442 | myst: |-
|
443 | see [My *Table*](my-table "different title")
|
444 |
|
445 | ```{list-table} Caption text
|
446 | :name: my-table
|
447 |
|
448 | * - Head 1
|
449 | * - Row 1
|
450 | html: |-
|
451 | <p>see <a href="#my-table" title="different title">My <em>Table</em></a></p>
|
452 | <figure id="my-table" class="numbered">
|
453 | <figcaption>
|
454 | <p><span class="caption-number">Table 1</span>Caption text</p>
|
455 | </figcaption>
|
456 | <table>
|
457 | <thead>
|
458 | <tr>
|
459 | <th>Head 1</th>
|
460 | </tr>
|
461 | </thead>
|
462 | <tbody>
|
463 | <tr>
|
464 | <td>Row 1</td>
|
465 | </tr>
|
466 | </tbody>
|
467 | </table>
|
468 | </figure>
|