Difference between revisions of "Command/register"

From Wiki
Jump to navigation Jump to search
m (→‎See also: Add \index and Registers)
(add links, replace nonexisting \register with \index, add warning)
(One intermediate revision by the same user not shown)
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>leftaligned</syntax>
+
<syntax>register</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 22: Line 22:
 
</table>
 
</table>
  
 +
'''Beware''': There’s ''no'' command {{cmd|register}}, just {{cmd|index}} and your custom results of {{cmd|defineregister}}!
  
 
== Description ==  
 
== Description ==  
Line 30: Line 31:
 
== Example ==
 
== Example ==
 
<texcode>
 
<texcode>
\register{word}
+
\index{word}
\register{word+short}
+
\index{word+short}
\register{word+long}
+
\index{word+long}
\register[alpha]{\alpha}
+
\index[alpha]{\alpha}
 
</texcode>
 
</texcode>
  
Line 39: Line 40:
  
 
* {{cmd|index}}
 
* {{cmd|index}}
 +
* {{cmd|defineregister}}
 +
* {{cmd|setupregister}}
 +
* {{cmd|placeregister}}
 
* [[Registers]]
 
* [[Registers]]
  

Revision as of 16:40, 2 August 2020

\register

Syntax (autogenerated)


Syntax

\register[...]{...+...+...}
[...] text
{...+...+...}

Beware: There’s no command \register, just \index and your custom results of \defineregister!

Description

[...] optional text for sorting

(...+...+...) register entry, up to 3 level

Example

\index{word}
\index{word+short}
\index{word+long}
\index[alpha]{\alpha}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: