---
title: "Table of Contents"
tags:
- component
Quartz can automatically generate a table of contents from a list of headings on each page. It will also show you your current scroll position on the site by marking headings you've scrolled through with a different colour.
By default, it will show all headers from H1 (# Title) all the way to H3 (### Title) and will only show the table of contents if there is more than 1 header on the page.
[!info]
This feature requires bothPlugin.TableOfContentsin yourquartz.config.tsandComponent.TableOfContentsin yourquartz.layout.tsto function correctly.
Plugin.TableOfContents() from quartz.config.ts. and Component.TableOfContents() from quartz.layout.tsPlugin.TableOfContents({ maxDepth: 4 })Plugin.TableOfContents({ minEntries: 3 })quartz/components/TableOfContents.tsxquartz/components/styles/toc.scssquartz/components/styles/legacyToc.scssquartz/components/scripts/toc.inline.ts