Difference between revisions of "Command/definelabel"
< Command
Jump to navigation
Jump to search
(cleanup) |
|||
(15 intermediate revisions by 5 users not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>definelabel</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 14: | Line 17: | ||
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:text|text]]</td> |
− | <td>[[ | + | <td>[[Command/value:text|text]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:location|location]]</td> |
− | <td>[[ | + | <td>[[Command/value:inmargin|inmargin]] [[Command/value:intext|intext]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:way|way]]</td> |
− | <td>[[ | + | <td>[[Command/value:bytext|bytext]] [[Command/value:bysection|bysection]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:blockway|blockway]]</td> |
− | <td>[[ | + | <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:headstyle|headstyle]]</td> |
− | <td>[[ | + | <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small|small]] ... [[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:headcolor|headcolor]]</td> |
− | <td>[[ | + | <td>[[Command/value:name|name]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:before|before]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:after|after]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
</table> | </table> | ||
Line 49: | Line 52: | ||
== Description == | == Description == | ||
+ | Define an autonumbered label type, including a command to place one. | ||
+ | == Example == | ||
+ | <context source=yes> | ||
+ | \definelabel[mapA][text=Map A, location=inmargin] | ||
+ | \definelabel[mapB][text=Map B, location=intext] | ||
+ | \mapA One map | ||
− | + | \mapB\ Another map | |
− | < | + | </context> |
== See also == | == See also == | ||
− | + | * ''{{cmd|labeling}}'' to use a labeling defined with {{cmd|definelabel}}. | |
+ | * {{cmd|defineenumeration}} for a newer mechanism that can replace many uses of {{cmd|definelabel}} | ||
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Numbered objects|definelabel]] |
Latest revision as of 13:45, 18 November 2019
\definelabel
Syntax (autogenerated)
\definelabel[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setuplabel |
Syntax
\definelabel[...][...,...=...,...] | |
[...] | name |
text | text |
location | inmargin intext |
way | bytext bysection |
blockway | yes no |
headstyle | normal bold slanted boldslanted type cap small ... command |
headcolor | name |
before | command |
after | command |
Description
Define an autonumbered label type, including a command to place one.
Example
\definelabel[mapA][text=Map A, location=inmargin] \definelabel[mapB][text=Map B, location=intext] \mapA One map \mapB\ Another map
See also
- \labeling to use a labeling defined with \definelabel.
- \defineenumeration for a newer mechanism that can replace many uses of \definelabel
Help from ConTeXt-Mailinglist/Forum
All issues with: