Changes

Jump to navigation Jump to search
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>defineregister</syntax>
== [[Help:Reference|Syntax]] ==
<td class="cmd">[...]</td>
<td>plural </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>compress </td>
</tr>
</table>
== Description ==
 
The {{cmd|defineregister}} command creates a new index (register) definition. It also allows the index to be configured.
 
== Examples ==
== Description == The following section provides example usages.
=== Hyphenated Sequences ===
Often indexes will have consecutive page numbers hyphenated, such as: 1, 4-7, 10. The following code produces a hyphenated index:
<context source="yes">\defineregister [photographer] [compress= Example ==yes] \starttext \dorecurse{4}{%% Foo \photographer{Yousuf Karsh} \page}  \completephotographer\stoptext<!-- Please fill in an example if you can --/context>
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
See {{cmd|setupregister}} for details. == Help from ConTeXt-Mailinglist/Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}} [[Category:ReferenceCommand/enRegisters|defineregister]]

Navigation menu