Difference between revisions of "Command/defineregister"

From Wiki
Jump to navigation Jump to search
m
m
Line 29: Line 29:
 
\stoptext
 
\stoptext
 
</context>
 
</context>
 
=== ===
 
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Revision as of 20:18, 23 February 2014

\defineregister

Description

The \defineregister command configures how indexes are presented.

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

Syntax

\defineregister[...][...]
[...] singular
[...] plural
[...] compress


Description

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: