How to find templates for Knitr or HTML

Greetings,
I came across a 'knitted' document on rpubs.com and I was curious to find a template(s) that have a table of contents like box for easy navigation of docs. Where might more templates that produces something similar to this example.
Thanks,

I don't think you need specific templates for this. Just make a floating TOC.

See the following illustration:

---
title: "dummy"
output: 
  html_document: 
    toc: yes
    toc_float: true
---

# 1st heading of level 1

bla bla bla

# 2nd heading of level 1

bla bla bla

## 1st heading of level 2 under 2nd heading of level 1

bla bla bla

## 2nd heading of level 2 under 2nd heading of level 1

bla bla bla

### 1st heading of level 3 under 2nd heading of level 1

bla bla bla

### 2nd heading of level 3 under 2nd heading of level 1

bla bla bla

## 3rd heading of level 2 under 2nd heading of level 1

bla bla bla

This generates the following:

Hope this helps.

3 Likes

and this is documented here


if you want to know more and other options

2 Likes

This topic was automatically closed 7 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.