rst2typst
  • "atsphinx" project
/

Contents:

  • Getting started
  • Command line tools
  • Spec of translator
    • Admonitions
    • Block quotes
    • Code
    • Contents
    • Contents
    • Footnotes
    • Math
    • Raw
  • Roadmap
  • Contributing guide

Reference:

  • API reference
    • rst2typst package
      • rst2typst.cli package
        • rst2typst.cli.rst2typst module
        • rst2typst.cli.rst2typstpdf module
      • rst2typst.frontend module
      • rst2typst.nodes module
      • rst2typst.pdf module
      • rst2typst.transforms module
      • rst2typst.writer module

On this page

  • Details
  • Examples
    • Simple usage
  • References
  1. rst2typst /
  2. Spec of translator /
  3. Contents

Contents¶

Details¶

“Table of Contents” directive is called “outline” in Typst.

Examples¶

Simple usage¶

Title
=====

.. contents::

First
-----
#title([Title])

#outline(
  title: [Contents],
)

= First

References¶

Docutils:

  • https://www.docutils.org/docs/ref/rst/directives.html#table-of-contents

Typst:

  • https://typst.app/docs/reference/model/outline/

Previous
Code
Next
Contents

2026, Kazuya Takei

Made with Sphinx and Shibuya theme.