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
Cross-Posting between Community and Other External Sites
First, note that cross-posting to multiple forums is often considered as impolite.
If you do, always link to those other posts, and update with any solutions.
Cross-post sparingly - Rather than post the same thing here and elsewhere from the get-go, post one place, and if you have trouble getting help/get redirected, post here, but be sure to link to the other posting/keep both ends updated with any solution.
Don't just dump links to other FAQ sites - If you posted elsewhere but didn't find a solution, please don't just drop a link to that original post here. It is missing details that makes useful and discoverable to people with sā¦
@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.