我有一个类似的表格,我使用 Rmarkdown 在幻灯片上将其呈现为reveal.js html 演示文稿:
|variable |class |description |
|:------------------|:---------|:------------------|
|character_1_gender |character |The gender of the older character, as identified by the person who submitted the data for this couple|
|character_2_gender |character |The gender of the younger character, as identified by the person who submitted the data for this couple|
在其他部分,我使用增量选项让列表项作为片段依次出现:
:::incremental
- The two (or more) actors play actual love interests (not just friends, coworkers, or some other non-romantic type of relationship)
- The youngest of the two actors is at least 17 years old
- Not animated characters
:::
如何创建一个新类
incremental_table
,将每个表行视为一个片段,并且可以像列表示例中那样使用?
也许这对你来说是一个起点。您可以使用原始 HTML 代码手动解决此问题,例如
---
format: revealjs
---
## Incremtnal
<table>
<thead>
<tr>
<th>variable</th>
<th>class</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr class="fragment" data-fragment-index="1">
<td>character_1_gender</td>
<td>character</td>
<td>The gender of the older character, as identified by the person who submitted the data for this couple</td>
</tr>
<tr class="fragment" data-fragment-index="2">
<td>character_2_gender</td>
<td>character</td>
<td>The gender of the younger character, as identified by the person who submitted the data for this couple</td>
</tr>
</tbody>
</table>