begin_cmd

View page source

Begin and End Commands

Syntax

  • {xrst_begin_parent page_name group_name }

  • {xrst_begin page_name group_name }

  • {xrst_end page_name }

Page

The start (end) of a page of the input file is indicated by a begin (end) command.

Page File

The file containing the begin and end commands for a page is called its page file. During the processing of template commands the page file is different from the current input file.

page_name

A page_name must satisfy the following conditions:

  1. It must be a non-empty sequence of the following characters: dash -, period ., underbar _, the letters A-Z, letters a-z, and decimal digits 0-9.

  2. The page name can not be index or genindex , and it can not begin with the characters xrst_.

  3. The lower case version of two page names cannot be equal.

A link is included in the index under the page name to the page. The page name is also added to the html keyword meta data.

group_name

The group_name can be empty or a sequence of the letters a-z. This is the group that this page belongs to; see group_list.

Default Group

The default value for group_name is default; i.e., if group_name is the empty string, this page is part of the default group.

Output File

The output file corresponding to page_name is

rst_directory/page_name/.rst

see rst_directory .

Parent Page

The following conditions hold for each group_name:

  1. There can be at most one begin parent command in an input file.

  2. If there is a begin parent command, it must be the first begin command in the file and there must be other pages in the file.

  3. The other pages are children of the parent page.

  4. The parent page is a child of the page that included this file using a toc command.

  5. If there is no begin parent command in an input file, all the pages in the file are children of the page that included this file using a toc command.

Note that there can be more than one begin parent command in a file if they have different group names. Also note that pages are only children of pages that have the same group name.