Difference between revisions of "Command/definelabel"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ")
 
(9 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>definelabel</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
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-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|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: