Difference between revisions of "Command/installcommandhandler"
< Command
Jump to navigation
Jump to search
m |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>installcommandhandler</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 23: | Line 26: | ||
<tr valign="top" class="third"> | <tr valign="top" class="third"> | ||
<td class="cmd">''\??parent''</td> | <td class="cmd">''\??parent''</td> | ||
− | <td><i>'' | + | <td><i>''in practice, always equal to \??self''</i></td> |
</tr> | </tr> | ||
Line 30: | Line 33: | ||
== Description == | == Description == | ||
+ | The generalized way to install a new command, and the accompanying <code>\setup...</code> command, and handlers, etc. | ||
+ | Defines the following commands: | ||
+ | * <code>\setup''name''</code> | ||
+ | * <code>\current''name''</code> | ||
+ | * <code>\install''name''method</code> | ||
+ | * ... | ||
== Example == | == Example == | ||
+ | Setting default values: | ||
+ | <texcode> | ||
+ | \setupitemgroup | ||
+ | [\c!margin=\zeropoint, % \c!key=\command | ||
+ | \c!indentnext=\v!yes % \c!key=\v!keyword | ||
+ | </texcode> | ||
== See also == | == See also == | ||
+ | * {{cmd|installcorenamespace}} | ||
Latest revision as of 16:26, 11 November 2019
\installcommandhandler
Syntax (autogenerated)
\installcommandhandler\command{...}\command | |
\command | csname |
{...} | name |
\command | csname |
Syntax
\installcommandhandler\??self name \??parent | |
\??self | text |
name | text |
\??parent | in practice, always equal to \??self |
Description
The generalized way to install a new command, and the accompanying \setup...
command, and handlers, etc.
Defines the following commands:
\setupname
\currentname
\installnamemethod
- ...
Example
Setting default values:
\setupitemgroup [\c!margin=\zeropoint, % \c!key=\command \c!indentnext=\v!yes % \c!key=\v!keyword
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: