Difference between revisions of "Command/index"

From Wiki
Jump to navigation Jump to search
(Add/fix links, add example and hint to processors)
Line 11: Line 11:
 
Adds a word or a phrase to the index.
 
Adds a word or a phrase to the index.
  
 +
[[Registers#Processors|Processors]] are used for highlighting single entries.
  
 
== Example ==
 
== Example ==
  
 +
<texcode>
 +
\index{Simple entry}
 +
\index{Entry+Subentry+Subsubentry}
 +
\index[gravenhage]{’s Gravenhage} % different sorting
 +
</texcode>
  
 
== See also ==
 
== See also ==
  
* {{cmd|register}}
+
* {{cmd|defineregister}}
 
* {{cmd|setupregister}}
 
* {{cmd|setupregister}}
* {{cmd|placeindex}}
+
* {{cmd|placeindex}} (instance of {{cmd|placeregister}})
 +
* {{cmd|defineprocessor}}
 
* [[Registers]]
 
* [[Registers]]
  

Revision as of 16:47, 2 August 2020

\index

Syntax (autogenerated)

\index[...]{...+...+...,...}
[...]text processor->text
{...+...+...,...}index
instance of register, generated by \defineregister


\index[...]{...}{...+...+...,...}
[...]text processor->text
{...}text
{...+...+...,...}index
instance of register, generated by \defineregister


Description

Adds a word or a phrase to the index.

Processors are used for highlighting single entries.

Example

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

See also


Help from ConTeXt-Mailinglist/Forum

All issues with: