I want a layout where the H1 sections are the tabs. Is there a way to do that?
Example:
---
title: "The Actual Title"
output:
html_notebook:
number_sections: yes
toc: yes
code_folding: hide
---
# Heading 1
Stuff including lots of subheadings
# Heading 2
Stuff including lots of subheadings
# Heading 3
Stuff including lots of subheadings
Output:
_____________
Heading 1 | Heading 2 | Heading 3
Just for completeness this is also posted on SO
Please take a look into our cross posting policy
Posting the same question both here and on other sites
Posting the same question to multiple forums at the same time is often considered impolite. We don't completely ban such cross-posting, but we ask you to think hard before you do it and to follow some rules.
Cross-post sparingly
Rather than post the same thing here and elsewhere from the get-go, post in one place at a time. Let enough time go by (think days, not hours) before you take your question somewhere else. Sometimes people at another site may suggest you post here if your question doesn't fit within the scope of the other site.
Always link to your other posts, and update everywhere with any solution…
@apreshill -- the issue is that the headings BELOW the tabset headings become tabs. So if I put
# Heading 1 {.tabset}
Then only the sub headings (##
) become tabs.
I hear ya. Only one person even responded, and they felt they did not have an answer.
BTW @apreshill , Hi! I'm at OHSU again.
1 Like
Why it has to be H1? If you leave an empty H1 you can get the effect you want but with H2.
# {.tabset}
## Heading 1
Stuff including lots of subheadings
## Heading 2
Stuff including lots of subheadings
@andresrcs That's what I chose to do as a hack, but it still looks hacky.
haha HI! I am not OHSU anymore!
I see your dilemma- I think the solution probably involves a custom css to override the size- sorry
system
Closed
March 22, 2019, 4:46am
10
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.