Difference between revisions of "Command/ register"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>register</i>")
 
 
Line 4: Line 4:
 
<cd:shortdesc>
 
<cd:shortdesc>
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
The instances of  <tt>\<i>register</i></tt> are used for ...
+
The instances of  <tt>\<i>register</i></tt> are used for adding register entries.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 10: Line 10:
 
   </cd:sequence>
 
   </cd:sequence>
 
<cd:instances>
 
<cd:instances>
     <cd:constant value="index"></cd:constant>
+
     <cd:constant value="index">the standard register</cd:constant>
 
   </cd:instances>
 
   </cd:instances>
 
<cd:variants>
 
<cd:variants>
Line 39: Line 39:
 
</cd:variants>
 
</cd:variants>
 
<cd:description>
 
<cd:description>
<!-- the long description of the command goes here -->
+
Adds a word or a phrase to a defined register.
 +
 
 +
[[Registers#Processors|Processors]] are used for highlighting single entries.
 
</cd:description>
 
</cd:description>
 
<cd:examples>
 
<cd:examples>
<!--  command example(s)
 
 
<cd:example title="">
 
<cd:example title="">
 +
<texcode>
 +
\index{Simple entry}
 +
\index{Entry+Subentry+Subsubentry}
 +
\index[gravenhage]{’s Gravenhage} % different sorting
 +
</texcode>
 
</cd:example>
 
</cd:example>
-->
 
 
</cd:examples>
 
</cd:examples>
 
<cd:notes>
 
<cd:notes>
Line 69: Line 74:
 
<cd:source file="strc-reg.mkiv" originator="system"></cd:source>  
 
<cd:source file="strc-reg.mkiv" originator="system"></cd:source>  
 
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>  
 
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>  
 +
 +
<cd:commandref name="placeindex">(instance of {{gen|placeregister}})</cd:commandref>
 +
<cd:commandref name="defineprocessor"></cd:commandref>
 +
<cd:wikipage  page="Registers"></cd:wikipage>
 +
 
</cd:seealso>
 
</cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 11:47, 21 August 2020


\register

Summary

The instances of \register are used for adding register entries.

Instances

\indexthe standard register

Settings instance

\REGISTER[...]{...+...+...,...}
[...]text processor->text
{...+...+...,...}index

Settings instance:ownnumber

\REGISTER[...]{...}{...+...+...,...}
[...]text processor->text
{...}text
{...+...+...,...}index

Description

Adds a word or a phrase to a defined register.

Processors are used for highlighting single entries.

Examples

Example 1

\index{Simple entry}
\index{Entry+Subentry+Subsubentry}
\index[gravenhage]{’s Gravenhage} % different sorting

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: