R将标题标记为选项卡(选项卡集)

R将标题标记为选项卡(选项卡集),r,tabs,r-markdown,heading,rnotebook,R,Tabs,R Markdown,Heading,Rnotebook,我想要一个布局,其中H1部分是选项卡。有办法吗 Rmarkdown使用H1作为章节标题而不是标题,这已经让我感到困扰,这就是为什么这并不简单 例如: --- title: "The Actual Title" output: html_notebook: number_sections: yes toc: yes code_folding: hide --- # Heading 1 Stuff including lots of subheadings # Hea

我想要一个布局,其中H1部分是选项卡。有办法吗

Rmarkdown使用H1作为章节标题而不是标题,这已经让我感到困扰,这就是为什么这并不简单

例如:

---
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
输出:

            _____________
Heading 1  |  Heading 2  |  Heading 3 

你的咆哮“使用H1作为章节标题而不是标题”困扰着我:当yaml标题包括
标题:
时,你如何定义“标题”与“标题”?这与您的功能请求有关吗?还是不同的请求?@r2evans是的,我明白您的意思。也许我只是觉得这很奇怪,在HTML语义中,“标题”放在
标记中并显示浏览器选项卡,而“顶级标题”用于页面标题、文章标题等。这是HTML语义中极少数有点混乱的东西之一。无论如何,我希望我的
#Heading 1
是选项卡。Rmarkdown文件不仅仅是HTML文件,它只是它的输出之一<代码>标题:转换为不同输出格式的不同内容。我仍然认为
title:
是合适的,因为HTML标题是文档的标题,而不是节。不管怎样,我都会考虑“从标题到标签”的问题。谢谢!这会很方便。你能做到这一点吗