Difference between revisions of "Command/startregister"

From Wiki
Jump to navigation Jump to search
m (Taco moved page Environment/register to Command/startregister over a redirect without leaving a redirect)
(add description and example)
 
Line 7: Line 7:
 
<syntax>startregister</syntax>
 
<syntax>startregister</syntax>
  
 +
<!--
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 21: Line 22:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 +
-->
  
 +
== Description ==
  
== Description ==
+
Set an index (or other register) entry for a page span, e.g. a whole chapter, without the need to repeat {{cmd|index}}.
  
 +
# registername (e.g. "index")
 +
# reference code, in case several register spans overlap
 +
# sort by
 +
# own number?
 +
# index entry
  
 +
It’s always {{cmd|startregister|2=[registername]}}, the short form <code>\startindex</code> (or <code>\startmyownregister</code>) doesn’t exist!
  
 
== Example ==
 
== Example ==
 
<!-- Please fill in an example if you can -->
 
<!-- Please fill in an example if you can -->
 +
 +
<texcode>
 +
\startregister[index][knuth]{Knuth, Donald}
 +
 +
... a long section about Donald Knuth ...
 +
 +
\stopregister[index][knuth]
 +
</texcode>
  
 
== See also ==
 
== See also ==
 
<!-- something like {{cmd|goto}} -->
 
<!-- something like {{cmd|goto}} -->
 +
* {{cmd|defineregister}}
 +
* {{cmd|setupregister}}
 +
* {{cmd|_register}} / {{cmd|index}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Latest revision as of 10:26, 4 September 2020

\startregister

Syntax (autogenerated)

\startregister[...][...][...][...]{...+...+...,...} ... \stopregister[...][...]
[...]name
[...]name
[...]text
[...]text processor->text
{...+...+...,...}index
... content
\stopregisterdelimiter
[...]name
[...]name



Description

Set an index (or other register) entry for a page span, e.g. a whole chapter, without the need to repeat \index.

  1. registername (e.g. "index")
  2. reference code, in case several register spans overlap
  3. sort by
  4. own number?
  5. index entry

It’s always \startregister[registername], the short form \startindex (or \startmyownregister) doesn’t exist!

Example

\startregister[index][knuth]{Knuth, Donald}

... a long section about Donald Knuth ...

\stopregister[index][knuth]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: