Tabset in html rmarkdown

偶尔善良 提交于 2020-06-17 13:21:47

问题


I am working on a html document (readthedown theme) of rmarkdown and i would like to create several ".tabset" but :

I would like that the tabset's content appears only when i click on it in the table of content and not appears ones after ones directly on the body of doc.

For example, when i am in the first tabset, and i'm going through the several sub tabset, i don't want to seing the next tabset on content of the page.

in my situation i have :

# Title1 {.tabset .tabset-fade}
## sub title a {.tabset .tabset-fade}
## sub title b {.tabset .tabset-fade}
## sub title c {.tabset .tabset-fade}

# Title2 {.tabset .tabset-fade}
## sub title d  {.tabset .tabset-fade}
## sub title e  {.tabset .tabset-fade}
## sub title f  {.tabset .tabset-fade}

and if i am in the content of sub title a or b or c i dont want to see the content of Title2 when i arrived at end of these sections, like this :

Readthedown Theme

Here, the content of sub section b has been selected and i saw only the content of sub section b and not other content

i've already tried several methods like .tabset-dropdown, .active but it doesn't works

is it possible ?

Thanks for your help :)

Max

来源:https://stackoverflow.com/questions/62194705/tabset-in-html-rmarkdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!