Difference between revisions of "Command/definelabel"

From Wiki
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">[[Reference/en/keyword:text|text]]</td>
+
     <td class="cmd">[[Command/keyword:text|text]]</td>
     <td>[[Reference/en/value:text|text]] </td>
+
     <td>[[Command/value:text|text]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:location|location]]</td>
+
     <td class="cmd">[[Command/keyword:location|location]]</td>
     <td>[[Reference/en/value:inmargin|inmargin]] [[Reference/en/value:intext|intext]] </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">[[Reference/en/keyword:way|way]]</td>
+
     <td class="cmd">[[Command/keyword:way|way]]</td>
     <td>[[Reference/en/value:bytext|bytext]] [[Reference/en/value:bysection|bysection]] </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">[[Reference/en/keyword:blockway|blockway]]</td>
+
     <td class="cmd">[[Command/keyword:blockway|blockway]]</td>
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </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">[[Reference/en/keyword:headstyle|headstyle]]</td>
+
     <td class="cmd">[[Command/keyword:headstyle|headstyle]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small...|small...]] [[Reference/en/value:command|command]] </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">[[Reference/en/keyword:headcolor|headcolor]]</td>
+
     <td class="cmd">[[Command/keyword:headcolor|headcolor]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:name|name]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:before|before]]</td>
+
     <td class="cmd">[[Command/keyword:before|before]]</td>
     <td>[[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:command|command]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:after|after]]</td>
+
     <td class="cmd">[[Command/keyword:after|after]]</td>
     <td>[[Reference/en/value:command|command]] </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
  
== Example ==
+
\mapB\ Another map
<!-- Please fill in an example if you can -->
+
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* ''{{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:Reference/en|definelabel]]
+
[[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

Help from ConTeXt-Mailinglist/Forum

All issues with: