# 目次したい(``#outline``) ```text #outline( title: 目次, depth: 2, indent: auto, ) ``` [outline要素](https://typst.app/docs/reference/model/outline/)で目次を生成できます。 本文中に``#outline()``を書いた場所に目次を表示します。 :::{seealso} - [](../hugo/hugo-tableofcontents.md) - [](../latex/latex-tableofcontents.md) - [](../myst/myst-toc.md) - [](../sphinx/sphinx-syntax-toctree.md) :::