如何在R Markdown中创建双嵌套选项卡?

时间:2019-06-19 12:40:22

标签: tabs r-markdown

我想创建一个带有双重嵌套标签的R Markdown HTML文档。

我尝试使用以下代码扩展作为问题RMarkdown can't seem to produce Tabs in Tabs的答案的给定方法:

---
output:
  html_document:
    theme: paper
    highlight: tango
    number_sections: false
    toc: false
    toc_float: false
---
# Result Discussion {.tabset}
We will discuss results here

## Quarterly Results {.tabset}
This content pertains to Quarterly Results


<div id="quarterly-product" class="section level3">
### By Product

Quarterly perfomance by Products

<div id="quarterly-product-a" class="section level4">
#### Case A

Quarterly perfomance by Products in Case A
</div>

<div id="quarterly-product-b" class="section level4">
#### Case B

Quarterly perfomance by Products in Case B
</div>

End of section quarterly perfomance by Products
</div>


<div id="quarterly-region" class="section level3">
### By Region

Quarterly perfomance by Region

<div id="quarterly-region-a" class="section level4">
#### Case A

Quarterly perfomance by Region in Case A
</div>

<div id="quarterly-region-b" class="section level4">
#### Case B

Quarterly perfomance by Region in Case B
</div>

End of section quarterly perfomance by Region
</div>

Final Words about Quarterly Results


## Yearly Results {.tabset}
This content pertains to Yearly Results

<div id="yearly-product" class="section level3">
### By Product

Yearly perfomance by Products
</div>

<div id="yearly-region" class="section level3">
### By Region

Yearly perfomance by Region
</div>

Final Words about Yearly Results

在这里,我在按产品划分的季度结果和按地区划分的季度结果部分中添加了案例A和案例B的小节。但是,使用

标签添加level4部分似乎不起作用。这样可以有第三层标签吗?

0 个答案:

没有答案