如何在 R Markdown 中添加 table 的内容?

How can I add a table of contents in R Markdown?


我很难尝试在 R Markdown 中添加 table 内容。
我希望 table 的内容位于文档的左侧。
我试过这段代码,但它对我不起作用(当我编写文档时,它工作正常,但 TOC 不可用):

---
title: "Relatório VANT - P&D"
author: "Empresa: XXXX"
date: "Data: 24/05/2020"
output: 
  html_document:
  toc: true
  toc_float: true
---

我该如何解决我的问题?

缩进很重要toc,例如

---
title: "Relatório VANT - P&D"
author: "Empresa: XXXX"
date: "Data: 24/05/2020"
output: 
  html_document:
   toc: true
   toc_float: true
---

# h1

# h2

# h2.2