Difference between revisions of "Command/defineregister"
< Command
Jump to navigation
Jump to search
m |
m |
||
Line 25: | Line 25: | ||
== Description == | == Description == | ||
− | The {{cmd|defineregister}} command | + | The {{cmd|defineregister}} command creates a new index (register) definition. It also allows the index to be configured. |
== Examples == | == Examples == |
Revision as of 20:21, 23 February 2014
\defineregister
Syntax
\defineregister[...][...] | |
[...] | singular |
[...] | plural |
[...] | compress |
Description
The \defineregister command creates a new index (register) definition. It also allows the index to be configured.
Examples
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:
\defineregister [photographer] [compress=yes] \starttext \dorecurse{4}{%% Foo \photographer{Yousuf Karsh} \page} \completephotographer \stoptext
See also
See also \setupregister.
Help from ConTeXt-Mailinglist/Forum
All issues with: