ma-cb-en-setupcommands.tex /size: 2075 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-setupcommands
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Setup commands]
8
9\index{set up}
10\index{layout}
11
12Global commands are placed in the setup area of your input file, before
13\type{\starttext}. In \in{appendix}[commandsetups] there is a complete overview of the
14available commands and their parameters.
15
16The set up commands all have the same structure. They look something like:
17
18\shortsetup{setupparagraphs}
19
20A set up command consists of a more or less logical name and a number of bracket
21pairs. Bracket pairs may be optional and in that case the \type{[]} are typeset
22slanted {\tt \sl []}. In the definition the bracket pairs may contain:
23
24\starttyping
25\setupacommand[.1.][.2.][..,..=..,..]
26\stoptyping
27
28The commas indicate that a list of parameters can be enclosed. In the options
29list following the definition, the \type{.1.} and \type{.2.} show the possible
30options that can be set in the first and second bracket pair respectively. The
31parameters and their possible values are placed in the third bracket pair.
32
33The default options and parameter values are underlined.
34
35Furthermore you will notice that some values are typeset in a slanted way: {\sl
36section}, {\sl name}, {\sl dimension}, {\sl number}, {\sl command} and {\sl
37text}. This indicates that you can set the value yourself.
38
39\starttabulate[|S||]
40\NC section   \NC a section name like chapter, section, subsection etc. \NC\NR
41\NC name      \NC an identifier (logical name)                          \NC\NR
42\NC dimension \NC a dimension with a unit in \type{cm}, \type{pt},
43                  \type{em}, \type{ex}, \type{sp} or \type{in}          \NC\NR
44\NC number    \NC an integer                                            \NC\NR
45\NC command   \NC a command                                             \NC\NR
46\NC text      \NC text                                                  \NC\NR
47\stoptabulate
48
49In the \goto {Quick Reference} [ url (manual:qr-en) ]
50manual you can find a complete overview of the commands and their parameters.
51
52\stopchapter
53
54\stopcomponent
55