toc_cmd

View page source

Table of Children Commands

Syntax

toc_hidden

{xrst_toc_hidden order
file_1
file_n
}

toc_list

{xrst_toc_list order
file_1
file_n
}

toc_table

{xrst_toc_table order
file_1
file_n
}

Table of Contents

These commands specify the pages that are children of the current page; i.e., pages that are at the next level in the table of contents. They also specify the form for the table of contents and where it appears.

order

The order argument is optional. It can only be present when this page begins with a parent begin command. If it is present it must be before or after . It specifies if the child pages in the toc command should come before or after the child pages in the current input file. If order is not present and this is a parent page, the default value before is used for order .

File List

A new line character must precede and follow each of the file names file_1file_n. Leading and trailing white space is not included in the names The file names are relative to the project_directory . This may seem verbose, but it makes it easier to write scripts that move files and automatically change references to them.

Empty

If there are no files specified in the command, this page must start with a parent begin command. (Otherwise, this page would have no children and there would be no purpose to the command.)

Children

Each of the files may contain multiple pages. The first of these pages may use a parent begin command.

  1. The first page in a file is always a child of the page where the toc command appears..

  2. If the first page in a file is a begin parent page, the other pages in the file are children of the first page. Hence the other pages are grand children of the page where the begin toc command appears.

  3. If there is no begin parent command in a file, all the pages in the file are children of the page where the toc command appears.

  4. If the first page in a file is a begin parent page, there is also a toc command in this page, and order is before ( after ) links to the toc command children come before (after) links to the children that are other pages in the same file.

toctree

These commands replaces the sphinx toctree directive. A toctree directive is automatically generated and includes each page that is a child of the current page.

Example

toc_list_example