1doctoc_lang_cmdref(n) Documentation tools doctoc_lang_cmdref(n)
2
3
4
5______________________________________________________________________________
6
8 doctoc_lang_cmdref - doctoc language command reference
9
11 comment plaintext
12
13 division_end
14
15 division_start text ?symfile?
16
17 include filename
18
19 item
20
21 lb
22
23 rb
24
25 toc_begin text title
26
27 toc_end
28
29 vset varname value
30
31 vset varname
32
33_________________________________________________________________
34
36 This document specifies both names and syntax of all the commands which
37 together are the doctoc markup language, version 1. As this document
38 is intended to be a reference the commands are listed in alphabetical
39 order, and the descriptions are relatively short. A beginner should
40 read the much more informally written doctoc language introduction
41 first.
42
44 comment plaintext
45 Toc markup. The argument text is marked up as a comment standing
46 outside of the actual text of the document. Main use is in free-
47 form text.
48
49 division_end
50 Toc structure. This command closes the division opened by the
51 last division_begin command coming before it, and not yet
52 closed.
53
54 division_start text ?symfile?
55 Toc structure. This command opens a division in the table of
56 contents. Its counterpart is division_end. Together they allow a
57 user to give a table of contents additional structure.
58
59 The title of the new division is provided by the argument text.
60
61 If the symbolic filename symfile is present then the section
62 title should link to the referenced document, if links are sup‐
63 ported by the output format.
64
65 include filename
66 Templating. The contents of the named file are interpreted as
67 text written in the doctoc markup and processed in the place of
68 the include command. The markup in the file has to be self-con‐
69 tained. It is not possible for a markup command to cross the
70 file boundaries.
71
72 item Toc structure. This command adds an individual element to the
73 table of contents. Each such element refers to a document. The
74 document is specified through the symbolic name file. The text
75 argument is used to label the reference, whereas the desc pro‐
76 vides a short descriptive text of that document.
77
78 The symbolic names are used to preserve the convertibility of
79 this format to any output format. The actual name of the file
80 will be inserted by the chosen formatting engine when converting
81 the input. This will be based on a mapping from symbolic to
82 actual names given to the engine.
83
84 lb Text. The command is replaced with a left bracket. Use in free-
85 form text. Required to avoid interpretation of a left bracket as
86 the start of a markup command. Its usage is restricted to the
87 arguments of other markup commands.
88
89 rb Text. The command is replaced with a right bracket. Use in free-
90 form text. Required to avoid interpretation of a right bracket
91 as the end of a markup command. Its usage is restricted to the
92 arguments of other commands.
93
94 toc_begin text title
95 Document structure. The command to start a table of contents.
96 The arguments are a label for the whole group of documents the
97 index refers to (text) and the overall title text for the index
98 (title), without markup.
99
100 The label often is the name of the package (or extension) the
101 documents belong to.
102
103 toc_end
104 Document structure. Command to end a table of contents. Anything
105 in the document coming after this command is in error.
106
107 vset varname value
108 Templating. In this form the command sets the named document
109 variable to the specified value. It does not generate output.
110 I.e. the command is replaced by the empty string.
111
112 vset varname
113 Templating. In this form the command is replaced by the value of
114 the named document variable
115
117 This document, and the package it describes, will undoubtedly contain
118 bugs and other problems. Please report such in the category doctools
119 of the Tcllib SF Trackers [http://source‐
120 forge.net/tracker/?group_id=12883]. Please also report any ideas for
121 enhancements you may have for either package and/or documentation.
122
124 doctoc_intro, doctoc_lang_faq, doctoc_lang_intro, doctoc_lang_syntax
125
127 doctoc commands, doctoc language, doctoc markup, markup, semantic
128 markup
129
131 Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
132
133
134
135
136doctools 1.0 doctoc_lang_cmdref(n)