Difference between revisions of "Command/ register"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>register</i>")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<?xml version='1.0'?>
 
<!-- this file was generated on 2020-08-20T09:05 -->
 
 
<cd:commandgroup generated="yes" name="register" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup generated="yes" name="register" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<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 adding register entries.
The instances of  <tt>\<i>register</i></tt> are used for ...
 
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 10: Line 7:
 
   </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 38: Line 35:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>
+
<cd:description>Adds a word or a phrase to a defined register.
<!-- the long description of the command goes here -->
+
 
 +
[[Registers#Processors|Processors]] are used for highlighting single entries.
 
</cd:description>
 
</cd:description>
<cd:examples>
+
<cd:examples><cd:example title=""><texcode>
<!--  command example(s)
+
\index{Simple entry}
<cd:example title="">
+
\index{Entry+Subentry+Subsubentry}
</cd:example>
+
\index[gravenhage]{’s Gravenhage} % different sorting
-->
+
</texcode>
</cd:examples>
+
</cd:example></cd:examples>
<cd:notes>
+
<cd:notes></cd:notes>
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
 
<cd:note author="..." date="...">
 
</cd:note>
 
-->
 
</cd:notes>
 
 
<cd:seealso>
 
<cd:seealso>
<!-- one or more of these:
 
<cd:commandref name="xx"></cd:commandref>
 
<cd:wikipage  page="xx"></cd:wikipage>
 
<cd:url        url="https://xx"></cd:url>
 
<cd:manual    pdf="xx"></cd:manual>
 
<cd:source    file="xx"></cd:source>
 
-->
 
 
<cd:commandref name="_completeregister" originator="system"></cd:commandref>
 
<cd:commandref name="_completeregister" originator="system"></cd:commandref>
 
<cd:commandref name="_placeregister" originator="system"></cd:commandref>
 
<cd:commandref name="_placeregister" originator="system"></cd:commandref>
Line 67: Line 53:
 
<cd:commandref name="defineregister" originator="system"></cd:commandref>
 
<cd:commandref name="defineregister" originator="system"></cd:commandref>
 
<cd:commandref name="setupregister" originator="system"></cd:commandref>
 
<cd:commandref name="setupregister" originator="system"></cd:commandref>
<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:seealso>
+
<cd:commandref name="placeindex">(instance of {{gen|placeregister}})</cd:commandref>
 +
<cd:commandref name="defineprocessor"></cd:commandref>
 +
<cd:wikipage page="Registers"></cd:wikipage>
 +
<cd:wikipage page="Category:Registers"></cd:wikipage></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 16:13, 14 April 2024


\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: